green_flag 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c89d938ce1a5af5ec8e49fbeabe6688ceaa2a292
4
- data.tar.gz: ff1b95495b303fcf5c226dbfa202b69e2132a5c4
3
+ metadata.gz: 19204e9325879261873531d80f78464a36bb4241
4
+ data.tar.gz: 646f6720a01657995dfb8550390202b977a94923
5
5
  SHA512:
6
- metadata.gz: e5032ee051b6f07b04c90e79a0d468f122172d8cea34f0f1fd725a5653491f932f935d1f754d0ae4fd82f2e7e8ca1db47132d65270063ead9c4926f07898efd6
7
- data.tar.gz: 472e5a4b19cd0f25eba5a044d4e4f6416fdb1ef60e8689a75c4bf1b388c6d3b637405db9271611477653c4ea20f3787ff6c12cf368d9841e720ec1825bdc7ef1
6
+ metadata.gz: 49427f6ca9ecfce09de29881ac4b5d2b632265f09d001e23029968dbe6bc0114f1be108fca65bb48818c07e8cbc6a28f045fc5e8aa76ce51240938d4a76d3e58
7
+ data.tar.gz: 20968b542619374ffa37fa6c93240000ab7bd15406fc0910e02795810c9d4348ee097a3bd25495b8f69b8cbdd4f3cf2c3be181992f5b8ddc7244fa3c4038ded8
data/Gemfile CHANGED
@@ -5,9 +5,6 @@ source "https://rubygems.org"
5
5
  # development dependencies will be added by default to the :development group.
6
6
  gemspec
7
7
 
8
- # jquery-rails is used by the dummy application
9
- gem "jquery-rails"
10
-
11
8
  # Declare any dependencies that are still in development here instead of in
12
9
  # your gemspec. These might include edge Rails or gems from your path or
13
10
  # Git. Remember to move these dependencies to your gemspec before releasing
@@ -0,0 +1,7 @@
1
+ require 'activerecord-concurrent-index'
2
+
3
+ class AddIndexToFeatureDecisions < ActiveRecord::Migration
4
+ def change
5
+ add_index_concurrently :green_flag_feature_decisions, :feature_id
6
+ end
7
+ end
data/green_flag.gemspec CHANGED
@@ -26,7 +26,11 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency "rails", "~> 3.2"
27
27
  s.add_dependency "pg"
28
28
  s.add_dependency "activerecord-concurrent-index"
29
+
30
+ # Assets for the admin pages
31
+ s.add_dependency "jquery-rails"
29
32
  s.add_dependency "sass-rails"
33
+ s.add_dependency "uglifier"
30
34
 
31
35
  s.add_development_dependency 'rspec-rails', "~> 2"
32
36
  s.add_development_dependency 'factory_girl_rails'
data/lib/green_flag.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "green_flag/engine"
2
+ require "jquery-rails"
2
3
 
3
4
  module GreenFlag
4
5
  end
@@ -12,5 +12,15 @@ module GreenFlag
12
12
  initializer "green_flag.site_visitor_management" do |app|
13
13
  ActionController::Base.send :include, GreenFlag::SiteVisitorManagement
14
14
  end
15
+
16
+ initializer "Asset precompilation", :group => :all do |app|
17
+ app.config.assets.precompile += %w(
18
+ green_flag/admin/feature-deletion.js
19
+ green_flag/admin/features.js
20
+ green_flag/admin/rules.js
21
+ green_flag/admin/features.css
22
+ green_flag/admin/rules.css
23
+ )
24
+ end
15
25
  end
16
26
  end
@@ -1,3 +1,3 @@
1
1
  module GreenFlag
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -41,3 +41,7 @@ development: &development
41
41
  test:
42
42
  <<: *development
43
43
  database: green_flag_dummy_test
44
+
45
+ production:
46
+ <<: *development
47
+
@@ -23,6 +23,7 @@ ActiveRecord::Schema.define(:version => 20150726204409) do
23
23
  t.integer "rule_id"
24
24
  end
25
25
 
26
+ add_index "green_flag_feature_decisions", ["feature_id"], :name => "index_green_flag_feature_decisions_on_feature_id"
26
27
  add_index "green_flag_feature_decisions", ["site_visitor_id", "feature_id"], :name => "index_gf_feature_decisions_on_site_visitor_id_feature_id", :unique => true
27
28
 
28
29
  create_table "green_flag_feature_events", :force => true do |t|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: green_flag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morton
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-06 00:00:00.000000000 Z
13
+ date: 2015-10-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -54,6 +54,20 @@ dependencies:
54
54
  - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: jquery-rails
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
57
71
  - !ruby/object:Gem::Dependency
58
72
  name: sass-rails
59
73
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +82,20 @@ dependencies:
68
82
  - - '>='
69
83
  - !ruby/object:Gem::Version
70
84
  version: '0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: uglifier
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
71
99
  - !ruby/object:Gem::Dependency
72
100
  name: rspec-rails
73
101
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +206,7 @@ files:
178
206
  - db/migrate/20140513203728_set_default_percentage_in_green_flag_rules.rb
