push_type_core 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/concerns/push_type/customizable.rb +6 -0
- data/lib/push_type/version.rb +1 -1
- data/test/dummy/config/initializers/push_type.rb +1 -1
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/migrate/{20161221151009_create_push_type_users.push_type.rb → 20170130110706_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161221151010_create_push_type_nodes.push_type.rb → 20170130110707_create_push_type_nodes.push_type.rb} +0 -0
- 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
- data/test/dummy/db/migrate/{20161221151012_create_push_type_assets.push_type.rb → 20170130110709_create_push_type_assets.push_type.rb} +0 -0
- 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
- 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
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +7409 -7368
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Km/KmWNTOX1s_-TvpqmX-X6Fw65vQt4m95mKig2Dk3PiOc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{yb/yb-U5yfNYhDLcF40lGsoZmwuKuTCnd85WtB2niQzs4A.cache → n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{a-/a-Z-z9xlBfFN39Xtummt_jLU9jq55bNgSWEcKL-eXxI.cache → wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache} +0 -0
- data/test/dummy/tmp/generators/config/initializers/push_type.rb +1 -1
- data/test/models/concerns/push_type/customizable_test.rb +14 -0
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 844fef2133d60f5234660bb95de103e181e64bf2
|
4
|
+
data.tar.gz: c420335c59c553a0a5a957e12a7fd25c58da6481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29e70eb9bfae486b64e44de1e773fbba4f695a488d52ed58227529c40ced7f28c87c341a5983722a007d3a2a714220fafc760fda87eb4628bdd4aa70d903524
|
7
|
+
data.tar.gz: bc4c911c52093151f2d1d07af64fe6c36894761bcbc38da94adb793fb475bba7d9a96bf7a33d48e7b7f94f8715f7fcc231eb9eaf9f62e73c418393bfad0ebf98
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module PushType
|
2
2
|
module Customizable
|
3
3
|
extend ActiveSupport::Concern
|
4
|
+
include ActiveModel::Dirty
|
4
5
|
|
5
6
|
included do
|
6
7
|
after_initialize :initialize_fields
|
@@ -58,12 +59,17 @@ module PushType
|
|
58
59
|
fields[name] = [ field_type(kind), opts, blk ].compact
|
59
60
|
store_accessor :field_store, name
|
60
61
|
|
62
|
+
# set up ActiveModel::Dirty for methods
|
63
|
+
define_attribute_method name.to_s
|
64
|
+
|
61
65
|
# Set inline validates
|
62
66
|
validates name, opts[:validates] if opts[:validates]
|
63
67
|
|
64
68
|
# Override setter accessor
|
65
69
|
define_method "#{ name }=".to_sym do |val|
|
66
70
|
f = initialized_field(name)
|
71
|
+
|
72
|
+
send(:"#{name}_will_change!") unless val == f.value
|
67
73
|
super f.primitive.to_json(val)
|
68
74
|
end
|
69
75
|
|
data/lib/push_type/version.rb
CHANGED
@@ -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 = '
|
48
|
+
# config.dragonfly_secret = 'e4bfa630cd53be8cb92c496e5c36f8fb786e45ab270ee525b953ed0b0cb39d1f'
|
49
49
|
|
50
50
|
end
|
@@ -11,10 +11,10 @@
|
|
11
11
|
# if you're sharing your code publicly.
|
12
12
|
|
13
13
|
development:
|
14
|
-
secret_key_base:
|
14
|
+
secret_key_base: 256e2375168b508abd142af484c1f9488e4bfa85baef0cc22ef50a465980cf16d886e4e778201ae23e8b9efc1465eb7e7d4bbd1c3c5cb7b8eeb67c4895441265
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
17
|
+
secret_key_base: 42a3695afc5165682a742e5801ce7695736e7eb4ed5ab7bb8e262986475c50452d9a06fa94cdb084907a95a582589ad91f96a99f38e09095e0833e33b5234430
|
18
18
|
|
19
19
|
# Do not keep production secrets in the repository,
|
20
20
|
# instead read values from the environment.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 20170130110711) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|