movescount 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +60 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/movescount.rb +16 -0
- data/lib/movescount/concern/member.rb +46 -0
- data/lib/movescount/concern/move.rb +79 -0
- data/lib/movescount/configuration.rb +10 -0
- data/lib/movescount/member.rb +71 -0
- data/lib/movescount/move.rb +90 -0
- data/lib/movescount/point.rb +15 -0
- data/lib/movescount/sample.rb +14 -0
- data/lib/movescount/track_point.rb +10 -0
- data/lib/movescount/version.rb +3 -0
- data/movescount.gemspec +37 -0
- metadata +148 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2b4a79cb3a18dc66b4f5f3113717700face1eb56
|
4
|
+
data.tar.gz: ebab7d94021945f2e84c40334ccbdbad08eb3313
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: eb6788cc2fc888efa4094b043753e4dfc4674094c9700d2ed2cdf903ae065024af09f87811868ba15a93c26168887816721ce96f6ca085a8a0ae0697c96f0166
|
7
|
+
data.tar.gz: 06f8ebf1ac79fd84e74682da488ad3ff95d8ab8affe3c6a835cb7bd0ec26a5bacc3b319fcb7a8ad8b7e977d4da48aa09373a2b1431222ca9569f7bb65814f11b
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Stef Schenkelaars
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Movescount
|
2
|
+
|
3
|
+
A gem for communicating with the [Suunto movescount](http://www.movescount.com/) API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'movescount'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install movescount
|
20
|
+
|
21
|
+
## Configuration
|
22
|
+
|
23
|
+
You can use a configure block to setup the gem and provide the `app_key`
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
Movescount.configure do |config|
|
27
|
+
config.app_key = 'TestAppKey'
|
28
|
+
config.api_uri = 'https://uiservices.movescount.com'
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
It all starts with a movescount member object
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
Movescount::Member.new(email: 'foo@bar.com', userkey: 'ABCDEFGHIJKLMNO')
|
38
|
+
```
|
39
|
+
|
40
|
+
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.
|
41
|
+
|
42
|
+
TODO: More and don't forget the nice rails concerns
|
43
|
+
|
44
|
+
## Development
|
45
|
+
|
46
|
+
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.
|
47
|
+
|
48
|
+
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](https://rubygems.org).
|
49
|
+
|
50
|
+
## Contributing
|
51
|
+
|
52
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/StefSchenkelaars/movescount.
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
57
|
+
|
58
|
+
## Ideas from
|
59
|
+
|
60
|
+
https://robots.thoughtbot.com/mygem-configure-block
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'movescount'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require 'pry'
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/movescount.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
Dir[File.dirname(__FILE__) + '/movescount/**/*.rb'].each{ |f| require f }
|
3
|
+
|
4
|
+
module Movescount
|
5
|
+
|
6
|
+
def self.configuration
|
7
|
+
@@configuration ||= Configuration.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.configure
|
11
|
+
yield configuration
|
12
|
+
end
|
13
|
+
|
14
|
+
module Concern; end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Movescount
|
2
|
+
module Concern
|
3
|
+
module Member
|
4
|
+
def self.included(base)
|
5
|
+
base.extend ClassMethods
|
6
|
+
end
|
7
|
+
|
8
|
+
# Returns the Movescount Member object
|
9
|
+
def movescount_member
|
10
|
+
return unless self[movescount_options[:email_column]]
|
11
|
+
@movescount_member ||= Movescount::Member.new(email: self[movescount_options[:email_column]], userkey: movescount_userkey)
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
# Get the set options. Getting the defaults is ugly with send but its ok for now
|
17
|
+
def movescount_options
|
18
|
+
self.class.movescount_options || self.class.send(:movescount)
|
19
|
+
end
|
20
|
+
|
21
|
+
# Returns the user's movescount user key
|
22
|
+
def movescount_userkey
|
23
|
+
unless self[movescount_options[:userkey_column]]
|
24
|
+
self[movescount_options[:userkey_column]] = SecureRandom.base58(15)
|
25
|
+
save! if persisted?
|
26
|
+
end
|
27
|
+
self[movescount_options[:userkey_column]]
|
28
|
+
end
|
29
|
+
|
30
|
+
module ClassMethods
|
31
|
+
attr_reader :movescount_options
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
# Allow to set the options from the class
|
36
|
+
def movescount(options = {})
|
37
|
+
default_options = {
|
38
|
+
email_column: :movescount_email,
|
39
|
+
userkey_column: :movescount_userkey
|
40
|
+
}
|
41
|
+
@movescount_options = default_options.merge options
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
module Movescount
|
2
|
+
module Concern
|
3
|
+
module Move
|
4
|
+
def self.included(base)
|
5
|
+
base.extend ClassMethods
|
6
|
+
end
|
7
|
+
|
8
|
+
# Get the movescount move
|
9
|
+
def movescount_move
|
10
|
+
return unless self[movescount_options[:move_id_column]] && movescount_member
|
11
|
+
@movescount_move ||= Movescount::Move.new(movescount_member, 'MoveID' => self[movescount_options[:move_id_column]])
|
12
|
+
end
|
13
|
+
|
14
|
+
# Save the points to the database
|
15
|
+
def movescount_save
|
16
|
+
self.class.transaction do
|
17
|
+
# First delete all point
|
18
|
+
public_send(movescount_options[:points_relation]).public_send(movescount_options[:points_clear_method])
|
19
|
+
# Then for each point create a new point
|
20
|
+
movescount_move.points.each do |point|
|
21
|
+
attributes = {}
|
22
|
+
movescount_options[:point_attributes].each do |attribute, target|
|
23
|
+
attributes[target] = point.public_send(attribute) if target
|
24
|
+
end
|
25
|
+
unless attributes.empty?
|
26
|
+
if persisted?
|
27
|
+
public_send(movescount_options[:points_relation]).create attributes
|
28
|
+
else
|
29
|
+
public_send(movescount_options[:points_relation]).build attributes
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
# Get the set options. Getting the defaults is ugly with send but its ok for now
|
39
|
+
def movescount_options
|
40
|
+
self.class.movescount_options || self.class.send(:movescount)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Returns the movescount member object
|
44
|
+
def movescount_member
|
45
|
+
return unless public_send(movescount_options[:member_relation])
|
46
|
+
public_send(movescount_options[:member_relation]).movescount_member
|
47
|
+
end
|
48
|
+
|
49
|
+
module ClassMethods
|
50
|
+
attr_reader :movescount_options
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
# Allow to set the options from the class
|
55
|
+
def movescount(options = {})
|
56
|
+
default_options = {
|
57
|
+
move_id_column: :movescount_move_id,
|
58
|
+
member_relation: :user,
|
59
|
+
points_relation: :points,
|
60
|
+
points_clear_method: :delete_all,
|
61
|
+
point_attributes: {
|
62
|
+
Latitude: nil,
|
63
|
+
Longitude: nil,
|
64
|
+
Altitude: nil,
|
65
|
+
Cadence: nil,
|
66
|
+
Distance: nil,
|
67
|
+
HeartRate: nil,
|
68
|
+
Power: nil,
|
69
|
+
Speed: nil,
|
70
|
+
Temperature: nil,
|
71
|
+
MeasuredAt: nil
|
72
|
+
}
|
73
|
+
}
|
74
|
+
@movescount_options = default_options.merge options
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
module Movescount
|
2
|
+
class Member
|
3
|
+
# Make sure it responds to serialization when loaded in a rails app
|
4
|
+
include ActiveModel::Serialization if defined? ActiveModel
|
5
|
+
|
6
|
+
include HTTParty
|
7
|
+
raise_on [401, 403, 404, 500]
|
8
|
+
# debug_output $stderr
|
9
|
+
attr_reader :options
|
10
|
+
|
11
|
+
def initialize(options={})
|
12
|
+
raise ArgumentError, 'An email is required as an option' unless options[:email]
|
13
|
+
raise ArgumentError, 'A userkey is required as an option' unless options[:userkey]
|
14
|
+
self.class.base_uri Movescount.configuration.api_uri
|
15
|
+
@options = {
|
16
|
+
query: {
|
17
|
+
appKey: Movescount.configuration.app_key,
|
18
|
+
userKey: options.delete(:userkey),
|
19
|
+
email: options.delete(:email)
|
20
|
+
}
|
21
|
+
}.merge options
|
22
|
+
end
|
23
|
+
|
24
|
+
# Returns the entire user profile
|
25
|
+
# Force argument forces reload of data from api
|
26
|
+
def profile(force = false)
|
27
|
+
force ? @profile = get_profile : @profile ||= get_profile
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns the user's movescount username
|
31
|
+
def username
|
32
|
+
profile['Username']
|
33
|
+
end
|
34
|
+
|
35
|
+
# Returns the user's moves
|
36
|
+
# Options include: startDate, endDate and maxcount
|
37
|
+
# Force argument forces reload of data from api
|
38
|
+
def moves(options = {}, force = false)
|
39
|
+
# Return moves if present and not forcing reload
|
40
|
+
return @moves if @moves && !force
|
41
|
+
# Get moves from the api and create move objects
|
42
|
+
@moves = get_moves(options).map do |move|
|
43
|
+
Move.new self, move
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Get a move by move_id
|
48
|
+
def move_by_id(id)
|
49
|
+
Move.new self, self.class.get("/moves/#{id}", @options)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
# Get the moves from the api
|
55
|
+
def get_moves(options)
|
56
|
+
self.class.get "/members/#{username}/moves", combined_options(options)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Get the profile page from the api
|
60
|
+
def get_profile
|
61
|
+
self.class.get '/members/private', @options
|
62
|
+
end
|
63
|
+
|
64
|
+
# Combine the instance variable options hash with arguments options
|
65
|
+
def combined_options(options)
|
66
|
+
resp = @options
|
67
|
+
resp[:query].merge! options
|
68
|
+
resp
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module Movescount
|
2
|
+
class Move < OpenStruct
|
3
|
+
# Make sure it responds to serialization when loaded in a rails app
|
4
|
+
include ActiveModel::Serialization if defined? ActiveModel
|
5
|
+
|
6
|
+
include HTTParty
|
7
|
+
raise_on [401, 403, 404, 500]
|
8
|
+
# debug_output $stderr
|
9
|
+
|
10
|
+
attr_accessor :member
|
11
|
+
|
12
|
+
def initialize(member, attributes={})
|
13
|
+
# raise ArgumentError, 'First argument should be a member' unless member && member.class == Member
|
14
|
+
raise ArgumentError, 'Attributes should include a MoveID' unless attributes['MoveID']
|
15
|
+
self.class.base_uri Movescount.configuration.api_uri
|
16
|
+
@member = member
|
17
|
+
super attributes
|
18
|
+
end
|
19
|
+
|
20
|
+
# Return the datapoints (samples) of the move
|
21
|
+
# Force argument forces reload of data from api
|
22
|
+
def samples(force = false)
|
23
|
+
# Return samples if present and not forcing reload
|
24
|
+
return @samples if @samples && !force
|
25
|
+
# Get samples from the api and create points objects
|
26
|
+
@samples = get_samples.map do |sample|
|
27
|
+
Sample.new self, sample
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Return the gps points
|
32
|
+
# Force argument forces reload of data from api
|
33
|
+
def track_points(force = false)
|
34
|
+
# Return points if present and not forcing reload
|
35
|
+
return @track_points if @track_points && !force
|
36
|
+
# Get points from the api and create points objects
|
37
|
+
@track_points = get_track_points.map do |track_point|
|
38
|
+
TrackPoint.new self, track_point
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# Returns the gps points or the sampmle points when gps not available
|
43
|
+
def points
|
44
|
+
return @points if @points
|
45
|
+
if track_points.any?
|
46
|
+
current_index = 0
|
47
|
+
# If there are track points available, then create the points based on those
|
48
|
+
@points = track_points.map do |track_point|
|
49
|
+
# Find the correct index for the corresponding sample
|
50
|
+
loop do
|
51
|
+
current_index += 1
|
52
|
+
# Skip this sample (so loop again) if it is far away from the current point
|
53
|
+
break if samples[current_index].LocalTime >= track_point.MeasuredAt - 5e-5
|
54
|
+
end
|
55
|
+
Point.new self, track_point.to_h.merge(samples[current_index].to_h)
|
56
|
+
end
|
57
|
+
else
|
58
|
+
@points = samples.map do |sample|
|
59
|
+
Point.new self, sample.to_h
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
private
|
66
|
+
|
67
|
+
# Get the datapoints (samples) of the move from the api
|
68
|
+
def get_samples
|
69
|
+
self.class.get("/moves/#{self.MoveID}/samples", member.options)['SampleSets']
|
70
|
+
end
|
71
|
+
|
72
|
+
# Get the track points from the api
|
73
|
+
def get_track_points
|
74
|
+
csv_array = self.class.get("/moves/#{self.MoveID}/track", member.options)['Points'] || ''
|
75
|
+
# The track points are returned in a csv format where each point is split by a semicolumn
|
76
|
+
csv_array.split(';').map do |track_point_csv|
|
77
|
+
# Each attribute is then split by a comma
|
78
|
+
attributes = {}
|
79
|
+
splited = track_point_csv.split(',')
|
80
|
+
if splited.length == 4
|
81
|
+
attributes[:Latitude] = splited[0].to_f
|
82
|
+
attributes[:Longitude] = splited[1].to_f
|
83
|
+
attributes[:Altitude] = splited[2].to_f
|
84
|
+
attributes[:MeasuredAt] = DateTime.parse(splited[3])
|
85
|
+
end
|
86
|
+
attributes
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Movescount
|
2
|
+
class Point < OpenStruct
|
3
|
+
attr_accessor :move
|
4
|
+
|
5
|
+
def initialize(move, attributes = {})
|
6
|
+
@move = move
|
7
|
+
super attributes
|
8
|
+
end
|
9
|
+
|
10
|
+
# Make sure that MeasuredAt falls back to the time of the sample
|
11
|
+
def MeasuredAt
|
12
|
+
super || DateTime.parse(self.LocalTime)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/movescount.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'movescount/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'movescount'
|
8
|
+
spec.version = Movescount::VERSION
|
9
|
+
spec.authors = ['Stef Schenkelaars']
|
10
|
+
spec.email = ['stef.schenkelaars@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Api wrapper for Suunto movescount'
|
13
|
+
spec.description = 'Api wrapper for Suunto movescount'
|
14
|
+
spec.homepage = 'https://github.com/StefSchenkelaars/Movescount'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
else
|
22
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
|
30
|
+
spec.add_dependency 'httparty', '~> 0.14'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
33
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
34
|
+
spec.add_development_dependency 'webmock', '~> 2.3'
|
35
|
+
spec.add_development_dependency 'vcr', '~> 3.0'
|
36
|
+
spec.add_development_dependency 'minitest', '~> 5.10'
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: movescount
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stef Schenkelaars
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.14'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.14'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.14'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.10'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.10'
|
97
|
+
description: Api wrapper for Suunto movescount
|
98
|
+
email:
|
99
|
+
- stef.schenkelaars@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".travis.yml"
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- bin/console
|
111
|
+
- bin/setup
|
112
|
+
- lib/movescount.rb
|
113
|
+
- lib/movescount/concern/member.rb
|
114
|
+
- lib/movescount/concern/move.rb
|
115
|
+
- lib/movescount/configuration.rb
|
116
|
+
- lib/movescount/member.rb
|
117
|
+
- lib/movescount/move.rb
|
118
|
+
- lib/movescount/point.rb
|
119
|
+
- lib/movescount/sample.rb
|
120
|
+
- lib/movescount/track_point.rb
|
121
|
+
- lib/movescount/version.rb
|
122
|
+
- movescount.gemspec
|
123
|
+
homepage: https://github.com/StefSchenkelaars/Movescount
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata:
|
127
|
+
allowed_push_host: https://rubygems.org
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.6.8
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Api wrapper for Suunto movescount
|
148
|
+
test_files: []
|