magic_lamp 0.9.0 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +79 -75
  3. data/app/assets/javascripts/magic_lamp.js +2 -0
  4. data/app/assets/javascripts/magic_lamp/application.js +14 -0
  5. data/app/assets/javascripts/magic_lamp/boot.js +1 -0
  6. data/app/assets/javascripts/magic_lamp/genie.js +97 -0
  7. data/app/assets/javascripts/magic_lamp/magic_lamp.js +35 -0
  8. data/app/assets/stylesheets/magic_lamp/application.css +15 -0
  9. data/app/controllers/magic_lamp/application_controller.rb +4 -0
  10. data/app/controllers/magic_lamp/fixtures_controller.rb +35 -0
  11. data/app/helpers/magic_lamp/application_helper.rb +4 -0
  12. data/app/views/layouts/magic_lamp/application.html.erb +14 -0
  13. data/config/routes.rb +4 -0
  14. data/lib/magic_lamp.rb +83 -20
  15. data/lib/magic_lamp/engine.rb +9 -0
  16. data/lib/magic_lamp/fixture_creator.rb +2 -10
  17. data/lib/magic_lamp/render_catcher.rb +15 -0
  18. data/lib/magic_lamp/version.rb +1 -1
  19. data/lib/tasks/magic_lamp_tasks.rake +4 -0
  20. data/spec/controllers/magic_lamp/fixtures_controller_spec.rb +73 -0
  21. data/spec/dummy/app/views/orders/bar.html.erb +1 -0
  22. data/spec/dummy/config/application.rb +7 -1
  23. data/spec/dummy/config/environments/development.rb +1 -0
  24. data/spec/dummy/config/environments/production.rb +1 -2
  25. data/spec/dummy/config/initializers/assets.rb +8 -0
  26. data/spec/dummy/config/routes.rb +2 -54
  27. data/spec/dummy/config/secrets.yml +2 -2
  28. data/spec/dummy/db/development.sqlite3 +0 -0
  29. data/spec/dummy/db/migrate/{20140623002513_create_orders.rb → 20140801133550_create_orders.rb} +0 -0
  30. data/spec/dummy/db/schema.rb +1 -1
  31. data/spec/dummy/db/test.sqlite3 +0 -0
  32. data/spec/dummy/log/development.log +61270 -0
  33. data/spec/dummy/log/test.log +25531 -13475
  34. data/spec/dummy/spec/magical/magic_lamp.rb +12 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/05ecd34d23e110728a2f04ad35ec8834 +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/09bc89d8ac4ccacfcf2f4db466e7735f +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/0dc7d2551b4cf3f654b16902e208703c +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/18650d8ff9b0a83b32e55b58917ec791 +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/18a0c4b365b6a030c56ac85e8aa6bd6e +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/199574de4a8028cea9307b5e55d8f8be +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/1a894d48e2e8089537ae95e3798d49a2 +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/24591221375d773f23385966709a900b +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/2bd1588b3767c789462d94a5fd27df88 +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/2ccef21649a61deac2c84f622753b77b +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/38b32c335f7377670791219def8ce6d7 +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/38d787c2adf281dccb80274318dcf538 +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/3929ae7429411cd81cad5d5ed72b4912 +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/3c20b64b10f3325ed7f3b6695648fd8d +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/480053cec74750ba76acfd86f7ff1051 +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/5bbf09297502a156801e9c65f4bd3db7 +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/5ced43e55c875dddf3aca75fa148ca3e +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/6284ee4c2b5be7652a79edb6d4705cee +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/68b6ad376fe519ddaf9b84e87c2b077c +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/69080d1368510f3bcff08c323a5913a7 +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/6c1f143bdf6ffea1fb2fa7b967f9a437 +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/759e97d6d411bc4cef7055a778e1bef3 +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/7f7dcf7837dbb7f150b7364ad7920712 +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/86023efec2465a88617e5a47a38f1f55 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/87e991f1f72e200b4bded1eb8871ee31 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/88fe64427f1fff8e41ca8ad0170da88a +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/8d1d9aa6d95fc9c10dfc6e6d49778b2f +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/8ed4b4f20fb65446181984e6df7d7c9b +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/8f4a370f455559b7a209ecd758a3bb3d +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/96210dc070e479fcee862294afe5efc1 +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/972b6b0bb1fc0b1123077b4b2f4394bd +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/9825272284630c2926f661645205382a +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/9fdefd8efa47bbe9a18f1faff6252e95 +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/b212d365916d6c2f783d5d73ae451562 +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/b2a142b210c2cbfe4a58040684b3c33c +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/b458300066aff956f7af9a6d2ae99abc +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/b98b0da97c57b492a76eeb1d0faf80d7 +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/bceac3272b3e329aba55cb672fa18719 +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/bfa154e8a12acdbc85028ad8130d9043 +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/c5ff389414942659c1c69d2f4f32978c +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/cf573b52d944e8aea7f1dc03f9be9b2c +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/d42871ab2eba219379cd7aa9f993c575 +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/d98de652252dc6ae11b5b6db5588705b +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/db0cbe7314816ff20016f88d20dc5569 +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/ed02174e8f8230d1ff62c67e51f01576 +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/f0aa53eb377a5d7cc83657ef33b02d25 +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/f1ffba5065c7038b154a287981b34743 +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/f5d1b7d2ec1c89dc32cc982b43502dc8 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/f6256b2e4e609981d9eb420aae5bef46 +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/fd3d67db3401095777d74ebf3cb94a01 +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/fdc3718e0a84d340a897f87179d95c84 +0 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/2fdee9aa34e89b0182a7523c4484e5f6 +0 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/36a1fb9df9acb7490c5ac1284b2de56b +0 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  96. data/spec/dummy/tmp/cache/assets/test/sprockets/b78b6f63e1fe791ab77083cd45eb5105 +0 -0
  97. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  98. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  99. data/spec/dummy/tmp/cache/assets/test/sprockets/e4468469b981ba614a29626880137332 +0 -0
  100. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  101. data/spec/dummy/tmp/pids/server.pid +1 -0
  102. data/spec/javascripts/genie_spec.js +210 -0
  103. data/spec/javascripts/magic_lamp_spec.js +185 -0
  104. data/spec/javascripts/spec_helper.js +109 -0
  105. data/spec/javascripts/support/sinon-chai.js +126 -0
  106. data/spec/javascripts/support/underscore-1.6.js +1343 -0
  107. data/spec/lib/fixture_creator_spec.rb +6 -17
  108. data/spec/lib/magic_lamp_spec.rb +143 -56
  109. data/spec/lib/render_catcher_spec.rb +35 -0
  110. data/spec/rails_helper.rb +3 -13
  111. data/spec/spec_helper.rb +2 -3
  112. data/spec/teaspoon_env.rb +186 -0
  113. metadata +206 -15
  114. data/lib/tasks/magic_lamp_tasks.rb +0 -44
  115. data/spec/dummy/spec/magic_lamp.rb +0 -4
  116. data/spec/dummy/spec/magic_lamp/foo/foo_lamp.rb +0 -1
  117. data/spec/dummy/spec/magic_lamp/rake/rake_lamp.rb +0 -3
  118. data/spec/integration/integration_spec.rb +0 -21
  119. data/spec/tasks/magic_lamp_tasks_spec.rb +0 -34
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_lamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Crismali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,48 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: selenium-webdriver
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: teaspoon
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
41
83
  - !ruby/object:Gem::Dependency
