push_type_wysiwyg 0.3.3 → 0.4.0.beta.3

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: dbdee75c58ad27a1636c5e3951be38df46912bf6
4
- data.tar.gz: df63df72fbcb72b377f3356d617107d177beee31
3
+ metadata.gz: db96e25452e480128cf7025668f1cef22a109622
4
+ data.tar.gz: 3bd03496575a25546a1b947c64bd639d37b59823
5
5
  SHA512:
6
- metadata.gz: c90431d0404f3d1dc977226cd5972abc712ad2ee472db64e2cfbe75451bbd84630d3477af98287ac0178b49c7af32830a9ab46e5691b37661792e81e99c6f5f4
7
- data.tar.gz: 90125b6ae54337bc998a02d5ca25e49a1b71e4b2826d500bff5a7fef41fb3757fcad31eab1aad83c3d68089e1043b5c9a1b0f78d29fa63795c7188ce24e760b0
6
+ metadata.gz: 8835c71223ac8379dc55c5d38d50fd84849c7ef5b30058a2e4b9f1730a7da70dd220576c93e51aab83fe2f37eb51011f8c45a3a9e27eb9ebdd5ba2502003cf38
7
+ data.tar.gz: 1b93634df5594250b5600ef4d644ebd992502433eedada12bfefc3255c99e7fc8af2cb43aef12e3d35aa235abffaf50fff4f2fba85b7a68d050d531ba59c60ec
@@ -0,0 +1,6 @@
1
+ class Category < PushType::Taxonomy
2
+
3
+ # Set base slug
4
+ # base_slug :category
5
+
6
+ end
@@ -0,0 +1,3 @@
1
+ <h1><%= @taxonomy.title %></h1>
2
+ <p>This is a generated Category template.</p>
3
+ <p>Find me at: app/views/taxonomies/category.html.erb</p>
@@ -6,6 +6,8 @@ PushType.setup do |config|
6
6
 
7
7
  config.home_slug = 'home'
8
8
 
9
+ config.unexposed_taxonomies = []
10
+
9
11
  config.media_styles = {
10
12
  large: '1024x1024>',
11
13
  medium: '512x512>',
@@ -31,6 +33,6 @@ PushType.setup do |config|
31
33
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
32
34
  # }
33
35
 
34
- # config.dragonfly_secret = 'bd33fb312f227c9c7b39ff571519fcd10e69547a9f95fbac438e16e2c389f97e'
36
+ # config.dragonfly_secret = 'd0cdb507464ddb5a4f3b0388b25093f1db67917a9f64429f8c1d3a7b61f8ff75'
35
37
 
36
38
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 8b084b55fa05a02da1b20719aae9b124c4bc3a8c024f7f67eadf40f6e25597af92089f8747bc946041be9f7431e39514406d79d0aeef3335251fb782efe66577
14
+ secret_key_base: a0d640e7660a8ab18d2b1eb2ae9f92dc24ad8b63495270fc1dc8634008ea76897eb513f2de8c40684ed9c9e40d860af4c95ee4a0caf0498f930e2ca1abf633d5
15
15
 
16
16
  test:
17
- secret_key_base: e22c3f09cc0fba41855907724dccc78078043d3e0e3af7edaff958528920f3deed37847d2c437515868c69aab1cf663fd4553c2c4ab040b3b753290e1e2ee352
17
+ secret_key_base: dc41fc51a540c00ca6f041be02a1888cd4c4e36cd642783cf098c7ac1e5baf9d8acb6d7320ebabd163aaa3aa07f47e61e35727525b7ee2b73de8e68018762e9d
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -7,7 +7,7 @@ class CreatePushTypeUsers < ActiveRecord::Migration
7
7
  t.string :email
8
8
  t.jsonb :field_store
9
9
 
10
- t.timestamps
10
+ t.timestamps null: false
11
11
  end
12
12
  end
13
13
  end
@@ -18,7 +18,7 @@ class CreatePushTypeNodes < ActiveRecord::Migration
18
18
  t.uuid :creator_id
19
19
  t.uuid :updater_id
20
20
 
21
- t.timestamps
21
+ t.timestamps null: false
22
22
  t.datetime :deleted_at
23
23
  end
24
24
  end
@@ -9,9 +9,9 @@ class CreatePushTypeNodeHierarchies < ActiveRecord::Migration
9
9
 
10
10
  add_index :push_type_node_hierarchies, [:ancestor_id, :descendant_id, :generations],
11
11
  unique: true,
12
- name: "anc_desc_idx"
12
+ name: "node_anc_desc_idx"
13
13
 
14
14
  add_index :push_type_node_hierarchies, [:descendant_id],
15
- name: "desc_idx"
15
+ name: "node_desc_idx"
16
16
  end
17
17
  end
@@ -12,7 +12,7 @@ class CreatePushTypeAssets < ActiveRecord::Migration
12
12
 
13
13
  t.uuid :uploader_id
14
14
 
15
- t.timestamps
15
+ t.timestamps null: false
16
16
  t.datetime :deleted_at
17
17
  end
18
18
  end
@@ -0,0 +1,19 @@
1
+ # This migration comes from push_type (originally 20150310115933)
2
+ class CreatePushTypeTaxonomies < ActiveRecord::Migration
3
+ def change
4
+ enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
5
+ create_table :push_type_taxonomies, id: :uuid, default: 'uuid_generate_v4()' do |t|
6
+ t.string :type
7
+ t.string :title
8
+ t.string :slug
9
+
10
+ t.uuid :parent_id
11
+ t.integer :sort_order
12
+
13
+ t.timestamps null: false
14
+ end
15
+
16
+ # Also add a tags array to Assets
17
+ add_column :push_type_assets, :tags, :string, array: true
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # This migration comes from push_type (originally 20150310123230)
2
+ class CreatePushTypeTaxonomyHierarchies < ActiveRecord::Migration
3
+ def change
4
+ create_table :push_type_taxonomy_hierarchies, id: false do |t|
5
+ t.uuid :ancestor_id, null: false
6
+ t.uuid :descendant_id, null: false
7
+ t.integer :generations, null: false
8
+ end
9
+
10
+ add_index :push_type_taxonomy_hierarchies, [:ancestor_id, :descendant_id, :generations],
11
+ unique: true,
12
+ name: "taxonomy_anc_desc_idx"
13
+
14
+ add_index :push_type_taxonomy_hierarchies, [:descendant_id],
15
+ name: "taxonomy_desc_idx"
16
+ end
17
+ end
@@ -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: 20150310192224) do
14
+ ActiveRecord::Schema.define(version: 20150406131616) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -25,9 +25,10 @@ ActiveRecord::Schema.define(version: 20150310192224) do
25
25
  t.string "mime_type"