179
207
  - db/migrate/20140514202337_require_ordering_for_green_flag_rules.rb
180
208
  - db/migrate/20140516214909_add_restrictions_to_green_flag_rules.rb
209
+ - db/migrate/20140818155533_add_index_to_feature_decisions.rb
181
210
  - db/migrate/20150211214159_create_green_flag_feature_events.rb
182
211
  - db/migrate/20150213191101_add_rule_id_to_green_flag_feature_decisions.rb
183
212
  - db/migrate/20150218035000_add_version_number_to_green_flag_rules.rb
@@ -230,6 +259,7 @@ files:
230
259
  - spec/dummy/lib/assets/.gitkeep
231
260
  - spec/dummy/log/.gitkeep
232
261
  - spec/dummy/log/development.log
262
+ - spec/dummy/log/production.log
233
263
  - spec/dummy/log/test.log
234
264
  - spec/dummy/public/404.html
235
265
  - spec/dummy/public/422.html
@@ -239,25 +269,31 @@ files:
239
269
  - spec/dummy/tmp/cache/assets/C4A/640/sprockets%2F8a0527fb4c2402950e34518216e856b5
240
270
  - spec/dummy/tmp/cache/assets/C6A/420/sprockets%2F10f5bf24a82184a4790391b0321bd318
241
271
  - spec/dummy/tmp/cache/assets/CB2/480/sprockets%2Fdffc90cb8265f2042063557905188b1f
242
- - spec/dummy/tmp/cache/assets/CB9/C30/sprockets%2F8c5e58364159f49f2242f171653cadf1
272
+ - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
243
273
  - spec/dummy/tmp/cache/assets/CEA/0F0/sprockets%2F7d5273f602c66c790a79a75c088ff01d
244
- - spec/dummy/tmp/cache/assets/D05/9B0/sprockets%2Fa5b09f162635302e890302aed86bbd6e
245
274
  - spec/dummy/tmp/cache/assets/D1A/760/sprockets%2Fc2f1fda4977960d755da14289d49b51b
275
+ - spec/dummy/tmp/cache/assets/D21/C00/sprockets%2F3bf5f7bbf854f8cf700927f6f0214695
276
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
246
277
  - spec/dummy/tmp/cache/assets/D34/660/sprockets%2Fcfd906f8a0a2386735d1dcf52cc40403
247
- - spec/dummy/tmp/cache/assets/D3E/110/sprockets%2Fcb870c7f25e6162da93a720e1be65c76
248
278
  - spec/dummy/tmp/cache/assets/D3E/340/sprockets%2Fad85a878e73a3075722c09b0bdc17cd8
249
279
  - spec/dummy/tmp/cache/assets/D3E/E90/sprockets%2F07bfdbaf75a7c43c05315078db879c43
250
280
  - spec/dummy/tmp/cache/assets/D40/260/sprockets%2F35049c3c82baf75b9adfc9662c05e172
281
+ - spec/dummy/tmp/cache/assets/D4C/750/sprockets%2Ff89e7f36dd6a2444d9e3a60bbe480826
282
+ - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
283
+ - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
251
284
  - spec/dummy/tmp/cache/assets/D62/040/sprockets%2F388ca040babbebd910f7338b606736bd
252
285
  - spec/dummy/tmp/cache/assets/D6F/650/sprockets%2F9710be3c17f826e702a9ccea335cdf83
253
- - spec/dummy/tmp/cache/assets/D82/990/sprockets%2F708fb789dee8ecdf5a4a39b9216c1295
254
286
  - spec/dummy/tmp/cache/assets/D8D/1D0/sprockets%2F0e45f412d3a303eda9d7d10d8fc3a5d3
287
+ - spec/dummy/tmp/cache/assets/D8D/310/sprockets%2F3a6f4ae40a5010f053cf78ecd16c8a2e
255
288
  - spec/dummy/tmp/cache/assets/D9D/660/sprockets%2Fd306fa5f1db77c33117fbf27276b3ffd
289
+ - spec/dummy/tmp/cache/assets/DA4/230/sprockets%2Ff9684c9ada0be17c43e45b4803ced9a7
290
+ - spec/dummy/tmp/cache/assets/DAE/630/sprockets%2Ff84b76f728c95a9db0ebd6ab800786ce
291
+ - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
256
292
  - spec/dummy/tmp/cache/assets/DF4/060/sprockets%2F3a6c5e41f435db6af7fb91fa0da49bb1
257
293
  - spec/dummy/tmp/cache/assets/DF8/280/sprockets%2Fa245a66abbfe76d9de5aa5a40c557f0e
258
294
  - spec/dummy/tmp/cache/assets/DFC/AB0/sprockets%2Fcbca52f6723bcc63ade1b269e299a7bf
259
- - spec/dummy/tmp/cache/assets/E0D/870/sprockets%2Fc21ca057d9f87e8cb797dbe5b8fe3bd2
260
- - spec/dummy/tmp/pids/server.pid
295
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
296
+ - spec/dummy/tmp/cache/assets/E29/A10/sprockets%2Fc2decd92bc1aa87dff19165d73bdbe05
261
297
  - spec/factories/green_flag/feature.rb
