framingham 0.1.20130711193533 → 0.1.20130712221655
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/.gitignore +1 -0
- data/Rakefile +4 -6
- data/framingham/heartdisease.rb +3 -3
- metadata +2 -3
- data/framingham/version.rb +0 -3
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/testtask"
|
3
3
|
|
4
|
-
task :
|
5
|
-
|
6
|
-
task :build do
|
7
|
-
"bundle install framingham"
|
8
|
-
end
|
4
|
+
task default: [:build, :test]
|
9
5
|
|
10
6
|
task :deploy do
|
11
|
-
Rake::Task[:build].execute
|
7
|
+
Rake::Task[:build].execute
|
8
|
+
Rake::Task[:test].execute
|
9
|
+
sh "gem push framingham.gem"
|
12
10
|
end
|
13
11
|
|
14
12
|
Rake::TestTask.new { |_|
|
data/framingham/heartdisease.rb
CHANGED
@@ -5,10 +5,10 @@ def eval options = {}
|
|
5
5
|
begin
|
6
6
|
#initialize
|
7
7
|
options = NORMAL.merge options
|
8
|
-
@age = options[:age]
|
9
|
-
@blood_pressure = options[:blood_pressure]
|
8
|
+
@age = options[:age].to_f
|
9
|
+
@blood_pressure = options[:blood_pressure].to_f
|
10
10
|
@blood_pressure_treatment = options[:blood_pressure_treatment] ? :treated : :untreated
|
11
|
-
@body_mass_index = options[:body_mass_index]
|
11
|
+
@body_mass_index = options[:body_mass_index].to_f
|
12
12
|
@gender = options[:gender]
|
13
13
|
@diabetes = to_i options[:diabetes]
|
14
14
|
@smoker = to_i options[:smoker]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: framingham
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20130712221655
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -59,7 +59,6 @@ files:
|
|
59
59
|
- framingham.rb
|
60
60
|
- framingham/heartdisease.rb
|
61
61
|
- framingham/heartdisease_tests.rb
|
62
|
-
- framingham/version.rb
|
63
62
|
homepage: https://github.com/3poundhealth/framingham#framingham
|
64
63
|
licenses:
|
65
64
|
- MIT
|
data/framingham/version.rb
DELETED