lady_josephine 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/controllers/lady_josephine/images_controller.rb +9 -1
  4. data/app/uploader/lady_josephine/base_uploader.rb +20 -0
  5. data/app/uploader/lady_josephine/image_uploader.rb +8 -32
  6. data/lib/lady_josephine/version.rb +1 -1
  7. data/lib/lady_josephine.rb +19 -0
  8. data/spec/controllers/lady_josephine/images_controller_spec.rb +6 -0
  9. data/spec/dummy/log/test.log +2982 -0
  10. data/spec/dummy/public/storage/test/lady_josephine/image/file/1/thumbnail_depressed-cat.jpg +0 -0
  11. data/spec/dummy/public/storage/test/lady_josephine/image/file/1/w1000_depressed-cat.jpg +0 -0
  12. data/spec/dummy/public/storage/test/lady_josephine/image/file/1/w2000_depressed-cat.jpg +0 -0
  13. data/spec/dummy/public/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg +0 -0
  14. data/spec/dummy/public/storage/test/lady_josephine/image/file/1/w600_depressed-cat.jpg +0 -0
  15. data/spec/dummy/public/uploads/tmp/1458297625-14767-2478/depressed-cat.jpg +0 -0
  16. data/spec/dummy/public/uploads/tmp/1458297625-14767-5632/depressed-cat.jpg +0 -0
  17. data/spec/dummy/public/uploads/tmp/1458297625-14767-6955/depressed-cat.jpg +0 -0
  18. data/spec/dummy/public/uploads/tmp/1458297625-14767-7681/depressed-cat.jpg +0 -0
  19. data/spec/dummy/public/uploads/tmp/1458297650-14955-0391/depressed-cat.jpg +0 -0
  20. data/spec/dummy/public/uploads/tmp/1458297650-14955-0678/w600_depressed-cat.jpg +0 -0
  21. data/spec/dummy/public/uploads/tmp/1458297650-14955-2981/depressed-cat.jpg +0 -0
  22. data/spec/dummy/public/uploads/tmp/1458297650-14955-3843/depressed-cat.jpg +0 -0
  23. data/spec/dummy/public/uploads/tmp/1458297650-14955-4815/w600_depressed-cat.jpg +0 -0
  24. data/spec/dummy/public/uploads/tmp/1458297650-14955-5314/w600_depressed-cat.jpg +0 -0
  25. data/spec/dummy/public/uploads/tmp/1458297650-14955-6911/w600_depressed-cat.jpg +0 -0
  26. data/spec/dummy/public/uploads/tmp/1458297650-14955-8584/depressed-cat.jpg +0 -0
  27. data/spec/dummy/public/uploads/tmp/1458297683-15123-1076/w600_depressed-cat.jpg +0 -0
  28. data/spec/dummy/public/uploads/tmp/1458297683-15123-1603/w600_depressed-cat.jpg +0 -0
  29. data/spec/dummy/public/uploads/tmp/1458297683-15123-2185/depressed-cat.jpg +0 -0
  30. data/spec/dummy/public/uploads/tmp/1458297683-15123-2208/w600_depressed-cat.jpg +0 -0
  31. data/spec/dummy/public/uploads/tmp/1458297683-15123-4253/depressed-cat.jpg +0 -0
  32. data/spec/dummy/public/uploads/tmp/1458297683-15123-5822/depressed-cat.jpg +0 -0
  33. data/spec/dummy/public/uploads/tmp/1458297684-15123-6302/w600_depressed-cat.jpg +0 -0
  34. data/spec/dummy/public/uploads/tmp/1458297684-15123-7185/depressed-cat.jpg +0 -0
  35. data/spec/dummy/public/uploads/tmp/1458297837-15423-0221/w600_depressed-cat.jpg +0 -0
  36. data/spec/dummy/public/uploads/tmp/1458297837-15423-4034/depressed-cat.jpg +0 -0
  37. data/spec/dummy/public/uploads/tmp/1458297941-15648-3378/w600_depressed-cat.jpg +0 -0
  38. data/spec/dummy/public/uploads/tmp/1458297941-15648-7747/depressed-cat.jpg +0 -0
  39. data/spec/dummy/public/uploads/tmp/1458298031-15804-3719/w600_depressed-cat.jpg +0 -0
  40. data/spec/dummy/public/uploads/tmp/1458298031-15804-6451/depressed-cat.jpg +0 -0
  41. data/spec/dummy/public/uploads/tmp/1458298080-15891-3288/w600_depressed-cat.jpg +0 -0
  42. data/spec/dummy/public/uploads/tmp/1458298080-15891-8575/depressed-cat.jpg +0 -0
  43. data/spec/dummy/public/uploads/tmp/1458298150-16006-2061/w2000_depressed-cat.jpg +0 -0
  44. data/spec/dummy/public/uploads/tmp/1458298150-16006-4216/depressed-cat.jpg +0 -0
  45. data/spec/dummy/public/uploads/tmp/1458298150-16006-4216/thumbnail_depressed-cat.jpg +0 -0
  46. data/spec/dummy/public/uploads/tmp/1458298150-16006-4216/w1000_depressed-cat.jpg +0 -0
  47. data/spec/dummy/public/uploads/tmp/1458298150-16006-4216/w300_depressed-cat.jpg +0 -0
  48. data/spec/dummy/public/uploads/tmp/1458298150-16006-7424/w600_depressed-cat.jpg +0 -0
  49. data/spec/dummy/public/uploads/tmp/1458298244-16154-1253/depressed-cat.jpg +0 -0
  50. data/spec/dummy/public/uploads/tmp/1458298244-16154-1253/thumbnail_depressed-cat.jpg +0 -0
  51. data/spec/dummy/public/uploads/tmp/1458298244-16154-1253/w1000_depressed-cat.jpg +0 -0
  52. data/spec/dummy/public/uploads/tmp/1458298244-16154-1253/w300_depressed-cat.jpg +0 -0
  53. data/spec/dummy/public/uploads/tmp/1458298244-16154-2402/w600_depressed-cat.jpg +0 -0
  54. data/spec/dummy/public/uploads/tmp/1458298244-16154-9561/w2000_depressed-cat.jpg +0 -0
  55. data/spec/dummy/public/uploads/tmp/1458298289-16330-3415/depressed-cat.jpg +0 -0
  56. data/spec/dummy/public/uploads/tmp/1458298289-16330-4694/w600_depressed-cat.jpg +0 -0
  57. data/spec/helper/lady_josephine/sir_trevor_helper_spec.rb +1 -1
  58. metadata +88 -2
