Project

movescount

0.0
No commit activity in last 3 years
No release in over 3 years
Api wrapper for Suunto movescount
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 5.10
~> 12.0
~> 3.0
~> 2.3

Runtime

~> 0.14
 Project Readme

Movescount

A gem for communicating with the Suunto movescount API.

Installation

Add this line to your application's Gemfile:

gem 'movescount'

And then execute:

$ bundle

Or install it yourself as:

$ gem install movescount

Configuration

You can use a configure block to setup the gem and provide the app_key

Movescount.configure do |config|
  config.app_key = 'TestAppKey'
  config.api_uri = 'https://uiservices.movescount.com'
end

Usage

It all starts with a movescount member object

Movescount::Member.new(email: 'foo@bar.com', userkey: 'ABCDEFGHIJKLMNO')

This userkey is an extra check if the requests are from the same origin. When you change the userkey, the user has to reconfirm the integration in movescount. So make sure you save this (user specific) key.

TODO: More and don't forget the nice rails concerns

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/StefSchenkelaars/movescount.

License

The gem is available as open source under the terms of the MIT License.

Ideas from

https://robots.thoughtbot.com/mygem-configure-block