nike_v2 0.2.0 → 0.2.1

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.
data/README.md CHANGED
@@ -35,6 +35,20 @@ activity.fetch_data
35
35
  activity.gps_data
36
36
  ```
37
37
 
38
+ The activities api allows you to directly pass arguements to the Nike+ api. It also allows you to prefetch the metrics for each activity returned
39
+ ``` ruby
40
+ #fetch 99 activities
41
+ person.activities(:count => 99)
42
+ #prefetch the metrics for activities
43
+ person.activities(:build_metrics => true)
44
+ ```
45
+
46
+ We also smart load the metrics for activities now so you don't have to explicity load them
47
+ ``` ruby
48
+ person.activities.total_fuel #fetches the metrics if they aren't already loaded
49
+ => 394
50
+ ```
51
+
38
52
  ## Making it Better
39
53
 
40
54
  * Fork the project.
@@ -1,3 +1,3 @@
1
1
  module NikeV2
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
data/lib/nike_v2.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'nike_v2/version'
2
-
3
1
  require 'httparty'
4
2
  require 'forwardable'
5
3
  require 'alchemist'
@@ -14,4 +12,5 @@ require 'nike_v2/person'
14
12
  require 'nike_v2/activity'
15
13
  require 'nike_v2/activities'
16
14
  require 'nike_v2/summary'
17
- require 'nike_v2/gps_data'
15
+ require 'nike_v2/gps_data'
16
+ require 'nike_v2/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nike_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2013-03-04 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty