framingham 0.1.20130711193533 → 0.1.20130712221655

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -16,4 +16,5 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
+ framingham/version.rb
19
20
 
data/Rakefile CHANGED
@@ -1,14 +1,12 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
- task :default => [:build, :test]
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 Rake::Task[:test].execute and sh "gem push framingham.gem"
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 { |_|
@@ -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.20130711193533
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-11 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- module Framingham
2
- VERSION = "0.1.20130711193533"
3
- end