pulitzer 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/pulitzer.js +13 -4
  3. data/app/controllers/pulitzer/content_elements_controller.rb +3 -17
  4. data/app/controllers/pulitzer/post_tags_controller.rb +8 -8
  5. data/app/controllers/pulitzer/posts_controller.rb +4 -2
  6. data/app/controllers/pulitzer/versions_controller.rb +13 -4
  7. data/app/helpers/pulitzer/posts_helper.rb +1 -5
  8. data/app/interactions/pulitzer/clone_version.rb +22 -3
  9. data/app/interactions/pulitzer/create_post_tag.rb +6 -8
  10. data/app/interactions/pulitzer/update_version_status.rb +5 -1
  11. data/app/models/pulitzer/content_element.rb +4 -3
  12. data/app/models/pulitzer/post.rb +17 -1
  13. data/app/models/pulitzer/version.rb +11 -1
  14. data/app/validators/pulitzer/content_element_validator.rb +24 -0
  15. data/app/views/pulitzer/content_elements/_form.html.erb +1 -1
  16. data/app/views/pulitzer/content_elements/_index.html.erb +20 -0
  17. data/app/views/pulitzer/content_elements/{index_processing.html.erb → _index_processing.html.erb} +0 -0
  18. data/app/views/pulitzer/content_elements/_new.html.erb +6 -6
  19. data/app/views/pulitzer/content_elements/_show.html.erb +1 -1
  20. data/app/views/pulitzer/content_elements/_show_wrapper.html.erb +2 -2
  21. data/app/views/pulitzer/post_tags/_new.html.erb +3 -3
  22. data/app/views/pulitzer/post_tags/_show.html.erb +3 -3
  23. data/app/views/pulitzer/post_tags/_show_wrapper.html.erb +1 -1
  24. data/app/views/pulitzer/posts/_show.html.erb +1 -1
  25. data/app/views/pulitzer/posts/edit.html.erb +10 -0
  26. data/app/views/pulitzer/versions/_edit.html.erb +41 -0
  27. data/app/views/pulitzer/versions/_form.html.erb +2 -9
  28. data/config/routes.rb +6 -2
  29. data/db/migrate/20160122204201_add_errors_to_version.rb +5 -0
  30. data/lib/pulitzer/version.rb +1 -1
  31. data/spec/dummy/db/development.sqlite3 +0 -0
  32. data/spec/dummy/db/schema.rb +3 -7
  33. data/spec/dummy/db/test.sqlite3 +0 -0
  34. data/spec/dummy/log/test.log +7574 -0
  35. data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/cms_sam_and_snow.jpg +0 -0
  36. data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/sam_and_snow.jpg +0 -0
  37. data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/thumb_sam_and_snow.jpg +0 -0
  38. data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/cms_sam_and_snow.jpg +0 -0
  39. data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/sam_and_snow.jpg +0 -0
  40. data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/thumb_sam_and_snow.jpg +0 -0
  41. data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/cms_sam_and_snow.jpg +0 -0
  42. data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/sam_and_snow.jpg +0 -0
  43. data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/thumb_sam_and_snow.jpg +0 -0
  44. data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/cms_sam_and_snow.jpg +0 -0
  45. data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/sam_and_snow.jpg +0 -0
  46. data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/thumb_sam_and_snow.jpg +0 -0
  47. data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/cms_sam_and_snow.jpg +0 -0
  48. data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/sam_and_snow.jpg +0 -0
  49. data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/thumb_sam_and_snow.jpg +0 -0
  50. data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/cms_sam_and_snow.jpg +0 -0
  51. data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/sam_and_snow.jpg +0 -0
  52. data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/thumb_sam_and_snow.jpg +0 -0
  53. data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/cms_sam_and_snow.jpg +0 -0
  54. data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/sam_and_snow.jpg +0 -0
  55. data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/thumb_sam_and_snow.jpg +0 -0
  56. data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/cms_sam_and_snow.jpg +0 -0
  57. data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/sam_and_snow.jpg +0 -0
  58. data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/thumb_sam_and_snow.jpg +0 -0
  59. data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/cms_sam_and_snow.jpg +0 -0
  60. data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/sam_and_snow.jpg +0 -0
  61. data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/thumb_sam_and_snow.jpg +0 -0
  62. data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/cms_sam_and_snow.jpg +0 -0
  63. data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/sam_and_snow.jpg +0 -0
  64. data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/thumb_sam_and_snow.jpg +0 -0
  65. data/spec/interactions/clone_version_spec.rb +2 -0
  66. data/spec/models/content_element_spec.rb +0 -2
  67. data/spec/models/version_spec.rb +1 -1
  68. metadata +130 -9
  69. data/app/views/pulitzer/content_elements/index.html.erb +0 -39
  70. data/app/views/pulitzer/posts/show.html.erb +0 -6
