gated_release 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -0
  3. data/CHANGELOG.md +22 -0
  4. data/Gemfile.lock +54 -6
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +32 -1
  7. data/Rakefile +25 -2
  8. data/app/assets/config/gated_release_manifest.js +2 -0
  9. data/app/assets/images/gated_release/.keep +0 -0
  10. data/app/assets/javascripts/gated_release/application.js +13 -0
  11. data/app/assets/stylesheets/gated_release/application.css +15 -0
  12. data/app/assets/stylesheets/gated_release/gates.css +131 -0
  13. data/app/controllers/gated_release/application_controller.rb +5 -0
  14. data/app/controllers/gated_release/gates_controller.rb +47 -0
  15. data/app/helpers/gated_release/application_helper.rb +12 -0
  16. data/app/jobs/gated_release/application_job.rb +4 -0
  17. data/app/mailers/gated_release/application_mailer.rb +6 -0
  18. data/app/models/gated_release/application_record.rb +5 -0
  19. data/{lib → app/models}/gated_release/gate.rb +9 -2
  20. data/app/views/gated_release/gates/index.html.erb +64 -0
  21. data/app/views/layouts/gated_release/application.html.erb +18 -0
  22. data/config/routes.rb +11 -0
  23. data/gated_release.gemspec +6 -3
  24. data/lib/gated_release.rb +1 -1
  25. data/lib/gated_release/engine.rb +13 -0
  26. data/lib/gated_release/version.rb +1 -1
  27. data/lib/tasks/gated_release_tasks.rake +4 -0
  28. data/spec/dummy/Rakefile +6 -0
  29. data/spec/dummy/app/assets/config/manifest.js +5 -0
  30. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  31. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  32. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  33. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  34. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  35. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  36. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  37. data/spec/dummy/app/jobs/application_job.rb +2 -0
  38. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  39. data/spec/dummy/app/models/application_record.rb +3 -0
  40. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  41. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  42. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  43. data/spec/dummy/bin/bundle +3 -0
  44. data/spec/dummy/bin/rails +4 -0
  45. data/spec/dummy/bin/rake +4 -0
  46. data/spec/dummy/bin/setup +34 -0
  47. data/spec/dummy/bin/update +29 -0
  48. data/spec/dummy/config.ru +5 -0
  49. data/spec/dummy/config/application.rb +15 -0
  50. data/spec/dummy/config/boot.rb +5 -0
  51. data/spec/dummy/config/cable.yml +9 -0
  52. data/spec/dummy/config/database.yml +25 -0
  53. data/spec/dummy/config/environment.rb +5 -0
  54. data/spec/dummy/config/environments/development.rb +54 -0
  55. data/spec/dummy/config/environments/production.rb +86 -0
  56. data/spec/dummy/config/environments/test.rb +42 -0
  57. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  58. data/spec/dummy/config/initializers/assets.rb +11 -0
  59. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  61. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/spec/dummy/config/initializers/inflections.rb +16 -0
  63. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  64. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  65. data/spec/dummy/config/initializers/session_store.rb +3 -0
  66. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  67. data/spec/dummy/config/locales/en.yml +23 -0
  68. data/spec/dummy/config/puma.rb +47 -0
  69. data/spec/dummy/config/routes.rb +3 -0
  70. data/spec/dummy/config/secrets.yml +22 -0
  71. data/spec/dummy/config/spring.rb +6 -0
  72. data/spec/dummy/db/schema.rb +15 -0
  73. data/spec/dummy/public/404.html +67 -0
  74. data/spec/dummy/public/422.html +67 -0
  75. data/spec/dummy/public/500.html +66 -0
  76. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  77. data/spec/dummy/public/apple-touch-icon.png +0 -0
  78. data/spec/dummy/public/favicon.ico +0 -0
  79. data/spec/gated_release_spec.rb +8 -0
  80. data/spec/generators/install/install_generator_spec.rb +25 -0
  81. data/spec/models/gated_release/gate_spec.rb +293 -0
  82. data/spec/spec_helper.rb +36 -0
  83. metadata +160 -4
@@ -0,0 +1,36 @@
1
+ require "bundler/setup"
2
+ require "active_record"
3
+ require "database_cleaner"
4
+
5
+ # Load the dummy app
6
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
7
+
8
+ # Create an in-memory database and run our template migration
9
+ ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
10
+ ActiveRecord::Migration.verbose = false
11
+
12
+ require_relative './../lib/generators/templates/create_gated_release_gates'
13
+ CreateGatedReleaseGates.new.change
14
+
15
+
16
+ RSpec.configure do |config|
17
+ # Enable flags like --only-failures and --next-failure
18
+ config.example_status_persistence_file_path = ".rspec_status"
19
+
20
+ config.expect_with :rspec do |c|
21
+ c.syntax = :expect
22
+ end
23
+
24
+ config.before(:suite) do
25
+ DatabaseCleaner.strategy = :transaction
26
+ DatabaseCleaner.clean_with :truncation
27
+ end
28
+
29
+ config.before(:each) do
30
+ DatabaseCleaner.start
31
+ end
32
+
33
+ config.after(:each) do
34
+ DatabaseCleaner.clean
35
+ end
36
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gated_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Carlin
@@ -31,6 +31,26 @@ dependencies:
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '6'
34
+ - !ruby/object:Gem::Dependency
35
+ name: rails
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '6'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '4.0'
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '6'
34
54
  - !ruby/object:Gem::Dependency
