push_type_core 0.2.0.beta2 → 0.2.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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/config/initializers/dragonfly.rb +0 -13
  3. data/lib/generators/push_type/install/install_generator.rb +1 -1
  4. data/lib/generators/push_type/install/templates/push_type.rb +26 -8
  5. data/lib/push_type/config.rb +31 -0
  6. data/lib/push_type/core/engine.rb +5 -12
  7. data/lib/push_type/core.rb +12 -1
  8. data/test/dummy/config/initializers/push_type.rb +26 -8
  9. data/test/dummy/config/secrets.yml +2 -2
  10. data/test/dummy/db/schema.rb +1 -1
  11. data/test/dummy/log/test.log +1244 -1242
  12. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  15. data/test/dummy/tmp/generators/app/models/home_page.rb +10 -0
  16. data/test/dummy/tmp/generators/app/views/nodes/home_page.html.erb +3 -0
  17. data/test/lib/push_type/core_test.rb +0 -1
  18. metadata +21 -20
  19. data/test/dummy/tmp/generators/config/initializers/push_type.rb +0 -15
  20. data/test/dummy/tmp/generators/config/routes.rb +0 -59
  21. /data/test/dummy/db/migrate/{20150208150305_create_push_type_users.push_type.rb → 20150209204334_create_push_type_users.push_type.rb} +0 -0
  22. /data/test/dummy/db/migrate/{20150208150306_create_push_type_nodes.push_type.rb → 20150209204335_create_push_type_nodes.push_type.rb} +0 -0
  23. /data/test/dummy/db/migrate/{20150208150307_create_push_type_node_hierarchies.push_type.rb → 20150209204336_create_push_type_node_hierarchies.push_type.rb} +0 -0
  24. /data/test/dummy/db/migrate/{20150208150308_create_push_type_assets.push_type.rb → 20150209204337_create_push_type_assets.push_type.rb} +0 -0
@@ -0,0 +1,10 @@
1
+ class HomePage < PushType::Node
2
+
3
+ # Control child nodes
4
+ # has_child_nodes :all
5
+
6
+ # Set custom fields
7
+ # field :description
8
+ # field :body, :text, validates: { presence: true }
9
+
10
+ end
@@ -0,0 +1,3 @@
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>
@@ -5,7 +5,6 @@ module PushType
5
5
 
6
6
  describe '.config' do
7
7
  subject { PushType.config }
8
- it { subject.must_be_instance_of Rails::Engine::Configuration }
9
8
  it { subject.root_nodes.wont_be_nil }
10
9
  it { subject.home_slug.wont_be_nil }
11
10
  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.2.0.beta2
4
+ version: 0.2.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: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 5.1.1
47
+ version: 5.2.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 5.1.1
54
+ version: 5.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: dragonfly
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.0
89
+ version: 1.4.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.3.0
96
+ version: 1.4.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: factory_girl_rails
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +152,7 @@ files:
152
152
  - lib/generators/push_type/node/node_generator.rb
153
153
  - lib/generators/push_type/node/templates/node.rb
154
154
  - lib/generators/push_type/node/templates/template.html.erb
155
+ - lib/push_type/config.rb
155
156
  - lib/push_type/core.rb
156
157
  - lib/push_type/core/engine.rb
157
158
  - lib/push_type/field_type.rb
@@ -197,10 +198,10 @@ files:
197
198
  - test/dummy/config/locales/en.yml
198
199
  - test/dummy/config/routes.rb
199
200
  - test/dummy/config/secrets.yml
200
- - test/dummy/db/migrate/20150208150305_create_push_type_users.push_type.rb
201
- - test/dummy/db/migrate/20150208150306_create_push_type_nodes.push_type.rb
202
- - test/dummy/db/migrate/20150208150307_create_push_type_node_hierarchies.push_type.rb
203
- - test/dummy/db/migrate/20150208150308_create_push_type_assets.push_type.rb
201
+ - test/dummy/db/migrate/20150209204334_create_push_type_users.push_type.rb
202
+ - test/dummy/db/migrate/20150209204335_create_push_type_nodes.push_type.rb
203
+ - test/dummy/db/migrate/20150209204336_create_push_type_node_hierarchies.push_type.rb
204
+ - test/dummy/db/migrate/20150209204337_create_push_type_assets.push_type.rb
204
205
  - test/dummy/db/schema.rb
205
206
  - test/dummy/db/seeds.rb
206
207
  - test/dummy/log/test.log
@@ -212,8 +213,8 @@ files:
212
213
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
213
214
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
214
215
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
215
- - test/dummy/tmp/generators/config/initializers/push_type.rb
216
- - test/dummy/tmp/generators/config/routes.rb
216
+ - test/dummy/tmp/generators/app/models/home_page.rb
217
+ - test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
217
218
  - test/files/audio.m3u
218
219
  - test/files/document.pdf
219
220
  - test/files/image.png
@@ -248,9 +249,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
249
  version: '0'
249
250
  required_rubygems_version: !ruby/object:Gem::Requirement
250
251
  requirements:
251
- - - ">"
252
+ - - ">="
252
253
  - !ruby/object:Gem::Version
253
- version: 1.3.1
254
+ version: '0'
254
255
  requirements: []
255
256
  rubyforge_project:
256
257
  rubygems_version: 2.4.2
@@ -289,10 +290,10 @@ test_files:
289
290
  - test/dummy/config/routes.rb
290
291
  - test/dummy/config/secrets.yml
291
292
  - test/dummy/config.ru
292
- - test/dummy/db/migrate/20150208150305_create_push_type_users.push_type.rb
293
- - test/dummy/db/migrate/20150208150306_create_push_type_nodes.push_type.rb
294
- - test/dummy/db/migrate/20150208150307_create_push_type_node_hierarchies.push_type.rb
295
- - test/dummy/db/migrate/20150208150308_create_push_type_assets.push_type.rb
293
+ - test/dummy/db/migrate/20150209204334_create_push_type_users.push_type.rb
294
+ - test/dummy/db/migrate/20150209204335_create_push_type_nodes.push_type.rb
295
+ - test/dummy/db/migrate/20150209204336_create_push_type_node_hierarchies.push_type.rb
296
+ - test/dummy/db/migrate/20150209204337_create_push_type_assets.push_type.rb
296
297
  - test/dummy/db/schema.rb
297
298
  - test/dummy/db/seeds.rb
298
299
  - test/dummy/log/test.log
@@ -306,8 +307,8 @@ test_files:
306
307
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
307
308
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
308
309
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
309
- - test/dummy/tmp/generators/config/initializers/push_type.rb
310
- - test/dummy/tmp/generators/config/routes.rb
310
+ - test/dummy/tmp/generators/app/models/home_page.rb
311
+ - test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
311
312
  - test/files/audio.m3u
312
313
  - test/files/document.pdf
313
314
  - test/files/image.png
@@ -1,15 +0,0 @@
1
- PushType.setup do |config|
2
-
3
- #config.root_nodes = :all
4
-
5
- #config.home_slug = 'home'
6
-
7
- #config.unexposed_nodes = []
8
-
9
- #config.media_styles = {
10
- # large: '1024x1024>',
11
- # medium: '512x512>',
12
- # small: '256x256>'
13
- #}
14
-
15
- end
@@ -1,59 +0,0 @@
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