pulitzer 0.12.5 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/pulitzer.scss +107 -4
- data/app/controllers/pulitzer/arrangement_styles_controller.rb +52 -0
- data/app/controllers/pulitzer/background_styles_controller.rb +52 -0
- data/app/controllers/pulitzer/content_elements_controller.rb +2 -2
- data/app/controllers/pulitzer/free_form_section_types_controller.rb +2 -2
- data/app/controllers/pulitzer/justification_styles_controller.rb +52 -0
- data/app/controllers/pulitzer/layouts_controller.rb +2 -2
- data/app/controllers/pulitzer/partial_types_controller.rb +1 -1
- data/app/controllers/pulitzer/partials_controller.rb +2 -2
- data/app/controllers/pulitzer/post_tags_controller.rb +2 -2
- data/app/controllers/pulitzer/post_type_content_element_types_controller.rb +2 -2
- data/app/controllers/pulitzer/post_types_controller.rb +2 -2
- data/app/controllers/pulitzer/posts_controller.rb +1 -1
- data/app/controllers/pulitzer/sequence_flow_styles_controller.rb +52 -0
- data/app/controllers/pulitzer/tags_controller.rb +3 -3
- data/app/interactions/pulitzer/update_post_type_content_elements.rb +1 -1
- data/app/models/pulitzer/arrangement_style.rb +8 -0
- data/app/models/pulitzer/background_style.rb +8 -0
- data/app/models/pulitzer/content_element.rb +4 -0
- data/app/models/pulitzer/free_form_section_type.rb +5 -1
- data/app/models/pulitzer/justification_style.rb +8 -0
- data/app/models/pulitzer/partial.rb +39 -5
- data/app/models/pulitzer/partial_type.rb +2 -10
- data/app/models/pulitzer/post.rb +1 -1
- data/app/models/pulitzer/post_type.rb +4 -5
- data/app/models/pulitzer/post_type_content_element_type.rb +20 -1
- data/app/models/pulitzer/sequence_flow_style.rb +8 -0
- data/app/views/pulitzer/arrangement_styles/_form.html.erb +14 -0
- data/app/views/pulitzer/arrangement_styles/_form_fields.html.erb +6 -0
- data/app/views/pulitzer/arrangement_styles/_new.html.erb +12 -0
- data/app/views/pulitzer/arrangement_styles/_show.html.erb +10 -0
- data/app/views/pulitzer/arrangement_styles/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/background_styles/_form.html.erb +14 -0
- data/app/views/pulitzer/background_styles/_form_fields.html.erb +6 -0
- data/app/views/pulitzer/background_styles/_new.html.erb +12 -0
- data/app/views/pulitzer/background_styles/_show.html.erb +10 -0
- data/app/views/pulitzer/background_styles/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/free_form_section_types/_form.html.erb +16 -7
- data/app/views/pulitzer/free_form_section_types/_form_fields.html.erb +6 -4
- data/app/views/pulitzer/free_form_section_types/_new.html.erb +12 -7
- data/app/views/pulitzer/free_form_section_types/_show.html.erb +10 -12
- data/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb +2 -2
- data/app/views/pulitzer/justification_styles/_form.html.erb +14 -0
- data/app/views/pulitzer/justification_styles/_form_fields.html.erb +6 -0
- data/app/views/pulitzer/justification_styles/_new.html.erb +12 -0
- data/app/views/pulitzer/justification_styles/_show.html.erb +10 -0
- data/app/views/pulitzer/justification_styles/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/partial_types/_index.html.erb +2 -2
- data/app/views/pulitzer/partial_types/_new.html.erb +1 -12
- data/app/views/pulitzer/partial_types/_show.html.erb +15 -5
- data/app/views/pulitzer/partial_types/_show_wrapper.html.erb +1 -1
- data/app/views/pulitzer/partials/_form.html.erb +31 -13
- data/app/views/pulitzer/partials/_new.html.erb +30 -11
- data/app/views/pulitzer/partials/_show.html.erb +8 -4
- data/app/views/pulitzer/post_type_content_element_types/_form.html.erb +12 -6
- data/app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb +15 -13
- data/app/views/pulitzer/post_type_content_element_types/_new.html.erb +11 -6
- data/app/views/pulitzer/post_type_content_element_types/_show.html.erb +16 -9
- data/app/views/pulitzer/post_type_content_element_types/_show_wrapper.html.erb +2 -2
- data/app/views/pulitzer/post_types/_new.html.erb +1 -1
- data/app/views/pulitzer/post_types/_show.html.erb +10 -10
- data/app/views/pulitzer/post_types/_template.html.erb +98 -29
- data/app/views/pulitzer/sequence_flow_styles/_form.html.erb +14 -0
- data/app/views/pulitzer/sequence_flow_styles/_form_fields.html.erb +6 -0
- data/app/views/pulitzer/sequence_flow_styles/_new.html.erb +12 -0
- data/app/views/pulitzer/sequence_flow_styles/_show.html.erb +10 -0
- data/app/views/pulitzer/sequence_flow_styles/_show_wrapper.html.erb +3 -0
- data/config/routes.rb +5 -1
- data/db/migrate/20170518142411_create_pulitzer_background_classes.rb +9 -0
- data/db/migrate/20170518144418_create_pulitzer_justification_classes.rb +9 -0
- data/db/migrate/20170518144449_create_pulitzer_sequence_flow_classes.rb +9 -0
- data/db/migrate/20170518144515_create_pulitzer_arrangement_classes.rb +9 -0
- data/db/migrate/20170518145318_convert_pulitzer_layouts.rb +9 -0
- data/lib/pulitzer/content_element_helper.rb +5 -3
- data/lib/pulitzer/version.rb +1 -1
- data/spec/controllers/pulitzer/free_form_section_types_controller_spec.rb +6 -6
- data/spec/controllers/pulitzer/partials_controller_spec.rb +7 -7
- data/spec/controllers/pulitzer/post_types_controller_spec.rb +3 -3
- data/spec/controllers/pulitzer/versions_controller_spec.rb +8 -8
- data/spec/controllers/tags_controller_spec.rb +28 -29
- data/spec/dummy/app/controllers/application_controller.rb +1 -1
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/environments/test.rb +2 -2
- data/spec/dummy/db/schema.rb +30 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -3971
- data/spec/factories/partial_type.rb +0 -1
- data/spec/rails_helper.rb +1 -1
- metadata +35 -9
- data/app/views/pulitzer/layouts/_form.html.erb +0 -8
- data/app/views/pulitzer/layouts/_form_fields.html.erb +0 -2
- data/app/views/pulitzer/layouts/_new.html.erb +0 -7
- data/app/views/pulitzer/layouts/_show.html.erb +0 -9
- data/app/views/pulitzer/layouts/_show_wrapper.html.erb +0 -3
- data/spec/factories/layout.rb +0 -6
data/spec/rails_helper.rb
CHANGED
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.
|
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-
|
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/
|
569
|
-
- app/views/pulitzer/
|
570
|
-
- app/views/pulitzer/
|
571
|
-
- app/views/pulitzer/
|
572
|
-
- app/views/pulitzer/
|
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,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 %>
|