35
55
  name: bundler
36
56
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +80,7 @@ dependencies:
60
80
  - !ruby/object:Gem::Version
61
81
  version: '10.0'
62
82
  - !ruby/object:Gem::Dependency
63
- name: rspec
83
+ name: rspec-rails
64
84
  requirement: !ruby/object:Gem::Requirement
65
85
  requirements:
66
86
  - - "~>"
@@ -127,18 +147,95 @@ files:
127
147
  - ".gitignore"
128
148
  - ".rspec"
129
149
  - ".travis.yml"
150
+ - CHANGELOG.md
130
151
  - CODE_OF_CONDUCT.md
131
152
  - Gemfile
132
153
  - Gemfile.lock
133
154
  - LICENSE.txt
155
+ - MIT-LICENSE
134
156
  - README.md
135
157
  - Rakefile
158
+ - app/assets/config/gated_release_manifest.js
159
+ - app/assets/images/gated_release/.keep
160
+ - app/assets/javascripts/gated_release/application.js
161
+ - app/assets/stylesheets/gated_release/application.css
162
+ - app/assets/stylesheets/gated_release/gates.css
163
+ - app/controllers/gated_release/application_controller.rb
164
+ - app/controllers/gated_release/gates_controller.rb
165
+ - app/helpers/gated_release/application_helper.rb
166
+ - app/jobs/gated_release/application_job.rb
167
+ - app/mailers/gated_release/application_mailer.rb
168
+ - app/models/gated_release/application_record.rb
169
+ - app/models/gated_release/gate.rb
170
+ - app/views/gated_release/gates/index.html.erb
171
+ - app/views/layouts/gated_release/application.html.erb
172
+ - config/routes.rb
136
173
  - gated_release.gemspec
137
174
  - lib/gated_release.rb
138
- - lib/gated_release/gate.rb
175
+ - lib/gated_release/engine.rb
139
176
  - lib/gated_release/version.rb
140
177
  - lib/generators/install_generator.rb
141
178
  - lib/generators/templates/create_gated_release_gates.rb
179
+ - lib/tasks/gated_release_tasks.rake
180
+ - spec/dummy/Rakefile
181
+ - spec/dummy/app/assets/config/manifest.js
182
+ - spec/dummy/app/assets/javascripts/application.js
183
+ - spec/dummy/app/assets/javascripts/cable.js
184
+ - spec/dummy/app/assets/stylesheets/application.css
185
+ - spec/dummy/app/channels/application_cable/channel.rb
186
+ - spec/dummy/app/channels/application_cable/connection.rb
187
+ - spec/dummy/app/controllers/application_controller.rb
188
+ - spec/dummy/app/helpers/application_helper.rb
189
+ - spec/dummy/app/jobs/application_job.rb
190
+ - spec/dummy/app/mailers/application_mailer.rb
191
+ - spec/dummy/app/models/application_record.rb
192
+ - spec/dummy/app/views/layouts/application.html.erb
193
+ - spec/dummy/app/views/layouts/mailer.html.erb
194
+ - spec/dummy/app/views/layouts/mailer.text.erb
195
+ - spec/dummy/bin/bundle
196
+ - spec/dummy/bin/rails
197
+ - spec/dummy/bin/rake
198
+ - spec/dummy/bin/setup
199
+ - spec/dummy/bin/update
200
+ - spec/dummy/config.ru
201
+ - spec/dummy/config/application.rb
202
+ - spec/dummy/config/boot.rb
203
+ - spec/dummy/config/cable.yml
204
+ - spec/dummy/config/database.yml
205
+ - spec/dummy/config/environment.rb
206
+ - spec/dummy/config/environments/development.rb
207
+ - spec/dummy/config/environments/production.rb
208
+ - spec/dummy/config/environments/test.rb
209
+ - spec/dummy/config/initializers/application_controller_renderer.rb
210
+ - spec/dummy/config/initializers/assets.rb
211
+ - spec/dummy/config/initializers/backtrace_silencers.rb
212
+ - spec/dummy/config/initializers/cookies_serializer.rb
213
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
214
+ - spec/dummy/config/initializers/inflections.rb
215
+ - spec/dummy/config/initializers/mime_types.rb
216
+ - spec/dummy/config/initializers/new_framework_defaults.rb
217
+ - spec/dummy/config/initializers/session_store.rb
218
+ - spec/dummy/config/initializers/wrap_parameters.rb
219
+ - spec/dummy/config/locales/en.yml
220
+ - spec/dummy/config/puma.rb
221
+ - spec/dummy/config/routes.rb
222
+ - spec/dummy/config/secrets.yml
223
+ - spec/dummy/config/spring.rb
224
+ - spec/dummy/db/development.sqlite3
225
+ - spec/dummy/db/schema.rb
226
+ - spec/dummy/db/test.sqlite3
227
+ - spec/dummy/log/development.log
228
+ - spec/dummy/log/test.log
229
+ - spec/dummy/public/404.html
230
+ - spec/dummy/public/422.html
231
+ - spec/dummy/public/500.html
232
+ - spec/dummy/public/apple-touch-icon-precomposed.png
233
+ - spec/dummy/public/apple-touch-icon.png
234
+ - spec/dummy/public/favicon.ico
235
+ - spec/gated_release_spec.rb
236
+ - spec/generators/install/install_generator_spec.rb
237
+ - spec/models/gated_release/gate_spec.rb
238
+ - spec/spec_helper.rb
142
239
  homepage: http://www.github.com/redbubble/gated_release
