theoooo-tally 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,8 @@ class <%= migration_name %> < ActiveRecord::Migration
14
14
  add_index :tally_sheets, [ :tallyable_id, :tallyable_type ]
15
15
 
16
16
  <% tallyables.each do |t| -%>
17
- add_column :<%= t.underscore.camelize.tableize %>, :tally_sheets_count, :string
18
- add_column :<%= t.underscore.camelize.tableize %>, :tally_score, :string
17
+ add_column :<%= t.underscore.camelize.tableize %>, :tally_sheets_count, :integer
18
+ add_column :<%= t.underscore.camelize.tableize %>, :tally_score, :integer
19
19
  <% end -%>
20
20
  end
21
21
 
@@ -27,6 +27,7 @@ class <%= migration_name %> < ActiveRecord::Migration
27
27
 
28
28
  <% tallyables.each do |t| -%>
29
29
  remove_column :<%= t.underscore.camelize.tableize %>, :tally_sheets_count
30
+ remove_column :<%= t.underscore.camelize.tableize %>, :tally_score
30
31
  <% end -%>
31
32
  end
32
33
  end
@@ -30,7 +30,7 @@ module Tally
30
30
  if n == 0
31
31
  return 0
32
32
  end
33
- z = Rubystats::NormalDistribution.new.icdf(1-power/2)
33
+ z = ::Rubystats::NormalDistribution.new.icdf(1-power/2)
34
34
  phat = 1.0*pos/n
35
35
  (phat + z*z/(2*n) - z * Math.sqrt((phat*(1-phat)+z*z/(4*n))/n))/(1+z*z/n)
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theoooo-tally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Cushion