@@ -5,11 +5,13 @@ describe Pulitzer::CloneVersion do
5
5
 
6
6
  it 'Clones version content elements' do
7
7
  expect(version.content_elements.size).to eq 3
8
+ version.post.create_processing_version
8
9
  new_version = Pulitzer::CloneVersion.new(version).call
9
10
  expect(new_version.content_elements.size).to eq 3
10
11
  end
11
12
 
12
13
  it 'Clones a valid content element' do
14
+ version.post.create_processing_version
13
15
  new_version = Pulitzer::CloneVersion.new(version).call
14
16
  content_element = new_version.content_elements.first
15
17
  expect(content_element.title).to eq "Night's Watch"
@@ -10,8 +10,6 @@ describe Pulitzer::ContentElement do
10
10
  describe 'Active Model validations' do
11
11
  context 'Only for temple kind' do
12
12
  let(:subject) { build :content_element }
13
- it { should validate_presence_of(:label) }
14
- it { should validate_uniqueness_of(:label).scoped_to(:version_id) }
15
13
  end
16
14
  end
17
15
 
@@ -20,6 +20,6 @@ describe Pulitzer::Version do
20
20
 
21
21
  describe 'ActiveRecord enums' do
22
22
  it { should define_enum_for(:status).
23
- with([:preview, :active, :archived, :abandoned, :processing]) }
23
+ with([:preview, :active, :archived, :abandoned, :processing, :processing_failed]) }
24
24
  end
25
25
  end
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.2.2
4
+ version: 0.3.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: 2016-01-21 00:00:00.000000000 Z
12
+ date: 2016-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -18,6 +18,9 @@ dependencies:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
20
  version: 4.2.0
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -25,20 +28,29 @@ dependencies:
25
28
  - - '='
26
29
  - !ruby/object:Gem::Version
27
30
  version: 4.2.0
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: hooch
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
38
  - - ">="
33
39
  - !ruby/object:Gem::Version
34
- version: 0.3.0
40
+ version: 0.7.0
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
35
44
  type: :runtime
36
45
  prerelease: false
37
46
  version_requirements: !ruby/object:Gem::Requirement
38
47
  requirements:
39
48
  - - ">="
40
49
  - !ruby/object:Gem::Version
41
- version: 0.3.0
50
+ version: 0.7.0
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
42
54
  - !ruby/object:Gem::Dependency
43
55
  name: sass-rails
44
56
  requirement: !ruby/object:Gem::Requirement
@@ -46,6 +58,9 @@ dependencies:
46
58
  - - "~>"
47
59
  - !ruby/object:Gem::Version
48
60
  version: '4.0'
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '5.0'
49
64
  type: :runtime
50
65
  prerelease: false
51
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -53,20 +68,49 @@ dependencies:
53
68
  - - "~>"
54
69
  - !ruby/object:Gem::Version
55
70
  version: '4.0'
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: '5.0'
56
74
  - !ruby/object:Gem::Dependency
57
75
  name: thin_man
58
76
  requirement: !ruby/object:Gem::Requirement
59
77
  requirements:
60
78
  - - ">="
61
79
  - !ruby/object:Gem::Version
62
- version: 0.11.6
80
+ version: 0.12.2
81
+ - - "<"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.0'
63
84
  type: :runtime
64
85
  prerelease: false
65
86
  version_requirements: !ruby/object:Gem::Requirement
66
87
  requirements:
67
88
  - - ">="
68
89
  - !ruby/object:Gem::Version
