camping-abingo 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/doc/classes/ABingoCampingPlugin.html +16 -16
  2. data/doc/classes/ABingoCampingPlugin/Controllers.html +10 -10
  3. data/doc/classes/ABingoCampingPlugin/Filters.html +5 -5
  4. data/doc/classes/ABingoCampingPlugin/Helpers.html +65 -65
  5. data/doc/classes/ABingoCampingPlugin/Models.html +15 -15
  6. data/doc/classes/ABingoCampingPlugin/Models/Alternative.html +15 -15
  7. data/doc/classes/ABingoCampingPlugin/Models/Experiment.html +45 -45
  8. data/doc/classes/ABingoCampingPlugin/Views.html +15 -15
  9. data/doc/classes/ActiveSupport/Cache/MemoryStore.html +5 -5
  10. data/doc/classes/ActiveSupport/Cache/MemoryStore.src/M000001.html +18 -0
  11. data/doc/classes/CampingABingoTest.html +6 -6
  12. data/doc/classes/CampingABingoTest.src/M000002.html +24 -0
  13. data/doc/classes/CampingABingoTest/Controllers/Index.html +5 -5
  14. data/doc/classes/CampingABingoTest/Controllers/Index.src/M000009.html +18 -0
  15. data/doc/classes/CampingABingoTest/Controllers/Landing.html +5 -5
  16. data/doc/classes/CampingABingoTest/Controllers/Landing.src/M000011.html +18 -0
  17. data/doc/classes/CampingABingoTest/Controllers/SignIn.html +10 -10
  18. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000015.html +18 -0
  19. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000016.html +34 -0
  20. data/doc/classes/CampingABingoTest/Controllers/SignOut.html +5 -5
  21. data/doc/classes/CampingABingoTest/Controllers/SignOut.src/M000014.html +21 -0
  22. data/doc/classes/CampingABingoTest/Controllers/SignUp.html +10 -10
  23. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000012.html +23 -0
  24. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000013.html +33 -0
  25. data/doc/classes/CampingABingoTest/Controllers/Welcome.html +5 -5
  26. data/doc/classes/CampingABingoTest/Controllers/Welcome.src/M000010.html +18 -0
  27. data/doc/classes/CampingABingoTest/Helpers.html +1 -1
  28. data/doc/classes/CampingABingoTest/Models.html +1 -1
  29. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.html +11 -11
  30. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000017.html +26 -0
  31. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000018.html +19 -0
  32. data/doc/classes/CampingABingoTest/Views.html +30 -30
  33. data/doc/classes/CampingABingoTest/Views.src/M000003.html +70 -0
  34. data/doc/classes/CampingABingoTest/Views.src/M000004.html +22 -0
  35. data/doc/classes/CampingABingoTest/Views.src/M000005.html +51 -0
  36. data/doc/classes/CampingABingoTest/Views.src/M000006.html +31 -0
  37. data/doc/classes/CampingABingoTest/Views.src/M000007.html +31 -0
  38. data/doc/classes/CampingABingoTest/Views.src/M000008.html +20 -0
  39. data/doc/created.rid +1 -1
  40. data/doc/files/examples/camping-abingo-test/camping-abingo-test_rb.html +1 -1
  41. data/doc/files/lib/camping-abingo_rb.html +3 -4
  42. data/doc/fr_class_index.html +0 -10
  43. data/doc/fr_file_index.html +0 -1
  44. data/doc/fr_method_index.html +18 -70
  45. data/examples/camping-abingo-test/camping-abingo-test-skeleton.rb +456 -0
  46. data/examples/camping-abingo-test/camping-abingo-test.rb +510 -0
  47. data/examples/camping-abingo-test/config.ru +26 -0
  48. data/examples/camping-abingo-test/config/database.yml +4 -0
  49. data/lib/camping-abingo.rb +1 -10
  50. metadata +50 -18
@@ -0,0 +1,26 @@
1
+ gem 'camping' , '>= 2.0'
2
+ require 'active_record'
3
+ require 'rack'
4
+
5
+ gem 'markaby' , '>= 0.5'
6
+
7
+ require 'camping'
8
+ require 'camping/session'
9
+ require 'camping/reloader'
10
+
11
+ use_camping_reloader = true
12
+ if use_camping_reloader
13
+ reloader = Camping::Reloader.new('camping-abingo-test.rb')
14
+ #puts "reloader.apps=#{reloader.inspect}"
15
+ app = reloader.apps[:CampingABingoTest]
16
+ else
17
+ require 'camping-abingo-test.rb'
18
+ app = Rack::Adapter::Camping.new(CampingABingoTest)
19
+ end
20
+ #---------------------------------------------
21
+
22
+ use Rack::Reloader
23
+
24
+ environment = ENV['DATABASE_URL'] ? 'production' : 'development'
25
+
26
+ run app #from the command line: rackup config.ru -p 3301
@@ -0,0 +1,4 @@
1
+ development:
2
+ adapter: sqlite3
3
+ database: camping-abingo-test.db
4
+
@@ -1,21 +1,12 @@
1
1
  =begin rdoc
