Code Monkey home page Code Monkey logo

lobbyist-ruby's Introduction

Lobbyist Ruby bindings

Installation

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

Documentation

TODO: Get Documentation URL.

Please see ### API DOCUMENTATION URL ### for up-to-date documentation.

Usage Note

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?

Requirements

  • Ruby 1.9.0 or above.
  • faraday, multi-json, activesupport

Development

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.

Building Lobbyist

For projects that include Lobbyist as a gem, currently only the Members project, follow these steps to update the lobbyist-ruby gem.

  1. Clone the lobbyist-ruby project separately.
  2. Create a branch to make your changes on.
  3. Make any required changes. (Add classes, methods, attributes, etc.)
  4. If you added a new class be sure to update lib/lobbyist.rb with a require statement for the new class.
  5. Bump the lib/lobbyist/version.rb patch number. This is required for bundler to detect the update.
  6. Add a note to the CHANGELOG about your changes.
  7. Commit those changes directly to the lobbyist-ruby branch you created.
  8. Create a pull request on Github.

Using the changes in the host project.

  1. Go to the host project.
  2. Create a branch for your changes.
  3. Run bundle update lobbyist-ruby to force bundler to update the lobbyist gem.
  4. Make any other required changes.
  5. Commit your changes along with the Gemfile.lock to your branch.
  6. Create a pull request on Github.

Now lobbyist-ruby needs to be updated on the gem host we use with Semaphore, Gemfury.

  1. Make a gemfury directory somewhere in your local drive.
  2. Clone the lobbyist-ruby project into the gemfury directory.
  3. Build the gemspec, gem build lobbyist.gemspec.
  4. Upload the gem to Gemfury, curl -F package=@lobbyist-ruby-0.#.##.gem https://push.fury.io/P7qkxZzYFkrcJPGnWV43/customerlobby. Be sure to replace the version and patch numbers.

lobbyist-ruby's People

Contributors

dlains avatar sreevs avatar spiritbear avatar rhuntcl avatar jjmarfa avatar jdvolz avatar oafridi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.