vanity 1.5.3 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +61 -13
- data/Gemfile +5 -5
- data/README.rdoc +10 -1
- data/lib/vanity/adapters/mongodb_adapter.rb +23 -7
- data/lib/vanity/adapters/redis_adapter.rb +8 -2
- data/lib/vanity/experiment/ab_test.rb +55 -30
- data/lib/vanity/experiment/base.rb +4 -2
- data/lib/vanity/frameworks/rails.rb +30 -2
- data/lib/vanity/helpers.rb +8 -1
- data/lib/vanity/playground.rb +35 -2
- data/lib/vanity/templates/_vanity.js.erb +20 -0
- data/lib/vanity/version.rb +1 -1
- data/test/adapters/redis_adapter_test.rb +17 -0
- data/test/experiment/ab_test.rb +83 -11
- data/test/experiment/base_test.rb +14 -0
- data/test/myapp/log/production.log +165 -0
- data/test/playground_test.rb +10 -0
- data/test/rails_dashboard_test.rb +37 -0
- data/test/rails_helper_test.rb +28 -0
- data/test/rails_test.rb +73 -4
- data/test/test_helper.rb +4 -6
- data/vanity.gemspec +1 -1
- metadata +42 -51
- data/test/myapp/app/controllers/application_controller.rbc +0 -66
- data/test/myapp/app/controllers/main_controller.rbc +0 -347
- data/test/myapp/config/boot.rbc +0 -2534
- data/test/myapp/config/environment.rbc +0 -403
- data/test/myapp/config/routes.rbc +0 -174
- data/test/passenger_test.rbc +0 -0
- data/test/playground_test.rbc +0 -256
- data/test/rails_test.rbc +0 -4086
- data/test/test_helper.rbc +0 -4297
data/test/playground_test.rbc
DELETED
@@ -1,256 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
44
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
99
|
23
|
-
7
|
24
|
-
2
|
25
|
-
45
|
26
|
-
3
|
27
|
-
4
|
28
|
-
43
|
29
|
-
5
|
30
|
-
43
|
31
|
-
6
|
32
|
-
65
|
33
|
-
49
|
34
|
-
7
|
35
|
-
3
|
36
|
-
13
|
37
|
-
99
|
38
|
-
12
|
39
|
-
7
|
40
|
-
8
|
41
|
-
12
|
42
|
-
7
|
43
|
-
9
|
44
|
-
12
|
45
|
-
65
|
46
|
-
12
|
47
|
-
49
|
48
|
-
10
|
49
|
-
4
|
50
|
-
15
|
51
|
-
49
|
52
|
-
8
|
53
|
-
0
|
54
|
-
15
|
55
|
-
2
|
56
|
-
11
|
57
|
-
I
|
58
|
-
6
|
59
|
-
I
|
60
|
-
0
|
61
|
-
I
|
62
|
-
0
|
63
|
-
I
|
64
|
-
0
|
65
|
-
n
|
66
|
-
p
|
67
|
-
11
|
68
|
-
s
|
69
|
-
16
|
70
|
-
test/test_helper
|
71
|
-
x
|
72
|
-
7
|
73
|
-
require
|
74
|
-
x
|
75
|
-
14
|
76
|
-
PlaygroundTest
|
77
|
-
x
|
78
|
-
4
|
79
|
-
Test
|
80
|
-
n
|
81
|
-
x
|
82
|
-
4
|
83
|
-
Unit
|
84
|
-
x
|
85
|
-
8
|
86
|
-
TestCase
|
87
|
-
x
|
88
|
-
10
|
89
|
-
open_class
|
90
|
-
x
|
91
|
-
14
|
92
|
-
__class_init__
|
93
|
-
M
|
94
|
-
1
|
95
|
-
n
|
96
|
-
n
|
97
|
-
x
|
98
|
-
14
|
99
|
-
PlaygroundTest
|
100
|
-
i
|
101
|
-
16
|
102
|
-
5
|
103
|
-
66
|
104
|
-
99
|
105
|
-
7
|
106
|
-
0
|
107
|
-
7
|
108
|
-
1
|
109
|
-
65
|
110
|
-
67
|
111
|
-
49
|
112
|
-
2
|
113
|
-
0
|
114
|
-
49
|
115
|
-
3
|
116
|
-
4
|
117
|
-
11
|
118
|
-
I
|
119
|
-
5
|
120
|
-
I
|
121
|
-
0
|
122
|
-
I
|
123
|
-
0
|
124
|
-
I
|
125
|
-
0
|
126
|
-
n
|
127
|
-
p
|
128
|
-
4
|
129
|
-
x
|
130
|
-
28
|
131
|
-
test_has_one_global_instance
|
132
|
-
M
|
133
|
-
1
|
134
|
-
n
|
135
|
-
n
|
136
|
-
x
|
137
|
-
28
|
138
|
-
test_has_one_global_instance
|
139
|
-
i
|
140
|
-
28
|
141
|
-
5
|
142
|
-
45
|
143
|
-
0
|
144
|
-
1
|
145
|
-
49
|
146
|
-
2
|
147
|
-
0
|
148
|
-
19
|
149
|
-
0
|
150
|
-
47
|
151
|
-
49
|
152
|
-
3
|
153
|
-
1
|
154
|
-
15
|
155
|
-
5
|
156
|
-
20
|
157
|
-
0
|
158
|
-
45
|
159
|
-
0
|
160
|
-
4
|
161
|
-
49
|
162
|
-
2
|
163
|
-
0
|
164
|
-
47
|
165
|
-
49
|
166
|
-
5
|
167
|
-
2
|
168
|
-
11
|
169
|
-
I
|
170
|
-
4
|
171
|
-
I
|
172
|
-
1
|
173
|
-
I
|
174
|
-
0
|
175
|
-
I
|
176
|
-
0
|
177
|
-
n
|
178
|
-
p
|
179
|
-
6
|
180
|
-
x
|
181
|
-
6
|
182
|
-
Vanity
|
183
|
-
n
|
184
|
-
x
|
185
|
-
10
|
186
|
-
playground
|
187
|
-
x
|
188
|
-
6
|
189
|
-
assert
|
190
|
-
n
|
191
|
-
x
|
192
|
-
12
|
193
|
-
assert_equal
|
194
|
-
p
|
195
|
-
7
|
196
|
-
I
|
197
|
-
0
|
198
|
-
I
|
199
|
-
5
|
200
|
-
I
|
201
|
-
0
|
202
|
-
I
|
203
|
-
6
|
204
|
-
I
|
205
|
-
e
|
206
|
-
I
|
207
|
-
7
|
208
|
-
I
|
209
|
-
1c
|
210
|
-
x
|
211
|
-
52
|
212
|
-
/Users/assaf/projects/vanity/test/playground_test.rb
|
213
|
-
p
|
214
|
-
1
|
215
|
-
x
|
216
|
-
8
|
217
|
-
instance
|
218
|
-
x
|
219
|
-
17
|
220
|
-
method_visibility
|
221
|
-
x
|
222
|
-
15
|
223
|
-
add_defn_method
|
224
|
-
p
|
225
|
-
3
|
226
|
-
I
|
227
|
-
2
|
228
|
-
I
|
229
|
-
5
|
230
|
-
I
|
231
|
-
10
|
232
|
-
x
|
233
|
-
52
|
234
|
-
/Users/assaf/projects/vanity/test/playground_test.rb
|
235
|
-
p
|
236
|
-
0
|
237
|
-
x
|
238
|
-
13
|
239
|
-
attach_method
|
240
|
-
p
|
241
|
-
5
|
242
|
-
I
|
243
|
-
0
|
244
|
-
I
|
245
|
-
1
|
246
|
-
I
|
247
|
-
9
|
248
|
-
I
|
249
|
-
3
|
250
|
-
I
|
251
|
-
2c
|
252
|
-
x
|
253
|
-
52
|
254
|
-
/Users/assaf/projects/vanity/test/playground_test.rb
|
255
|
-
p
|
256
|
-
0
|