Permalink
Browse files

merge Andrew Olson's implementation of Streams

  • Loading branch information...
1 parent b2d1e2c commit 80f14735d65754eb269b41359c37b7e74fdec5ad @stevenchanin committed Jul 1, 2011
Showing with 60 additions and 48 deletions.
  1. +25 −0 README.rdoc
  2. +34 −47 strava-api.gemspec
  3. +1 −1 test/helper.rb
View
@@ -164,6 +164,31 @@ If you have an efforts object (StravaApi::Effort) that has been returned by anot
my_ride.efforts.first.show
+== Streams
+The Strava API also has a Streams API call as well. This isn't documented on the Strava API wiki, so use it at your own risk.
+
+The Steam for a ride provides the raw data from your ride
+
+* altitude
+* cadence
+* distance
+* heartrate
+* latlng
+* time
+* watts
+* watts_calc
+
+To get a the underlying stream for a ride, you can call
+
+ ##returns a StravaApi::Streams
+ s.ride_streams(ride_id)
+
+Or you can start from a ride (StravaApi::Ride) and call
+
+ my_ride.streams
+
+Thanks to Andrew Olson (https://github.com/anolson) for this feature.
+
== Error Handling
The StravaApi gem raises errors under various conditions.
View
@@ -1,72 +1,59 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{strava-api}
- s.version = "0.13.0"
+ s.version = "0.14.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Steven Chanin"]
- s.date = %q{2010-10-04}
+ s.date = %q{2011-07-01}
s.description = %q{Strava (http://www.strava.com/) allows access to it's data via a JSON api. This gem wraps that API an allows you to interact with Ruby classes instead.}
s.email = %q{schanin@devleverage.com}
s.extra_rdoc_files = [
"LICENSE",
- "README.rdoc"
+ "README.rdoc"
]
s.files = [
"LICENSE",
- "README.rdoc",
- "Rakefile",
- "lib/strava-api.rb",
- "lib/strava-api/base.rb",
- "lib/strava-api/bike.rb",
- "lib/strava-api/club.rb",
- "lib/strava-api/clubs.rb",
- "lib/strava-api/effort.rb",
- "lib/strava-api/efforts.rb",
- "lib/strava-api/exceptions.rb",
- "lib/strava-api/hash_based_store.rb",
- "lib/strava-api/member.rb",
- "lib/strava-api/ride.rb",
- "lib/strava-api/rides.rb",
- "lib/strava-api/segment.rb",
- "lib/strava-api/segments.rb",
- "test/helper.rb",
- "test/test_base.rb",
- "test/test_club.rb",
- "test/test_clubs.rb",
- "test/test_effort.rb",
- "test/test_hash_based_store.rb",
- "test/test_ride.rb",
- "test/test_rides.rb",
- "test/test_segment.rb",
- "test/test_segments.rb",
- "test/test_strava.rb"
+ "README.rdoc",
+ "Rakefile",
+ "lib/strava-api.rb",
+ "lib/strava-api/base.rb",
+ "lib/strava-api/bike.rb",
+ "lib/strava-api/club.rb",
+ "lib/strava-api/clubs.rb",
+ "lib/strava-api/effort.rb",
+ "lib/strava-api/efforts.rb",
+ "lib/strava-api/exceptions.rb",
+ "lib/strava-api/hash_based_store.rb",
+ "lib/strava-api/member.rb",
+ "lib/strava-api/ride.rb",
+ "lib/strava-api/rides.rb",
+ "lib/strava-api/segment.rb",
+ "lib/strava-api/segments.rb",
+ "lib/strava-api/streams.rb",
+ "test/helper.rb",
+ "test/streams.json",
+ "test/test_base.rb",
+ "test/test_club.rb",
+ "test/test_clubs.rb",
+ "test/test_effort.rb",
+ "test/test_hash_based_store.rb",
+ "test/test_ride.rb",
+ "test/test_rides.rb",
+ "test/test_segment.rb",
+ "test/test_segments.rb",
+ "test/test_strava.rb"
]
s.homepage = %q{http://github.com/stevenchanin/strava-api}
- s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
+ s.rubygems_version = %q{1.5.2}
s.summary = %q{Provides a Ruby interface to the Strava api}
- s.test_files = [
- "test/helper.rb",
- "test/test_base.rb",
- "test/test_club.rb",
- "test/test_clubs.rb",
- "test/test_effort.rb",
- "test/test_hash_based_store.rb",
- "test/test_ride.rb",
- "test/test_rides.rb",
- "test/test_segment.rb",
- "test/test_segments.rb",
- "test/test_strava.rb"
- ]
if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
View
@@ -78,7 +78,7 @@ def ride_efforts_json
def ride_streams_json
#curl "http://www.strava.com/api/v1/streams/77563"
- File.new('streams.json').gets
+ File.new('test/streams.json').gets
end
def segments_index_json

0 comments on commit 80f1473

Please sign in to comment.