42
84
  name: rspec-rails
43
85
  requirement: !ruby/object:Gem::Requirement
@@ -104,10 +146,24 @@ extra_rdoc_files: []
104
146
  files:
105
147
  - LICENSE
106
148
  - README.md
149
+ - app/assets/javascripts/magic_lamp.js
150
+ - app/assets/javascripts/magic_lamp/application.js
151
+ - app/assets/javascripts/magic_lamp/boot.js
152
+ - app/assets/javascripts/magic_lamp/genie.js
153
+ - app/assets/javascripts/magic_lamp/magic_lamp.js
154
+ - app/assets/stylesheets/magic_lamp/application.css
155
+ - app/controllers/magic_lamp/application_controller.rb
156
+ - app/controllers/magic_lamp/fixtures_controller.rb
157
+ - app/helpers/magic_lamp/application_helper.rb
158
+ - app/views/layouts/magic_lamp/application.html.erb
159
+ - config/routes.rb
107
160
  - lib/magic_lamp.rb
161
+ - lib/magic_lamp/engine.rb
108
162
  - lib/magic_lamp/fixture_creator.rb
163
+ - lib/magic_lamp/render_catcher.rb
109
164
  - lib/magic_lamp/version.rb
110
- - lib/tasks/magic_lamp_tasks.rb
165
+ - lib/tasks/magic_lamp_tasks.rake
166
+ - spec/controllers/magic_lamp/fixtures_controller_spec.rb
111
167
  - spec/dummy/README.rdoc