69
- version: 0.11.6
90
+ version: 0.12.2
91
+ - - "<"
92
+ - !ruby/object:Gem::Version
93
+ version: '1.0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: foreign_office
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 0.9.1
101
+ - - "<"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.9.1
111
+ - - "<"
112
+ - !ruby/object:Gem::Version
113
+ version: '1.0'
70
114
  - !ruby/object:Gem::Dependency
71
115
  name: simple_form
72
116
  requirement: !ruby/object:Gem::Requirement
@@ -196,6 +240,9 @@ dependencies:
196
240
  - - "~>"
197
241
  - !ruby/object:Gem::Version
198
242
  version: '1.3'
243
+ - - "<"
244
+ - !ruby/object:Gem::Version
245
+ version: '2.0'
199
246
  type: :development
200
247
  prerelease: false
201
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -203,6 +250,9 @@ dependencies:
203
250
  - - "~>"
204
251
  - !ruby/object:Gem::Version
205
252
  version: '1.3'
253
+ - - "<"
254
+ - !ruby/object:Gem::Version
255
+ version: '2.0'
206
256
  - !ruby/object:Gem::Dependency
207
257
  name: minitest
208
258
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +260,9 @@ dependencies:
210
260
  - - "~>"
211
261
  - !ruby/object:Gem::Version
212
262
  version: '5.1'
263
+ - - "<"
264
+ - !ruby/object:Gem::Version
265
+ version: '6.0'
213
266
  type: :development
214
267
  prerelease: false
215
268
  version_requirements: !ruby/object:Gem::Requirement
@@ -217,6 +270,9 @@ dependencies:
217
270
  - - "~>"
218
271
  - !ruby/object:Gem::Version
219
272
  version: '5.1'
273
+ - - "<"
274
+ - !ruby/object:Gem::Version
275
+ version: '6.0'
220
276
  - !ruby/object:Gem::Dependency
221
277
  name: byebug
222
278
  requirement: !ruby/object:Gem::Requirement
@@ -408,15 +464,16 @@ files:
408
464
  - app/models/pulitzer/version.rb
409
465
  - app/uploaders/pulitzer/base_uploader.rb
410
466
  - app/uploaders/pulitzer/image_uploader.rb
467
+ - app/validators/pulitzer/content_element_validator.rb
411
468
  - app/views/pulitzer/content_elements/_form.html.erb
412
469
  - app/views/pulitzer/content_elements/_image_fields.html.erb
470
+ - app/views/pulitzer/content_elements/_index.html.erb
471
+ - app/views/pulitzer/content_elements/_index_processing.html.erb
413
472
  - app/views/pulitzer/content_elements/_new.html.erb
414
473
  - app/views/pulitzer/content_elements/_show.html.erb
415
474
  - app/views/pulitzer/content_elements/_show_wrapper.html.erb
416
475
  - app/views/pulitzer/content_elements/_text_fields.html.erb
417
476
  - app/views/pulitzer/content_elements/_video_fields.html.erb
418
- - app/views/pulitzer/content_elements/index.html.erb
419
- - app/views/pulitzer/content_elements/index_processing.html.erb
420
477
  - app/views/pulitzer/post_tags/_new.html.erb
421
478
  - app/views/pulitzer/post_tags/_show.html.erb
422
479
  - app/views/pulitzer/post_tags/_show_wrapper.html.erb
@@ -435,11 +492,12 @@ files:
435
492
  - app/views/pulitzer/posts/_new.html.erb
436
493
  - app/views/pulitzer/posts/_show.html.erb
437
494
  - app/views/pulitzer/posts/_show_wrapper.html.erb
495
+ - app/views/pulitzer/posts/edit.html.erb
438
496
  - app/views/pulitzer/posts/index.html.erb
439
- - app/views/pulitzer/posts/show.html.erb
440
497
  - app/views/pulitzer/shared/_drag_handle.html.erb
441
498
  - app/views/pulitzer/shared/_error_messages.erb
442
499
  - app/views/pulitzer/text_editors/_none.html.erb
500
+ - app/views/pulitzer/versions/_edit.html.erb
443
501
  - app/views/pulitzer/versions/_form.html.erb
444
502
  - config/routes.rb
