push_type_core 0.10.4 → 0.11.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/concerns/push_type/presentable.rb +2 -3
  3. data/db/migrate/20141117170533_create_push_type_users.rb +1 -1
  4. data/db/migrate/20141117204630_create_push_type_nodes.rb +1 -1
  5. data/db/migrate/20141117210644_create_push_type_node_hierarchies.rb +1 -1
  6. data/db/migrate/20141127151930_create_push_type_assets.rb +1 -1
  7. data/db/migrate/20150531183944_add_field_store_default_values.rb +1 -1
  8. data/db/migrate/20160201150228_drop_legacy_push_type_taxonomies.rb +1 -1
  9. data/lib/push_type/core_ext/to_bool.rb +1 -1
  10. data/lib/push_type/testing/common_rake.rb +2 -0
  11. data/lib/push_type/testing/setup.rb +2 -0
  12. data/lib/push_type/version.rb +1 -1
  13. data/test/dummy/app/presenters/page_presenter.rb +12 -0
  14. data/test/dummy/config/initializers/new_framework_defaults.rb +1 -1
  15. data/test/dummy/config/initializers/push_type.rb +1 -1
  16. data/test/dummy/config/secrets.yml +2 -2
  17. data/test/dummy/db/migrate/{20170130110706_create_push_type_users.push_type.rb → 20170407124941_create_push_type_users.push_type.rb} +1 -1
  18. data/test/dummy/db/migrate/{20170130110707_create_push_type_nodes.push_type.rb → 20170407124942_create_push_type_nodes.push_type.rb} +1 -1
  19. data/test/dummy/db/migrate/{20170130110708_create_push_type_node_hierarchies.push_type.rb → 20170407124943_create_push_type_node_hierarchies.push_type.rb} +1 -1
  20. data/test/dummy/db/migrate/{20170130110709_create_push_type_assets.push_type.rb → 20170407124944_create_push_type_assets.push_type.rb} +1 -1
  21. data/test/dummy/db/migrate/{20170130110710_add_field_store_default_values.push_type.rb → 20170407124945_add_field_store_default_values.push_type.rb} +1 -1
  22. data/test/dummy/db/migrate/{20170130110711_drop_legacy_push_type_taxonomies.push_type.rb → 20170407124946_drop_legacy_push_type_taxonomies.push_type.rb} +1 -1
  23. data/test/dummy/db/schema.rb +1 -1
  24. data/test/dummy/log/test.log +9196 -8251
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1N/1NNyrLTivkL3hdlxBCXmY6iPuav17Zf_HEok9VWTl9Q.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache → 3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache} +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/63/63SLH-WYBSKsVbXlO_ussUx7A7uyKTGmBwUGdAYytlg.cache +1 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7aRzafVCYl8iUvhtC98x4lDfOVsxtR6jTRMCEHhJEDY.cache +1 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{18/18dz1Q7HxdmdXOLUDZIBmJsMrS-UjkTBckfjwwPeuy0.cache → Bp/BpTIRhA-GS10QrpUHsZja1dAjjGnUgKyDLICDiOhnRo.cache} +2 -2
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache +1 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/g2/g2ChIdW29D1jUIexFQvW8kjbszkdixbAYIEudlI_WTA.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{du/duD181BDwQ_-mqj8kFgYtv-uO0UIiKc2tlilPxBUxOc.cache → mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache} +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Km/KmWNTOX1s_-TvpqmX-X6Fw65vQt4m95mKig2Dk3PiOc.cache → mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache} +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Lb/LbbWeqaG4K1CMhBNZcK8Pkh70xk7QcBiJ8rGEbYThoU.cache → p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache} +0 -0
  35. data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +12 -0
  36. data/test/fields/push_type/tag_list_field_test.rb +1 -1
  37. data/test/models/concerns/push_type/presentable_test.rb +22 -0
  38. metadata +54 -54
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0N/0NPeHRLLlSt4sMy7neLezHN8nLTrTnuzBXCExGOoKxs.cache +0 -1
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjkZZ0bYHBy9yN_77SEGLPoRNWXOgJT68Hg6wQiq7JA.cache +0 -1
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9lx-kimyW906rSFFeolUny3qYPaq-KPVcVh-8LouNc.cache +0 -1
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ST/STVCwvSaGT6imMs-7Hd-EOpnJ7TVJ1tnJmqjDS00KbA.cache +0 -1
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_8/_8-gybmYphPEXoBFNQMOjgOegzE4ejRh2WT3qKxlES4.cache +0 -1
  44. data/test/dummy/tmp/generators/config/initializers/push_type.rb +0 -50
  45. data/test/dummy/tmp/generators/config/routes.rb +0 -15
  46. /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache → eu/eucS-DO7l97Vq6N1vBZsb8P5L25_WFoXYcmcEFWWSic.cache} +0 -0
  47. /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache → hV/hVCLQc9G-AVrZlFolUenJrX5l6Nstlu-EcZQn2_mNeY.cache} +0 -0