112
168
  - spec/dummy/Rakefile
113
169
  - spec/dummy/app/assets/javascripts/application.js
@@ -119,6 +175,7 @@ files:
119
175
  - spec/dummy/app/models/order.rb
120
176
  - spec/dummy/app/views/layouts/application.html.erb
121
177
  - spec/dummy/app/views/orders/_form.html.erb
178
+ - spec/dummy/app/views/orders/bar.html.erb
122
179
  - spec/dummy/app/views/orders/edit.html.erb
123
180
  - spec/dummy/app/views/orders/foo.html.erb
124
181
  - spec/dummy/app/views/orders/index.html.erb
@@ -135,6 +192,7 @@ files:
135
192
  - spec/dummy/config/environments/development.rb
136
193
  - spec/dummy/config/environments/production.rb
137
194
  - spec/dummy/config/environments/test.rb
195
+ - spec/dummy/config/initializers/assets.rb
138
196
  - spec/dummy/config/initializers/backtrace_silencers.rb
139
197
  - spec/dummy/config/initializers/cookies_serializer.rb
140
198
  - spec/dummy/config/initializers/filter_parameter_logging.rb
@@ -145,7 +203,8 @@ files:
145
203
  - spec/dummy/config/locales/en.yml
146
204
  - spec/dummy/config/routes.rb
147
205
  - spec/dummy/config/secrets.yml
148
- - spec/dummy/db/migrate/20140623002513_create_orders.rb
206
+ - spec/dummy/db/development.sqlite3
207
+ - spec/dummy/db/migrate/20140801133550_create_orders.rb
149
208
  - spec/dummy/db/schema.rb
150
209
  - spec/dummy/db/test.sqlite3
151
210
  - spec/dummy/log/development.log
@@ -154,21 +213,85 @@ files:
154
213
  - spec/dummy/public/422.html
155
214
  - spec/dummy/public/500.html
156
215
  - spec/dummy/public/favicon.ico
