pulitzer 0.12.5 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/pulitzer.scss +107 -4
  3. data/app/controllers/pulitzer/arrangement_styles_controller.rb +52 -0
  4. data/app/controllers/pulitzer/background_styles_controller.rb +52 -0
  5. data/app/controllers/pulitzer/content_elements_controller.rb +2 -2
  6. data/app/controllers/pulitzer/free_form_section_types_controller.rb +2 -2
  7. data/app/controllers/pulitzer/justification_styles_controller.rb +52 -0
  8. data/app/controllers/pulitzer/layouts_controller.rb +2 -2
  9. data/app/controllers/pulitzer/partial_types_controller.rb +1 -1
  10. data/app/controllers/pulitzer/partials_controller.rb +2 -2
  11. data/app/controllers/pulitzer/post_tags_controller.rb +2 -2
  12. data/app/controllers/pulitzer/post_type_content_element_types_controller.rb +2 -2
  13. data/app/controllers/pulitzer/post_types_controller.rb +2 -2
  14. data/app/controllers/pulitzer/posts_controller.rb +1 -1
  15. data/app/controllers/pulitzer/sequence_flow_styles_controller.rb +52 -0
  16. data/app/controllers/pulitzer/tags_controller.rb +3 -3
  17. data/app/interactions/pulitzer/update_post_type_content_elements.rb +1 -1
  18. data/app/models/pulitzer/arrangement_style.rb +8 -0
  19. data/app/models/pulitzer/background_style.rb +8 -0
  20. data/app/models/pulitzer/content_element.rb +4 -0
  21. data/app/models/pulitzer/free_form_section_type.rb +5 -1
  22. data/app/models/pulitzer/justification_style.rb +8 -0
  23. data/app/models/pulitzer/partial.rb +39 -5
  24. data/app/models/pulitzer/partial_type.rb +2 -10
  25. data/app/models/pulitzer/post.rb +1 -1
  26. data/app/models/pulitzer/post_type.rb +4 -5
  27. data/app/models/pulitzer/post_type_content_element_type.rb +20 -1
  28. data/app/models/pulitzer/sequence_flow_style.rb +8 -0
  29. data/app/views/pulitzer/arrangement_styles/_form.html.erb +14 -0
  30. data/app/views/pulitzer/arrangement_styles/_form_fields.html.erb +6 -0
  31. data/app/views/pulitzer/arrangement_styles/_new.html.erb +12 -0
  32. data/app/views/pulitzer/arrangement_styles/_show.html.erb +10 -0
  33. data/app/views/pulitzer/arrangement_styles/_show_wrapper.html.erb +3 -0
  34. data/app/views/pulitzer/background_styles/_form.html.erb +14 -0
  35. data/app/views/pulitzer/background_styles/_form_fields.html.erb +6 -0
  36. data/app/views/pulitzer/background_styles/_new.html.erb +12 -0
  37. data/app/views/pulitzer/background_styles/_show.html.erb +10 -0
  38. data/app/views/pulitzer/background_styles/_show_wrapper.html.erb +3 -0
  39. data/app/views/pulitzer/free_form_section_types/_form.html.erb +16 -7
  40. data/app/views/pulitzer/free_form_section_types/_form_fields.html.erb +6 -4
  41. data/app/views/pulitzer/free_form_section_types/_new.html.erb +12 -7
  42. data/app/views/pulitzer/free_form_section_types/_show.html.erb +10 -12
  43. data/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb +2 -2
  44. data/app/views/pulitzer/justification_styles/_form.html.erb +14 -0
  45. data/app/views/pulitzer/justification_styles/_form_fields.html.erb +6 -0
  46. data/app/views/pulitzer/justification_styles/_new.html.erb +12 -0
  47. data/app/views/pulitzer/justification_styles/_show.html.erb +10 -0
  48. data/app/views/pulitzer/justification_styles/_show_wrapper.html.erb +3 -0
  49. data/app/views/pulitzer/partial_types/_index.html.erb +2 -2
  50. data/app/views/pulitzer/partial_types/_new.html.erb +1 -12
  51. data/app/views/pulitzer/partial_types/_show.html.erb +15 -5
  52. data/app/views/pulitzer/partial_types/_show_wrapper.html.erb +1 -1
  53. data/app/views/pulitzer/partials/_form.html.erb +31 -13
  54. data/app/views/pulitzer/partials/_new.html.erb +30 -11
  55. data/app/views/pulitzer/partials/_show.html.erb +8 -4
  56. data/app/views/pulitzer/post_type_content_element_types/_form.html.erb +12 -6
  57. data/app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb +15 -13
  58. data/app/views/pulitzer/post_type_content_element_types/_new.html.erb +11 -6
  59. data/app/views/pulitzer/post_type_content_element_types/_show.html.erb +16 -9
  60. data/app/views/pulitzer/post_type_content_element_types/_show_wrapper.html.erb +2 -2
  61. data/app/views/pulitzer/post_types/_new.html.erb +1 -1
  62. data/app/views/pulitzer/post_types/_show.html.erb +10 -10
  63. data/app/views/pulitzer/post_types/_template.html.erb +98 -29
  64. data/app/views/pulitzer/sequence_flow_styles/_form.html.erb +14 -0
  65. data/app/views/pulitzer/sequence_flow_styles/_form_fields.html.erb +6 -0
  66. data/app/views/pulitzer/sequence_flow_styles/_new.html.erb +12 -0
  67. data/app/views/pulitzer/sequence_flow_styles/_show.html.erb +10 -0
  68. data/app/views/pulitzer/sequence_flow_styles/_show_wrapper.html.erb +3 -0
  69. data/config/routes.rb +5 -1
  70. data/db/migrate/20170518142411_create_pulitzer_background_classes.rb +9 -0
  71. data/db/migrate/20170518144418_create_pulitzer_justification_classes.rb +9 -0
  72. data/db/migrate/20170518144449_create_pulitzer_sequence_flow_classes.rb +9 -0
  73. data/db/migrate/20170518144515_create_pulitzer_arrangement_classes.rb +9 -0
  74. data/db/migrate/20170518145318_convert_pulitzer_layouts.rb +9 -0
  75. data/lib/pulitzer/content_element_helper.rb +5 -3
  76. data/lib/pulitzer/version.rb +1 -1
  77. data/spec/controllers/pulitzer/free_form_section_types_controller_spec.rb +6 -6
  78. data/spec/controllers/pulitzer/partials_controller_spec.rb +7 -7
  79. data/spec/controllers/pulitzer/post_types_controller_spec.rb +3 -3
  80. data/spec/controllers/pulitzer/versions_controller_spec.rb +8 -8
  81. data/spec/controllers/tags_controller_spec.rb +28 -29
  82. data/spec/dummy/app/controllers/application_controller.rb +1 -1
  83. data/spec/dummy/config/application.rb +0 -1
  84. data/spec/dummy/config/environments/test.rb +2 -2
  85. data/spec/dummy/db/schema.rb +30 -2
  86. data/spec/dummy/db/test.sqlite3 +0 -0
  87. data/spec/dummy/log/test.log +0 -3971
  88. data/spec/factories/partial_type.rb +0 -1
  89. data/spec/rails_helper.rb +1 -1
  90. metadata +35 -9
  91. data/app/views/pulitzer/layouts/_form.html.erb +0 -8
  92. data/app/views/pulitzer/layouts/_form_fields.html.erb +0 -2
  93. data/app/views/pulitzer/layouts/_new.html.erb +0 -7
  94. data/app/views/pulitzer/layouts/_show.html.erb +0 -9
  95. data/app/views/pulitzer/layouts/_show_wrapper.html.erb +0 -3
  96. data/spec/factories/layout.rb +0 -6
