push_type_api 0.10.4 → 0.11.0.beta.1
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/test/dummy/app/presenters/page_presenter.rb +12 -0
- data/test/dummy/config/initializers/new_framework_defaults.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/{20170130110730_create_push_type_users.push_type.rb → 20170407125007_create_push_type_users.push_type.rb} +1 -1
- data/test/dummy/db/migrate/{20170130110731_create_push_type_nodes.push_type.rb → 20170407125008_create_push_type_nodes.push_type.rb} +1 -1
- data/test/dummy/db/migrate/{20170130110732_create_push_type_node_hierarchies.push_type.rb → 20170407125009_create_push_type_node_hierarchies.push_type.rb} +1 -1
- data/test/dummy/db/migrate/{20170130110733_create_push_type_assets.push_type.rb → 20170407125010_create_push_type_assets.push_type.rb} +1 -1
- data/test/dummy/db/migrate/{20170130110734_add_field_store_default_values.push_type.rb → 20170407125011_add_field_store_default_values.push_type.rb} +1 -1
- data/test/dummy/db/migrate/{20170130110735_drop_legacy_push_type_taxonomies.push_type.rb → 20170407125012_drop_legacy_push_type_taxonomies.push_type.rb} +1 -1
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +4128 -3910
- metadata +24 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ca475312e4554823f8e3fd0b2d0dba137e5009
|
4
|
+
data.tar.gz: 7c67187d8d15f1d5017312dccc0d33a3d1371d6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7b89459f925d30279cf065c1a1837b295c1e18effb11ab573e96905416dab0723b07a292326435fb8c7d98c19df8a261ca7664d3e2026486431cfe8b55fb2d
|
7
|
+
data.tar.gz: 57887ffa2964edb81a613658b29552ff005265880f067cd8b6534ffc01b4120e70feb2f62c6b22f5ccbe84333d640b75721cbb82869896503f66c201e756267b
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class PagePresenter < PushType::Presenter
|
2
|
+
|
3
|
+
# This class delegates to the model, Page
|
4
|
+
# Override any methods to add custom presentation logic
|
5
|
+
# View helpers are accessible from the `h` method
|
6
|
+
|
7
|
+
# Example:
|
8
|
+
# def title
|
9
|
+
# h.content_tag :strong, super()
|
10
|
+
# end
|
11
|
+
|
12
|
+
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file contains migration options to ease your Rails 5.0 upgrade.
|
4
4
|
#
|
5
|
-
# Read the
|
5
|
+
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
6
6
|
|
7
7
|
# Enable per-form CSRF tokens. Previous versions had false.
|
8
8
|
Rails.application.config.action_controller.per_form_csrf_tokens = true
|
@@ -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 = '7082abd20e352765a807851f3c24f55184c7ddc648fb7db8b860c99792712669'
|
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: 9a40e649d2bb89d65ad237943170562ae1dd98a11415dd80776df3d32b546e0fc88067f378ee32d18be9203d7af13dea2eababee88af09c1c04583134668d78d
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
17
|
+
secret_key_base: 2fe5864dc1ee039d67c9545bb2187fd392effe4037cf7e378484a5c8889e0c4c1c0fe39ecd38a8feffb48a6bf30b448c91a0e68a1079bf352fe36cb3b03a31d9
|
18
18
|
|
19
19
|
# Do not keep production secrets in the repository,
|
20
20
|
# instead read values from the environment.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20141117170533)
|
2
|
-
class CreatePushTypeUsers < ActiveRecord::Migration
|
2
|
+
class CreatePushTypeUsers < ActiveRecord::Migration[4.2]
|
3
3
|
def change
|
4
4
|
enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
|
5
5
|
create_table :push_type_users, id: :uuid, default: 'uuid_generate_v4()' do |t|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20141117204630)
|
2
|
-
class CreatePushTypeNodes < ActiveRecord::Migration
|
2
|
+
class CreatePushTypeNodes < ActiveRecord::Migration[4.2]
|
3
3
|
def change
|
4
4
|
enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
|
5
5
|
create_table :push_type_nodes, id: :uuid, default: 'uuid_generate_v4()' do |t|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20141117210644)
|
2
|
-
class CreatePushTypeNodeHierarchies < ActiveRecord::Migration
|
2
|
+
class CreatePushTypeNodeHierarchies < ActiveRecord::Migration[4.2]
|
3
3
|
def change
|
4
4
|
create_table :push_type_node_hierarchies, id: false do |t|
|
5
5
|
t.uuid :ancestor_id, null: false
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20141127151930)
|
2
|
-
class CreatePushTypeAssets < ActiveRecord::Migration
|
2
|
+
class CreatePushTypeAssets < ActiveRecord::Migration[4.2]
|
3
3
|
def change
|
4
4
|
enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
|
5
5
|
create_table :push_type_assets, id: :uuid, default: 'uuid_generate_v4()' do |t|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20150531183944)
|
2
|
-
class AddFieldStoreDefaultValues < ActiveRecord::Migration
|
2
|
+
class AddFieldStoreDefaultValues < ActiveRecord::Migration[4.2]
|
3
3
|
def change
|
4
4
|
change_column :push_type_nodes, :field_store, :jsonb, default: {}, null: false
|
5
5
|
change_column :push_type_users, :field_store, :jsonb, default: {}, null: false
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from push_type (originally 20160201150228)
|
2
|
-
class DropLegacyPushTypeTaxonomies < ActiveRecord::Migration
|
2
|
+
class DropLegacyPushTypeTaxonomies < ActiveRecord::Migration[4.2]
|
3
3
|
def up
|
4
4
|
if ActiveRecord::Base.connection.table_exists? :push_type_taxonomies
|
5
5
|
drop_table :push_type_taxonomies
|
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: 20170407125012) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|