157
- - spec/dummy/spec/magic_lamp.rb
158
- - spec/dummy/spec/magic_lamp/foo/foo_lamp.rb
159
- - spec/dummy/spec/magic_lamp/rake/rake_lamp.rb
216
+ - spec/dummy/spec/magical/magic_lamp.rb
217
+ - spec/dummy/tmp/cache/assets/development/sprockets/05ecd34d23e110728a2f04ad35ec8834
218
+ - spec/dummy/tmp/cache/assets/development/sprockets/09bc89d8ac4ccacfcf2f4db466e7735f
219
+ - spec/dummy/tmp/cache/assets/development/sprockets/0dc7d2551b4cf3f654b16902e208703c
220
+ - spec/dummy/tmp/cache/assets/development/sprockets/18650d8ff9b0a83b32e55b58917ec791
221
+ - spec/dummy/tmp/cache/assets/development/sprockets/18a0c4b365b6a030c56ac85e8aa6bd6e
222
+ - spec/dummy/tmp/cache/assets/development/sprockets/199574de4a8028cea9307b5e55d8f8be
223
+ - spec/dummy/tmp/cache/assets/development/sprockets/1a894d48e2e8089537ae95e3798d49a2
224
+ - spec/dummy/tmp/cache/assets/development/sprockets/24591221375d773f23385966709a900b
225
+ - spec/dummy/tmp/cache/assets/development/sprockets/2bd1588b3767c789462d94a5fd27df88
226
+ - spec/dummy/tmp/cache/assets/development/sprockets/2ccef21649a61deac2c84f622753b77b
227
+ - spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
228
+ - spec/dummy/tmp/cache/assets/development/sprockets/38b32c335f7377670791219def8ce6d7
229
+ - spec/dummy/tmp/cache/assets/development/sprockets/38d787c2adf281dccb80274318dcf538
230
+ - spec/dummy/tmp/cache/assets/development/sprockets/3929ae7429411cd81cad5d5ed72b4912
231
+ - spec/dummy/tmp/cache/assets/development/sprockets/3c20b64b10f3325ed7f3b6695648fd8d
232
+ - spec/dummy/tmp/cache/assets/development/sprockets/480053cec74750ba76acfd86f7ff1051
233
+ - spec/dummy/tmp/cache/assets/development/sprockets/5bbf09297502a156801e9c65f4bd3db7
234
+ - spec/dummy/tmp/cache/assets/development/sprockets/5ced43e55c875dddf3aca75fa148ca3e
235
+ - spec/dummy/tmp/cache/assets/development/sprockets/6284ee4c2b5be7652a79edb6d4705cee
236
+ - spec/dummy/tmp/cache/assets/development/sprockets/68b6ad376fe519ddaf9b84e87c2b077c
237
+ - spec/dummy/tmp/cache/assets/development/sprockets/69080d1368510f3bcff08c323a5913a7
238
+ - spec/dummy/tmp/cache/assets/development/sprockets/6c1f143bdf6ffea1fb2fa7b967f9a437
239
+ - spec/dummy/tmp/cache/assets/development/sprockets/759e97d6d411bc4cef7055a778e1bef3
240
+ - spec/dummy/tmp/cache/assets/development/sprockets/7f7dcf7837dbb7f150b7364ad7920712
241
+ - spec/dummy/tmp/cache/assets/development/sprockets/86023efec2465a88617e5a47a38f1f55
242
+ - spec/dummy/tmp/cache/assets/development/sprockets/87e991f1f72e200b4bded1eb8871ee31
243
+ - spec/dummy/tmp/cache/assets/development/sprockets/88fe64427f1fff8e41ca8ad0170da88a
244
+ - spec/dummy/tmp/cache/assets/development/sprockets/8d1d9aa6d95fc9c10dfc6e6d49778b2f
245
+ - spec/dummy/tmp/cache/assets/development/sprockets/8ed4b4f20fb65446181984e6df7d7c9b
246
+ - spec/dummy/tmp/cache/assets/development/sprockets/8f4a370f455559b7a209ecd758a3bb3d
247
+ - spec/dummy/tmp/cache/assets/development/sprockets/96210dc070e479fcee862294afe5efc1
248
+ - spec/dummy/tmp/cache/assets/development/sprockets/972b6b0bb1fc0b1123077b4b2f4394bd
249
+ - spec/dummy/tmp/cache/assets/development/sprockets/9825272284630c2926f661645205382a
250
+ - spec/dummy/tmp/cache/assets/development/sprockets/9fdefd8efa47bbe9a18f1faff6252e95
251
+ - spec/dummy/tmp/cache/assets/development/sprockets/b212d365916d6c2f783d5d73ae451562
252
+ - spec/dummy/tmp/cache/assets/development/sprockets/b2a142b210c2cbfe4a58040684b3c33c
253
+ - spec/dummy/tmp/cache/assets/development/sprockets/b458300066aff956f7af9a6d2ae99abc
254
+ - spec/dummy/tmp/cache/assets/development/sprockets/b98b0da97c57b492a76eeb1d0faf80d7
255
+ - spec/dummy/tmp/cache/assets/development/sprockets/bceac3272b3e329aba55cb672fa18719
256
+ - spec/dummy/tmp/cache/assets/development/sprockets/bfa154e8a12acdbc85028ad8130d9043
257
+ - spec/dummy/tmp/cache/assets/development/sprockets/c5ff389414942659c1c69d2f4f32978c
258
+ - spec/dummy/tmp/cache/assets/development/sprockets/cf573b52d944e8aea7f1dc03f9be9b2c
259
+ - spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
260
+ - spec/dummy/tmp/cache/assets/development/sprockets/d42871ab2eba219379cd7aa9f993c575
261
+ - spec/dummy/tmp/cache/assets/development/sprockets/d98de652252dc6ae11b5b6db5588705b
262
+ - spec/dummy/tmp/cache/assets/development/sprockets/db0cbe7314816ff20016f88d20dc5569
263
+ - spec/dummy/tmp/cache/assets/development/sprockets/ed02174e8f8230d1ff62c67e51f01576
264
+ - spec/dummy/tmp/cache/assets/development/sprockets/f0aa53eb377a5d7cc83657ef33b02d25
265
+ - spec/dummy/tmp/cache/assets/development/sprockets/f1ffba5065c7038b154a287981b34743
266
+ - spec/dummy/tmp/cache/assets/development/sprockets/f5d1b7d2ec1c89dc32cc982b43502dc8
267
+ - spec/dummy/tmp/cache/assets/development/sprockets/f6256b2e4e609981d9eb420aae5bef46
268
+ - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
269
+ - spec/dummy/tmp/cache/assets/development/sprockets/fd3d67db3401095777d74ebf3cb94a01
270
+ - spec/dummy/tmp/cache/assets/development/sprockets/fdc3718e0a84d340a897f87179d95c84
160
271
  - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
