Skip to content

Commit bfec05e

Browse files
committed
Update basic example and bump version
1 parent eba2855 commit bfec05e

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ $ gem install tcxread
3838
```ruby
3939
require 'tcxread'
4040

41-
data = TCXRead.new('2.tcx')
41+
data = TCXRead.new('23.tcx')
4242

4343
puts "Distance meters: #{data.total_distance_meters}, " \
4444
"Time seconds: #{data.total_time_seconds}, " \
4545
"Calories: #{data.total_calories}, " \
4646
"Total ascent: #{data.total_ascent}, " \
4747
"Total descent: #{data.total_descent}, " \
4848
"Max altitude: #{data.max_altitude}, " \
49-
"Average heart rate: #{data.average_heart_rate}"
49+
"Average heart rate: #{data.average_heart_rate}, " \
50+
"Average watts: #{data.average_watts}, " \
51+
"Max watts: #{data.max_watts}"
5052
```
5153

5254
## 💾 Datasets

examples/basic_run.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
require 'tcxread'
22

3-
data = TCXRead.new('2.tcx')
3+
data = TCXRead.new('23.tcx')
44

55
puts "Distance meters: #{data.total_distance_meters}, " \
66
"Time seconds: #{data.total_time_seconds}, " \
77
"Calories: #{data.total_calories}, " \
88
"Total ascent: #{data.total_ascent}, " \
99
"Total descent: #{data.total_descent}, " \
1010
"Max altitude: #{data.max_altitude}, " \
11-
"Average heart rate: #{data.average_heart_rate}"
12-
11+
"Average heart rate: #{data.average_heart_rate}, " \
12+
"Average watts: #{data.average_watts}, " \
13+
"Max watts: #{data.max_watts}"

tcxread.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = 'tcxread'
5-
spec.version = '0.1.0'
5+
spec.version = '0.1.1'
66
spec.license = 'MIT'
77
spec.authors = %w[firefly-cpp]
88
spec.email = ['iztok@iztok-jr-fister.eu']

0 commit comments

Comments
 (0)