joule 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -20,8 +20,8 @@ spec = Gem::Specification.new do |s|
20
20
  s.description = "Joule parses and does some basic analyzing of powermeter data. Supported formats include SRM(.srm), Saris PowerTap(.csv), iBike(.csv), and Garmin(.tcx)"
21
21
  s.homepage = "http://github.com/anolson/joule"
22
22
 
23
- s.version = "1.0.3"
24
- s.date = "2010-9-21"
23
+ s.version = "1.0.4"
24
+ s.date = "2011-4-28"
25
25
 
26
26
  s.authors = ["Andrew Olson"]
27
27
  s.email = "anolson@gmail.com"
@@ -21,10 +21,10 @@ module Joule
21
21
  peak_power
22
22
  end
23
23
 
24
- def self.training_stress_score(duration_seconds, threshold_power)
24
+ def self.training_stress_score(duration_seconds, normalized_power, threshold_power)
25
25
  if(threshold_power > 0)
26
26
  normalized_work = normalized_power * duration_seconds
27
- raw_training_stress_score = normalized_work * intensity_factor(threshold_power)
27
+ raw_training_stress_score = normalized_work * intensity_factor(normalized_power, threshold_power)
28
28
  (raw_training_stress_score/(threshold_power * 3600)) * 100
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joule
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Olson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-21 00:00:00 -04:00
18
+ date: 2011-04-28 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements: []
128
128
 
129
129
  rubyforge_project:
130
- rubygems_version: 1.3.7
130
+ rubygems_version: 1.4.2
131
131
  signing_key:
132
132
  specification_version: 3
133
133
  summary: A Ruby library for parsing bicycle powermeter data.