2
2
 
3
- [Abingo|identity|flip();test();bingo!(){bg:red}]
4
- [Experiment|test_name;status|start_experiment!();end_experiment!(){bg:green}]
5
- [Alternative|content;lookup;weight;participants;conversions|score_conversion();score_participation(){bg:yellow}]
6
- [User|id;username{bg:blue}]
7
- [Abingo]uses -.->[Experiment]
8
- [Abingo]-id>[User]
9
- [Experiment]++1-alternatives >*[Alternative]
10
-
11
-
12
3
  Author:: Philippe F. Monnet (mailto:pfmonnet@gmail.com)
13
4
  Copyright:: Copyright (c) 2010 Philippe F. Monnet - ABingo Camping plugin
14
5
  Copyright:: Copyright (c) 2009 Patrick McKenzie - A subset of the Rails ABingo plugin reused in ABingo Camping
15
6
  License:: Distributes under the same terms as Ruby
16
7
  Version:: 1.0.3
17
8
 
18
- :main: Camping-ABingo
9
+ :main: ABingoCampingPlugin
19
10
 
20
11
  =Installing Camping-ABingo
21
12
  A lightweight ABingo plugin for Ruby Camping.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 5
9
+ version: 1.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick McKenzie
@@ -15,11 +15,11 @@ autorequire: camping-abingo
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-27 00:00:00 -07:00
18
+ date: 2010-12-04 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activerecord
22
+ name: activesupport
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
@@ -27,13 +27,12 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  segments:
30
- - 2
31
- - 2
32
- version: "2.2"
30
+ - 0
31
+ version: "0"
33
32
  type: :runtime
34
33
  version_requirements: *id001
35
34
  - !ruby/object:Gem::Dependency
36
- name: rack
35
+ name: activerecord
37
36
  prerelease: false
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
@@ -41,13 +40,12 @@ dependencies:
41
40
  - - ">="
42
41
  - !ruby/object:Gem::Version
43
42
  segments:
44
- - 1
45
- - 1
46
- version: "1.1"
43
+ - 0
44
+ version: "0"
47
45
  type: :runtime
48
46
  version_requirements: *id002
49
47
  - !ruby/object:Gem::Dependency
50
- name: markaby
48
+ name: rack
51
49
  prerelease: false
52
50
  requirement: &id003 !ruby/object:Gem::Requirement
53
51
  none: false
@@ -56,14 +54,26 @@ dependencies:
56
54
  - !ruby/object:Gem::Version
57
55
  segments:
58
56
  - 0
59
- - 5
60
- version: "0.5"
57
+ version: "0"
61
58
  type: :runtime
62
59
  version_requirements: *id003
63
60
  - !ruby/object:Gem::Dependency
64
- name: camping
61
+ name: markaby
65
62
  prerelease: false
66
63
  requirement: &id004 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ type: :runtime
72
+ version_requirements: *id004
73
+ - !ruby/object:Gem::Dependency
74
+ name: camping
75
+ prerelease: false
76
+ requirement: &id005 !ruby/object:Gem::Requirement
67
77
  none: false
68
78
  requirements:
69
79
  - - ">="
@@ -73,11 +83,11 @@ dependencies:
73
83
  - 0
74
84
  version: "2.0"
75
85
  type: :runtime
76
- version_requirements: *id004
86
+ version_requirements: *id005
77
87
  - !ruby/object:Gem::Dependency
78
88
  name: filtering_camping
79
89
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
90
+ requirement: &id006 !ruby/object:Gem::Requirement
81
91
  none: false
82
92
  requirements:
83
93
  - - ">="
@@ -87,7 +97,7 @@ dependencies:
87
97
  - 0
88
98
  version: "1.0"
89
99
  type: :runtime
90
- version_requirements: *id005
100
+ version_requirements: *id006
91
101
  description: |
92
102
  This is an ABingo plugin for the Ruby Camping framework, inspired by Patrick McKenzie's ABingo A/B testing Rails plugin (see http://www.bingocardcreator.com/abingo).
93
103
 
@@ -201,31 +211,48 @@ files:
201
211
  - doc/classes/ABingoCampingPlugin.src/M000035.html
202
212
  - doc/classes/ABingoCampingPlugin.src/M000036.html
203
213
  - doc/classes/ActiveSupport/Cache/MemoryStore.html