@@ -47,7 +47,7 @@ describe LadyJosephine::SirTrevorHelper, type: :helper do
47
47
  expect(
48
48
  render_sir_trevor("{\"server_uuid\":\"6cb3e116-fce1-4ae9-8e7f-d8007aec7542\",\"data\":[{\"type\":\"extended_image\",\"data\":{\"uuid\":\"uuid-image\",\"note\":\"no\",\"style\":\"fullwidth\",\"file\":{\"url\":\"http://example.com/file_1.jpg\",\"large\":{\"url\":\"http://example.com/file_1_large.jpg\"},\"medium\":{\"url\":\"http://example.com/file_1_medium.jpg\"},\"small\":{\"url\":\"http://example.com/file_1_small.jpg\"}}}}]}")
49
49
  ).to eql "<figure class='lady-josephine-block--image media media--fullwidth' data-article_component='uuid-image' data-fullscreenable-media data-isFullscreen='false' data-ng-class=\"{'media--fullscreen' : isFullscreen}\" ng-class=\"{'is-active': active}\" notes_count='0'><div class='media__img'>\n" +
50
- "<img src=\"/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg\" srcset=\"/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg 300w, /storage/test/lady_josephine/image/file/1/w600_depressed-cat.jpg 600w, /storage/test/lady_josephine/image/file/1/w1000_depressed-cat.jpg 1000w, /storage/test/lady_josephine/image/file/1/w2000_depressed-cat.jpg 2000w\" sizes=\"(min-width:1000px) 930px, 50vw\" /></div>\n" +
50
+ "<img src=\"/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg\" srcset=\"/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg 300w, /storage/test/lady_josephine/image/file/1/w600_depressed-cat.jpg 600w, /storage/test/lady_josephine/image/file/1/w1000_depressed-cat.jpg 1000w, /storage/test/lady_josephine/image/file/1/w2000_depressed-cat.jpg 2000w, /storage/test/lady_josephine/image/file/1/thumbnail_depressed-cat.jpg 128w\" sizes=\"(min-width:1000px) 930px, 50vw\" /></div>\n" +
51
51
  "<figcaption class='media__body'>\n" +
