Repository URL to install this package:
|
Version:
0.5.60 ▾
|
| lib |
| spec |
| .gitignore |
| CHANGELOG |
| Gemfile |
| Gemfile.lock |
| LICENSE |
| README.md |
| deploy.rb |
| lobbyist-ruby-0.5.51.gem |
| lobbyist.gemspec |
You don't need this source code unless you want to modify the gem. If you just want to use the Lobbyist Ruby bindings, you should run:
gem install lobbyist
If you want to build the gem from source:
gem build lobbyist.gemspec
TODO: Get Documentation URL.
Please see ### API DOCUMENTATION URL ### for up-to-date documentation.
If you need to check for the presence of an object returned from Lobbyist you will need to check for the presence of an actual attribute. For example:
company = Lobbyist::V2::Company.find(10000) company.present? # This will always be true because 'company' is a valid Lobbyist object. # This is probably what you want. It checks that data was actually returned from the API. company.company_id.present?
If you would like to run the tests simply run rspec in the root of the project.
Open coverage/index.html to see a code coverage report generated from the test run.
For projects that include Lobbyist as a gem, currently only the Members project, follow these steps to update the lobbyist-ruby gem.
lib/lobbyist.rb with a require statement for the new class.lib/lobbyist/version.rb patch number. This is required for bundler to detect the update.Using the changes in the host project.
bundle update lobbyist-ruby to force bundler to update the lobbyist gem.Now lobbyist-ruby needs to be updated on the gem host we use with Semaphore, Gemfury.
ruby deploy.rb