161
272
  - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
273
+ - spec/dummy/tmp/cache/assets/test/sprockets/2fdee9aa34e89b0182a7523c4484e5f6
162
274
  - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
275
+ - spec/dummy/tmp/cache/assets/test/sprockets/36a1fb9df9acb7490c5ac1284b2de56b
276
+ - spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
277
+ - spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
278
+ - spec/dummy/tmp/cache/assets/test/sprockets/b78b6f63e1fe791ab77083cd45eb5105
163
279
  - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
164
280
  - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
281
+ - spec/dummy/tmp/cache/assets/test/sprockets/e4468469b981ba614a29626880137332
165
282
  - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
166
- - spec/integration/integration_spec.rb
283
+ - spec/dummy/tmp/pids/server.pid
284
+ - spec/javascripts/genie_spec.js
285
+ - spec/javascripts/magic_lamp_spec.js
286
+ - spec/javascripts/spec_helper.js
287
+ - spec/javascripts/support/sinon-chai.js
288
+ - spec/javascripts/support/underscore-1.6.js
167
289
  - spec/lib/fixture_creator_spec.rb
168
290
  - spec/lib/magic_lamp_spec.rb
291
+ - spec/lib/render_catcher_spec.rb
169
292
  - spec/rails_helper.rb
170
293
  - spec/spec_helper.rb
171
- - spec/tasks/magic_lamp_tasks_spec.rb
294
+ - spec/teaspoon_env.rb
172
295
  homepage: https://github.com/crismali/magic_lamp
173
296
  licenses:
174
297
  - Apache
@@ -194,6 +317,7 @@ signing_key:
194
317
  specification_version: 4
195
318
  summary: Turn Rails templates into fixtures for JavaScript testing
196
319
  test_files:
320
+ - spec/controllers/magic_lamp/fixtures_controller_spec.rb
197
321
  - spec/dummy/app/assets/javascripts/application.js
198
322
  - spec/dummy/app/assets/stylesheets/application.css
199
323
  - spec/dummy/app/controllers/application_controller.rb
@@ -203,6 +327,7 @@ test_files:
203
327
  - spec/dummy/app/models/order.rb
204
328
  - spec/dummy/app/views/layouts/application.html.erb
205
329
  - spec/dummy/app/views/orders/_form.html.erb
330
+ - spec/dummy/app/views/orders/bar.html.erb
206
331
  - spec/dummy/app/views/orders/edit.html.erb
207
332
  - spec/dummy/app/views/orders/foo.html.erb
208
333
  - spec/dummy/app/views/orders/index.html.erb
@@ -218,6 +343,7 @@ test_files:
218
343
  - spec/dummy/config/environments/development.rb
219
344
  - spec/dummy/config/environments/production.rb
220
345
  - spec/dummy/config/environments/test.rb
346
+ - spec/dummy/config/initializers/assets.rb
221
347
  - spec/dummy/config/initializers/backtrace_silencers.rb
222
348
  - spec/dummy/config/initializers/cookies_serializer.rb
223
349
  - spec/dummy/config/initializers/filter_parameter_logging.rb
@@ -229,7 +355,8 @@ test_files:
229
355
  - spec/dummy/config/routes.rb
230
356
  - spec/dummy/config/secrets.yml
231
357
  - spec/dummy/config.ru
232
- - spec/dummy/db/migrate/20140623002513_create_orders.rb
358
+ - spec/dummy/db/development.sqlite3
359
+ - spec/dummy/db/migrate/20140801133550_create_orders.rb
233
360
  - spec/dummy/db/schema.rb
234
361
  - spec/dummy/db/test.sqlite3
235
362
  - spec/dummy/log/development.log