@@ -4,6 +4,5 @@ FactoryGirl.define do
4
4
  sequence(:sort_order)
5
5
  association :free_form_section_type
6
6
  association :post_type
7
- association :layout
8
7
  end
9
8
  end
data/spec/rails_helper.rb CHANGED
@@ -5,7 +5,7 @@ require 'rspec/rails'
5
5
  require 'shoulda-matchers'
6
6
  require 'factory_girl_rails'
7
7
 
8
- ActiveRecord::Migration.maintain_test_schema!
8
+ # ActiveRecord::Migration.maintain_test_schema!
9
9
 
10
10
  RSpec.configure do |config|
11
11
  config.include FactoryGirl::Syntax::Methods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.5
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-23 00:00:00.000000000 Z
12
+ date: 2017-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -499,8 +499,11 @@ files:
499
499
  - app/assets/javascripts/pulitzer.js
500
500
  - app/assets/stylesheets/pulitzer.scss
501
501
  - app/controllers/pulitzer/application_controller.rb
502
+ - app/controllers/pulitzer/arrangement_styles_controller.rb
503
+ - app/controllers/pulitzer/background_styles_controller.rb
502
504
  - app/controllers/pulitzer/content_elements_controller.rb
503
505
  - app/controllers/pulitzer/free_form_section_types_controller.rb
506
+ - app/controllers/pulitzer/justification_styles_controller.rb
504
507
  - app/controllers/pulitzer/layouts_controller.rb
