nike_v2 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module NikeV2
39
39
  end
40
40
 
41
41
  def started_at
42
- @started_at ||= Time.parse(self.start_time)
42
+ @started_at ||= Time.parse(self.start_time.gsub(/Z$/,'') + " #{self.activity_time_zone}")
43
43
  end
44
44
 
45
45
  private
@@ -1,3 +1,3 @@
1
1
  module NikeV2
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
@@ -18,7 +18,7 @@ describe NikeV2::Activity do
18
18
 
19
19
  it 'should sum the metrics during a time period' do
20
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
+ 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 == 905.0
22
22
  end
23
23
  end
24
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.4
4
+ version: 0.2.5
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-08 00:00:00.000000000 Z
12
+ date: 2013-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty