nike 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
data/README.md CHANGED
@@ -56,7 +56,7 @@ More metrics
56
56
 
57
57
  $ c.time_span_metrics # run metrics
58
58
 
59
- $ c.time_span_metrics # hr metrics
59
+ $ c.time_span_metrics(type: :hr) # hr metrics
60
60
 
61
61
  Distance by time of day
62
62
 
@@ -113,18 +113,22 @@ All time fields are automatically converted to Ruby Time objects
113
113
 
114
114
  ## Caching
115
115
 
116
+ Caching is enabled by default due to the slowness of the API and the large data set sizes.
117
+
116
118
  Toggle caching during client initialization
117
119
 
118
- $ c = Nike::Client.new('your_email', 'your_password', caching: true)
120
+ $ c = Nike::Client.new('your_email', 'your_password', caching: false)
119
121
 
120
122
  Toggle caching after client initialization
121
123
 
122
124
  $ c.caching = false
123
125
 
124
- Perform the HTTP request for a particular call even if caching is enabled. This
126
+ Force the request for a particular data set even if caching is enabled. This
125
127
  will have the side-effect of refreshing the cache.
126
128
 
127
129
  $ c.activities!
130
+
131
+ $ c.activity!(12345)
128
132
 
129
133
 
130
134
  ## Contributing
Binary file
@@ -87,12 +87,12 @@ private
87
87
  # speed
88
88
 
89
89
  def pace_to_mpk
90
- distnace_in_kilometers && duration_in_minutes &&
90
+ distance_in_kilometers && duration_in_minutes &&
91
91
  duration_in_minutes / distance_in_kilometers
92
92
  end
93
93
 
94
94
  def pace_to_mpm
95
- distnace_in_miles && duration_in_minutes &&
95
+ distance_in_miles && duration_in_minutes &&
96
96
  duration_in_minutes / distance_in_miles
97
97
  end
98
98
 
@@ -1,3 +1,3 @@
1
1
  module Nike
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nike
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -50,12 +50,14 @@ executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
+ - .DS_Store
53
54
  - .gitignore
54
55
  - Gemfile
55
56
  - LICENSE.txt
56
57
  - README.md
57
58
  - Rakefile
58
59
  - TODO
60
+ - lib/.DS_Store
59
61
  - lib/nike.rb
60
62
  - lib/nike/client.rb
61
63
  - lib/nike/core_ext/hash.rb
@@ -87,4 +89,3 @@ signing_key:
87
89
  specification_version: 3
88
90
  summary: A Ruby client for the Nike+ API
89
91
  test_files: []
90
- has_rdoc: