push_type_core 0.8.0.beta.3 → 0.8.0

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.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/app/fields/push_type/relation_field.rb +1 -1
  3. data/app/fields/push_type/wysiwyg_field.rb +2 -0
  4. data/lib/push_type/version.rb +1 -1
  5. data/test/dummy/config/initializers/push_type.rb +1 -1
  6. data/test/dummy/config/secrets.yml +2 -2
  7. data/test/dummy/db/schema.rb +1 -1
  8. data/test/dummy/log/test.log +8179 -8179
  9. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0ANSDcZJu9gPyqtYPIW729qm1kriQ29Vn9LU8T2SGQU.cache +0 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_d65qW7wxRtKVSYpmfSenECz5QUWVI9pppUgV7TA1Rk.cache +0 -0
  11. data/test/dummy/tmp/generators/config/initializers/push_type.rb +50 -0
  12. data/test/dummy/tmp/generators/config/routes.rb +59 -0
  13. metadata +24 -22
  14. data/test/dummy/tmp/generators/app/models/location.rb +0 -7
  15. /data/test/dummy/db/migrate/{20160219133942_create_push_type_users.push_type.rb → 20160303195052_create_push_type_users.push_type.rb} +0 -0
  16. /data/test/dummy/db/migrate/{20160219133943_create_push_type_nodes.push_type.rb → 20160303195053_create_push_type_nodes.push_type.rb} +0 -0
  17. /data/test/dummy/db/migrate/{20160219133944_create_push_type_node_hierarchies.push_type.rb → 20160303195054_create_push_type_node_hierarchies.push_type.rb} +0 -0
  18. /data/test/dummy/db/migrate/{20160219133945_create_push_type_assets.push_type.rb → 20160303195055_create_push_type_assets.push_type.rb} +0 -0
  19. /data/test/dummy/db/migrate/{20160219133946_add_field_store_default_values.push_type.rb → 20160303195056_add_field_store_default_values.push_type.rb} +0 -0
  20. /data/test/dummy/db/migrate/{20160219133947_drop_legacy_push_type_taxonomies.push_type.rb → 20160303195057_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  21. /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{2FQF7uxsHizgSoGRwbNmDmFTPoWfdOsi-4mptjRhClE.cache → 9apOMCENKcWOe64INpzeNYVYRWCaV9OvvGuGrnGKLlo.cache} +0 -0
  22. /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{oQZIWFGqjXT0crXajNxkE6c5otWSMfx0ji4kIN6v3XM.cache → kipobtdIHNgPWuiZAzBdouoMeIF3zGFRjU8M8yuzI48.cache} +0 -0
@@ -0,0 +1,50 @@
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 = 'de7022e40d17b8b5577331235b8b6cd7e035b4a125cea67dc9c5a24eaea33835'
49
+
50
+ 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.8.0.beta.3
4
+ version: 0.8.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-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -256,12 +256,12 @@ files:
256
256
  - test/dummy/config/locales/en.yml
257
257
  - test/dummy/config/routes.rb
258
258
  - test/dummy/config/secrets.yml
259
- - test/dummy/db/migrate/20160219133942_create_push_type_users.push_type.rb
260
- - test/dummy/db/migrate/20160219133943_create_push_type_nodes.push_type.rb
261
- - test/dummy/db/migrate/20160219133944_create_push_type_node_hierarchies.push_type.rb
262
- - test/dummy/db/migrate/20160219133945_create_push_type_assets.push_type.rb
263
- - test/dummy/db/migrate/20160219133946_add_field_store_default_values.push_type.rb
264
- - test/dummy/db/migrate/20160219133947_drop_legacy_push_type_taxonomies.push_type.rb
259
+ - test/dummy/db/migrate/20160303195052_create_push_type_users.push_type.rb
260
+ - test/dummy/db/migrate/20160303195053_create_push_type_nodes.push_type.rb
261
+ - test/dummy/db/migrate/20160303195054_create_push_type_node_hierarchies.push_type.rb
262
+ - test/dummy/db/migrate/20160303195055_create_push_type_assets.push_type.rb
263
+ - test/dummy/db/migrate/20160303195056_add_field_store_default_values.push_type.rb
264
+ - test/dummy/db/migrate/20160303195057_drop_legacy_push_type_taxonomies.push_type.rb
265
265
  - test/dummy/db/schema.rb
266
266
  - test/dummy/db/seeds.rb
267
267
  - test/dummy/log/test.log
@@ -271,14 +271,15 @@ files:
271
271
  - test/dummy/public/favicon.ico
272
272
  - test/dummy/public/robots.txt
273
273
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0ANSDcZJu9gPyqtYPIW729qm1kriQ29Vn9LU8T2SGQU.cache
274
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2FQF7uxsHizgSoGRwbNmDmFTPoWfdOsi-4mptjRhClE.cache
275
274
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3T6ioyhwSsEzte_a9viHBvfmuKgORQ019srIEoUYkVs.cache
276
275
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
276
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9apOMCENKcWOe64INpzeNYVYRWCaV9OvvGuGrnGKLlo.cache
277
277
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IYzwMwq7DWWSuojH6oXsrP__pcD7O8TQieMFSzQiwnc.cache
278
278
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
279
279
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_d65qW7wxRtKVSYpmfSenECz5QUWVI9pppUgV7TA1Rk.cache
280
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/oQZIWFGqjXT0crXajNxkE6c5otWSMfx0ji4kIN6v3XM.cache
281
- - test/dummy/tmp/generators/app/models/location.rb
280
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/kipobtdIHNgPWuiZAzBdouoMeIF3zGFRjU8M8yuzI48.cache
281
+ - test/dummy/tmp/generators/config/initializers/push_type.rb
282
+ - test/dummy/tmp/generators/config/routes.rb
282
283
  - test/fields/push_type/asset_field_test.rb
283
284
  - test/fields/push_type/boolean_field_test.rb
284
285
  - test/fields/push_type/date_field_test.rb
@@ -340,9 +341,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
341
  version: '0'
341
342
  required_rubygems_version: !ruby/object:Gem::Requirement
342
343
  requirements:
343
- - - ">"
344
+ - - ">="
344
345
  - !ruby/object:Gem::Version
345
- version: 1.3.1
346
+ version: '0'
346
347
  requirements: []
347
348
  rubyforge_project:
348
349
  rubygems_version: 2.4.2
@@ -382,12 +383,12 @@ test_files:
382
383
  - test/dummy/config/routes.rb
383
384
  - test/dummy/config/secrets.yml
384
385
  - test/dummy/config.ru
385
- - test/dummy/db/migrate/20160219133942_create_push_type_users.push_type.rb
386
- - test/dummy/db/migrate/20160219133943_create_push_type_nodes.push_type.rb
387
- - test/dummy/db/migrate/20160219133944_create_push_type_node_hierarchies.push_type.rb
388
- - test/dummy/db/migrate/20160219133945_create_push_type_assets.push_type.rb
389
- - test/dummy/db/migrate/20160219133946_add_field_store_default_values.push_type.rb
390
- - test/dummy/db/migrate/20160219133947_drop_legacy_push_type_taxonomies.push_type.rb
386
+ - test/dummy/db/migrate/20160303195052_create_push_type_users.push_type.rb
387
+ - test/dummy/db/migrate/20160303195053_create_push_type_nodes.push_type.rb
388
+ - test/dummy/db/migrate/20160303195054_create_push_type_node_hierarchies.push_type.rb
389
+ - test/dummy/db/migrate/20160303195055_create_push_type_assets.push_type.rb
390
+ - test/dummy/db/migrate/20160303195056_add_field_store_default_values.push_type.rb
391
+ - test/dummy/db/migrate/20160303195057_drop_legacy_push_type_taxonomies.push_type.rb
391
392
  - test/dummy/db/schema.rb
392
393
  - test/dummy/db/seeds.rb
393
394
  - test/dummy/log/test.log
@@ -399,14 +400,15 @@ test_files:
399
400
  - test/dummy/Rakefile
400
401
  - test/dummy/README.rdoc
401
402
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0ANSDcZJu9gPyqtYPIW729qm1kriQ29Vn9LU8T2SGQU.cache
402
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2FQF7uxsHizgSoGRwbNmDmFTPoWfdOsi-4mptjRhClE.cache
403
403
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3T6ioyhwSsEzte_a9viHBvfmuKgORQ019srIEoUYkVs.cache
404
404
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
405
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9apOMCENKcWOe64INpzeNYVYRWCaV9OvvGuGrnGKLlo.cache
405
406
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_d65qW7wxRtKVSYpmfSenECz5QUWVI9pppUgV7TA1Rk.cache
406
407
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IYzwMwq7DWWSuojH6oXsrP__pcD7O8TQieMFSzQiwnc.cache
408
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/kipobtdIHNgPWuiZAzBdouoMeIF3zGFRjU8M8yuzI48.cache
407
409
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
408
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/oQZIWFGqjXT0crXajNxkE6c5otWSMfx0ji4kIN6v3XM.cache
409
- - test/dummy/tmp/generators/app/models/location.rb
410
+ - test/dummy/tmp/generators/config/initializers/push_type.rb
411
+ - test/dummy/tmp/generators/config/routes.rb
410
412
  - test/fields/push_type/asset_field_test.rb
411
413
  - test/fields/push_type/boolean_field_test.rb
412
414
  - test/fields/push_type/date_field_test.rb
@@ -1,7 +0,0 @@
1
- class Location < PushType::Structure
2
-
3
- # Model the content by adding custom fields to the structure.
4
- field :foo, :string
5
- field :bar, :text
6
-
7
- end