262
298
  - spec/factories/green_flag/feature_decision.rb
263
299
  - spec/factories/green_flag/feature_event.rb
@@ -331,6 +367,7 @@ test_files:
331
367
  - spec/dummy/db/migrate/20150726204409_add_email_to_users.rb
332
368
  - spec/dummy/db/schema.rb
333
369
  - spec/dummy/log/development.log
370
+ - spec/dummy/log/production.log
334
371
  - spec/dummy/log/test.log
335
372
  - spec/dummy/public/404.html
336
373
  - spec/dummy/public/422.html
@@ -342,25 +379,31 @@ test_files:
342
379
  - spec/dummy/tmp/cache/assets/C4A/640/sprockets%2F8a0527fb4c2402950e34518216e856b5
343
380
  - spec/dummy/tmp/cache/assets/C6A/420/sprockets%2F10f5bf24a82184a4790391b0321bd318
344
381
  - spec/dummy/tmp/cache/assets/CB2/480/sprockets%2Fdffc90cb8265f2042063557905188b1f
345
- - spec/dummy/tmp/cache/assets/CB9/C30/sprockets%2F8c5e58364159f49f2242f171653cadf1
382
+ - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
346
383
  - spec/dummy/tmp/cache/assets/CEA/0F0/sprockets%2F7d5273f602c66c790a79a75c088ff01d
347
- - spec/dummy/tmp/cache/assets/D05/9B0/sprockets%2Fa5b09f162635302e890302aed86bbd6e
348
384
  - spec/dummy/tmp/cache/assets/D1A/760/sprockets%2Fc2f1fda4977960d755da14289d49b51b
385
+ - spec/dummy/tmp/cache/assets/D21/C00/sprockets%2F3bf5f7bbf854f8cf700927f6f0214695
386
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
349
387
  - spec/dummy/tmp/cache/assets/D34/660/sprockets%2Fcfd906f8a0a2386735d1dcf52cc40403
350
- - spec/dummy/tmp/cache/assets/D3E/110/sprockets%2Fcb870c7f25e6162da93a720e1be65c76
351
388
  - spec/dummy/tmp/cache/assets/D3E/340/sprockets%2Fad85a878e73a3075722c09b0bdc17cd8
352
389
  - spec/dummy/tmp/cache/assets/D3E/E90/sprockets%2F07bfdbaf75a7c43c05315078db879c43
353
390
  - spec/dummy/tmp/cache/assets/D40/260/sprockets%2F35049c3c82baf75b9adfc9662c05e172
391
+ - spec/dummy/tmp/cache/assets/D4C/750/sprockets%2Ff89e7f36dd6a2444d9e3a60bbe480826
392
+ - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
393
+ - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
354
394
  - spec/dummy/tmp/cache/assets/D62/040/sprockets%2F388ca040babbebd910f7338b606736bd
355
395
  - spec/dummy/tmp/cache/assets/D6F/650/sprockets%2F9710be3c17f826e702a9ccea335cdf83
356
- - spec/dummy/tmp/cache/assets/D82/990/sprockets%2F708fb789dee8ecdf5a4a39b9216c1295
357
396
  - spec/dummy/tmp/cache/assets/D8D/1D0/sprockets%2F0e45f412d3a303eda9d7d10d8fc3a5d3
397
+ - spec/dummy/tmp/cache/assets/D8D/310/sprockets%2F3a6f4ae40a5010f053cf78ecd16c8a2e
358
398
  - spec/dummy/tmp/cache/assets/D9D/660/sprockets%2Fd306fa5f1db77c33117fbf27276b3ffd
399
+ - spec/dummy/tmp/cache/assets/DA4/230/sprockets%2Ff9684c9ada0be17c43e45b4803ced9a7
400
+ - spec/dummy/tmp/cache/assets/DAE/630/sprockets%2Ff84b76f728c95a9db0ebd6ab800786ce
401
+ - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
359
402
  - spec/dummy/tmp/cache/assets/DF4/060/sprockets%2F3a6c5e41f435db6af7fb91fa0da49bb1
360
403
  - spec/dummy/tmp/cache/assets/DF8/280/sprockets%2Fa245a66abbfe76d9de5aa5a40c557f0e
361
404
  - spec/dummy/tmp/cache/assets/DFC/AB0/sprockets%2Fcbca52f6723bcc63ade1b269e299a7bf
362
- - spec/dummy/tmp/cache/assets/E0D/870/sprockets%2Fc21ca057d9f87e8cb797dbe5b8fe3bd2
363
- - spec/dummy/tmp/pids/server.pid
405
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
406
+ - spec/dummy/tmp/cache/assets/E29/A10/sprockets%2Fc2decd92bc1aa87dff19165d73bdbe05
364
407
  - spec/factories/green_flag/feature.rb
365
408
  - spec/factories/green_flag/feature_decision.rb
366
409
  - spec/factories/green_flag/feature_event.rb