garmin_connectr 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -1,6 +1,8 @@
1
1
  Scenario: Load Activity
2
2
  Given I have loaded activity 30051790
3
3
  Then the name should be "MTB - Mesh RDL "
4
+ And the device should be "Garmin Edge 500"
5
+ And the url should be "http://connect.garmin.com/activity/30051790"
4
6
  And the activity_type should be "Mountain Biking"
5
7
  And the event_type should be "Training"
6
8
  And the timestamp should be "Wed, Apr 14, 2010 1:46 PM"
@@ -32,7 +34,7 @@ Scenario: Load Activity
32
34
  And the min_temperature should be "73.4 °F"
33
35
  And the max_temperature should be "78.8 °F"
34
36
  And the split_count should be "3"
35
-
37
+
36
38
  Scenario: Load Activity with Splits
37
39
  Given I have loaded activity 30051790
38
40
  Then the split_count should be "3"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{garmin_connectr}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["aroth"]
@@ -54,6 +54,7 @@ class GarminConnectrActivity
54
54
  @splits = []
55
55
  @data = {}
56
56
  @data[:name] = opts[:name]
57
+ @data[:url] = "http://connect.garmin.com/activity/#{ @id }"
57
58
  @loaded = false
58
59
  end
59
60
 
@@ -75,7 +76,8 @@ class GarminConnectrActivity
75
76
  :activity_type => doc.css('#activityTypeValue').inner_html.gsub(/[\n\t]+/,''),
76
77
  :event_type => doc.css('#eventTypeValue').inner_html.gsub(/[\n\t]+/,''),
77
78
  :timestamp => doc.css('#timestamp').inner_html.gsub(/[\n\t]+/,''),
78
- :embed => doc.css('.detailsEmbedCode').attr('value').value
79
+ :embed => doc.css('.detailsEmbedCode').attr('value').value,
80
+ :device => doc.css('.addInfoDescription a').inner_html
79
81
  },
80
82
  :summaries => {
81
83
  :overall => { :css => '#detailsOverallBox' },
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - aroth