@@ -240,18 +367,82 @@ test_files:
240
367
  - spec/dummy/public/favicon.ico
241
368
  - spec/dummy/Rakefile
242
369
  - spec/dummy/README.rdoc
243
- - spec/dummy/spec/magic_lamp/foo/foo_lamp.rb
244
- - spec/dummy/spec/magic_lamp/rake/rake_lamp.rb
245
- - spec/dummy/spec/magic_lamp.rb
370
+ - spec/dummy/spec/magical/magic_lamp.rb
371
+ - spec/dummy/tmp/cache/assets/development/sprockets/05ecd34d23e110728a2f04ad35ec8834
372
+ - spec/dummy/tmp/cache/assets/development/sprockets/09bc89d8ac4ccacfcf2f4db466e7735f
373
+ - spec/dummy/tmp/cache/assets/development/sprockets/0dc7d2551b4cf3f654b16902e208703c
374
+ - spec/dummy/tmp/cache/assets/development/sprockets/18650d8ff9b0a83b32e55b58917ec791
375
+ - spec/dummy/tmp/cache/assets/development/sprockets/18a0c4b365b6a030c56ac85e8aa6bd6e
376
+ - spec/dummy/tmp/cache/assets/development/sprockets/199574de4a8028cea9307b5e55d8f8be
377
+ - spec/dummy/tmp/cache/assets/development/sprockets/1a894d48e2e8089537ae95e3798d49a2
378
+ - spec/dummy/tmp/cache/assets/development/sprockets/24591221375d773f23385966709a900b
379
+ - spec/dummy/tmp/cache/assets/development/sprockets/2bd1588b3767c789462d94a5fd27df88
380
+ - spec/dummy/tmp/cache/assets/development/sprockets/2ccef21649a61deac2c84f622753b77b
381
+ - spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
382
+ - spec/dummy/tmp/cache/assets/development/sprockets/38b32c335f7377670791219def8ce6d7
383
+ - spec/dummy/tmp/cache/assets/development/sprockets/38d787c2adf281dccb80274318dcf538
384
+ - spec/dummy/tmp/cache/assets/development/sprockets/3929ae7429411cd81cad5d5ed72b4912
385
+ - spec/dummy/tmp/cache/assets/development/sprockets/3c20b64b10f3325ed7f3b6695648fd8d
386
+ - spec/dummy/tmp/cache/assets/development/sprockets/480053cec74750ba76acfd86f7ff1051
387
+ - spec/dummy/tmp/cache/assets/development/sprockets/5bbf09297502a156801e9c65f4bd3db7
388
+ - spec/dummy/tmp/cache/assets/development/sprockets/5ced43e55c875dddf3aca75fa148ca3e
389
+ - spec/dummy/tmp/cache/assets/development/sprockets/6284ee4c2b5be7652a79edb6d4705cee
390
+ - spec/dummy/tmp/cache/assets/development/sprockets/68b6ad376fe519ddaf9b84e87c2b077c
391
+ - spec/dummy/tmp/cache/assets/development/sprockets/69080d1368510f3bcff08c323a5913a7
392
+ - spec/dummy/tmp/cache/assets/development/sprockets/6c1f143bdf6ffea1fb2fa7b967f9a437
393
+ - spec/dummy/tmp/cache/assets/development/sprockets/759e97d6d411bc4cef7055a778e1bef3
394
+ - spec/dummy/tmp/cache/assets/development/sprockets/7f7dcf7837dbb7f150b7364ad7920712
395
+ - spec/dummy/tmp/cache/assets/development/sprockets/86023efec2465a88617e5a47a38f1f55
396
+ - spec/dummy/tmp/cache/assets/development/sprockets/87e991f1f72e200b4bded1eb8871ee31
397
+ - spec/dummy/tmp/cache/assets/development/sprockets/88fe64427f1fff8e41ca8ad0170da88a
398
+ - spec/dummy/tmp/cache/assets/development/sprockets/8d1d9aa6d95fc9c10dfc6e6d49778b2f
399
+ - spec/dummy/tmp/cache/assets/development/sprockets/8ed4b4f20fb65446181984e6df7d7c9b
400
+ - spec/dummy/tmp/cache/assets/development/sprockets/8f4a370f455559b7a209ecd758a3bb3d
401
+ - spec/dummy/tmp/cache/assets/development/sprockets/96210dc070e479fcee862294afe5efc1
402
+ - spec/dummy/tmp/cache/assets/development/sprockets/972b6b0bb1fc0b1123077b4b2f4394bd
403
+ - spec/dummy/tmp/cache/assets/development/sprockets/9825272284630c2926f661645205382a
404
+ - spec/dummy/tmp/cache/assets/development/sprockets/9fdefd8efa47bbe9a18f1faff6252e95
405
+ - spec/dummy/tmp/cache/assets/development/sprockets/b212d365916d6c2f783d5d73ae451562
406
+ - spec/dummy/tmp/cache/assets/development/sprockets/b2a142b210c2cbfe4a58040684b3c33c
407
+ - spec/dummy/tmp/cache/assets/development/sprockets/b458300066aff956f7af9a6d2ae99abc
408
+ - spec/dummy/tmp/cache/assets/development/sprockets/b98b0da97c57b492a76eeb1d0faf80d7
409
+ - spec/dummy/tmp/cache/assets/development/sprockets/bceac3272b3e329aba55cb672fa18719
410
+ - spec/dummy/tmp/cache/assets/development/sprockets/bfa154e8a12acdbc85028ad8130d9043
411
+ - spec/dummy/tmp/cache/assets/development/sprockets/c5ff389414942659c1c69d2f4f32978c
412
+ - spec/dummy/tmp/cache/assets/development/sprockets/cf573b52d944e8aea7f1dc03f9be9b2c
413
+ - spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
414
+ - spec/dummy/tmp/cache/assets/development/sprockets/d42871ab2eba219379cd7aa9f993c575
415
+ - spec/dummy/tmp/cache/assets/development/sprockets/d98de652252dc6ae11b5b6db5588705b
416
+ - spec/dummy/tmp/cache/assets/development/sprockets/db0cbe7314816ff20016f88d20dc5569
417
+ - spec/dummy/tmp/cache/assets/development/sprockets/ed02174e8f8230d1ff62c67e51f01576
418
+ - spec/dummy/tmp/cache/assets/development/sprockets/f0aa53eb377a5d7cc83657ef33b02d25
419
+ - spec/dummy/tmp/cache/assets/development/sprockets/f1ffba5065c7038b154a287981b34743
420
+ - spec/dummy/tmp/cache/assets/development/sprockets/f5d1b7d2ec1c89dc32cc982b43502dc8
421
+ - spec/dummy/tmp/cache/assets/development/sprockets/f6256b2e4e609981d9eb420aae5bef46
422
+ - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
423
+ - spec/dummy/tmp/cache/assets/development/sprockets/fd3d67db3401095777d74ebf3cb94a01
424
+ - spec/dummy/tmp/cache/assets/development/sprockets/fdc3718e0a84d340a897f87179d95c84
246
425
  - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
