push_type_core 0.4.0.beta.3 → 0.4.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 (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/fields/push_type/array_field.rb +1 -0
  3. data/app/fields/push_type/number_field.rb +2 -0
  4. data/app/models/push_type/taxonomy.rb +7 -2
  5. data/lib/push_type/version.rb +1 -1
  6. data/test/dummy/config/initializers/push_type.rb +1 -1
  7. data/test/dummy/config/secrets.yml +2 -2
  8. data/test/dummy/db/schema.rb +1 -1
  9. data/test/dummy/log/test.log +2559 -2391
  10. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  13. data/test/dummy/tmp/generators/app/models/category.rb +6 -0
  14. data/test/dummy/tmp/generators/app/views/taxonomies/category.html.erb +3 -0
  15. data/test/models/push_type/taxonomy_test.rb +3 -1
  16. metadata +20 -18
  17. data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +0 -12
  18. /data/test/dummy/db/migrate/{20150406131539_create_push_type_users.push_type.rb → 20150423122725_create_push_type_users.push_type.rb} +0 -0
  19. /data/test/dummy/db/migrate/{20150406131540_create_push_type_nodes.push_type.rb → 20150423122726_create_push_type_nodes.push_type.rb} +0 -0
  20. /data/test/dummy/db/migrate/{20150406131541_create_push_type_node_hierarchies.push_type.rb → 20150423122727_create_push_type_node_hierarchies.push_type.rb} +0 -0
  21. /data/test/dummy/db/migrate/{20150406131542_create_push_type_assets.push_type.rb → 20150423122728_create_push_type_assets.push_type.rb} +0 -0
  22. /data/test/dummy/db/migrate/{20150406131543_create_push_type_taxonomies.push_type.rb → 20150423122729_create_push_type_taxonomies.push_type.rb} +0 -0
  23. /data/test/dummy/db/migrate/{20150406131544_create_push_type_taxonomy_hierarchies.push_type.rb → 20150423122730_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
@@ -0,0 +1,6 @@
1
+ class Category < PushType::Taxonomy
2
+
3
+ # Set base slug
4
+ # base_slug :category
5
+
6
+ end
@@ -0,0 +1,3 @@
1
+ <h1><%= @taxonomy.title %></h1>
2
+ <p>This is a generated Category template.</p>
3
+ <p>Find me at: app/views/taxonomies/category.html.erb</p>
@@ -28,7 +28,9 @@ module PushType
28
28
  %w(one two three).each { |slug| @tax = FactoryGirl.create :taxonomy, slug: slug, parent: @tax }
29
29
  end
30
30
  after { Taxonomy.base_slug nil }
31
- it { @tax.permalink.must_equal 'cat/one/two/three' }
31
+ it { @tax.permalink.must_equal 'one/two/three' }
32
+ it { @tax.permalink(true).must_equal 'cat/one/two/three' }
33
+ it { @tax.full_permalink.must_equal 'cat/one/two/three' }
32
34
  end
33
35
 
34
36
  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.4.0.beta.3
4
+ version: 0.4.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-04-06 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -248,12 +248,12 @@ files:
248
248
  - test/dummy/config/locales/en.yml
249
249
  - test/dummy/config/routes.rb
250
250
  - test/dummy/config/secrets.yml
251
- - test/dummy/db/migrate/20150406131539_create_push_type_users.push_type.rb
252
- - test/dummy/db/migrate/20150406131540_create_push_type_nodes.push_type.rb
253
- - test/dummy/db/migrate/20150406131541_create_push_type_node_hierarchies.push_type.rb
254
- - test/dummy/db/migrate/20150406131542_create_push_type_assets.push_type.rb
255
- - test/dummy/db/migrate/20150406131543_create_push_type_taxonomies.push_type.rb
256
- - test/dummy/db/migrate/20150406131544_create_push_type_taxonomy_hierarchies.push_type.rb
251
+ - test/dummy/db/migrate/20150423122725_create_push_type_users.push_type.rb
252
+ - test/dummy/db/migrate/20150423122726_create_push_type_nodes.push_type.rb
253
+ - test/dummy/db/migrate/20150423122727_create_push_type_node_hierarchies.push_type.rb
254
+ - test/dummy/db/migrate/20150423122728_create_push_type_assets.push_type.rb
255
+ - test/dummy/db/migrate/20150423122729_create_push_type_taxonomies.push_type.rb
256
+ - test/dummy/db/migrate/20150423122730_create_push_type_taxonomy_hierarchies.push_type.rb
257
257
  - test/dummy/db/schema.rb
258
258
  - test/dummy/db/seeds.rb
259
259
  - test/dummy/log/test.log
@@ -265,7 +265,8 @@ files:
265
265
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
266
266
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
267
267
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
268
- - test/dummy/tmp/generators/app/presenters/page_presenter.rb
268
+ - test/dummy/tmp/generators/app/models/category.rb
269
+ - test/dummy/tmp/generators/app/views/taxonomies/category.html.erb
269
270
  - test/files/audio.m3u
270
271
  - test/files/document.pdf
271
272
  - test/files/image.png
@@ -312,9 +313,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
312
313
  version: '0'
313
314
  required_rubygems_version: !ruby/object:Gem::Requirement
314
315
  requirements:
315
- - - ">"
316
+ - - ">="
316
317
  - !ruby/object:Gem::Version
317
- version: 1.3.1
318
+ version: '0'
318
319
  requirements: []
319
320
  rubyforge_project:
320
321
  rubygems_version: 2.4.2
@@ -356,12 +357,12 @@ test_files:
356
357
  - test/dummy/config/routes.rb
357
358
  - test/dummy/config/secrets.yml
358
359
  - test/dummy/config.ru
359
- - test/dummy/db/migrate/20150406131539_create_push_type_users.push_type.rb
360
- - test/dummy/db/migrate/20150406131540_create_push_type_nodes.push_type.rb
361
- - test/dummy/db/migrate/20150406131541_create_push_type_node_hierarchies.push_type.rb
362
- - test/dummy/db/migrate/20150406131542_create_push_type_assets.push_type.rb
363
- - test/dummy/db/migrate/20150406131543_create_push_type_taxonomies.push_type.rb
364
- - test/dummy/db/migrate/20150406131544_create_push_type_taxonomy_hierarchies.push_type.rb
360
+ - test/dummy/db/migrate/20150423122725_create_push_type_users.push_type.rb
361
+ - test/dummy/db/migrate/20150423122726_create_push_type_nodes.push_type.rb
362
+ - test/dummy/db/migrate/20150423122727_create_push_type_node_hierarchies.push_type.rb
363
+ - test/dummy/db/migrate/20150423122728_create_push_type_assets.push_type.rb
364
+ - test/dummy/db/migrate/20150423122729_create_push_type_taxonomies.push_type.rb
365
+ - test/dummy/db/migrate/20150423122730_create_push_type_taxonomy_hierarchies.push_type.rb
365
366
  - test/dummy/db/schema.rb
366
367
  - test/dummy/db/seeds.rb
367
368
  - test/dummy/log/test.log
@@ -375,7 +376,8 @@ test_files:
375
376
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
376
377
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
377
378
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
378
- - test/dummy/tmp/generators/app/presenters/page_presenter.rb
379
+ - test/dummy/tmp/generators/app/models/category.rb
380
+ - test/dummy/tmp/generators/app/views/taxonomies/category.html.erb
379
381
  - test/files/audio.m3u
380
382
  - test/files/document.pdf
381
383
  - test/files/image.png
@@ -1,12 +0,0 @@
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