A Ruby Hawkular Client.
-
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.
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
If you want to see API requests and responses, use the following environment variables:
RESTCLIENT_LOG=stdout HAWKULARCLIENT_LOG_RESPONSE=1 rake spec
Client documentation can be generated using yardoc.org
yardoc