API client for Google Play Store service provided by MashApe service sharing platform.
The library(gem) contains implementation of Ruby JSON API client for Google Play Store JSON API service provided by MashApe service sharing platform.
- MRI Ruby version 2.3.1 or higher
- Bundler version 1.12.5 or higher
- Other dependencies will be installed automatically by running
bundle install
from library's root directory.
You can install this library manually with
gem install com-mash_ape-google_play_store-client
with resolving all of their dependencies manually.
The preffered way to install it is to rely on Bundler in your application.
Assuming that, add follow to your Gemfile
.
gem "com-mash_ape-google_play_store-client", ">= 0.1.0"
And then execute from the directory with Gemfile
(likely it should be your
application's root directory):
$ bundle
This is the most common use case of that library. Likely you already know how to do that, but for clarity sake here is some tips and links.
Add follow line to your library's gemspec
file:
spec.add_runtime_dependency 'com-mash_ape-google_play_store-client', '>= 0.1'
See also official documentation on rubygems about adding runtime dependencies.
While developming new library which depends on changes to
com-mash_ape-google_play_store-client
you likely want to test you changes to com-mash_ape-google_play_store-client
with your own library.
To do this add runtime dependency in your library's gemspec
file like described in previous section.
Then add gem definition for com-mash_ape-google_play_store-client
to your library's Gemfile
with
:path
parameter which points to root directory
of your local copy of com-mash_ape-google_play_store-client
.
If we assume that you have follow directory structure of git repositories:
~
|- projects
|- com-mash_ape-google_play_store-client
|- your-library
Then you have to add to your Gemfile
something like follows:
gem "com-mash_ape-google_play_store-client",
path: "../com-mash_ape-google_play_store-client"
After all run bundle install
to let your changes to make affect.
To experiment with that code, run bin/console
for an interactive prompt from project's root directory.
Introduced namespace modules:
Introduced error tagging modules:
After checking out the repo, run bin/setup
to install dependencies.
Then, run bin/console
for an interactive prompt that will allow
you to experiment.
Run bundle exec com-mash_ape-google_play_store-client
to
use the code located in this directory, ignoring other installed copies of this gem.
To install this gem onto your local machine, run
bundle exec rake install
.
To release a new version, update the version number in
lib/com/mash_ape/google_play_store/client/version.rb
,
and then run
bundle exec rake release
to create a git tag for the version,
push git commits and tags.
There are different ways to run tests. You can use the one which you used to.
$ rake # uses default rake task which is spec
or
$ rspec
or
$ rake spec
or
$ rspec spec/
- Clone it:
git clone [email protected]:com-rb/com-mash_ape-google_play_store-client.git
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Ensure all tests pass successfully
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request