505
508
  - app/controllers/pulitzer/partial_types_controller.rb
506
509
  - app/controllers/pulitzer/partials_controller.rb
@@ -508,6 +511,7 @@ files:
508
511
  - app/controllers/pulitzer/post_type_content_element_types_controller.rb
509
512
  - app/controllers/pulitzer/post_types_controller.rb
510
513
  - app/controllers/pulitzer/posts_controller.rb
514
+ - app/controllers/pulitzer/sequence_flow_styles_controller.rb
511
515
  - app/controllers/pulitzer/tags_controller.rb
512
516
  - app/controllers/pulitzer/versions_controller.rb
513
517
  - app/helpers/pulitzer/main_helper.rb
@@ -531,10 +535,13 @@ files:
531
535
  - app/interactions/pulitzer/update_version_status.rb
532
536
  - app/jobs/pulitzer/clone_version_job.rb
533
537
  - app/jobs/pulitzer/reprocess_content_image_job.rb
538
+ - app/models/pulitzer/arrangement_style.rb
539
+ - app/models/pulitzer/background_style.rb
534
540
  - app/models/pulitzer/content_element.rb
535
541
  - app/models/pulitzer/content_element_type.rb
536
542
  - app/models/pulitzer/free_form_section.rb
537
543
  - app/models/pulitzer/free_form_section_type.rb
544
+ - app/models/pulitzer/justification_style.rb
538
545
  - app/models/pulitzer/layout.rb
539
546
  - app/models/pulitzer/partial.rb
540
547
  - app/models/pulitzer/partial_type.rb
@@ -543,11 +550,22 @@ files:
543
550
  - app/models/pulitzer/post_type.rb
544
551
  - app/models/pulitzer/post_type_content_element_type.rb
545
552
  - app/models/pulitzer/post_type_element.rb
553
+ - app/models/pulitzer/sequence_flow_style.rb
546
554
  - app/models/pulitzer/tag.rb
547
555
  - app/models/pulitzer/version.rb
548
556
  - app/uploaders/pulitzer/base_uploader.rb
549
557
  - app/uploaders/pulitzer/image_uploader.rb
550
558
  - app/validators/pulitzer/content_element_validator.rb
559
+ - app/views/pulitzer/arrangement_styles/_form.html.erb
560
+ - app/views/pulitzer/arrangement_styles/_form_fields.html.erb
561
+ - app/views/pulitzer/arrangement_styles/_new.html.erb
562
+ - app/views/pulitzer/arrangement_styles/_show.html.erb
563
+ - app/views/pulitzer/arrangement_styles/_show_wrapper.html.erb
564
+ - app/views/pulitzer/background_styles/_form.html.erb
565
+ - app/views/pulitzer/background_styles/_form_fields.html.erb
566
+ - app/views/pulitzer/background_styles/_new.html.erb
567
+ - app/views/pulitzer/background_styles/_show.html.erb
568
+ - app/views/pulitzer/background_styles/_show_wrapper.html.erb
551
569
  - app/views/pulitzer/content_elements/_form.html.erb
552
570
  - app/views/pulitzer/content_elements/_image_fields.html.erb
553
571
  - app/views/pulitzer/content_elements/_index.html.erb
@@ -565,11 +583,11 @@ files:
565
583
  - app/views/pulitzer/free_form_sections/_index.html.erb
566
584
  - app/views/pulitzer/free_form_sections/_show.html.erb
567
585
  - app/views/pulitzer/free_form_sections/_show_wrapper.html.erb
568
- - app/views/pulitzer/layouts/_form.html.erb
569
- - app/views/pulitzer/layouts/_form_fields.html.erb
570
- - app/views/pulitzer/layouts/_new.html.erb
571
- - app/views/pulitzer/layouts/_show.html.erb
572
- - app/views/pulitzer/layouts/_show_wrapper.html.erb
586
+ - app/views/pulitzer/justification_styles/_form.html.erb
587
+ - app/views/pulitzer/justification_styles/_form_fields.html.erb
588
+ - app/views/pulitzer/justification_styles/_new.html.erb
589
+ - app/views/pulitzer/justification_styles/_show.html.erb
590
+ - app/views/pulitzer/justification_styles/_show_wrapper.html.erb
573
591
  - app/views/pulitzer/partial_types/_form.html.erb
574
592
  - app/views/pulitzer/partial_types/_index.html.erb
575
593
  - app/views/pulitzer/partial_types/_new.html.erb
@@ -606,6 +624,11 @@ files:
606
624
  - app/views/pulitzer/posts/_slug_wrapper.html.erb
607
625
  - app/views/pulitzer/posts/edit.html.erb
