nike_v2 0.2.3 → 0.2.4

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.
@@ -71,7 +71,7 @@ module NikeV2
71
71
  def fetch_and_build_activities
72
72
  url, query = self.paging['next'].match(/^(.*?)\?(.*)$/)[1,2]
73
73
  query = query.split(/&/).inject({}){|h,item| k, v = item.split(/\=/); h[k] = v;h}
74
- activities = fetch_data(url, {query: query})
74
+ activities = fetch_data(query)
75
75
  build_activities(activities.delete('data'))
76
76
 
77
77
  @paging = activities.delete('paging')
@@ -1,3 +1,3 @@
1
1
  module NikeV2
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
@@ -17,7 +17,8 @@ describe NikeV2::Activity do
17
17
  end
18
18
 
19
19
  it 'should sum the metrics during a time period' do
20
- activity.total_fuel_during(Time.parse('2011-08-11T00:00:00'), Time.parse('2011-08-11T01:00:00')).should == 934.0
20
+ activity.load_data.should be_true
21
+ activity.total_fuel_during(Time.parse('2011-08-11T00:00:00 '+ activity.activity_time_zone), Time.parse('2011-08-11T01:00:00 ' + activity.activity_time_zone)).should == 934.0
21
22
  end
22
23
  end
23
24
  end
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.3
4
+ version: 0.2.4
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-05 00:00:00.000000000 Z
12
+ date: 2013-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty