push_type_core 0.5.0.alpha.2 → 0.5.0.alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/fields/push_type/asset_field.rb +5 -16
- data/app/fields/push_type/date_field.rb +2 -9
- data/app/fields/push_type/markdown_field.rb +4 -12
- data/app/fields/push_type/matrix_field.rb +11 -11
- data/app/fields/push_type/node_field.rb +22 -0
- data/app/fields/push_type/number_field.rb +3 -9
- data/app/fields/push_type/repeater_field.rb +7 -9
- data/app/fields/push_type/select_field.rb +7 -10
- data/app/fields/push_type/tag_list_field.rb +5 -11
- data/app/fields/push_type/taxonomy_field.rb +6 -47
- data/app/fields/push_type/text_field.rb +3 -3
- data/app/fields/push_type/time_field.rb +2 -9
- data/app/models/concerns/push_type/customizable.rb +8 -8
- data/db/migrate/20150531183944_add_field_store_default_values.rb +6 -0
- data/lib/generators/push_type/field/templates/field.rb +1 -1
- data/lib/push_type/field_type.rb +9 -53
- data/lib/push_type/fields/arrays.rb +23 -0
- data/lib/push_type/fields/base.rb +65 -0
- data/lib/push_type/fields/class_methods.rb +21 -0
- data/lib/push_type/fields/relations.rb +39 -0
- data/lib/push_type/fields/ui.rb +16 -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/20150601132822_add_field_store_default_values.push_type.rb +7 -0
- data/test/dummy/db/schema.rb +7 -7
- data/test/dummy/log/test.log +2390 -2383
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-Sjd8yE8radAZWLZz1Hn9eTc5vPZke6_-U1eg-KNjy8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RwmiAHIoiRN917L4TQ8saQaj1DsQgMpS97RYvkK2D5M.cache +0 -0
- data/test/dummy/tmp/generators/app/models/category.rb +6 -0
- data/test/dummy/tmp/generators/app/views/taxonomies/category.html.erb +3 -0
- data/test/lib/push_type/field_type_test.rb +0 -8
- data/test/models/concerns/push_type/customizable_test.rb +1 -1
- metadata +31 -21
- data/app/fields/push_type/array_field.rb +0 -15
- data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +0 -12
- /data/test/dummy/db/migrate/{20150429164551_create_push_type_users.push_type.rb → 20150601132816_create_push_type_users.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150429164552_create_push_type_nodes.push_type.rb → 20150601132817_create_push_type_nodes.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150429164553_create_push_type_node_hierarchies.push_type.rb → 20150601132818_create_push_type_node_hierarchies.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150429164554_create_push_type_assets.push_type.rb → 20150601132819_create_push_type_assets.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150429164555_create_push_type_taxonomies.push_type.rb → 20150601132820_create_push_type_taxonomies.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150429164556_create_push_type_taxonomy_hierarchies.push_type.rb → 20150601132821_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
- /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{BL-JC9Mha5EbAlzAR0-4qZvqO8u_54SF5Z2ZaoDjlfw.cache → H_FtcM4uZms6K7jOADXRW2-Q5luNbbboPJ8haQyA17A.cache} +0 -0
- /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{OC9Pezno0-bFKhuLASN_oxeMelP7hAYHfMDOdC916tY.cache → khjpnuHaHw24GnTbWlsRS6uIuTqIkrfvc2dY1aZWtpk.cache} +0 -0
data/lib/push_type/version.rb
CHANGED
@@ -33,6 +33,6 @@ PushType.setup do |config|
|
|
33
33
|
# secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
|
34
34
|
# }
|
35
35
|
|
36
|
-
# config.dragonfly_secret = '
|
36
|
+
# config.dragonfly_secret = '83a5792fddd87faa448f1d6c1c82929f94672e15ac409d8ca86f2831d0afe0c9'
|
37
37
|
|
38
38
|
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: 3e76757bba6f2b80ef66fdc027eaeced7d1fd31949061a510701a7180f1abbc94671d0d7fec047c6d98c3af15afa5e43831601a3ee567ccde83e716f3e0294e2
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
17
|
+
secret_key_base: 13ff88a99d182c14e823d02cac1b0ca49fa0008e05d73dcdd3186480d81adefd1421ed548456d76e0f0511eaba9ce0d161976737c3405223eec818ba43697864
|
18
18
|
|
19
19
|
# Do not keep production secrets in the repository,
|
20
20
|
# instead read values from the environment.
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This migration comes from push_type (originally 20150531183944)
|
2
|
+
class AddFieldStoreDefaultValues < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
change_column :push_type_nodes, :field_store, :jsonb, default: {}, null: false
|
5
|
+
change_column :push_type_users, :field_store, :jsonb, default: {}, null: false
|
6
|
+
end
|
7
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150601132822) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -44,7 +44,7 @@ ActiveRecord::Schema.define(version: 20150429164556) do
|
|
44
44
|
t.string "type"
|
45
45
|
t.string "title"
|
46
46
|
t.string "slug"
|
47
|
-
t.jsonb "field_store"
|
47
|
+
t.jsonb "field_store", default: {}, null: false
|
48
48
|
t.uuid "parent_id"
|
49
49
|
t.integer "sort_order"
|
50
50
|
t.integer "status"
|
@@ -52,8 +52,8 @@ ActiveRecord::Schema.define(version: 20150429164556) do
|
|
52
52
|
t.datetime "published_to"
|
53
53
|
t.uuid "creator_id"
|
54
54
|
t.uuid "updater_id"
|
55
|
-
t.datetime "created_at",
|
56
|
-
t.datetime "updated_at",
|
55
|
+
t.datetime "created_at", null: false
|
56
|
+
t.datetime "updated_at", null: false
|
57
57
|
t.datetime "deleted_at"
|
58
58
|
end
|
59
59
|
|
@@ -79,9 +79,9 @@ ActiveRecord::Schema.define(version: 20150429164556) do
|
|
79
79
|
create_table "push_type_users", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
|
80
80
|
t.string "name"
|
81
81
|
t.string "email"
|
82
|
-
t.jsonb "field_store"
|
83
|
-
t.datetime "created_at",
|
84
|
-
t.datetime "updated_at",
|
82
|
+
t.jsonb "field_store", default: {}, null: false
|
83
|
+
t.datetime "created_at", null: false
|
84
|
+
t.datetime "updated_at", null: false
|
85
85
|
end
|
86
86
|
|
87
87
|
end
|