Repository URL to install this package:
|
Version:
4.0 ▾
|
| bin |
| lib |
| spec |
| .gitignore |
| .rspec |
| Gemfile |
| LICENSE.txt |
| README.md |
| Rakefile |
| getfitter.gemspec |
This is the main Ruby library for Get Fitter. It should handle all of the endpoints of the API to provide a reference implementation. It uses ROAR to reconstruct full objects from the JSON reponses.
getfitter-ruby isn't (currently) on RubyGems, you should instead use the
private GemFury source:
source 'https://G3ixBQ6dKteqJr6mbx82@gem.fury.io/nickcharlton/' gem 'getfitter'
Alternatively point to the repository:
gem 'getfitter', git: 'https://github.com/getfitter/getfitter-ruby.git'
Or, install it yourself:
gem install getfitter --source https://G3ixBQ6dKteqJr6mbx82@gem.fury.io/nickcharlton/
GetFitter::API.configure do |config| config.url = 'https://getfitter-api.herokuapp.com/' end
The models are exposed following the ActiveModel patterns. See the [Her][] documentation for further details.
These are implemented:
GetFitter::EventSpecs are provided using RSpec, you can run them using:
rake spec
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)