143
240
  licenses:
144
241
  - MIT
@@ -163,4 +260,63 @@ rubygems_version: 2.4.5.1
163
260
  signing_key:
164
261
  specification_version: 4
165
262
  summary: Allow split code paths.
166
- test_files: []
263
+ test_files:
264
+ - spec/dummy/app/assets/config/manifest.js
265
+ - spec/dummy/app/assets/javascripts/application.js
266
+ - spec/dummy/app/assets/javascripts/cable.js
267
+ - spec/dummy/app/assets/stylesheets/application.css
268
+ - spec/dummy/app/channels/application_cable/channel.rb
269
+ - spec/dummy/app/channels/application_cable/connection.rb
270
+ - spec/dummy/app/controllers/application_controller.rb
271
+ - spec/dummy/app/helpers/application_helper.rb
272
+ - spec/dummy/app/jobs/application_job.rb
273
+ - spec/dummy/app/mailers/application_mailer.rb
274
+ - spec/dummy/app/models/application_record.rb
275
+ - spec/dummy/app/views/layouts/application.html.erb
276
+ - spec/dummy/app/views/layouts/mailer.html.erb
277
+ - spec/dummy/app/views/layouts/mailer.text.erb
278
+ - spec/dummy/bin/bundle
279
+ - spec/dummy/bin/rails
280
+ - spec/dummy/bin/rake
281
+ - spec/dummy/bin/setup
282
+ - spec/dummy/bin/update
283
+ - spec/dummy/config/application.rb
284
+ - spec/dummy/config/boot.rb
285
+ - spec/dummy/config/cable.yml
286
+ - spec/dummy/config/database.yml
287
+ - spec/dummy/config/environment.rb
288
+ - spec/dummy/config/environments/development.rb
289
+ - spec/dummy/config/environments/production.rb
290
+ - spec/dummy/config/environments/test.rb
291
+ - spec/dummy/config/initializers/application_controller_renderer.rb
292
+ - spec/dummy/config/initializers/assets.rb
293
+ - spec/dummy/config/initializers/backtrace_silencers.rb
294
+ - spec/dummy/config/initializers/cookies_serializer.rb
295
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
296
+ - spec/dummy/config/initializers/inflections.rb
297
+ - spec/dummy/config/initializers/mime_types.rb
298
+ - spec/dummy/config/initializers/new_framework_defaults.rb
299
+ - spec/dummy/config/initializers/session_store.rb
300
+ - spec/dummy/config/initializers/wrap_parameters.rb
301
+ - spec/dummy/config/locales/en.yml
302
+ - spec/dummy/config/puma.rb
303
+ - spec/dummy/config/routes.rb
304
+ - spec/dummy/config/secrets.yml
305
+ - spec/dummy/config/spring.rb
306
+ - spec/dummy/config.ru
307
+ - spec/dummy/db/development.sqlite3
308
+ - spec/dummy/db/schema.rb
309
+ - spec/dummy/db/test.sqlite3
310
+ - spec/dummy/log/development.log
311
+ - spec/dummy/log/test.log
312
+ - spec/dummy/public/404.html
313
+ - spec/dummy/public/422.html
314
+ - spec/dummy/public/500.html
315
+ - spec/dummy/public/apple-touch-icon-precomposed.png
316
+ - spec/dummy/public/apple-touch-icon.png
317
+ - spec/dummy/public/favicon.ico
318
+ - spec/dummy/Rakefile
319
+ - spec/gated_release_spec.rb
320
+ - spec/generators/install/install_generator_spec.rb
321
+ - spec/models/gated_release/gate_spec.rb
322
+ - spec/spec_helper.rb