608
626
  - app/views/pulitzer/posts/index.html.erb
627
+ - app/views/pulitzer/sequence_flow_styles/_form.html.erb
628
+ - app/views/pulitzer/sequence_flow_styles/_form_fields.html.erb
629
+ - app/views/pulitzer/sequence_flow_styles/_new.html.erb
630
+ - app/views/pulitzer/sequence_flow_styles/_show.html.erb
631
+ - app/views/pulitzer/sequence_flow_styles/_show_wrapper.html.erb
609
632
  - app/views/pulitzer/shared/_drag_handle.html.erb
610
633
  - app/views/pulitzer/shared/_error_messages.erb
611
634
  - app/views/pulitzer/tags/_form.html.erb
@@ -652,6 +675,11 @@ files:
652
675
  - db/migrate/20160927160910_add_required_to_pulitzer_post_type_content_element_type.rb
653
676
  - db/migrate/20170502210827_add_sort_to_post_elements.rb
654
677
  - db/migrate/20170508145431_create_pulitzer_partial_types.rb
678
+ - db/migrate/20170518142411_create_pulitzer_background_classes.rb
679
+ - db/migrate/20170518144418_create_pulitzer_justification_classes.rb
680
+ - db/migrate/20170518144449_create_pulitzer_sequence_flow_classes.rb
681
+ - db/migrate/20170518144515_create_pulitzer_arrangement_classes.rb
682
+ - db/migrate/20170518145318_convert_pulitzer_layouts.rb
655
683
  - lib/generators/pulitzer/post_type_generator.rb
656
684
  - lib/generators/pulitzer/templates/post_view.html.erb
657
685
  - lib/pulitzer.rb
@@ -1057,7 +1085,6 @@ files:
1057
1085
  - spec/factories/content_element.rb
1058
1086
  - spec/factories/content_element_type.rb
1059
1087
  - spec/factories/free_form_section_types.rb
1060
- - spec/factories/layout.rb
1061
1088
  - spec/factories/partial_type.rb
1062
1089
  - spec/factories/post.rb
1063
1090
  - spec/factories/post_tag.rb
@@ -1506,7 +1533,6 @@ test_files:
1506
1533
  - spec/factories/content_element.rb
1507
1534
  - spec/factories/content_element_type.rb
1508
1535
  - spec/factories/free_form_section_types.rb
1509
- - spec/factories/layout.rb
1510
1536
  - spec/factories/partial_type.rb
1511
1537
  - spec/factories/post.rb
1512
1538
  - spec/factories/post_tag.rb
@@ -1,8 +0,0 @@
1
- <%= render 'pulitzer/shared/error_messages', object: layout %>
2
- <%= form_for layout, html: ajax_form_hash(dom_target(layout)) do |f| %>
3
- <%= render partial: 'form_fields', locals: { f: f, layout: layout } %>
4
- <%= f.submit "Update" %>
5
- <%= link_to('Cancel', layout_path(layout), :class => 'button',
6
- data: { ajax_link: true, ajax_target: dom_target(layout) } ) %>
7
- <% end %>
8
-
@@ -1,2 +0,0 @@
1
- <%= f.label :name %>
2
- <%= f.text_field :name %>
@@ -1,7 +0,0 @@
1
- <%= form_for layout, html: ajax_form_hash(dom_target(layout.post_type, :layouts_container), insert_method: 'append') do |f| %>
2
- <%= f.hidden_field :post_type_id %>
3
- <%= render partial: 'form_fields', locals: { f: f, layout: layout } %>
4
- <%= f.submit "Create" %>
5
- <%= link_to('Cancel', '#', :class => 'button',
6
- data: { emptier: true, target: dom_target(layout.post_type, :new_layout) } ) %>
7
- <% end %>
@@ -1,9 +0,0 @@
1
- <ul class="inline-list">
2
- <li><%= layout.name %></li>
3
- <li>
4
- <%= ajax_link "Edit", edit_layout_path(layout), {}, dom_target(layout) %>
5
- </li>
6
- <li>
7
- <%= ajax_delete 'Delete', layout_path(layout), {}, dom_target(layout) %>
8
- </li>
9
- </ul>
@@ -1,3 +0,0 @@
1
- <li id="<%= dom_id(layout) %>">
2
- <%= render partial: '/pulitzer/layouts/show', locals: {layout: layout} %>
3
- </li>
@@ -1,6 +0,0 @@
1
- FactoryGirl.define do
2
- factory :layout, class: Pulitzer::Layout do
3
- sequence(:name) { |n| "Photo bg text large #{n}" }
4
- association :post_type
5
- end
6
- end