joule 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/joule/calculator/power_calculator.rb +2 -2
- metadata +6 -6
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.
|
24
|
-
s.date = "
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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:
|
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.
|
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.
|