push_type_core 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/concerns/push_type/customizable.rb +6 -0
  3. data/lib/push_type/version.rb +1 -1
  4. data/test/dummy/config/initializers/push_type.rb +1 -1
  5. data/test/dummy/config/secrets.yml +2 -2
  6. data/test/dummy/db/migrate/{20161221151009_create_push_type_users.push_type.rb → 20170130110706_create_push_type_users.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20161221151010_create_push_type_nodes.push_type.rb → 20170130110707_create_push_type_nodes.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20161221151011_create_push_type_node_hierarchies.push_type.rb → 20170130110708_create_push_type_node_hierarchies.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20161221151012_create_push_type_assets.push_type.rb → 20170130110709_create_push_type_assets.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20161221151013_add_field_store_default_values.push_type.rb → 20170130110710_add_field_store_default_values.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20161221151014_drop_legacy_push_type_taxonomies.push_type.rb → 20170130110711_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  12. data/test/dummy/db/schema.rb +1 -1
  13. data/test/dummy/log/test.log +7409 -7368
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Km/KmWNTOX1s_-TvpqmX-X6Fw65vQt4m95mKig2Dk3PiOc.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{yb/yb-U5yfNYhDLcF40lGsoZmwuKuTCnd85WtB2niQzs4A.cache → n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache} +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{a-/a-Z-z9xlBfFN39Xtummt_jLU9jq55bNgSWEcKL-eXxI.cache → wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache} +0 -0
  18. data/test/dummy/tmp/generators/config/initializers/push_type.rb +1 -1
  19. data/test/models/concerns/push_type/customizable_test.rb +14 -0
  20. metadata +18 -18
@@ -45,6 +45,6 @@ PushType.setup do |config|
45
45
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
46
46
  # }
47
47
 
48
- # config.dragonfly_secret = '2c4fd450e5cb982c17af296236381a8525ccccc2f45d6de75cd1f4e318bffb58'
48
+ # config.dragonfly_secret = '2a7c6ad6c485360b1de7f598b8d7d8109c9f0c48fc77322c5ac6fbcad0956ac0'
49
49
 
50
50
  end
@@ -29,5 +29,19 @@ module PushType
29
29
  it { page.attribute_for_inspect(:field_store).must_equal "[:foo, :bar, :baz, :qux]" }
30
30
  end
31
31
 
32
+ describe '#attribute_changed?' do
33
+ it { page.foo_changed?.must_equal false }
34
+ it { page.changes.key?(:foo).must_equal false }
35
+
36
+ it 'returns true when attribute is changed' do
37
+ page.foo = 'value'
38
+ page.foo_changed?.must_equal true
39
+ end
40
+
41
+ it 'returns true when attribute is changed' do
42
+ page.foo = 'value'
43
+ page.changes.key?(:foo).must_equal true
44
+ end
45
+ end
32
46
  end
33
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push_type_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Russell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -242,12 +242,12 @@ files:
242
242
  - test/dummy/config/routes.rb
243
243
  - test/dummy/config/secrets.yml
244
244
  - test/dummy/config/spring.rb
245
- - test/dummy/db/migrate/20161221151009_create_push_type_users.push_type.rb
246
- - test/dummy/db/migrate/20161221151010_create_push_type_nodes.push_type.rb
247
- - test/dummy/db/migrate/20161221151011_create_push_type_node_hierarchies.push_type.rb
248
- - test/dummy/db/migrate/20161221151012_create_push_type_assets.push_type.rb
249
- - test/dummy/db/migrate/20161221151013_add_field_store_default_values.push_type.rb
250
- - test/dummy/db/migrate/20161221151014_drop_legacy_push_type_taxonomies.push_type.rb
245
+ - test/dummy/db/migrate/20170130110706_create_push_type_users.push_type.rb
246
+ - test/dummy/db/migrate/20170130110707_create_push_type_nodes.push_type.rb
247
+ - test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
248
+ - test/dummy/db/migrate/20170130110709_create_push_type_assets.push_type.rb
249
+ - test/dummy/db/migrate/20170130110710_add_field_store_default_values.push_type.rb
250
+ - test/dummy/db/migrate/20170130110711_drop_legacy_push_type_taxonomies.push_type.rb
251
251
  - test/dummy/db/schema.rb
252
252
  - test/dummy/db/seeds.rb
253
253
  - test/dummy/log/test.log
@@ -270,14 +270,14 @@ files:
270
270
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ST/STVCwvSaGT6imMs-7Hd-EOpnJ7TVJ1tnJmqjDS00KbA.cache
271
271
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
272
272
  - test/dummy/tmp/cache/assets/sprockets/v3.0/_8/_8-gybmYphPEXoBFNQMOjgOegzE4ejRh2WT3qKxlES4.cache
273
- - test/dummy/tmp/cache/assets/sprockets/v3.0/a-/a-Z-z9xlBfFN39Xtummt_jLU9jq55bNgSWEcKL-eXxI.cache
274
273
  - test/dummy/tmp/cache/assets/sprockets/v3.0/du/duD181BDwQ_-mqj8kFgYtv-uO0UIiKc2tlilPxBUxOc.cache
275
274
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache
276
275
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
276
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache
277
277
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
278
278
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
279
279
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
280
- - test/dummy/tmp/cache/assets/sprockets/v3.0/yb/yb-U5yfNYhDLcF40lGsoZmwuKuTCnd85WtB2niQzs4A.cache
280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache
281
281
  - test/dummy/tmp/generators/config/initializers/push_type.rb
282
282
  - test/dummy/tmp/generators/config/routes.rb
283
283
  - test/fields/push_type/asset_field_test.rb
@@ -399,12 +399,12 @@ test_files:
399
399
  - test/dummy/config/secrets.yml
400
400
  - test/dummy/config/spring.rb
401
401
  - test/dummy/config.ru
402
- - test/dummy/db/migrate/20161221151009_create_push_type_users.push_type.rb
403
- - test/dummy/db/migrate/20161221151010_create_push_type_nodes.push_type.rb
404
- - test/dummy/db/migrate/20161221151011_create_push_type_node_hierarchies.push_type.rb
405
- - test/dummy/db/migrate/20161221151012_create_push_type_assets.push_type.rb
406
- - test/dummy/db/migrate/20161221151013_add_field_store_default_values.push_type.rb
407
- - test/dummy/db/migrate/20161221151014_drop_legacy_push_type_taxonomies.push_type.rb
402
+ - test/dummy/db/migrate/20170130110706_create_push_type_users.push_type.rb
403
+ - test/dummy/db/migrate/20170130110707_create_push_type_nodes.push_type.rb
404
+ - test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
405
+ - test/dummy/db/migrate/20170130110709_create_push_type_assets.push_type.rb
406
+ - test/dummy/db/migrate/20170130110710_add_field_store_default_values.push_type.rb
407
+ - test/dummy/db/migrate/20170130110711_drop_legacy_push_type_taxonomies.push_type.rb
408
408
  - test/dummy/db/schema.rb
409
409
  - test/dummy/db/seeds.rb
410
410
  - test/dummy/log/test.log
@@ -421,7 +421,6 @@ test_files:
421
421
  - test/dummy/tmp/cache/assets/sprockets/v3.0/18/18dz1Q7HxdmdXOLUDZIBmJsMrS-UjkTBckfjwwPeuy0.cache
422
422
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
423
423
  - test/dummy/tmp/cache/assets/sprockets/v3.0/_8/_8-gybmYphPEXoBFNQMOjgOegzE4ejRh2WT3qKxlES4.cache
424
- - test/dummy/tmp/cache/assets/sprockets/v3.0/a-/a-Z-z9xlBfFN39Xtummt_jLU9jq55bNgSWEcKL-eXxI.cache
425
424
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjkZZ0bYHBy9yN_77SEGLPoRNWXOgJT68Hg6wQiq7JA.cache
426
425
  - test/dummy/tmp/cache/assets/sprockets/v3.0/du/duD181BDwQ_-mqj8kFgYtv-uO0UIiKc2tlilPxBUxOc.cache
427
426
  - test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
@@ -431,12 +430,13 @@ test_files:
431
430
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
432
431
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbbWeqaG4K1CMhBNZcK8Pkh70xk7QcBiJ8rGEbYThoU.cache
433
432
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
433
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache
434
434
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
435
435
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
436
436
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
437
437
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ST/STVCwvSaGT6imMs-7Hd-EOpnJ7TVJ1tnJmqjDS00KbA.cache
438
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache
438
439
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
439
- - test/dummy/tmp/cache/assets/sprockets/v3.0/yb/yb-U5yfNYhDLcF40lGsoZmwuKuTCnd85WtB2niQzs4A.cache
440
440
  - test/dummy/tmp/generators/config/initializers/push_type.rb
441
441
  - test/dummy/tmp/generators/config/routes.rb
442
442
  - test/fields/push_type/asset_field_test.rb