247
426
  - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
427
+ - spec/dummy/tmp/cache/assets/test/sprockets/2fdee9aa34e89b0182a7523c4484e5f6
248
428
  - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
429
+ - spec/dummy/tmp/cache/assets/test/sprockets/36a1fb9df9acb7490c5ac1284b2de56b
430
+ - spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
431
+ - spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
432
+ - spec/dummy/tmp/cache/assets/test/sprockets/b78b6f63e1fe791ab77083cd45eb5105
249
433
  - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
250
434
  - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
435
+ - spec/dummy/tmp/cache/assets/test/sprockets/e4468469b981ba614a29626880137332
251
436
  - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
252
- - spec/integration/integration_spec.rb
437
+ - spec/dummy/tmp/pids/server.pid
438
+ - spec/javascripts/genie_spec.js
439
+ - spec/javascripts/magic_lamp_spec.js
440
+ - spec/javascripts/spec_helper.js
441
+ - spec/javascripts/support/sinon-chai.js
442
+ - spec/javascripts/support/underscore-1.6.js
253
443
  - spec/lib/fixture_creator_spec.rb
254
444
  - spec/lib/magic_lamp_spec.rb
445
+ - spec/lib/render_catcher_spec.rb
255
446
  - spec/rails_helper.rb
256
447
  - spec/spec_helper.rb