52
52
  "</figcaption></figure>\n"
53
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lady_josephine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bodo Tasche
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-11 00:00:00.000000000 Z
12
+ date: 2016-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -242,6 +242,7 @@ files:
242
242
  - spec/dummy/public/500.html
243
243
  - spec/dummy/public/favicon.ico
244
244
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/depressed-cat.jpg
245
+ - spec/dummy/public/storage/test/lady_josephine/image/file/1/thumbnail_depressed-cat.jpg
245
246
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w1000_depressed-cat.jpg
246
247
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w2000_depressed-cat.jpg
247
248
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg
@@ -266,6 +267,48 @@ files:
266
267
  - spec/dummy/public/uploads/tmp/1457515954-18760-0051/w300_depressed-cat.jpg
267
268
  - spec/dummy/public/uploads/tmp/1457515955-18760-3846/w2000_depressed-cat.jpg
268
269
  - spec/dummy/public/uploads/tmp/1457515955-18760-7040/w600_depressed-cat.jpg
270
+ - spec/dummy/public/uploads/tmp/1458297625-14767-2478/depressed-cat.jpg
271
+ - spec/dummy/public/uploads/tmp/1458297625-14767-5632/depressed-cat.jpg
272
+ - spec/dummy/public/uploads/tmp/1458297625-14767-6955/depressed-cat.jpg
273
+ - spec/dummy/public/uploads/tmp/1458297625-14767-7681/depressed-cat.jpg
274
+ - spec/dummy/public/uploads/tmp/1458297650-14955-0391/depressed-cat.jpg
275
+ - spec/dummy/public/uploads/tmp/1458297650-14955-0678/w600_depressed-cat.jpg
276
+ - spec/dummy/public/uploads/tmp/1458297650-14955-2981/depressed-cat.jpg
277
+ - spec/dummy/public/uploads/tmp/1458297650-14955-3843/depressed-cat.jpg
278
+ - spec/dummy/public/uploads/tmp/1458297650-14955-4815/w600_depressed-cat.jpg
279
+ - spec/dummy/public/uploads/tmp/1458297650-14955-5314/w600_depressed-cat.jpg
280
+ - spec/dummy/public/uploads/tmp/1458297650-14955-6911/w600_depressed-cat.jpg
281
+ - spec/dummy/public/uploads/tmp/1458297650-14955-8584/depressed-cat.jpg
282
+ - spec/dummy/public/uploads/tmp/1458297683-15123-1076/w600_depressed-cat.jpg
283
+ - spec/dummy/public/uploads/tmp/1458297683-15123-1603/w600_depressed-cat.jpg
284
+ - spec/dummy/public/uploads/tmp/1458297683-15123-2185/depressed-cat.jpg
285
+ - spec/dummy/public/uploads/tmp/1458297683-15123-2208/w600_depressed-cat.jpg
286
+ - spec/dummy/public/uploads/tmp/1458297683-15123-4253/depressed-cat.jpg
287
+ - spec/dummy/public/uploads/tmp/1458297683-15123-5822/depressed-cat.jpg
288
+ - spec/dummy/public/uploads/tmp/1458297684-15123-6302/w600_depressed-cat.jpg
289
+ - spec/dummy/public/uploads/tmp/1458297684-15123-7185/depressed-cat.jpg
290
+ - spec/dummy/public/uploads/tmp/1458297837-15423-0221/w600_depressed-cat.jpg
291
+ - spec/dummy/public/uploads/tmp/1458297837-15423-4034/depressed-cat.jpg
292
+ - spec/dummy/public/uploads/tmp/1458297941-15648-3378/w600_depressed-cat.jpg
293
+ - spec/dummy/public/uploads/tmp/1458297941-15648-7747/depressed-cat.jpg
294
+ - spec/dummy/public/uploads/tmp/1458298031-15804-3719/w600_depressed-cat.jpg
295
+ - spec/dummy/public/uploads/tmp/1458298031-15804-6451/depressed-cat.jpg
296
+ - spec/dummy/public/uploads/tmp/1458298080-15891-3288/w600_depressed-cat.jpg
297
+ - spec/dummy/public/uploads/tmp/1458298080-15891-8575/depressed-cat.jpg
298
+ - spec/dummy/public/uploads/tmp/1458298150-16006-2061/w2000_depressed-cat.jpg
299
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/depressed-cat.jpg
300
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/thumbnail_depressed-cat.jpg
301
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/w1000_depressed-cat.jpg
302
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/w300_depressed-cat.jpg
303
+ - spec/dummy/public/uploads/tmp/1458298150-16006-7424/w600_depressed-cat.jpg
304
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/depressed-cat.jpg
305
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/thumbnail_depressed-cat.jpg
306
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/w1000_depressed-cat.jpg
307
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/w300_depressed-cat.jpg
308
+ - spec/dummy/public/uploads/tmp/1458298244-16154-2402/w600_depressed-cat.jpg
309
+ - spec/dummy/public/uploads/tmp/1458298244-16154-9561/w2000_depressed-cat.jpg
310
+ - spec/dummy/public/uploads/tmp/1458298289-16330-3415/depressed-cat.jpg
311
+ - spec/dummy/public/uploads/tmp/1458298289-16330-4694/w600_depressed-cat.jpg
269
312
  - spec/helper/lady_josephine/helper_spec.rb