26
26
  t.string "description"
27
27
  t.uuid "uploader_id"
28
- t.datetime "created_at"
29
- t.datetime "updated_at"
28
+ t.datetime "created_at", null: false
29
+ t.datetime "updated_at", null: false
30
30
  t.datetime "deleted_at"
31
+ t.string "tags", array: true
31
32
  end
32
33
 
33
34
  create_table "push_type_node_hierarchies", id: false, force: :cascade do |t|
@@ -36,8 +37,8 @@ ActiveRecord::Schema.define(version: 20150310192224) do
36
37
  t.integer "generations", null: false
37
38
  end
38
39
 
39
- add_index "push_type_node_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "anc_desc_idx", unique: true, using: :btree
40
- add_index "push_type_node_hierarchies", ["descendant_id"], name: "desc_idx", using: :btree
40
+ add_index "push_type_node_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "node_anc_desc_idx", unique: true, using: :btree
41
+ add_index "push_type_node_hierarchies", ["descendant_id"], name: "node_desc_idx", using: :btree
41
42
 
42
43
  create_table "push_type_nodes", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
43
44
  t.string "type"
@@ -51,17 +52,36 @@ ActiveRecord::Schema.define(version: 20150310192224) do
51
52
  t.datetime "published_to"
52
53
  t.uuid "creator_id"
53
54
  t.uuid "updater_id"
54
- t.datetime "created_at"
55
- t.datetime "updated_at"
55
+ t.datetime "created_at", null: false
56
+ t.datetime "updated_at", null: false
56
57
  t.datetime "deleted_at"
57
58
  end
58
59
 
60
+ create_table "push_type_taxonomies", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
61
+ t.string "type"
62
+ t.string "title"
63
+ t.string "slug"
64
+ t.uuid "parent_id"
65
+ t.integer "sort_order"
66
+ t.datetime "created_at", null: false
67
+ t.datetime "updated_at", null: false
68
+ end
69
+
70
+ create_table "push_type_taxonomy_hierarchies", id: false, force: :cascade do |t|
71
+ t.uuid "ancestor_id", null: false
72
+ t.uuid "descendant_id", null: false
73
+ t.integer "generations", null: false
74
+ end
75
+
76
+ add_index "push_type_taxonomy_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "taxonomy_anc_desc_idx", unique: true, using: :btree
77
+ add_index "push_type_taxonomy_hierarchies", ["descendant_id"], name: "taxonomy_desc_idx", using: :btree
78
+
59
79
  create_table "push_type_users", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
60
80
  t.string "name"
61
81
  t.string "email"
62
82
  t.jsonb "field_store"
63
- t.datetime "created_at"
64
- t.datetime "updated_at"
83
+ t.datetime "created_at", null: false
84
+ t.datetime "updated_at", null: false
65
85
  end
66
86
 
67
87
  end