445
503
  - db/migrate/20150618224344_create_pulitzer_post_types.rb
@@ -459,6 +517,7 @@ files:
459
517
  - db/migrate/20151113183344_add_post_type_content_element_attributes_to_content_elements.rb
460
518
  - db/migrate/20151116162508_change_template_to_pulitzer_post_types.rb
461
519
  - db/migrate/20151118031237_add_kind_to_pulitzer_content_elements.rb
520
+ - db/migrate/20160122204201_add_errors_to_version.rb
462
521
  - lib/pulitzer.rb
463
522
  - lib/pulitzer/content_element_helper.rb
464
523
  - lib/pulitzer/engine.rb
@@ -504,6 +563,7 @@ files:
504
563
  - spec/dummy/config/locales/en.yml
505
564
  - spec/dummy/config/routes.rb
506
565
  - spec/dummy/config/secrets.yml
566
+ - spec/dummy/db/development.sqlite3
507
567
  - spec/dummy/db/migrate/20150901153531_create_search_locations.rb
508
568
  - spec/dummy/db/schema.rb
509
569
  - spec/dummy/db/test.sqlite3
@@ -579,6 +639,36 @@ files:
579
639
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/cms_sam_and_snow.jpg
580
640
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/sam_and_snow.jpg
581
641
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/thumb_sam_and_snow.jpg
642
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/cms_sam_and_snow.jpg
643
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/sam_and_snow.jpg
644
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/thumb_sam_and_snow.jpg
645
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/cms_sam_and_snow.jpg
646
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/sam_and_snow.jpg
647
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/thumb_sam_and_snow.jpg
648
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/cms_sam_and_snow.jpg
649
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/sam_and_snow.jpg
650
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/thumb_sam_and_snow.jpg
651
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/cms_sam_and_snow.jpg
652
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/sam_and_snow.jpg
653
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/thumb_sam_and_snow.jpg
654
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/cms_sam_and_snow.jpg
655
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/sam_and_snow.jpg
656
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/thumb_sam_and_snow.jpg
657
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/cms_sam_and_snow.jpg
658
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/sam_and_snow.jpg
659
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/thumb_sam_and_snow.jpg
660
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/cms_sam_and_snow.jpg
661
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/sam_and_snow.jpg
662
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/thumb_sam_and_snow.jpg
663
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/cms_sam_and_snow.jpg
664
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/sam_and_snow.jpg
665
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/thumb_sam_and_snow.jpg
666
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/cms_sam_and_snow.jpg
667
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/sam_and_snow.jpg
668
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/thumb_sam_and_snow.jpg
669
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/cms_sam_and_snow.jpg
670
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/sam_and_snow.jpg
671
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/thumb_sam_and_snow.jpg
582
672
  - spec/factories/content_element.rb
583
673
  - spec/factories/content_element_type.rb
584
674
  - spec/factories/post.rb
@@ -664,6 +754,7 @@ test_files:
664
754
  - spec/dummy/config/routes.rb
665
755
  - spec/dummy/config/secrets.yml
666
756
  - spec/dummy/config.ru
757
+ - spec/dummy/db/development.sqlite3
667
758
  - spec/dummy/db/migrate/20150901153531_create_search_locations.rb
668
759
  - spec/dummy/db/schema.rb
669
760
  - spec/dummy/db/test.sqlite3
@@ -739,6 +830,36 @@ test_files:
739
830
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/cms_sam_and_snow.jpg
740
831
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/sam_and_snow.jpg
741
832
  - spec/dummy/public/uploads/tmp/1453393989-48708-0009/thumb_sam_and_snow.jpg
