push_type_core 0.9.1 → 0.9.2
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/app/fields/push_type/markdown_field.rb +2 -1
- data/app/models/concerns/push_type/presentable.rb +4 -3
- 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/{20160802195916_create_push_type_users.push_type.rb → 20160808143015_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20160802195917_create_push_type_nodes.push_type.rb → 20160808143016_create_push_type_nodes.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20160802195918_create_push_type_node_hierarchies.push_type.rb → 20160808143017_create_push_type_node_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20160802195919_create_push_type_assets.push_type.rb → 20160808143018_create_push_type_assets.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20160802195920_add_field_store_default_values.push_type.rb → 20160808143019_add_field_store_default_values.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20160802195921_drop_legacy_push_type_taxonomies.push_type.rb → 20160808143020_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +7357 -7362
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/T4/T4GQ8YD0DmTbkGOBb9_FXxyAS4d4bTyDY2ZNaOFrZYI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{K-/K-cuOHf4JZAn9ehUwol91DUr2JjUVD2ubgGzasPmCeE.cache → _D/_Dzxrj2irwCKDVnM3lUwBFWp_fOmrzelUiQD-p7KwZc.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rI/rIrIe053W7_bEOF2UU8uE2-YdjmGhP_XyEll7fNAGHQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{0l/0lJzMcZLzfGkR72vQkC6cqSBdaTBanC2sebySkJqBC0.cache → sG/sG83DhfH6GwB09Fo0L39nqHMwDnt3-wCLgfGX9hQIGo.cache} +0 -0
- data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +12 -0
- metadata +20 -22
- data/test/dummy/tmp/generators/config/initializers/push_type.rb +0 -50
- data/test/dummy/tmp/generators/config/routes.rb +0 -6
data/test/dummy/tmp/cache/assets/sprockets/v3.0/T4/T4GQ8YD0DmTbkGOBb9_FXxyAS4d4bTyDY2ZNaOFrZYI.cache
CHANGED
|
Binary file
|
|
File without changes
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/rI/rIrIe053W7_bEOF2UU8uE2-YdjmGhP_XyEll7fNAGHQ.cache
CHANGED
|
Binary file
|
|
File without changes
|
|
@@ -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.9.
|
|
4
|
+
version: 0.9.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: 2016-08-
|
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -234,12 +234,12 @@ files:
|
|
|
234
234
|
- test/dummy/config/routes.rb
|
|
235
235
|
- test/dummy/config/secrets.yml
|
|
236
236
|
- test/dummy/config/spring.rb
|
|
237
|
-
- test/dummy/db/migrate/
|
|
238
|
-
- test/dummy/db/migrate/
|
|
239
|
-
- test/dummy/db/migrate/
|
|
240
|
-
- test/dummy/db/migrate/
|
|
241
|
-
- test/dummy/db/migrate/
|
|
242
|
-
- test/dummy/db/migrate/
|
|
237
|
+
- test/dummy/db/migrate/20160808143015_create_push_type_users.push_type.rb
|
|
238
|
+
- test/dummy/db/migrate/20160808143016_create_push_type_nodes.push_type.rb
|
|
239
|
+
- test/dummy/db/migrate/20160808143017_create_push_type_node_hierarchies.push_type.rb
|
|
240
|
+
- test/dummy/db/migrate/20160808143018_create_push_type_assets.push_type.rb
|
|
241
|
+
- test/dummy/db/migrate/20160808143019_add_field_store_default_values.push_type.rb
|
|
242
|
+
- test/dummy/db/migrate/20160808143020_drop_legacy_push_type_taxonomies.push_type.rb
|
|
243
243
|
- test/dummy/db/schema.rb
|
|
244
244
|
- test/dummy/db/seeds.rb
|
|
245
245
|
- test/dummy/log/test.log
|
|
@@ -250,16 +250,15 @@ files:
|
|
|
250
250
|
- test/dummy/public/apple-touch-icon.png
|
|
251
251
|
- test/dummy/public/favicon.ico
|
|
252
252
|
- test/dummy/public/robots.txt
|
|
253
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/0l/0lJzMcZLzfGkR72vQkC6cqSBdaTBanC2sebySkJqBC0.cache
|
|
254
253
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
|
|
255
254
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
|
256
255
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Jb/Jb810SiOuJVuKRcwOdnHdyrHDD_hWIWvSHrcSPoaQPU.cache
|
|
257
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-cuOHf4JZAn9ehUwol91DUr2JjUVD2ubgGzasPmCeE.cache
|
|
258
256
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
|
|
259
257
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/SO/SOZa21InoBC05GGCDAcckZrbpHSOC_C1x_8gdUutdjs.cache
|
|
260
258
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/T4/T4GQ8YD0DmTbkGOBb9_FXxyAS4d4bTyDY2ZNaOFrZYI.cache
|
|
261
259
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKi7NI277oX6OL-scTKJX0mD8ETpeTWUmd0qOhAh48c.cache
|
|
262
260
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
|
261
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/_D/_Dzxrj2irwCKDVnM3lUwBFWp_fOmrzelUiQD-p7KwZc.cache
|
|
263
262
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/ff/ffkN8ZBG66BGCq-xL4PHZZAsspgxBQNa9shBPn9Wiqg.cache
|
|
264
263
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/hy/hyqofDaeg-q9IihEOLw2JbC6hGbwuYdXFRM9oFc1J64.cache
|
|
265
264
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
|
|
@@ -270,8 +269,8 @@ files:
|
|
|
270
269
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
|
271
270
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQ8c5p2po-w6U57egs5gQy5iUvn5Y5bQH3HPJslC4XU.cache
|
|
272
271
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rI/rIrIe053W7_bEOF2UU8uE2-YdjmGhP_XyEll7fNAGHQ.cache
|
|
273
|
-
- test/dummy/tmp/
|
|
274
|
-
- test/dummy/tmp/generators/
|
|
272
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/sG/sG83DhfH6GwB09Fo0L39nqHMwDnt3-wCLgfGX9hQIGo.cache
|
|
273
|
+
- test/dummy/tmp/generators/app/presenters/page_presenter.rb
|
|
275
274
|
- test/fields/push_type/asset_field_test.rb
|
|
276
275
|
- test/fields/push_type/boolean_field_test.rb
|
|
277
276
|
- test/fields/push_type/date_field_test.rb
|
|
@@ -389,12 +388,12 @@ test_files:
|
|
|
389
388
|
- test/dummy/config/secrets.yml
|
|
390
389
|
- test/dummy/config/spring.rb
|
|
391
390
|
- test/dummy/config.ru
|
|
392
|
-
- test/dummy/db/migrate/
|
|
393
|
-
- test/dummy/db/migrate/
|
|
394
|
-
- test/dummy/db/migrate/
|
|
395
|
-
- test/dummy/db/migrate/
|
|
396
|
-
- test/dummy/db/migrate/
|
|
397
|
-
- test/dummy/db/migrate/
|
|
391
|
+
- test/dummy/db/migrate/20160808143015_create_push_type_users.push_type.rb
|
|
392
|
+
- test/dummy/db/migrate/20160808143016_create_push_type_nodes.push_type.rb
|
|
393
|
+
- test/dummy/db/migrate/20160808143017_create_push_type_node_hierarchies.push_type.rb
|
|
394
|
+
- test/dummy/db/migrate/20160808143018_create_push_type_assets.push_type.rb
|
|
395
|
+
- test/dummy/db/migrate/20160808143019_add_field_store_default_values.push_type.rb
|
|
396
|
+
- test/dummy/db/migrate/20160808143020_drop_legacy_push_type_taxonomies.push_type.rb
|
|
398
397
|
- test/dummy/db/schema.rb
|
|
399
398
|
- test/dummy/db/seeds.rb
|
|
400
399
|
- test/dummy/log/test.log
|
|
@@ -407,13 +406,12 @@ test_files:
|
|
|
407
406
|
- test/dummy/public/robots.txt
|
|
408
407
|
- test/dummy/Rakefile
|
|
409
408
|
- test/dummy/README.md
|
|
410
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/0l/0lJzMcZLzfGkR72vQkC6cqSBdaTBanC2sebySkJqBC0.cache
|
|
411
409
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
|
|
410
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/_D/_Dzxrj2irwCKDVnM3lUwBFWp_fOmrzelUiQD-p7KwZc.cache
|
|
412
411
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/ff/ffkN8ZBG66BGCq-xL4PHZZAsspgxBQNa9shBPn9Wiqg.cache
|
|
413
412
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/hy/hyqofDaeg-q9IihEOLw2JbC6hGbwuYdXFRM9oFc1J64.cache
|
|
414
413
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
|
|
415
414
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Jb/Jb810SiOuJVuKRcwOdnHdyrHDD_hWIWvSHrcSPoaQPU.cache
|
|
416
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-cuOHf4JZAn9ehUwol91DUr2JjUVD2ubgGzasPmCeE.cache
|
|
417
415
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
|
|
418
416
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
|
|
419
417
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
|
@@ -423,12 +421,12 @@ test_files:
|
|
|
423
421
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
|
|
424
422
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQ8c5p2po-w6U57egs5gQy5iUvn5Y5bQH3HPJslC4XU.cache
|
|
425
423
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rI/rIrIe053W7_bEOF2UU8uE2-YdjmGhP_XyEll7fNAGHQ.cache
|
|
424
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/sG/sG83DhfH6GwB09Fo0L39nqHMwDnt3-wCLgfGX9hQIGo.cache
|
|
426
425
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/SO/SOZa21InoBC05GGCDAcckZrbpHSOC_C1x_8gdUutdjs.cache
|
|
427
426
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/T4/T4GQ8YD0DmTbkGOBb9_FXxyAS4d4bTyDY2ZNaOFrZYI.cache
|
|
428
427
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKi7NI277oX6OL-scTKJX0mD8ETpeTWUmd0qOhAh48c.cache
|
|
429
428
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
|
|
430
|
-
- test/dummy/tmp/generators/
|
|
431
|
-
- test/dummy/tmp/generators/config/routes.rb
|
|
429
|
+
- test/dummy/tmp/generators/app/presenters/page_presenter.rb
|
|
432
430
|
- test/fields/push_type/asset_field_test.rb
|
|
433
431
|
- test/fields/push_type/boolean_field_test.rb
|
|
434
432
|
- test/fields/push_type/date_field_test.rb
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
PushType.setup do |config|
|
|
2
|
-
|
|
3
|
-
# By default all node types can be placed at the root of the
|
|
4
|
-
# content tree. Alternatively, set an array of node type symbols
|
|
5
|
-
# to whiltelist acceptable root nodes.
|
|
6
|
-
config.root_nodes = :all
|
|
7
|
-
|
|
8
|
-
# Set the slug of the node that the `NodesFrontEndContoller` will
|
|
9
|
-
# render when visting the root URL of the site (the homepage).
|
|
10
|
-
# This setting can be overridden in config/routes.rb.
|
|
11
|
-
config.home_slug = 'home'
|
|
12
|
-
|
|
13
|
-
# Set an array of node type symbols which will not be exposed to
|
|
14
|
-
# the `NodesFrontEndContoller`. These nodes will not be accessible
|
|
15
|
-
# through their permalink.
|
|
16
|
-
config.unexposed_nodes = []
|
|
17
|
-
|
|
18
|
-
# Media styles allow you to predefine a collection of geometry
|
|
19
|
-
# strings for resizing images on the fly with the `Asset#media`
|
|
20
|
-
# method. Example: `image.media(:large)`
|
|
21
|
-
config.media_styles = {
|
|
22
|
-
large: '1024x1024>',
|
|
23
|
-
medium: '512x512>',
|
|
24
|
-
small: '256x256>'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
# Configure the email address to be used as the "from" address
|
|
28
|
-
# for PushType's build in mailers.
|
|
29
|
-
config.mailer_sender = 'pushtype@example.com'
|
|
30
|
-
|
|
31
|
-
# PushType uses Dragonfly for managing uploaded images/assets.
|
|
32
|
-
# Dragonfly datastore configuration
|
|
33
|
-
config.dragonfly_datastore = :file
|
|
34
|
-
config.dragonfly_datastore_options = {
|
|
35
|
-
root_path: Rails.root.join('public/system/dragonfly', Rails.env),
|
|
36
|
-
server_root: Rails.root.join('public')
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
# For S3 storage, remember to add to Gemfile:
|
|
40
|
-
# gem 'dragonfly-s3_data_store'
|
|
41
|
-
# config.dragonfly_datastore = :s3
|
|
42
|
-
# config.dragonfly_datastore_options = {
|
|
43
|
-
# bucket_name: ENV['S3_BUCKET'],
|
|
44
|
-
# access_key_id: ENV['S3_ACCESS_KEY_ID'],
|
|
45
|
-
# secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
|
|
46
|
-
# }
|
|
47
|
-
|
|
48
|
-
# config.dragonfly_secret = '26bee57a0fa0813dc63658cb3b03ef22ddcc32ac487b9d90b1bae1c1c8a7bc1c'
|
|
49
|
-
|
|
50
|
-
end
|