This gem is no longer supported, see UNSUPPORTED.md.
This project uses continuous integration to help ensure that a quality product is delivered. Travis CI monitors two branches (versions) of the code - Master (which is what gets released) and Staging (which is what is currently being developed ready for moving to master).
This gem supports the following versions of ruby, it may work on other versions but is not tested against them so don't rely on it.
Use the Online Scout Manager API.
Requires Ruby 1.9.3 or later.
Add to your Gemfile and run the bundle
command to install it.
gem 'osm', '~> 1.2'
Configure the gem during the initalization of the app (e.g. if using rails then config/initializers/osm.rb would look like):
ActionDispatch::Callbacks.to_prepare do
Osm::configure(
:api => {
:default_site => :osm, # or :ogm
:osm => { # or :ogm (both an :osm and :ogm config are allowed
:id => 'YOU WILL BE GIVEN THIS BY ED AT OSM',
:token => 'YOU WILL BE GIVEN THIS BY ED AT OSM',
:name => 'YOU WILL GIVE THIS TO ED AT OSM',
},
},
:cache => {
:cache => Rails.cache,
},
)
end
In order to use the OSM API you first need to authorize the api to be used by the user, to do this use the {Osm::Api#authorize} method to get a userid and secret.
Osm::Api.authorize(users_email_address, users_osm_password)
Once you have done this you should store the userid and secret somewhere, you can then create an {Osm::Api} object to start acting as the user.
api_for_this_user = Osm::Api.new(userid, secret)
Documentation can be found on rubydoc.info
We follow the Semantic Versioning concept, however it should be noted that when the OSM API adds a feature it can be difficult to decide Whether to bump the patch or minor version number up. A smaller change (such as adding score into the grouping object) will bump the patch whereas a larger change wil bump the minor version.
See the Roadmap page in the wiki for more details.