push_type_core 0.10.0.beta.5 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/front_end_controller.rb +5 -5
- data/app/models/push_type/asset.rb +5 -1
- 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/{20161117154442_create_push_type_users.push_type.rb → 20161121193332_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161117154443_create_push_type_nodes.push_type.rb → 20161121193333_create_push_type_nodes.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161117154444_create_push_type_node_hierarchies.push_type.rb → 20161121193334_create_push_type_node_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161117154445_create_push_type_assets.push_type.rb → 20161121193335_create_push_type_assets.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161117154446_add_field_store_default_values.push_type.rb → 20161121193336_add_field_store_default_values.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20161117154447_drop_legacy_push_type_taxonomies.push_type.rb → 20161121193337_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +7136 -7136
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Eq/EqAqaJ_tfMAtqoArQz8TAEgvbpQnvyKDhWfkgsLgDDk.cache → -K/-KvJYsTjJCFEGQoUPPMc8u_WQTngrbqPFqtxjiaJSMU.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VT/VT0xDh7gu1K3uYidKny01QY0vyaeQDbHoPICVlZmQQc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{pl/plmO1IoJjY_rOEVF1tqlu49tmlR7S7ymF0T7YUqP6Uw.cache → X_/X_gd-1ECKwsznMIxfLwKncfgjpFgElsyDPVv-HSwQQ4.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YC/YCmmKydZG1FxHcFZiHcaSZhbT44fV2vJglp5i1fOvAc.cache +0 -0
- data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +12 -0
- metadata +22 -24
- data/test/dummy/tmp/generators/app/models/home_page.rb +0 -12
- data/test/dummy/tmp/generators/app/views/nodes/home_page.html.erb +0 -13
File without changes
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/VT/VT0xDh7gu1K3uYidKny01QY0vyaeQDbHoPICVlZmQQc.cache
CHANGED
Binary file
|
File without changes
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/YC/YCmmKydZG1FxHcFZiHcaSZhbT44fV2vJglp5i1fOvAc.cache
CHANGED
Binary file
|
@@ -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
|
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.10.0
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -242,12 +242,12 @@ files:
|
|
242
242
|
- test/dummy/config/routes.rb
|
243
243
|
- test/dummy/config/secrets.yml
|
244
244
|
- test/dummy/config/spring.rb
|
245
|
-
- test/dummy/db/migrate/
|
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/
|
245
|
+
- test/dummy/db/migrate/20161121193332_create_push_type_users.push_type.rb
|
246
|
+
- test/dummy/db/migrate/20161121193333_create_push_type_nodes.push_type.rb
|
247
|
+
- test/dummy/db/migrate/20161121193334_create_push_type_node_hierarchies.push_type.rb
|
248
|
+
- test/dummy/db/migrate/20161121193335_create_push_type_assets.push_type.rb
|
249
|
+
- test/dummy/db/migrate/20161121193336_add_field_store_default_values.push_type.rb
|
250
|
+
- test/dummy/db/migrate/20161121193337_drop_legacy_push_type_taxonomies.push_type.rb
|
251
251
|
- test/dummy/db/schema.rb
|
252
252
|
- test/dummy/db/seeds.rb
|
253
253
|
- test/dummy/log/test.log
|
@@ -258,10 +258,10 @@ files:
|
|
258
258
|
- test/dummy/public/apple-touch-icon.png
|
259
259
|
- test/dummy/public/favicon.ico
|
260
260
|
- test/dummy/public/robots.txt
|
261
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/-K/-KvJYsTjJCFEGQoUPPMc8u_WQTngrbqPFqtxjiaJSMU.cache
|
261
262
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/4V/4V4h35yOMMC6CxoIsHSNeCpxS4Ljmip4Hl2_ZZ0CDac.cache
|
262
263
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
|
263
264
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Bh/Bhp0_DYasdK0hX0mRKWCZpQTU5CN7XMmpm_kLGhQ-mY.cache
|
264
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Eq/EqAqaJ_tfMAtqoArQz8TAEgvbpQnvyKDhWfkgsLgDDk.cache
|
265
265
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Hc/HcdeXL_NQCzwkHwn5IOfrZzULmR3Di7_rbRmKJcUxd0.cache
|
266
266
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
267
267
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/VT/VT0xDh7gu1K3uYidKny01QY0vyaeQDbHoPICVlZmQQc.cache
|
270
270
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/VT/vTiVJlF_TNDD87ZATW7HFaFu8lZXC3ZvESmDE-QbR6k.cache
|
271
271
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
272
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/X_/X_gd-1ECKwsznMIxfLwKncfgjpFgElsyDPVv-HSwQQ4.cache
|
272
273
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/YC/YCmmKydZG1FxHcFZiHcaSZhbT44fV2vJglp5i1fOvAc.cache
|
273
274
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/bY/bY6iFXjb4GQ6vQhngFtUw77t8vuS5vo_X5acqWO_pxU.cache
|
274
275
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/co/coq7bDnirlRe5Ubmus12avMdwG5atjZpOOc0fS6JeLs.cache
|
@@ -276,10 +277,8 @@ files:
|
|
276
277
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
|
277
278
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
278
279
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
279
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pl/plmO1IoJjY_rOEVF1tqlu49tmlR7S7ymF0T7YUqP6Uw.cache
|
280
280
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
281
|
-
- test/dummy/tmp/generators/app/
|
282
|
-
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
281
|
+
- test/dummy/tmp/generators/app/presenters/page_presenter.rb
|
283
282
|
- test/fields/push_type/asset_field_test.rb
|
284
283
|
- test/fields/push_type/boolean_field_test.rb
|
285
284
|
- test/fields/push_type/date_field_test.rb
|
@@ -343,9 +342,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
343
342
|
version: '0'
|
344
343
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
344
|
requirements:
|
346
|
-
- - "
|
345
|
+
- - ">="
|
347
346
|
- !ruby/object:Gem::Version
|
348
|
-
version:
|
347
|
+
version: '0'
|
349
348
|
requirements: []
|
350
349
|
rubyforge_project:
|
351
350
|
rubygems_version: 2.5.1
|
@@ -399,12 +398,12 @@ test_files:
|
|
399
398
|
- test/dummy/config/secrets.yml
|
400
399
|
- test/dummy/config/spring.rb
|
401
400
|
- test/dummy/config.ru
|
402
|
-
- test/dummy/db/migrate/
|
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/
|
401
|
+
- test/dummy/db/migrate/20161121193332_create_push_type_users.push_type.rb
|
402
|
+
- test/dummy/db/migrate/20161121193333_create_push_type_nodes.push_type.rb
|
403
|
+
- test/dummy/db/migrate/20161121193334_create_push_type_node_hierarchies.push_type.rb
|
404
|
+
- test/dummy/db/migrate/20161121193335_create_push_type_assets.push_type.rb
|
405
|
+
- test/dummy/db/migrate/20161121193336_add_field_store_default_values.push_type.rb
|
406
|
+
- test/dummy/db/migrate/20161121193337_drop_legacy_push_type_taxonomies.push_type.rb
|
408
407
|
- test/dummy/db/schema.rb
|
409
408
|
- test/dummy/db/seeds.rb
|
410
409
|
- test/dummy/log/test.log
|
@@ -417,12 +416,12 @@ test_files:
|
|
417
416
|
- test/dummy/public/robots.txt
|
418
417
|
- test/dummy/Rakefile
|
419
418
|
- test/dummy/README.md
|
419
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/-K/-KvJYsTjJCFEGQoUPPMc8u_WQTngrbqPFqtxjiaJSMU.cache
|
420
420
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/4V/4V4h35yOMMC6CxoIsHSNeCpxS4Ljmip4Hl2_ZZ0CDac.cache
|
421
421
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
|
422
422
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Bh/Bhp0_DYasdK0hX0mRKWCZpQTU5CN7XMmpm_kLGhQ-mY.cache
|
423
423
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/bY/bY6iFXjb4GQ6vQhngFtUw77t8vuS5vo_X5acqWO_pxU.cache
|
424
424
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/co/coq7bDnirlRe5Ubmus12avMdwG5atjZpOOc0fS6JeLs.cache
|
425
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Eq/EqAqaJ_tfMAtqoArQz8TAEgvbpQnvyKDhWfkgsLgDDk.cache
|
426
425
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/g9/g9WK77HQsQX-LgR1PysZLd_bk7r1dnYWdXuWo0Wm_JY.cache
|
427
426
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Hc/HcdeXL_NQCzwkHwn5IOfrZzULmR3Di7_rbRmKJcUxd0.cache
|
428
427
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
@@ -430,15 +429,14 @@ test_files:
|
|
430
429
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
|
431
430
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
432
431
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
433
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pl/plmO1IoJjY_rOEVF1tqlu49tmlR7S7ymF0T7YUqP6Uw.cache
|
434
432
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
435
433
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Rw/RwQxsln4oXkMhlSGY35qm1h9zc0CS5B2ArFvT7oG2a4.cache
|
436
434
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/VT/VT0xDh7gu1K3uYidKny01QY0vyaeQDbHoPICVlZmQQc.cache
|
437
435
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/VT/vTiVJlF_TNDD87ZATW7HFaFu8lZXC3ZvESmDE-QbR6k.cache
|
436
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/X_/X_gd-1ECKwsznMIxfLwKncfgjpFgElsyDPVv-HSwQQ4.cache
|
438
437
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
439
438
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/YC/YCmmKydZG1FxHcFZiHcaSZhbT44fV2vJglp5i1fOvAc.cache
|
440
|
-
- test/dummy/tmp/generators/app/
|
441
|
-
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
439
|
+
- test/dummy/tmp/generators/app/presenters/page_presenter.rb
|
442
440
|
- test/fields/push_type/asset_field_test.rb
|
443
441
|
- test/fields/push_type/boolean_field_test.rb
|
444
442
|
- test/fields/push_type/date_field_test.rb
|
@@ -1,12 +0,0 @@
|
|
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
|
@@ -1,13 +0,0 @@
|
|
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
|
-
|