214
+ - doc/classes/ActiveSupport/Cache/MemoryStore.src/M000001.html
204
215
  - doc/classes/ActiveSupport/Cache/MemoryStore.src/M000016.html
205
216
  - doc/classes/ActiveSupport/Cache.html
206
217
  - doc/classes/ActiveSupport.html
207
218
  - doc/classes/CampingABingoTest/Controllers/Index.html
219
+ - doc/classes/CampingABingoTest/Controllers/Index.src/M000009.html
208
220
  - doc/classes/CampingABingoTest/Controllers/Index.src/M000024.html
209
221
  - doc/classes/CampingABingoTest/Controllers/Landing.html
222
+ - doc/classes/CampingABingoTest/Controllers/Landing.src/M000011.html
210
223
  - doc/classes/CampingABingoTest/Controllers/Landing.src/M000026.html
211
224
  - doc/classes/CampingABingoTest/Controllers/SignIn.html
225
+ - doc/classes/CampingABingoTest/Controllers/SignIn.src/M000015.html
226
+ - doc/classes/CampingABingoTest/Controllers/SignIn.src/M000016.html
212
227
  - doc/classes/CampingABingoTest/Controllers/SignIn.src/M000030.html
213
228
  - doc/classes/CampingABingoTest/Controllers/SignIn.src/M000031.html
214
229
  - doc/classes/CampingABingoTest/Controllers/SignOut.html
230
+ - doc/classes/CampingABingoTest/Controllers/SignOut.src/M000014.html
215
231
  - doc/classes/CampingABingoTest/Controllers/SignOut.src/M000029.html
216
232
  - doc/classes/CampingABingoTest/Controllers/SignUp.html
233
+ - doc/classes/CampingABingoTest/Controllers/SignUp.src/M000012.html
234
+ - doc/classes/CampingABingoTest/Controllers/SignUp.src/M000013.html
217
235
  - doc/classes/CampingABingoTest/Controllers/SignUp.src/M000027.html
218
236
  - doc/classes/CampingABingoTest/Controllers/SignUp.src/M000028.html
219
237
  - doc/classes/CampingABingoTest/Controllers/Welcome.html
238
+ - doc/classes/CampingABingoTest/Controllers/Welcome.src/M000010.html
220
239
  - doc/classes/CampingABingoTest/Controllers/Welcome.src/M000025.html
221
240
  - doc/classes/CampingABingoTest/Controllers.html
222
241
  - doc/classes/CampingABingoTest/Helpers.html
223
242
  - doc/classes/CampingABingoTest/Models/CreateUserSchema.html
243
+ - doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000017.html
244
+ - doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000018.html
224
245
  - doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000032.html
225
246
  - doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000033.html
226
247
  - doc/classes/CampingABingoTest/Models/User.html
227
248
  - doc/classes/CampingABingoTest/Models.html
228
249
  - doc/classes/CampingABingoTest/Views.html
250
+ - doc/classes/CampingABingoTest/Views.src/M000003.html
251
+ - doc/classes/CampingABingoTest/Views.src/M000004.html
252
+ - doc/classes/CampingABingoTest/Views.src/M000005.html
253
+ - doc/classes/CampingABingoTest/Views.src/M000006.html
254
+ - doc/classes/CampingABingoTest/Views.src/M000007.html
255
+ - doc/classes/CampingABingoTest/Views.src/M000008.html
229
256
  - doc/classes/CampingABingoTest/Views.src/M000018.html
230
257
  - doc/classes/CampingABingoTest/Views.src/M000019.html
231
258
  - doc/classes/CampingABingoTest/Views.src/M000020.html
@@ -233,6 +260,7 @@ files:
233
260
  - doc/classes/CampingABingoTest/Views.src/M000022.html
234
261
  - doc/classes/CampingABingoTest/Views.src/M000023.html
235
262
  - doc/classes/CampingABingoTest.html
263
+ - doc/classes/CampingABingoTest.src/M000002.html
236
264
  - doc/classes/CampingABingoTest.src/M000017.html
237
265
  - doc/created.rid
238
266
  - doc/files/examples/camping-abingo-test/camping-abingo-test_rb.html
@@ -241,6 +269,10 @@ files:
241
269
  - doc/fr_file_index.html
242
270
  - doc/fr_method_index.html
243
271
  - doc/index.html
272
+ - examples/camping-abingo-test/camping-abingo-test-skeleton.rb
273
+ - examples/camping-abingo-test/camping-abingo-test.rb
274
+ - examples/camping-abingo-test/config/database.yml
275
+ - examples/camping-abingo-test/config.ru
244
276
  - lib/camping-abingo.rb
245
277
  - README
246
278
  has_rdoc: true