Skip to content

mtho11/hawkular-client-ruby

 
 

Repository files navigation

hawkular-client-ruby

A Ruby Hawkular Client.

Contributing to hawkular-client-ruby

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet

  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Run your code through RuboCop (which is default when running ‘rake`) and fix complaints.

  • When you open a pull request, watch out for failures on Travis.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so we can cherry-pick around it.

Running the tests

Integration tests are recorded and played against cassettes recorded with VCR (www.relishapp.com/vcr/vcr/docs)

  • Edit the endpoint properties in the file ‘spec/endpoint.yml`(user, password and host name) if needed

  • From command line run

    rake spec
    
  • To run the tests against a live server, set VCR_OFF to 1 as in

    VCR_OFF=1 rake spec

Logging

If you want to see API requests and responses, use the following environment variables:

RESTCLIENT_LOG=stdout HAWKULARCLIENT_LOG_RESPONSE=1 rake spec

Generate documentation

Client documentation can be generated using yardoc.org

yardoc

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%