833
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/cms_sam_and_snow.jpg
834
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/sam_and_snow.jpg
835
+ - spec/dummy/public/uploads/tmp/1453739521-68535-5576/thumb_sam_and_snow.jpg
836
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/cms_sam_and_snow.jpg
837
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/sam_and_snow.jpg
838
+ - spec/dummy/public/uploads/tmp/1453739650-68698-8068/thumb_sam_and_snow.jpg
839
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/cms_sam_and_snow.jpg
840
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/sam_and_snow.jpg
841
+ - spec/dummy/public/uploads/tmp/1453740957-70195-5923/thumb_sam_and_snow.jpg
842
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/cms_sam_and_snow.jpg
843
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/sam_and_snow.jpg
844
+ - spec/dummy/public/uploads/tmp/1453741054-70338-5984/thumb_sam_and_snow.jpg
845
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/cms_sam_and_snow.jpg
846
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/sam_and_snow.jpg
847
+ - spec/dummy/public/uploads/tmp/1453741100-70403-3570/thumb_sam_and_snow.jpg
848
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/cms_sam_and_snow.jpg
849
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/sam_and_snow.jpg
850
+ - spec/dummy/public/uploads/tmp/1453741119-70445-1368/thumb_sam_and_snow.jpg
851
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/cms_sam_and_snow.jpg
852
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/sam_and_snow.jpg
853
+ - spec/dummy/public/uploads/tmp/1453741152-70510-7020/thumb_sam_and_snow.jpg
854
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/cms_sam_and_snow.jpg
855
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/sam_and_snow.jpg
856
+ - spec/dummy/public/uploads/tmp/1453741165-70539-8838/thumb_sam_and_snow.jpg
857
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/cms_sam_and_snow.jpg
858
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/sam_and_snow.jpg
859
+ - spec/dummy/public/uploads/tmp/1453741192-70601-8114/thumb_sam_and_snow.jpg
860
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/cms_sam_and_snow.jpg
861
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/sam_and_snow.jpg
862
+ - spec/dummy/public/uploads/tmp/1453741252-70701-6629/thumb_sam_and_snow.jpg
742
863
  - spec/dummy/Rakefile
743
864
  - spec/dummy/README.rdoc
744
865
  - spec/factories/content_element.rb
@@ -1,39 +0,0 @@
1
- <h1>Content elements for <%= @post.title %></h1>
2
-
3
- <div class="pulitzer-row margin-bottom list-item">
4
- <%= link_back_to_posts(@post.post_type, "Back to #{@post.post_type.name.singularize} Posts", 'Back to post types') %>
5
- </div>
6
-
7
- <% if @post.post_type.allow_free_form? %>
8
- <div class="pulitzer-row margin-bottom list-item">
9
- <%= ajax_link "add a new content element for #{@post.title}", new_content_element_path(version_id: @post.preview_version), {}, "#new_version_content_element_#{dom_id(@post.preview_version)}" %>
10
- <div id="new_version_content_element_<%= dom_id(@post.preview_version) %>"></div>
11
- </div>
12
- <% end %>
13
-
14
- <div class="pulitzer-row margin-bottom list-item">
15
- <h2>Tags</h2>
16
- <% Pulitzer::Post::TAG_MODELS.each do |tag_model| %>
17
- <%= render partial: 'pulitzer/post_tags/show_wrapper', locals: { post: @post, tag_model: tag_model } %>
18
- <% end %>
19
- </div>
20
-
21
- <div class="pulitzer-row margin-bottom list-item">
22
- <h2>Template content elements</h2>
23
- <% @content_elements.each do |content_element| %>
24
- <%= render partial: 'show_wrapper', locals: { content_element: content_element } %>
25
- <% end %>
26
- </div>
27
-
28
- <% if @post.post_type.allow_free_form? %>
29
- <h2>Free form content elements</h2>
30
- <div class="pulitzer-row margin-bottom list-item" id="version_content_element_container_<%= dom_id(@post.preview_version) %>" id="content_element_list" data-sorter href="<%= update_all_content_elements_path %>">
31
- <% @free_form_content_elements.each do |content_element| %>
32
- <%= render partial: 'show_wrapper', locals: { content_element: content_element } %>
33
- <% end %>
34
- </div>
35
- <% end %>
36
-
37
- <div class="pulitzer-row">
38
- <%= render partial: 'pulitzer/versions/form', locals: { version: @post.preview_version } %>
39
- </div>
@@ -1,6 +0,0 @@
1
- <h1><%= @post.title %></h1>
2
-
3
- <div id="posts_container">
4
- <%= render partial: 'show_wrapper', locals: {post: @post} %>
5
- </div>
6
- <%= link_to "Back to Post types", post_types_path %>