abongo 1.0.1 → 1.0.2

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.
@@ -12,7 +12,7 @@ class Abongo
12
12
  elsif (Abongo.options[:enable_override_in_session] && !session[test_name].nil?)
13
13
  choice = session[test_name]
14
14
  elsif (Abongo.options[:enable_selection] && !params[test_name].nil?)
15
- choice = alternatives[params[test_name].to_i]
15
+ choice = Abongo.parse_alternatives(alternatives)[params[test_name].to_i]
16
16
  elsif (alternatives.nil?)
17
17
  begin
18
18
  choice = Abongo.flip(test_name, options)
@@ -1,4 +1,4 @@
1
1
  class Abongo
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  MAJOR_VERSION = '1'
4
4
  end
@@ -10,7 +10,7 @@ class Abongo
10
10
  elsif (Abongo.options[:enable_override_in_session] && !session[test_name].nil?)
11
11
  choice = session[test_name]
12
12
  elsif (Abongo.options[:enable_selection] && !params[test_name].nil?)
13
- choice = alternatives[params[test_name].to_i]
13
+ choice = Abongo.parse_alternatives(alternatives)[params[test_name].to_i]
14
14
  elsif (alternatives.nil?)
15
15
  begin
16
16
  choice = Abongo.flip(test_name, options)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Fairley