270
313
  - spec/helper/lady_josephine/sir_trevor_helper_spec.rb
271
314
  - spec/lib/redcarpet/custom_markdown_formatter_spec.rb
@@ -556,6 +599,7 @@ test_files:
556
599
  - spec/dummy/public/500.html
557
600
  - spec/dummy/public/favicon.ico
558
601
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/depressed-cat.jpg
602
+ - spec/dummy/public/storage/test/lady_josephine/image/file/1/thumbnail_depressed-cat.jpg
559
603
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w1000_depressed-cat.jpg
560
604
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w2000_depressed-cat.jpg
561
605
  - spec/dummy/public/storage/test/lady_josephine/image/file/1/w300_depressed-cat.jpg
@@ -580,6 +624,48 @@ test_files:
580
624
  - spec/dummy/public/uploads/tmp/1457515954-18760-0051/w300_depressed-cat.jpg
581
625
  - spec/dummy/public/uploads/tmp/1457515955-18760-3846/w2000_depressed-cat.jpg
582
626
  - spec/dummy/public/uploads/tmp/1457515955-18760-7040/w600_depressed-cat.jpg
627
+ - spec/dummy/public/uploads/tmp/1458297625-14767-2478/depressed-cat.jpg
628
+ - spec/dummy/public/uploads/tmp/1458297625-14767-5632/depressed-cat.jpg
629
+ - spec/dummy/public/uploads/tmp/1458297625-14767-6955/depressed-cat.jpg
630
+ - spec/dummy/public/uploads/tmp/1458297625-14767-7681/depressed-cat.jpg
631
+ - spec/dummy/public/uploads/tmp/1458297650-14955-0391/depressed-cat.jpg
632
+ - spec/dummy/public/uploads/tmp/1458297650-14955-0678/w600_depressed-cat.jpg
633
+ - spec/dummy/public/uploads/tmp/1458297650-14955-2981/depressed-cat.jpg
634
+ - spec/dummy/public/uploads/tmp/1458297650-14955-3843/depressed-cat.jpg
635
+ - spec/dummy/public/uploads/tmp/1458297650-14955-4815/w600_depressed-cat.jpg
636
+ - spec/dummy/public/uploads/tmp/1458297650-14955-5314/w600_depressed-cat.jpg
637
+ - spec/dummy/public/uploads/tmp/1458297650-14955-6911/w600_depressed-cat.jpg
638
+ - spec/dummy/public/uploads/tmp/1458297650-14955-8584/depressed-cat.jpg
639
+ - spec/dummy/public/uploads/tmp/1458297683-15123-1076/w600_depressed-cat.jpg
640
+ - spec/dummy/public/uploads/tmp/1458297683-15123-1603/w600_depressed-cat.jpg
641
+ - spec/dummy/public/uploads/tmp/1458297683-15123-2185/depressed-cat.jpg
642
+ - spec/dummy/public/uploads/tmp/1458297683-15123-2208/w600_depressed-cat.jpg
643
+ - spec/dummy/public/uploads/tmp/1458297683-15123-4253/depressed-cat.jpg
644
+ - spec/dummy/public/uploads/tmp/1458297683-15123-5822/depressed-cat.jpg
645
+ - spec/dummy/public/uploads/tmp/1458297684-15123-6302/w600_depressed-cat.jpg
646
+ - spec/dummy/public/uploads/tmp/1458297684-15123-7185/depressed-cat.jpg
647
+ - spec/dummy/public/uploads/tmp/1458297837-15423-0221/w600_depressed-cat.jpg
648
+ - spec/dummy/public/uploads/tmp/1458297837-15423-4034/depressed-cat.jpg
649
+ - spec/dummy/public/uploads/tmp/1458297941-15648-3378/w600_depressed-cat.jpg
650
+ - spec/dummy/public/uploads/tmp/1458297941-15648-7747/depressed-cat.jpg
651
+ - spec/dummy/public/uploads/tmp/1458298031-15804-3719/w600_depressed-cat.jpg
652
+ - spec/dummy/public/uploads/tmp/1458298031-15804-6451/depressed-cat.jpg
653
+ - spec/dummy/public/uploads/tmp/1458298080-15891-3288/w600_depressed-cat.jpg
654
+ - spec/dummy/public/uploads/tmp/1458298080-15891-8575/depressed-cat.jpg
655
+ - spec/dummy/public/uploads/tmp/1458298150-16006-2061/w2000_depressed-cat.jpg
656
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/depressed-cat.jpg
657
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/thumbnail_depressed-cat.jpg
658
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/w1000_depressed-cat.jpg
659
+ - spec/dummy/public/uploads/tmp/1458298150-16006-4216/w300_depressed-cat.jpg
660
+ - spec/dummy/public/uploads/tmp/1458298150-16006-7424/w600_depressed-cat.jpg
661
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/depressed-cat.jpg
662
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/thumbnail_depressed-cat.jpg
663
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/w1000_depressed-cat.jpg
664
+ - spec/dummy/public/uploads/tmp/1458298244-16154-1253/w300_depressed-cat.jpg
665
+ - spec/dummy/public/uploads/tmp/1458298244-16154-2402/w600_depressed-cat.jpg
666
+ - spec/dummy/public/uploads/tmp/1458298244-16154-9561/w2000_depressed-cat.jpg
667
+ - spec/dummy/public/uploads/tmp/1458298289-16330-3415/depressed-cat.jpg
668
+ - spec/dummy/public/uploads/tmp/1458298289-16330-4694/w600_depressed-cat.jpg
583
669
  - spec/dummy/Rakefile
584
670
  - spec/dummy/README.rdoc
585
671
  - spec/helper/lady_josephine/helper_spec.rb