push_type_core 0.5.2 → 0.5.3
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/lib/push_type/config.rb +17 -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/{20150824095144_create_push_type_users.push_type.rb → 20150928114659_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095145_create_push_type_nodes.push_type.rb → 20150928114660_create_push_type_nodes.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095146_create_push_type_node_hierarchies.push_type.rb → 20150928114661_create_push_type_node_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095147_create_push_type_assets.push_type.rb → 20150928114662_create_push_type_assets.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095148_create_push_type_taxonomies.push_type.rb → 20150928114663_create_push_type_taxonomies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095149_create_push_type_taxonomy_hierarchies.push_type.rb → 20150928114664_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20150824095150_add_field_store_default_values.push_type.rb → 20150928114665_add_field_store_default_values.push_type.rb} +0 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +6235 -6241
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{8S3sfGL04Qzd-CkJWBN2O8-yN9aBez7PaqeA4JuW9o4.cache → 0VLfu-ipRCm5lg6MOptoyejoCkDcrvsfiei7dJqJR7o.cache} +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{fpxsy_yXkhFWrdcFn1-yw_WQGpaE1o6EwLLBz1huQYQ.cache → 8Mt8KKhDfWMlVzIUM3vc5LZsEDGQkPmtR1lWxp_W0KU.cache} +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/g97nJc5YmnbscVR5pZZoxgfj652ml7dLjUIu0FHDwLA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vlJujjzOikOTUvCvT3C4o3vK0ySfxbQQ3RBE37vXH0U.cache +0 -0
- data/test/dummy/tmp/generators/config/initializers/push_type.rb +55 -0
- data/test/dummy/tmp/generators/config/routes.rb +59 -0
- metadata +24 -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
|
File without changes
|
Binary file
|
Binary file
|
@@ -0,0 +1,55 @@
|
|
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
|
+
# Set an array of taxonomy type symbols which will not be exposed
|
19
|
+
# to the `TaxonomiesFrontEndController`. These taxonomies will not
|
20
|
+
# be accessible through their permalink.
|
21
|
+
config.unexposed_taxonomies = []
|
22
|
+
|
23
|
+
# Media styles allow you to predefine a collection of geometry
|
24
|
+
# strings for resizing images on the fly with the `Asset#media`
|
25
|
+
# method. Example: `image.media(:large)`
|
26
|
+
config.media_styles = {
|
27
|
+
large: '1024x1024>',
|
28
|
+
medium: '512x512>',
|
29
|
+
small: '256x256>'
|
30
|
+
}
|
31
|
+
|
32
|
+
# Configure the email address to be used as the "from" address
|
33
|
+
# for PushType's build in mailers.
|
34
|
+
config.mailer_sender = 'pushtype@example.com'
|
35
|
+
|
36
|
+
# PushType uses Dragonfly for managing uploaded images/assets.
|
37
|
+
# Dragonfly datastore configuration
|
38
|
+
config.dragonfly_datastore = :file
|
39
|
+
config.dragonfly_datastore_options = {
|
40
|
+
root_path: Rails.root.join('public/system/dragonfly', Rails.env),
|
41
|
+
server_root: Rails.root.join('public')
|
42
|
+
}
|
43
|
+
|
44
|
+
# For S3 storage, remember to add to Gemfile:
|
45
|
+
# gem 'dragonfly-s3_data_store'
|
46
|
+
# config.dragonfly_datastore = :s3
|
47
|
+
# config.dragonfly_datastore_options = {
|
48
|
+
# bucket_name: ENV['S3_BUCKET'],
|
49
|
+
# access_key_id: ENV['S3_ACCESS_KEY_ID'],
|
50
|
+
# secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
|
51
|
+
# }
|
52
|
+
|
53
|
+
# config.dragonfly_secret = '1d6edfb00f00cee6c887708948206f384d16f8dea925e6bd3aba241b0aa819ab'
|
54
|
+
|
55
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
mount_push_type
|
4
|
+
|
5
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
6
|
+
# See how all your routes lay out with "rake routes".
|
7
|
+
|
8
|
+
# You can have the root of your site routed with "root"
|
9
|
+
# root 'welcome#index'
|
10
|
+
|
11
|
+
# Example of regular route:
|
12
|
+
# get 'products/:id' => 'catalog#view'
|
13
|
+
|
14
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
15
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
16
|
+
|
17
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
18
|
+
# resources :products
|
19
|
+
|
20
|
+
# Example resource route with options:
|
21
|
+
# resources :products do
|
22
|
+
# member do
|
23
|
+
# get 'short'
|
24
|
+
# post 'toggle'
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# collection do
|
28
|
+
# get 'sold'
|
29
|
+
# end
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Example resource route with sub-resources:
|
33
|
+
# resources :products do
|
34
|
+
# resources :comments, :sales
|
35
|
+
# resource :seller
|
36
|
+
# end
|
37
|
+
|
38
|
+
# Example resource route with more complex sub-resources:
|
39
|
+
# resources :products do
|
40
|
+
# resources :comments
|
41
|
+
# resources :sales do
|
42
|
+
# get 'recent', on: :collection
|
43
|
+
# end
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Example resource route with concerns:
|
47
|
+
# concern :toggleable do
|
48
|
+
# post 'toggle'
|
49
|
+
# end
|
50
|
+
# resources :posts, concerns: :toggleable
|
51
|
+
# resources :photos, concerns: :toggleable
|
52
|
+
|
53
|
+
# Example resource route within a namespace:
|
54
|
+
# namespace :admin do
|
55
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
56
|
+
# # (app/controllers/admin/products_controller.rb)
|
57
|
+
# resources :products
|
58
|
+
# end
|
59
|
+
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.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -259,13 +259,13 @@ files:
|
|
259
259
|
- test/dummy/config/locales/en.yml
|
260
260
|
- test/dummy/config/routes.rb
|
261
261
|
- test/dummy/config/secrets.yml
|
262
|
-
- test/dummy/db/migrate/
|
263
|
-
- test/dummy/db/migrate/
|
264
|
-
- test/dummy/db/migrate/
|
265
|
-
- test/dummy/db/migrate/
|
266
|
-
- test/dummy/db/migrate/
|
267
|
-
- test/dummy/db/migrate/
|
268
|
-
- test/dummy/db/migrate/
|
262
|
+
- test/dummy/db/migrate/20150928114659_create_push_type_users.push_type.rb
|
263
|
+
- test/dummy/db/migrate/20150928114660_create_push_type_nodes.push_type.rb
|
264
|
+
- test/dummy/db/migrate/20150928114661_create_push_type_node_hierarchies.push_type.rb
|
265
|
+
- test/dummy/db/migrate/20150928114662_create_push_type_assets.push_type.rb
|
266
|
+
- test/dummy/db/migrate/20150928114663_create_push_type_taxonomies.push_type.rb
|
267
|
+
- test/dummy/db/migrate/20150928114664_create_push_type_taxonomy_hierarchies.push_type.rb
|
268
|
+
- test/dummy/db/migrate/20150928114665_add_field_store_default_values.push_type.rb
|
269
269
|
- test/dummy/db/schema.rb
|
270
270
|
- test/dummy/db/seeds.rb
|
271
271
|
- test/dummy/log/test.log
|
@@ -274,16 +274,16 @@ files:
|
|
274
274
|
- test/dummy/public/500.html
|
275
275
|
- test/dummy/public/favicon.ico
|
276
276
|
- test/dummy/public/robots.txt
|
277
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/0VLfu-ipRCm5lg6MOptoyejoCkDcrvsfiei7dJqJR7o.cache
|
277
278
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/5hBD45unr3-A8x6pxXjxq708mnY9gJisy1yA5AojZWQ.cache
|
278
|
-
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/
|
279
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/8Mt8KKhDfWMlVzIUM3vc5LZsEDGQkPmtR1lWxp_W0KU.cache
|
279
280
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/M0EVptJKeB1GMjwoMb3w3mgp8VB55MSbItnFhItY4hA.cache
|
280
281
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/MSjNaQjz3SH1LnDyk7nWta_i3hcCEV9m1eoNFbOXjwI.cache
|
281
|
-
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/fpxsy_yXkhFWrdcFn1-yw_WQGpaE1o6EwLLBz1huQYQ.cache
|
282
282
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/g97nJc5YmnbscVR5pZZoxgfj652ml7dLjUIu0FHDwLA.cache
|
283
283
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/utXmZy0kE8zUnHIqwtbjUUJlYlFcGDJreK2YPDuR3n8.cache
|
284
284
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/vlJujjzOikOTUvCvT3C4o3vK0ySfxbQQ3RBE37vXH0U.cache
|
285
|
-
- test/dummy/tmp/generators/
|
286
|
-
- test/dummy/tmp/generators/
|
285
|
+
- test/dummy/tmp/generators/config/initializers/push_type.rb
|
286
|
+
- test/dummy/tmp/generators/config/routes.rb
|
287
287
|
- test/fields/push_type/asset_field_test.rb
|
288
288
|
- test/fields/push_type/date_field_test.rb
|
289
289
|
- test/fields/push_type/markdown_field_test.rb
|
@@ -385,13 +385,13 @@ test_files:
|
|
385
385
|
- test/dummy/config/routes.rb
|
386
386
|
- test/dummy/config/secrets.yml
|
387
387
|
- test/dummy/config.ru
|
388
|
-
- test/dummy/db/migrate/
|
389
|
-
- test/dummy/db/migrate/
|
390
|
-
- test/dummy/db/migrate/
|
391
|
-
- test/dummy/db/migrate/
|
392
|
-
- test/dummy/db/migrate/
|
393
|
-
- test/dummy/db/migrate/
|
394
|
-
- test/dummy/db/migrate/
|
388
|
+
- test/dummy/db/migrate/20150928114659_create_push_type_users.push_type.rb
|
389
|
+
- test/dummy/db/migrate/20150928114660_create_push_type_nodes.push_type.rb
|
390
|
+
- test/dummy/db/migrate/20150928114661_create_push_type_node_hierarchies.push_type.rb
|
391
|
+
- test/dummy/db/migrate/20150928114662_create_push_type_assets.push_type.rb
|
392
|
+
- test/dummy/db/migrate/20150928114663_create_push_type_taxonomies.push_type.rb
|
393
|
+
- test/dummy/db/migrate/20150928114664_create_push_type_taxonomy_hierarchies.push_type.rb
|
394
|
+
- test/dummy/db/migrate/20150928114665_add_field_store_default_values.push_type.rb
|
395
395
|
- test/dummy/db/schema.rb
|
396
396
|
- test/dummy/db/seeds.rb
|
397
397
|
- test/dummy/log/test.log
|
@@ -402,16 +402,16 @@ test_files:
|
|
402
402
|
- test/dummy/public/robots.txt
|
403
403
|
- test/dummy/Rakefile
|
404
404
|
- test/dummy/README.rdoc
|
405
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/0VLfu-ipRCm5lg6MOptoyejoCkDcrvsfiei7dJqJR7o.cache
|
405
406
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/5hBD45unr3-A8x6pxXjxq708mnY9gJisy1yA5AojZWQ.cache
|
406
|
-
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/
|
407
|
-
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/fpxsy_yXkhFWrdcFn1-yw_WQGpaE1o6EwLLBz1huQYQ.cache
|
407
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/8Mt8KKhDfWMlVzIUM3vc5LZsEDGQkPmtR1lWxp_W0KU.cache
|
408
408
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/g97nJc5YmnbscVR5pZZoxgfj652ml7dLjUIu0FHDwLA.cache
|
409
409
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/M0EVptJKeB1GMjwoMb3w3mgp8VB55MSbItnFhItY4hA.cache
|
410
410
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/MSjNaQjz3SH1LnDyk7nWta_i3hcCEV9m1eoNFbOXjwI.cache
|
411
411
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/utXmZy0kE8zUnHIqwtbjUUJlYlFcGDJreK2YPDuR3n8.cache
|
412
412
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/vlJujjzOikOTUvCvT3C4o3vK0ySfxbQQ3RBE37vXH0U.cache
|
413
|
-
- test/dummy/tmp/generators/
|
414
|
-
- test/dummy/tmp/generators/
|
413
|
+
- test/dummy/tmp/generators/config/initializers/push_type.rb
|
414
|
+
- test/dummy/tmp/generators/config/routes.rb
|
415
415
|
- test/fields/push_type/asset_field_test.rb
|
416
416
|
- test/fields/push_type/date_field_test.rb
|
417
417
|
- test/fields/push_type/markdown_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
|
-
|