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 +1 -1
- data/features/activity.feature +3 -1
- data/garmin_connectr.gemspec +1 -1
- data/lib/garmin_connectr.rb +3 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/features/activity.feature
CHANGED
@@ -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"
|
data/garmin_connectr.gemspec
CHANGED
data/lib/garmin_connectr.rb
CHANGED
@@ -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' },
|