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
metadata
CHANGED
@@ -1,49 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanity
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.0
|
4
5
|
prerelease:
|
5
|
-
version: 1.5.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Assaf Arkin
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-07-20 00:00:00.000000000 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
16
|
name: redis
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2152929160 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
|
-
requirements:
|
19
|
+
requirements:
|
21
20
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
24
23
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: redis-namespace
|
28
24
|
prerelease: false
|
29
|
-
|
25
|
+
version_requirements: *2152929160
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: redis-namespace
|
28
|
+
requirement: &2152928700 !ruby/object:Gem::Requirement
|
30
29
|
none: false
|
31
|
-
requirements:
|
30
|
+
requirements:
|
32
31
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.0
|
35
34
|
type: :runtime
|
36
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2152928700
|
37
37
|
description: Mirror, mirror on the wall ...
|
38
38
|
email: assaf@labnotes.org
|
39
|
-
executables:
|
39
|
+
executables:
|
40
40
|
- vanity
|
41
41
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
42
|
+
extra_rdoc_files:
|
44
43
|
- README.rdoc
|
45
44
|
- CHANGELOG
|
46
|
-
files:
|
45
|
+
files:
|
47
46
|
- bin/vanity
|
48
47
|
- lib/vanity/adapters/abstract_adapter.rb
|
49
48
|
- lib/vanity/adapters/active_record_adapter.rb
|
@@ -69,12 +68,14 @@ files:
|
|
69
68
|
- lib/vanity/templates/_metric.erb
|
70
69
|
- lib/vanity/templates/_metrics.erb
|
71
70
|
- lib/vanity/templates/_report.erb
|
71
|
+
- lib/vanity/templates/_vanity.js.erb
|
72
72
|
- lib/vanity/templates/flot.min.js
|
73
73
|
- lib/vanity/templates/jquery.min.js
|
74
74
|
- lib/vanity/templates/vanity.css
|
75
75
|
- lib/vanity/templates/vanity.js
|
76
76
|
- lib/vanity/version.rb
|
77
77
|
- lib/vanity.rb
|
78
|
+
- test/adapters/redis_adapter_test.rb
|
78
79
|
- test/experiment/ab_test.rb
|
79
80
|
- test/experiment/base_test.rb
|
80
81
|
- test/experiments/age_and_zipcode.rb
|
@@ -87,63 +88,53 @@ files:
|
|
87
88
|
- test/metric/google_analytics_test.rb
|
88
89
|
- test/metric/remote_test.rb
|
89
90
|
- test/myapp/app/controllers/application_controller.rb
|
90
|
-
- test/myapp/app/controllers/application_controller.rbc
|
91
91
|
- test/myapp/app/controllers/main_controller.rb
|
92
|
-
- test/myapp/app/controllers/main_controller.rbc
|
93
92
|
- test/myapp/config/boot.rb
|
94
|
-
- test/myapp/config/boot.rbc
|
95
93
|
- test/myapp/config/environment.rb
|
96
|
-
- test/myapp/config/environment.rbc
|
97
94
|
- test/myapp/config/environments/production.rb
|
98
95
|
- test/myapp/config/routes.rb
|
99
|
-
- test/myapp/config/routes.rbc
|
100
96
|
- test/myapp/log/production.log
|
101
97
|
- test/passenger_test.rb
|
102
|
-
- test/passenger_test.rbc
|
103
98
|
- test/playground_test.rb
|
104
|
-
- test/
|
99
|
+
- test/rails_dashboard_test.rb
|
100
|
+
- test/rails_helper_test.rb
|
105
101
|
- test/rails_test.rb
|
106
|
-
- test/rails_test.rbc
|
107
102
|
- test/test_helper.rb
|
108
|
-
- test/test_helper.rbc
|
109
103
|
- CHANGELOG
|
110
104
|
- MIT-LICENSE
|
111
105
|
- README.rdoc
|
112
106
|
- Rakefile
|
113
107
|
- Gemfile
|
114
108
|
- vanity.gemspec
|
109
|
+
has_rdoc: true
|
115
110
|
homepage: http://vanity.labnotes.org
|
116
111
|
licenses: []
|
117
|
-
|
118
112
|
post_install_message: To get started run vanity --help
|
119
|
-
rdoc_options:
|
113
|
+
rdoc_options:
|
120
114
|
- --title
|
121
|
-
- Vanity 1.
|
115
|
+
- Vanity 1.6.0
|
122
116
|
- --main
|
123
117
|
- README.rdoc
|
124
118
|
- --webcvs
|
125
119
|
- http://github.com/assaf/vanity
|
126
|
-
require_paths:
|
120
|
+
require_paths:
|
127
121
|
- lib
|
128
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
123
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
124
|
+
requirements:
|
125
|
+
- - ! '>='
|
126
|
+
- !ruby/object:Gem::Version
|
133
127
|
version: 1.8.7
|
134
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
129
|
none: false
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version:
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
140
134
|
requirements: []
|
141
|
-
|
142
135
|
rubyforge_project:
|
143
|
-
rubygems_version: 1.
|
136
|
+
rubygems_version: 1.6.2
|
144
137
|
signing_key:
|
145
138
|
specification_version: 3
|
146
139
|
summary: Experience Driven Development framework for Ruby
|
147
140
|
test_files: []
|
148
|
-
|
149
|
-
has_rdoc:
|
@@ -1,66 +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
|
-
17
|
13
|
-
99
|
14
|
-
7
|
15
|
-
0
|
16
|
-
45
|
17
|
-
1
|
18
|
-
2
|
19
|
-
43
|
20
|
-
3
|
21
|
-
65
|
22
|
-
49
|
23
|
-
4
|
24
|
-
3
|
25
|
-
15
|
26
|
-
1
|
27
|
-
15
|
28
|
-
2
|
29
|
-
11
|
30
|
-
I
|
31
|
-
4
|
32
|
-
I
|
33
|
-
0
|
34
|
-
I
|
35
|
-
0
|
36
|
-
I
|
37
|
-
0
|
38
|
-
n
|
39
|
-
p
|
40
|
-
5
|
41
|
-
x
|
42
|
-
21
|
43
|
-
ApplicationController
|
44
|
-
x
|
45
|
-
16
|
46
|
-
ActionController
|
47
|
-
n
|
48
|
-
x
|
49
|
-
4
|
50
|
-
Base
|
51
|
-
x
|
52
|
-
10
|
53
|
-
open_class
|
54
|
-
p
|
55
|
-
3
|
56
|
-
I
|
57
|
-
0
|
58
|
-
I
|
59
|
-
1
|
60
|
-
I
|
61
|
-
11
|
62
|
-
x
|
63
|
-
81
|
64
|
-
/Users/assaf/projects/vanity/test/myapp/app/controllers/application_controller.rb
|
65
|
-
p
|
66
|
-
0
|
@@ -1,347 +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
|
-
31
|
13
|
-
99
|
14
|
-
7
|
15
|
-
0
|
16
|
-
45
|
17
|
-
1
|
18
|
-
2
|
19
|
-
65
|
20
|
-
49
|
21
|
-
3
|
22
|
-
3
|
23
|
-
13
|
24
|
-
99
|
25
|
-
12
|
26
|
-
7
|
27
|
-
4
|
28
|
-
12
|
29
|
-
7
|
30
|
-
5
|
31
|
-
12
|
32
|
-
65
|
33
|
-
12
|
34
|
-
49
|
35
|
-
6
|
36
|
-
4
|
37
|
-
15
|
38
|
-
49
|
39
|
-
4
|
40
|
-
0
|
41
|
-
15
|
42
|
-
2
|
43
|
-
11
|
44
|
-
I
|
45
|
-
6
|
46
|
-
I
|
47
|
-
0
|
48
|
-
I
|
49
|
-
0
|
50
|
-
I
|
51
|
-
0
|
52
|
-
n
|
53
|
-
p
|
54
|
-
7
|
55
|
-
x
|
56
|
-
14
|
57
|
-
MainController
|
58
|
-
x
|
59
|
-
21
|
60
|
-
ApplicationController
|
61
|
-
n
|
62
|
-
x
|
63
|
-
10
|
64
|
-
open_class
|
65
|
-
x
|
66
|
-
14
|
67
|
-
__class_init__
|
68
|
-
M
|
69
|
-
1
|
70
|
-
n
|
71
|
-
n
|
72
|
-
x
|
73
|
-
14
|
74
|
-
MainController
|
75
|
-
i
|
76
|
-
16
|
77
|
-
5
|
78
|
-
66
|
79
|
-
99
|
80
|
-
7
|
81
|
-
0
|
82
|
-
7
|
83
|
-
1
|
84
|
-
65
|
85
|
-
67
|
86
|
-
49
|
87
|
-
2
|
88
|
-
0
|
89
|
-
49
|
90
|
-
3
|
91
|
-
4
|
92
|
-
11
|
93
|
-
I
|
94
|
-
5
|
95
|
-
I
|
96
|
-
0
|
97
|
-
I
|
98
|
-
0
|
99
|
-
I
|
100
|
-
0
|
101
|
-
n
|
102
|
-
p
|
103
|
-
4
|
104
|
-
x
|
105
|
-
5
|
106
|
-
index
|
107
|
-
M
|
108
|
-
1
|
109
|
-
n
|
110
|
-
n
|
111
|
-
x
|
112
|
-
5
|
113
|
-
index
|
114
|
-
i
|
115
|
-
105
|
116
|
-
26
|
117
|
-
93
|
118
|
-
0
|
119
|
-
15
|
120
|
-
29
|
121
|
-
65
|
122
|
-
0
|
123
|
-
5
|
124
|
-
44
|
125
|
-
43
|
126
|
-
0
|
127
|
-
79
|
128
|
-
49
|
129
|
-
1
|
130
|
-
1
|
131
|
-
13
|
132
|
-
7
|
133
|
-
2
|
134
|
-
45
|
135
|
-
3
|
136
|
-
4
|
137
|
-
49
|
138
|
-
5
|
139
|
-
0
|
140
|
-
49
|
141
|
-
6
|
142
|
-
0
|
143
|
-
49
|
144
|
-
7
|
145
|
-
0
|
146
|
-
47
|
147
|
-
49
|
148
|
-
8
|
149
|
-
0
|
150
|
-
7
|
151
|
-
9
|
152
|
-
45
|
153
|
-
3
|
154
|
-
10
|
155
|
-
49
|
156
|
-
5
|
157
|
-
0
|
158
|
-
49
|
159
|
-
6
|
160
|
-
0
|
161
|
-
49
|
162
|
-
11
|
163
|
-
0
|
164
|
-
47
|
165
|
-
49
|
166
|
-
8
|
167
|
-
0
|
168
|
-
63
|
169
|
-
3
|
170
|
-
49
|
171
|
-
12
|
172
|
-
2
|
173
|
-
15
|
174
|
-
47
|
175
|
-
49
|
176
|
-
13
|
177
|
-
1
|
178
|
-
30
|
179
|
-
8
|
180
|
-
101
|
181
|
-
26
|
182
|
-
93
|
183
|
-
1
|
184
|
-
15
|
185
|
-
24
|
186
|
-
13
|
187
|
-
45
|
188
|
-
14
|
189
|
-
15
|
190
|
-
12
|
191
|
-
49
|
192
|
-
16
|
193
|
-
1
|
194
|
-
10
|
195
|
-
82
|
196
|
-
8
|
197
|
-
96
|
198
|
-
15
|
199
|
-
24
|
200
|
-
19
|
201
|
-
0
|
202
|
-
15
|
203
|
-
5
|
204
|
-
24
|
205
|
-
47
|
206
|
-
49
|
207
|
-
17
|
208
|
-
1
|
209
|
-
25
|
210
|
-
8
|
211
|
-
101
|
212
|
-
15
|
213
|
-
92
|
214
|
-
1
|
215
|
-
27
|
216
|
-
34
|
217
|
-
92
|
218
|
-
0
|
219
|
-
27
|
220
|
-
11
|
221
|
-
I
|
222
|
-
a
|
223
|
-
I
|
224
|
-
1
|
225
|
-
I
|
226
|
-
0
|
227
|
-
I
|
228
|
-
0
|
229
|
-
n
|
230
|
-
p
|
231
|
-
18
|
232
|
-
x
|
233
|
-
4
|
234
|
-
Hash
|
235
|
-
x
|
236
|
-
16
|
237
|
-
new_from_literal
|
238
|
-
x
|
239
|
-
4
|
240
|
-
text
|
241
|
-
x
|
242
|
-
6
|
243
|
-
Vanity
|
244
|
-
n
|
245
|
-
x
|
246
|
-
10
|
247
|
-
playground
|
248
|
-
x
|
249
|
-
5
|
250
|
-
redis
|
251
|
-
x
|
252
|
-
2
|
253
|
-
id
|
254
|
-
x
|
255
|
-
4
|
256
|
-
to_s
|
257
|
-
s
|
258
|
-
1
|
259
|
-
|
260
|
-
|
261
|
-
n
|
262
|
-
x
|
263
|
-
9
|
264
|
-
object_id
|
265
|
-
x
|
266
|
-
3
|
267
|
-
[]=
|
268
|
-
x
|
269
|
-
6
|
270
|
-
render
|
271
|
-
x
|
272
|
-
5
|
273
|
-
Error
|
274
|
-
n
|
275
|
-
x
|
276
|
-
3
|
277
|
-
===
|
278
|
-
x
|
279
|
-
4
|
280
|
-
puts
|
281
|
-
p
|
282
|
-
11
|
283
|
-
I
|
284
|
-
0
|
285
|
-
I
|
286
|
-
2
|
287
|
-
I
|
288
|
-
0
|
289
|
-
I
|
290
|
-
3
|
291
|
-
I
|
292
|
-
46
|
293
|
-
I
|
294
|
-
4
|
295
|
-
I
|
296
|
-
53
|
297
|
-
I
|
298
|
-
6
|
299
|
-
I
|
300
|
-
57
|
301
|
-
I
|
302
|
-
5
|
303
|
-
I
|
304
|
-
69
|
305
|
-
x
|
306
|
-
74
|
307
|
-
/Users/assaf/projects/vanity/test/myapp/app/controllers/main_controller.rb
|
308
|
-
p
|
309
|
-
1
|
310
|
-
x
|
311
|
-
2
|
312
|
-
ex
|
313
|
-
x
|
314
|
-
17
|
315
|
-
method_visibility
|
316
|
-
x
|
317
|
-
15
|
318
|
-
add_defn_method
|
319
|
-
p
|
320
|
-
3
|
321
|
-
I
|
322
|
-
2
|
323
|
-
I
|
324
|
-
2
|
325
|
-
I
|
326
|
-
10
|
327
|
-
x
|
328
|
-
74
|
329
|
-
/Users/assaf/projects/vanity/test/myapp/app/controllers/main_controller.rb
|
330
|
-
p
|
331
|
-
0
|
332
|
-
x
|
333
|
-
13
|
334
|
-
attach_method
|
335
|
-
p
|
336
|
-
3
|
337
|
-
I
|
338
|
-
0
|
339
|
-
I
|
340
|
-
1
|
341
|
-
I
|
342
|
-
1f
|
343
|
-
x
|
344
|
-
74
|
345
|
-
/Users/assaf/projects/vanity/test/myapp/app/controllers/main_controller.rb
|
346
|
-
p
|
347
|
-
0
|