bandit 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/lib/bandit.rb +1 -0
- data/lib/bandit/version.rb +1 -1
- data/test/storage_test_base.rb +2 -2
- metadata +7 -20
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm --create
|
1
|
+
rvm --create ruby-1.9.2-p0@banditgem
|
data/lib/bandit.rb
CHANGED
data/lib/bandit/version.rb
CHANGED
data/test/storage_test_base.rb
CHANGED
@@ -18,7 +18,7 @@ module StorageTestBase
|
|
18
18
|
|
19
19
|
assert_equal @storage.alternative_start_time(exp, alt), start
|
20
20
|
|
21
|
-
future = Bandit::DateHour.new(Date.today, Time.now.hour
|
21
|
+
future = Bandit::DateHour.new(Date.today+1, Time.now.hour)
|
22
22
|
@storage.incr_participants(exp, alt, 123, future)
|
23
23
|
assert_equal @storage.participant_count(exp, alt, future), 123
|
24
24
|
|
@@ -35,7 +35,7 @@ module StorageTestBase
|
|
35
35
|
assert_equal @storage.conversion_count(exp, alt), 3
|
36
36
|
assert_equal @storage.conversion_count(exp, alt, Bandit::DateHour.now), 3
|
37
37
|
|
38
|
-
future = Bandit::DateHour.new(Date.today, Time.now.hour
|
38
|
+
future = Bandit::DateHour.new(Date.today+1, Time.now.hour)
|
39
39
|
@storage.incr_conversions(exp, alt, 123, future)
|
40
40
|
assert_equal @storage.conversion_count(exp, alt, future), 123
|
41
41
|
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bandit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 9
|
10
|
-
version: 0.0.9
|
5
|
+
version: 0.0.10
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Brian Muller
|
@@ -15,37 +10,29 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2012-
|
13
|
+
date: 2012-10-16 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: rails
|
22
|
-
prerelease: false
|
23
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
19
|
requirements:
|
26
20
|
- - ">="
|
27
21
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 15
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 2
|
32
|
-
- 0
|
33
22
|
version: 3.2.0
|
34
23
|
type: :runtime
|
24
|
+
prerelease: false
|
35
25
|
version_requirements: *id001
|
36
26
|
- !ruby/object:Gem::Dependency
|
37
27
|
name: rdoc
|
38
|
-
prerelease: false
|
39
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
29
|
none: false
|
41
30
|
requirements:
|
42
31
|
- - ">="
|
43
32
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
|
-
segments:
|
46
|
-
- 0
|
47
33
|
version: "0"
|
48
34
|
type: :development
|
35
|
+
prerelease: false
|
49
36
|
version_requirements: *id002
|
50
37
|
description: Bandit provides a way to do multi-armed bandit optimization of alternatives in a rails website
|
51
38
|
email:
|
@@ -129,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
116
|
requirements:
|
130
117
|
- - ">="
|
131
118
|
- !ruby/object:Gem::Version
|
132
|
-
hash:
|
119
|
+
hash: 1402307599098120772
|
133
120
|
segments:
|
134
121
|
- 0
|
135
122
|
version: "0"
|
@@ -138,14 +125,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
125
|
requirements:
|
139
126
|
- - ">="
|
140
127
|
- !ruby/object:Gem::Version
|
141
|
-
hash:
|
128
|
+
hash: 1402307599098120772
|
142
129
|
segments:
|
143
130
|
- 0
|
144
131
|
version: "0"
|
145
132
|
requirements:
|
146
133
|
- Either redis or memcache gem
|
147
134
|
rubyforge_project: bandit
|
148
|
-
rubygems_version: 1.8.
|
135
|
+
rubygems_version: 1.8.24
|
149
136
|
signing_key:
|
150
137
|
specification_version: 3
|
151
138
|
summary: Multi-armed bandit testing in rails
|