257
- - spec/tasks/magic_lamp_tasks_spec.rb
448
+ - spec/teaspoon_env.rb
@@ -1,44 +0,0 @@
1
- require "rake"
2
-
3
- namespace :magic_lamp do
4
- desc "Remove MagicLamp fixtures"
5
- task clean: :environment do
6
- MagicLamp.remove_tmp_directory
7
- end
8
-
9
- desc "Creates fixtures from MagicLamp files"
10
- task create_fixtures: :clean do
11
- MagicLamp.load_lamp_files
12
- end
13
-
14
- # Test runner integration tasks
15
-
16
- desc "Create fixtures and run Teaspoon specs"
17
- task teaspoon: :create_fixtures do
18
- Rake::Task["teaspoon"].invoke
19
- end
20
-
21
- desc "Create fixtures and run Jasmine Rails specs"
22
- task jasmine_rails: :create_fixtures do
23
- Rake::Task["spec:javascript"].invoke
24
- end
25
-
26
- desc "Create fixtures and run Jasmine specs"
27
- task jasmine: :create_fixtures do
28
- Rake::Task["jasmine:ci"].invoke
29
- end
30
-
31
- desc "Create fixtures and run Evergreen specs"
32
- task evergreen: :create_fixtures do
33
- Rake::Task["spec:javascripts"].invoke
34
- end
35
-
36
- desc "Create fixtures and run Konacha specs"
37
- task konacha: :create_fixtures do
38
- Rake::Task["konacha:run"].invoke
39
- end
40
- end
41
-
42
- # Alias for magic_lamp:create_fixtures
43
- desc "Creates fixtures from MagicLamp files"
44
- task magic_lamp: "magic_lamp:create_fixtures"
@@ -1,4 +0,0 @@
1
- MagicLamp.create_fixture("via_magic_lamp_file", OrdersController) do
2
- @order = Order.new
3
- render :new
4
- end
@@ -1 +0,0 @@
1
- MagicLamp.instance_variable_set("@foo", "from lamp file")
@@ -1,3 +0,0 @@
1
- MagicLamp.create_fixture("rake_test", OrdersController) do
2
- render :foo
3
- end
@@ -1,21 +0,0 @@
1
- require "rails_helper"
2
-
3
- describe "Integration", integration: true do
4
- let(:rake_test_path) { Rails.root.join("tmp/magic_lamp/rake_test.html") }
5
- let(:magic_lamp_test_path) { Rails.root.join("tmp/magic_lamp/via_magic_lamp_file.html") }
6
-
7
- it "creates fixture files from lamp files" do
8
- Dir.chdir(Rails.root) do
9
- system "rake db:drop"
10
- system "rake db:create"
11
- system "rake db:migrate"
12
- system "rake magic_lamp"
13
- end
14
-
15
- expect(File.exist?(rake_test_path)).to eq(true)
16
- expect(File.read(rake_test_path)).to eq("foo\n")
17
-
18
- expect(File.exist?(magic_lamp_test_path)).to eq(true)
19
- expect(File.read(magic_lamp_test_path)).to match("<h1>New order</h1>")
20
- end
21
- end
@@ -1,34 +0,0 @@
1
- require "rails_helper"
2
-
3
- describe "MagicLamp Rake tasks" do
4
- describe "clean" do
5
- it "calls remove_tmp_directory" do
6
- expect(MagicLamp).to receive(:remove_tmp_directory)
7
- Rake::Task["magic_lamp:clean"].actions.first.call
8
- end
9
-
10
- it "depends on the environment task" do
11
- prereqs = Rake::Task["magic_lamp:clean"].all_prerequisite_tasks
12
- expect(prereqs).to include(Rake::Task["environment"])
13
- end
14
- end
15
-
16
- describe "create_fixtures" do
17
- it "calls load_lamp_files" do
18
- expect(MagicLamp).to receive(:load_lamp_files)
19
- Rake::Task["magic_lamp:create_fixtures"].actions.first.call
20
- end
21
-
22
- it "depends on the clean task" do
23
- prereqs = Rake::Task["magic_lamp:create_fixtures"].all_prerequisite_tasks
24
- expect(prereqs).to include(Rake::Task["magic_lamp:clean"])
25
- end
26
- end
27
-
28
- describe "magic_lamp" do
29
- it "depends on the create_fixtures task" do
30
- prereqs = Rake::Task["magic_lamp"].all_prerequisite_tasks
31
- expect(prereqs).to include(Rake::Task["magic_lamp:create_fixtures"])
32
- end
33
- end
34
- end