push_type_core 0.11.0.beta.1 → 0.11.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/schema.rb +1 -1
- data/test/dummy/log/test.log +8627 -8627
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache +0 -0
- data/test/dummy/tmp/generators/app/models/home_page.rb +12 -0
- data/test/dummy/tmp/generators/app/views/nodes/home_page.html.erb +13 -0
- metadata +24 -22
- data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +0 -12
- /data/test/dummy/db/migrate/{20170407124941_create_push_type_users.push_type.rb → 20170506161310_create_push_type_users.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20170407124942_create_push_type_nodes.push_type.rb → 20170506161311_create_push_type_nodes.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20170407124943_create_push_type_node_hierarchies.push_type.rb → 20170506161312_create_push_type_node_hierarchies.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20170407124944_create_push_type_assets.push_type.rb → 20170506161313_create_push_type_assets.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20170407124945_add_field_store_default_values.push_type.rb → 20170506161314_add_field_store_default_values.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20170407124946_drop_legacy_push_type_taxonomies.push_type.rb → 20170506161315_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
- /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{eu/eucS-DO7l97Vq6N1vBZsb8P5L25_WFoXYcmcEFWWSic.cache → Ro/Ror_0Ip8C1DDDfbDFvLtFXiN7MCc9AMt83Q2grtl9tM.cache} +0 -0
- /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{hV/hVCLQc9G-AVrZlFolUenJrX5l6Nstlu-EcZQn2_mNeY.cache → jf/jfDJNaOpjjEuYfQUfS63cmK7x-hdfbA1CwUH5LvlycQ.cache} +0 -0
data/test/dummy/tmp/cache/assets/sprockets/v3.0/3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache
CHANGED
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class HomePage < PushType::Node
|
2
|
+
|
3
|
+
# By default a node can have children of any other node type.
|
4
|
+
# Optionally pass a list of acceptable node types or prevent
|
5
|
+
# any descendents by passing false.
|
6
|
+
has_child_nodes :all
|
7
|
+
|
8
|
+
# Model the content by adding custom fields to the node.
|
9
|
+
field :foo, :string
|
10
|
+
field :bar, :text
|
11
|
+
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<h1><%= @node.title %></h1>
|
2
|
+
<p>This is a generated HomePage template.</p>
|
3
|
+
<p>Find me at: app/views/nodes/home_page.html.erb</p>
|
4
|
+
|
5
|
+
<div>
|
6
|
+
<div>Foo:</div>
|
7
|
+
<div><%= @node.foo %></div>
|
8
|
+
</div>
|
9
|
+
<div>
|
10
|
+
<div>Bar:</div>
|
11
|
+
<div><%= @node.bar %></div>
|
12
|
+
</div>
|
13
|
+
|
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.11.0.beta.
|
4
|
+
version: 0.11.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.1.
|
73
|
+
version: 1.1.2
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.1.
|
80
|
+
version: 1.1.2
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: redcarpet
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -243,12 +243,12 @@ files:
|
|
243
243
|
- test/dummy/config/routes.rb
|
244
244
|
- test/dummy/config/secrets.yml
|
245
245
|
- test/dummy/config/spring.rb
|
246
|
-
- test/dummy/db/migrate/
|
247
|
-
- test/dummy/db/migrate/
|
248
|
-
- test/dummy/db/migrate/
|
249
|
-
- test/dummy/db/migrate/
|
250
|
-
- test/dummy/db/migrate/
|
251
|
-
- test/dummy/db/migrate/
|
246
|
+
- test/dummy/db/migrate/20170506161310_create_push_type_users.push_type.rb
|
247
|
+
- test/dummy/db/migrate/20170506161311_create_push_type_nodes.push_type.rb
|
248
|
+
- test/dummy/db/migrate/20170506161312_create_push_type_node_hierarchies.push_type.rb
|
249
|
+
- test/dummy/db/migrate/20170506161313_create_push_type_assets.push_type.rb
|
250
|
+
- test/dummy/db/migrate/20170506161314_add_field_store_default_values.push_type.rb
|
251
|
+
- test/dummy/db/migrate/20170506161315_drop_legacy_push_type_taxonomies.push_type.rb
|
252
252
|
- test/dummy/db/schema.rb
|
253
253
|
- test/dummy/db/seeds.rb
|
254
254
|
- test/dummy/log/test.log
|
@@ -267,11 +267,11 @@ files:
|
|
267
267
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Bp/BpTIRhA-GS10QrpUHsZja1dAjjGnUgKyDLICDiOhnRo.cache
|
268
268
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
269
269
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
|
270
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ror_0Ip8C1DDDfbDFvLtFXiN7MCc9AMt83Q2grtl9tM.cache
|
270
271
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
271
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eu/eucS-DO7l97Vq6N1vBZsb8P5L25_WFoXYcmcEFWWSic.cache
|
272
272
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache
|
273
273
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/g2/g2ChIdW29D1jUIexFQvW8kjbszkdixbAYIEudlI_WTA.cache
|
274
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/
|
274
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfDJNaOpjjEuYfQUfS63cmK7x-hdfbA1CwUH5LvlycQ.cache
|
275
275
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache
|
276
276
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache
|
277
277
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
|
@@ -279,7 +279,8 @@ files:
|
|
279
279
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
280
280
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache
|
281
281
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
282
|
-
- test/dummy/tmp/generators/app/
|
282
|
+
- test/dummy/tmp/generators/app/models/home_page.rb
|
283
|
+
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
283
284
|
- test/fields/push_type/asset_field_test.rb
|
284
285
|
- test/fields/push_type/boolean_field_test.rb
|
285
286
|
- test/fields/push_type/date_field_test.rb
|
@@ -400,12 +401,12 @@ test_files:
|
|
400
401
|
- test/dummy/config/secrets.yml
|
401
402
|
- test/dummy/config/spring.rb
|
402
403
|
- test/dummy/config.ru
|
403
|
-
- test/dummy/db/migrate/
|
404
|
-
- test/dummy/db/migrate/
|
405
|
-
- test/dummy/db/migrate/
|
406
|
-
- test/dummy/db/migrate/
|
407
|
-
- test/dummy/db/migrate/
|
408
|
-
- test/dummy/db/migrate/
|
404
|
+
- test/dummy/db/migrate/20170506161310_create_push_type_users.push_type.rb
|
405
|
+
- test/dummy/db/migrate/20170506161311_create_push_type_nodes.push_type.rb
|
406
|
+
- test/dummy/db/migrate/20170506161312_create_push_type_node_hierarchies.push_type.rb
|
407
|
+
- test/dummy/db/migrate/20170506161313_create_push_type_assets.push_type.rb
|
408
|
+
- test/dummy/db/migrate/20170506161314_add_field_store_default_values.push_type.rb
|
409
|
+
- test/dummy/db/migrate/20170506161315_drop_legacy_push_type_taxonomies.push_type.rb
|
409
410
|
- test/dummy/db/schema.rb
|
410
411
|
- test/dummy/db/seeds.rb
|
411
412
|
- test/dummy/log/test.log
|
@@ -424,11 +425,10 @@ test_files:
|
|
424
425
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7aRzafVCYl8iUvhtC98x4lDfOVsxtR6jTRMCEHhJEDY.cache
|
425
426
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
|
426
427
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Bp/BpTIRhA-GS10QrpUHsZja1dAjjGnUgKyDLICDiOhnRo.cache
|
427
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eu/eucS-DO7l97Vq6N1vBZsb8P5L25_WFoXYcmcEFWWSic.cache
|
428
428
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache
|
429
429
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/g2/g2ChIdW29D1jUIexFQvW8kjbszkdixbAYIEudlI_WTA.cache
|
430
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hV/hVCLQc9G-AVrZlFolUenJrX5l6Nstlu-EcZQn2_mNeY.cache
|
431
430
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
431
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfDJNaOpjjEuYfQUfS63cmK7x-hdfbA1CwUH5LvlycQ.cache
|
432
432
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
|
433
433
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache
|
434
434
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache
|
@@ -437,8 +437,10 @@ test_files:
|
|
437
437
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
438
438
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache
|
439
439
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
440
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ror_0Ip8C1DDDfbDFvLtFXiN7MCc9AMt83Q2grtl9tM.cache
|
440
441
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
441
|
-
- test/dummy/tmp/generators/app/
|
442
|
+
- test/dummy/tmp/generators/app/models/home_page.rb
|
443
|
+
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
442
444
|
- test/fields/push_type/asset_field_test.rb
|
443
445
|
- test/fields/push_type/boolean_field_test.rb
|
444
446
|
- test/fields/push_type/date_field_test.rb
|
@@ -1,12 +0,0 @@
|
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|