@@ -0,0 +1 @@
1
+ I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg?type=image/svg+xml&id=bb06d68c38b3bc9c4cda6cc81c4b299cd6dd3a70a587198f523f26d0d35058f8:ET
@@ -0,0 +1 @@
1
+ I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.png?type=image/png&id=1d596c85431ae4634223380ff8ce9573e73eb130477a3d30e8ea25950798f8b5:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=f03e8a2fa3cb1f9eebb4126e25b4204ba8aa41a75591d75581100612358aa6fc:ET
@@ -1,4 +1,4 @@
1
- {:uriI"�file:///Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg?type=image/svg+xml&id=0d741bfcf134d8e56eb47c7f7ec75a0330cc96829bc2141c89a81d52e3bc8a48:ET:load_pathI"?/Users/aaron/dev/pushcode/push_type/core/app/assets/images;T:
1
+ {:uriI"�file:///Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg?type=image/svg+xml&id=bb06d68c38b3bc9c4cda6cc81c4b299cd6dd3a70a587198f523f26d0d35058f8:ET:load_pathI"?/Users/aaron/dev/pushcode/push_type/core/app/assets/images;T:
2
2
  @hash}
3
- I"environment-version;TTI"environment-paths;TTI"rails-env;TTI":processors:type=image/svg+xml&file_type=image/svg+xml;TTI"ifile-digest:///Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg;TTF:dependencies_digest"%��(R����_���x�Y�i� ����z�E�'::idI"E0d741bfcf134d8e56eb47c7f7ec75a0330cc96829bc2141c89a81d52e3bc8a48;F:
3
+ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI":processors:type=image/svg+xml&file_type=image/svg+xml;TTI"ifile-digest:///Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg;TTF:dependencies_digest"%�ɉ��h#�:���<�x��r������:�ۻ7O�:idI"Ebb06d68c38b3bc9c4cda6cc81c4b299cd6dd3a70a587198f523f26d0d35058f8;F:
4
4
  mtimel+^��T
@@ -0,0 +1 @@
1
+ I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-favicon.png?type=image/png&id=bd17f69e9e32c5f1fc301200c0d45b2e9293cfac5dd301189a7a1e3f07005bad:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=f92af6fbd62d195c9ed15d3377c75e80a8e62f7620dd5d85314a46bdb6b508ac:ET
@@ -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
@@ -32,7 +32,7 @@ module PushType
32
32
  describe '#with_all_tags' do
33
33
  let(:tags) { ['foo', 'foo', 'bar', 'qux'] }
34
34
  it { TestPage.must_respond_to :with_all_tags }
35
- it { TestPage.with_all_tags(tags).must_be_instance_of TestPage::ActiveRecord_Relation }
35
+ it { TestPage.with_all_tags(tags).must_be_kind_of ActiveRecord::Relation }
36
36
  it { TestPage.with_all_tags(tags).count.must_equal 1 }
37
37
  it { TestPage.published.with_all_tags(tags).count.must_equal 0 }
38
38
  it { TestPage.published.with_all_tags('qux').count.must_equal 1 }
@@ -21,5 +21,27 @@ module PushType
21
21
  it { page.location.present!.class.ancestors.must_include PushType::Presenter }
22
22
  end
23
23
 
24
+ it "autoloads the presenter" do
25
+ begin
26
+ ::PresentableNode = Class.new(PushType::Node)
27
+
28
+ file = "#{Rails.root}/app/presenters/presentable_node_presenter.rb"
29
+ File.write(file, <<-RUBY)
30
+ class PresentableNodePresenter < PushType::Presenter
31
+ def self.static?
32
+ true
33
+ end
34
+ end
35
+ RUBY
36
+
37
+ PresentableNode.presenter_class_name.must_equal "PresentableNodePresenter"
38
+ PresentableNode.presenter_class.static?.must_equal true
39
+ ensure
40
+ Object.send(:remove_const, :PresentableNode)
41
+ Object.send(:remove_const, :PresentableNodePresenter) if defined?(::PresentableNodePresenter)
42
+ FileUtils.rm_f(file)
43
+ end
44
+ end
45
+
24
46
  end
25
47
  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.4
4
+ version: 0.11.0.beta.1
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-02-14 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,42 +56,42 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: 6.2.0
59
+ version: 6.5.0
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: 6.2.0
66
+ version: 6.5.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: dragonfly
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 1.0.12
73
+ version: 1.1.1
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.0.12
80
+ version: 1.1.1
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: redcarpet
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 3.3.4
87
+ version: 3.4.0
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 3.3.4
94
+ version: 3.4.0
95
95
  description: The core engine for PushType CMS. Required by all other PushType engines.
96
96
  PushType is a new generation of content management system for Ruby on Rails.
97
97
  email:
@@ -208,6 +208,7 @@ files:
208
208
  - test/dummy/app/models/application_record.rb
209
209
  - test/dummy/app/models/location.rb
210
210
  - test/dummy/app/models/page.rb
211
+ - test/dummy/app/presenters/page_presenter.rb
211
212
  - test/dummy/app/views/layouts/application.html.erb
212
213
  - test/dummy/app/views/layouts/mailer.html.erb
213
214
  - test/dummy/app/views/layouts/mailer.text.erb
@@ -242,12 +243,12 @@ files:
242
243
  - test/dummy/config/routes.rb
243
244
  - test/dummy/config/secrets.yml
244
245
  - test/dummy/config/spring.rb
245
- - test/dummy/db/migrate/20170130110706_create_push_type_users.push_type.rb
246
- - test/dummy/db/migrate/20170130110707_create_push_type_nodes.push_type.rb
247
- - test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
248
- - test/dummy/db/migrate/20170130110709_create_push_type_assets.push_type.rb
249
- - test/dummy/db/migrate/20170130110710_add_field_store_default_values.push_type.rb
250
- - test/dummy/db/migrate/20170130110711_drop_legacy_push_type_taxonomies.push_type.rb
246
+ - test/dummy/db/migrate/20170407124941_create_push_type_users.push_type.rb
247
+ - test/dummy/db/migrate/20170407124942_create_push_type_nodes.push_type.rb
248
+ - test/dummy/db/migrate/20170407124943_create_push_type_node_hierarchies.push_type.rb
249
+ - test/dummy/db/migrate/20170407124944_create_push_type_assets.push_type.rb
250
+ - test/dummy/db/migrate/20170407124945_add_field_store_default_values.push_type.rb
251
+ - test/dummy/db/migrate/20170407124946_drop_legacy_push_type_taxonomies.push_type.rb
251
252
  - test/dummy/db/schema.rb
252
253
  - test/dummy/db/seeds.rb
253
254
  - test/dummy/log/test.log
@@ -258,28 +259,27 @@ files:
258
259
  - test/dummy/public/apple-touch-icon.png
259
260
  - test/dummy/public/favicon.ico
260
261
  - test/dummy/public/robots.txt
261
- - test/dummy/tmp/cache/assets/sprockets/v3.0/0N/0NPeHRLLlSt4sMy7neLezHN8nLTrTnuzBXCExGOoKxs.cache
262
- - test/dummy/tmp/cache/assets/sprockets/v3.0/18/18dz1Q7HxdmdXOLUDZIBmJsMrS-UjkTBckfjwwPeuy0.cache
262
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/1N/1NNyrLTivkL3hdlxBCXmY6iPuav17Zf_HEok9VWTl9Q.cache
263
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache
264
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/63/63SLH-WYBSKsVbXlO_ussUx7A7uyKTGmBwUGdAYytlg.cache
265
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7aRzafVCYl8iUvhtC98x4lDfOVsxtR6jTRMCEHhJEDY.cache
263
266
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
264
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjkZZ0bYHBy9yN_77SEGLPoRNWXOgJT68Hg6wQiq7JA.cache
267
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Bp/BpTIRhA-GS10QrpUHsZja1dAjjGnUgKyDLICDiOhnRo.cache
265
268
  - test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
266
- - test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9lx-kimyW906rSFFeolUny3qYPaq-KPVcVh-8LouNc.cache
267
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Km/KmWNTOX1s_-TvpqmX-X6Fw65vQt4m95mKig2Dk3PiOc.cache
268
269
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
269
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbbWeqaG4K1CMhBNZcK8Pkh70xk7QcBiJ8rGEbYThoU.cache
270
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ST/STVCwvSaGT6imMs-7Hd-EOpnJ7TVJ1tnJmqjDS00KbA.cache
271
270
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
272
- - test/dummy/tmp/cache/assets/sprockets/v3.0/_8/_8-gybmYphPEXoBFNQMOjgOegzE4ejRh2WT3qKxlES4.cache
273
- - test/dummy/tmp/cache/assets/sprockets/v3.0/du/duD181BDwQ_-mqj8kFgYtv-uO0UIiKc2tlilPxBUxOc.cache
274
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache
271
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/eu/eucS-DO7l97Vq6N1vBZsb8P5L25_WFoXYcmcEFWWSic.cache
272
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache
273
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/g2/g2ChIdW29D1jUIexFQvW8kjbszkdixbAYIEudlI_WTA.cache
274
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/hV/hVCLQc9G-AVrZlFolUenJrX5l6Nstlu-EcZQn2_mNeY.cache
275
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache
276
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache
275
277
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
276
- - test/dummy/tmp/cache/assets/sprockets/v3.0/n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.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
280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache
279
281
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
280
- - test/dummy/tmp/cache/assets/sprockets/v3.0/wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache
281
- - test/dummy/tmp/generators/config/initializers/push_type.rb
282
- - test/dummy/tmp/generators/config/routes.rb
282
+ - test/dummy/tmp/generators/app/presenters/page_presenter.rb
283
283
  - test/fields/push_type/asset_field_test.rb
284
284
  - test/fields/push_type/boolean_field_test.rb
285
285
  - test/fields/push_type/date_field_test.rb
@@ -343,9 +343,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
343
343
  version: '0'
344
344
  required_rubygems_version: !ruby/object:Gem::Requirement
345
345
  requirements:
346
- - - ">="
346
+ - - ">"
347
347
  - !ruby/object:Gem::Version
348
- version: '0'
348
+ version: 1.3.1
349
349
  requirements: []
350
350
  rubyforge_project:
351
351
  rubygems_version: 2.5.1
@@ -365,6 +365,7 @@ test_files:
365
365
  - test/dummy/app/models/application_record.rb
366
366
  - test/dummy/app/models/location.rb
367
367
  - test/dummy/app/models/page.rb
368
+ - test/dummy/app/presenters/page_presenter.rb
368
369
  - test/dummy/app/views/layouts/application.html.erb
369
370
  - test/dummy/app/views/layouts/mailer.html.erb
370
371
  - test/dummy/app/views/layouts/mailer.text.erb
@@ -399,12 +400,12 @@ test_files:
399
400
  - test/dummy/config/secrets.yml
400
401
  - test/dummy/config/spring.rb
401
402
  - test/dummy/config.ru
402
- - test/dummy/db/migrate/20170130110706_create_push_type_users.push_type.rb
403
- - test/dummy/db/migrate/20170130110707_create_push_type_nodes.push_type.rb
404
- - test/dummy/db/migrate/20170130110708_create_push_type_node_hierarchies.push_type.rb
405
- - test/dummy/db/migrate/20170130110709_create_push_type_assets.push_type.rb
406
- - test/dummy/db/migrate/20170130110710_add_field_store_default_values.push_type.rb
407
- - test/dummy/db/migrate/20170130110711_drop_legacy_push_type_taxonomies.push_type.rb
403
+ - test/dummy/db/migrate/20170407124941_create_push_type_users.push_type.rb
404
+ - test/dummy/db/migrate/20170407124942_create_push_type_nodes.push_type.rb
405
+ - test/dummy/db/migrate/20170407124943_create_push_type_node_hierarchies.push_type.rb
406
+ - test/dummy/db/migrate/20170407124944_create_push_type_assets.push_type.rb
407
+ - test/dummy/db/migrate/20170407124945_add_field_store_default_values.push_type.rb
408
+ - test/dummy/db/migrate/20170407124946_drop_legacy_push_type_taxonomies.push_type.rb
408
409
  - test/dummy/db/schema.rb
409
410
  - test/dummy/db/seeds.rb
410
411
  - test/dummy/log/test.log
@@ -417,28 +418,27 @@ test_files:
417
418
  - test/dummy/public/robots.txt
418
419
  - test/dummy/Rakefile
419
420
  - test/dummy/README.md
420
- - test/dummy/tmp/cache/assets/sprockets/v3.0/0N/0NPeHRLLlSt4sMy7neLezHN8nLTrTnuzBXCExGOoKxs.cache
421
- - test/dummy/tmp/cache/assets/sprockets/v3.0/18/18dz1Q7HxdmdXOLUDZIBmJsMrS-UjkTBckfjwwPeuy0.cache
421
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/1N/1NNyrLTivkL3hdlxBCXmY6iPuav17Zf_HEok9VWTl9Q.cache
422
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache
423
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/63/63SLH-WYBSKsVbXlO_ussUx7A7uyKTGmBwUGdAYytlg.cache
424
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7aRzafVCYl8iUvhtC98x4lDfOVsxtR6jTRMCEHhJEDY.cache
422
425
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9v/9vnNjAebssmz7XPUIgssBZbkNcX-l446wdMdLtHbbyQ.cache
423
- - test/dummy/tmp/cache/assets/sprockets/v3.0/_8/_8-gybmYphPEXoBFNQMOjgOegzE4ejRh2WT3qKxlES4.cache
424
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjkZZ0bYHBy9yN_77SEGLPoRNWXOgJT68Hg6wQiq7JA.cache
425
- - test/dummy/tmp/cache/assets/sprockets/v3.0/du/duD181BDwQ_-mqj8kFgYtv-uO0UIiKc2tlilPxBUxOc.cache
426
+ - 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
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache
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
426
431
  - test/dummy/tmp/cache/assets/sprockets/v3.0/IU/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache
427
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ju/juq2pRoKArM9djBKKp0UVEvC1-DOnZC_9m_C5NzYw6Y.cache
428
- - test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9lx-kimyW906rSFFeolUny3qYPaq-KPVcVh-8LouNc.cache
429
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Km/KmWNTOX1s_-TvpqmX-X6Fw65vQt4m95mKig2Dk3PiOc.cache
430
432
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache
431
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbbWeqaG4K1CMhBNZcK8Pkh70xk7QcBiJ8rGEbYThoU.cache
433
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache
434
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache
432
435
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n-/n-AVacTIOztKN9mPiB3ZELfidOz1W5urnRN4AsSujqA.cache
433
- - test/dummy/tmp/cache/assets/sprockets/v3.0/n1/n1cmW8jt4yQEndq0Z3WRnnYwPxBigvs5cFyNQ3iUlhU.cache
434
436
  - test/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
435
437
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
438
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache
436
439
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qN/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache
437
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ST/STVCwvSaGT6imMs-7Hd-EOpnJ7TVJ1tnJmqjDS00KbA.cache
438
- - test/dummy/tmp/cache/assets/sprockets/v3.0/wD/wDHi4RI7wfKyh0rWAdz_lLBxcnEC5dMOKpmOgKB15ec.cache
439
440
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XM/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache
440
- - test/dummy/tmp/generators/config/initializers/push_type.rb
441
- - test/dummy/tmp/generators/config/routes.rb
441
+ - test/dummy/tmp/generators/app/presenters/page_presenter.rb
442
442
  - test/fields/push_type/asset_field_test.rb
443
443
  - test/fields/push_type/boolean_field_test.rb
444
444
  - test/fields/push_type/date_field_test.rb
@@ -1 +0,0 @@
1
- I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=cad283f9f0c2e96fca51d181702f735f6aecf3b3747a8907b6c232044c3bf465:ET
@@ -1 +0,0 @@
1
- I"}app/assets/stylesheets/application.css?type=text/css&id=2c9d5a58487c5dae4acaf50503862c1aa738a739596e8a74f11065aee4108dd3:ET
@@ -1 +0,0 @@
1
- I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-favicon.png?type=image/png&id=d85a26cdbadea7c954a1d8c0091a5b2e75162cb5a66240b698af05ecd26be7a7:ET
@@ -1 +0,0 @@
1
- I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.png?type=image/png&id=002d996af2504c7c4679a74af719c80d936acc9d43e336acfb87b7acbba36a8c:ET
@@ -1 +0,0 @@
1
- I"�/Users/aaron/dev/pushcode/push_type/core/app/assets/images/push_type/pushtype-logo.svg?type=image/svg+xml&id=0d741bfcf134d8e56eb47c7f7ec75a0330cc96829bc2141c89a81d52e3bc8a48:ET
@@ -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 built 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 = '2a7c6ad6c485360b1de7f598b8d7d8109c9f0c48fc77322c5ac6fbcad0956ac0'
49
-
50
- end
@@ -1,15 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- # Mount all the registered PushType Rails Engines. This should be placed
4
- # at the end of your routes.rb file to ensure your application routes are
5
- # not overidden by PushType.
6
- #
7
- # Overide the default mount points by passing a hash of options.
8
- # Example:
9
- #
10
- # mount_push_type admin: 'cms', front_end: 'blog'
11
- #
12
- mount_push_type
13
-
14
- # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
15
- end