uploadcare-rails 1.2.0.pre.alpha3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uploadcare/rails/version.rb +1 -1
  3. data/spec/cassettes/Uploadcare_Rails_File/should_load_itself.yml +156 -0
  4. data/spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml +156 -0
  5. data/spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml +156 -0
  6. data/spec/cassettes/group_cahsing_file_load.yml +156 -0
  7. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml +480 -0
  8. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml +162 -0
  9. data/spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml +156 -0
  10. data/spec/cassettes/has_uploadcare_group_save.yml +162 -0
  11. data/spec/cassettes/load_group.yml +156 -0
  12. data/spec/dummy/config/boot.rb +0 -1
  13. data/spec/dummy/log/test.log +126 -2850
  14. data/spec/dummy/tmp/cache/457/D71/https%3A%2F%2Fucarecdn.com%2F04058c13-549a-495a-bab8-83a5deaae0a0%7E2%2F +0 -0
  15. data/spec/dummy/tmp/cache/49B/481/https%3A%2F%2Fucarecdn.com%2F2d40a7e9-bab4-446d-8d7a-b9fc5438c04c%7E2%2F +0 -0
  16. data/spec/spec_helper.rb +0 -1
  17. metadata +8 -28
  18. data/spec/dummy/log/development.log +0 -0
  19. data/spec/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F +0 -0
  20. data/spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F +0 -0
  21. data/spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F +0 -0
  22. data/spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F +0 -0
  23. data/spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F +0 -0
  24. data/spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F +0 -0
  25. data/spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F +0 -0
  26. data/spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F +0 -0
  27. data/spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F +0 -0
  28. data/spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F +0 -0
  29. data/spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F +0 -0
@@ -540,4 +540,166 @@ http_interactions:
540
540
  string: '{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:10.071884Z","datetime_uploaded":"2018-05-28T19:04:57.151416Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/d3595e70-e488-451c-a21b-11424cea46d2/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/d3595e70-e488-451c-a21b-11424cea46d2/","uuid":"d3595e70-e488-451c-a21b-11424cea46d2","source":null}'
541
541
  http_version:
542
542
  recorded_at: Mon, 28 May 2018 19:05:10 GMT
543
+ - request:
544
+ method: put
545
+ uri: https://api.uploadcare.com/files/a3b7b908-1007-4485-9cf4-8589f9247956/storage/
546
+ body:
547
+ encoding: UTF-8
548
+ string: ''
549
+ headers:
550
+ Accept:
551
+ - application/vnd.uploadcare-v0.3+json
552
+ User-Agent:
553
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
554
+ Content-Type:
555
+ - application/x-www-form-urlencoded
556
+ Date:
557
+ - Sat, 02 Jun 2018 18:31:02 -0000
558
+ Authorization:
559
+ - Uploadcare demopublickey:45165b9b7641115437d6df8a9836b6756d377673
560
+ Accept-Encoding:
561
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
562
+ response:
563
+ status:
564
+ code: 200
565
+ message: OK
566
+ headers:
567
+ Date:
568
+ - Sat, 02 Jun 2018 18:31:04 GMT
569
+ Content-Type:
570
+ - application/vnd.uploadcare-v0.3+json
571
+ Content-Length:
572
+ - '580'
573
+ Connection:
574
+ - keep-alive
575
+ Server:
576
+ - nginx
577
+ X-Xss-Protection:
578
+ - 1; mode=block
579
+ X-Content-Type-Options:
580
+ - nosniff
581
+ Vary:
582
+ - Accept
583
+ Warning:
584
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
585
+ version 0.5, not 0.3'
586
+ Allow:
587
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
588
+ Access-Control-Allow-Origin:
589
+ - https://uploadcare.com
590
+ X-Frame-Options:
591
+ - SAMEORIGIN
592
+ body:
593
+ encoding: UTF-8
594
+ string: '{"datetime_removed":null,"datetime_stored":"2018-06-02T18:31:04.519291Z","datetime_uploaded":"2018-06-02T18:30:47.949807Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/a3b7b908-1007-4485-9cf4-8589f9247956/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/a3b7b908-1007-4485-9cf4-8589f9247956/","uuid":"a3b7b908-1007-4485-9cf4-8589f9247956","source":null}'
595
+ http_version:
596
+ recorded_at: Sat, 02 Jun 2018 18:31:04 GMT
597
+ - request:
598
+ method: put
599
+ uri: https://api.uploadcare.com/files/7b4a1a96-ebba-4d41-98cc-477af78d9965/storage/
600
+ body:
601
+ encoding: UTF-8
602
+ string: ''
603
+ headers:
604
+ Accept:
605
+ - application/vnd.uploadcare-v0.3+json
606
+ User-Agent:
607
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
608
+ Content-Type:
609
+ - application/x-www-form-urlencoded
610
+ Date:
611
+ - Sat, 02 Jun 2018 18:35:00 -0000
612
+ Authorization:
613
+ - Uploadcare demopublickey:24926b31e71169bb520e890c9f56df1aea035d09
614
+ Accept-Encoding:
615
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
616
+ response:
617
+ status:
618
+ code: 200
619
+ message: OK
620
+ headers:
621
+ Date:
622
+ - Sat, 02 Jun 2018 18:35:02 GMT
623
+ Content-Type:
624
+ - application/vnd.uploadcare-v0.3+json
625
+ Content-Length:
626
+ - '580'
627
+ Connection:
628
+ - keep-alive
629
+ Server:
630
+ - nginx
631
+ X-Xss-Protection:
632
+ - 1; mode=block
633
+ X-Content-Type-Options:
634
+ - nosniff
635
+ Vary:
636
+ - Accept
637
+ Warning:
638
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
639
+ version 0.5, not 0.3'
640
+ Allow:
641
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
642
+ Access-Control-Allow-Origin:
643
+ - https://uploadcare.com
644
+ X-Frame-Options:
645
+ - SAMEORIGIN
646
+ body:
647
+ encoding: UTF-8
648
+ string: '{"datetime_removed":null,"datetime_stored":"2018-06-02T18:35:02.116805Z","datetime_uploaded":"2018-06-02T18:34:43.433191Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/7b4a1a96-ebba-4d41-98cc-477af78d9965/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/7b4a1a96-ebba-4d41-98cc-477af78d9965/","uuid":"7b4a1a96-ebba-4d41-98cc-477af78d9965","source":null}'
649
+ http_version:
650
+ recorded_at: Sat, 02 Jun 2018 18:35:03 GMT
651
+ - request:
652
+ method: put
653
+ uri: https://api.uploadcare.com/files/760f249c-77d2-4952-8b7b-f1ca23daf3f4/storage/
654
+ body:
655
+ encoding: UTF-8
656
+ string: ''
657
+ headers:
658
+ Accept:
659
+ - application/vnd.uploadcare-v0.3+json
660
+ User-Agent:
661
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
662
+ Content-Type:
663
+ - application/x-www-form-urlencoded
664
+ Date:
665
+ - Sat, 02 Jun 2018 18:39:21 -0000
666
+ Authorization:
667
+ - Uploadcare demopublickey:d420f3f7372c42ac64750cbfe22bb49561887d4d
668
+ Accept-Encoding:
669
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
670
+ response:
671
+ status:
672
+ code: 200
673
+ message: OK
674
+ headers:
675
+ Date:
676
+ - Sat, 02 Jun 2018 18:39:23 GMT
677
+ Content-Type:
678
+ - application/vnd.uploadcare-v0.3+json
679
+ Content-Length:
680
+ - '580'
681
+ Connection:
682
+ - keep-alive
683
+ Server:
684
+ - nginx
685
+ X-Xss-Protection:
686
+ - 1; mode=block
687
+ X-Content-Type-Options:
688
+ - nosniff
689
+ Vary:
690
+ - Accept
691
+ Warning:
692
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
693
+ version 0.5, not 0.3'
694
+ Allow:
695
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
696
+ Access-Control-Allow-Origin:
697
+ - https://uploadcare.com
698
+ X-Frame-Options:
699
+ - SAMEORIGIN
700
+ body:
701
+ encoding: UTF-8
702
+ string: '{"datetime_removed":null,"datetime_stored":"2018-06-02T18:39:23.493745Z","datetime_uploaded":"2018-06-02T18:39:05.125522Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/760f249c-77d2-4952-8b7b-f1ca23daf3f4/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/760f249c-77d2-4952-8b7b-f1ca23daf3f4/","uuid":"760f249c-77d2-4952-8b7b-f1ca23daf3f4","source":null}'
703
+ http_version:
704
+ recorded_at: Sat, 02 Jun 2018 18:39:23 GMT
543
705
  recorded_with: VCR 4.0.0
@@ -676,4 +676,160 @@ http_interactions:
676
676
  string: '{"id":"19073296-2315-4726-817b-46398b2c7431~2","datetime_created":"2018-05-28T19:05:04.518599Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/19073296-2315-4726-817b-46398b2c7431~2/","url":"https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-28T19:05:02.297907Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/42627fa0-e88e-4055-b8ed-98e6a9500737/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/42627fa0-e88e-4055-b8ed-98e6a9500737/","uuid":"42627fa0-e88e-4055-b8ed-98e6a9500737","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-28T19:05:02.352341Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/","uuid":"1ee9aaa7-2aba-4700-9aa5-ce88cf95085b","source":null,"default_effects":""}]}'
677
677
  http_version:
678
678
  recorded_at: Mon, 28 May 2018 19:05:19 GMT
679
+ - request:
680
+ method: get
681
+ uri: https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/
682
+ body:
683
+ encoding: US-ASCII
684
+ string: ''
685
+ headers:
686
+ Accept:
687
+ - application/vnd.uploadcare-v0.3+json
688
+ User-Agent:
689
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
690
+ Date:
691
+ - Sat, 02 Jun 2018 18:31:09 -0000
692
+ Authorization:
693
+ - Uploadcare demopublickey:64a960445370605830b1537c9c0eaadcc8616beb
694
+ Accept-Encoding:
695
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
696
+ response:
697
+ status:
698
+ code: 200
699
+ message: OK
700
+ headers:
701
+ Date:
702
+ - Sat, 02 Jun 2018 18:31:11 GMT
703
+ Content-Type:
704
+ - application/vnd.uploadcare-v0.3+json
705
+ Content-Length:
706
+ - '1461'
707
+ Connection:
708
+ - keep-alive
709
+ Server:
710
+ - nginx
711
+ X-Xss-Protection:
712
+ - 1; mode=block
713
+ X-Content-Type-Options:
714
+ - nosniff
715
+ Vary:
716
+ - Accept
717
+ Warning:
718
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
719
+ version 0.5, not 0.3'
720
+ Allow:
721
+ - GET, HEAD, OPTIONS
722
+ Access-Control-Allow-Origin:
723
+ - https://uploadcare.com
724
+ X-Frame-Options:
725
+ - SAMEORIGIN
726
+ body:
727
+ encoding: UTF-8
728
+ string: '{"id":"d35a4f57-71e6-447e-8143-0912fd1f0f59~2","datetime_created":"2018-06-02T18:30:55.386068Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","url":"https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:30:53.594401Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/f3bbea1d-42d8-4564-a64f-4a72433aba0a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/f3bbea1d-42d8-4564-a64f-4a72433aba0a/","uuid":"f3bbea1d-42d8-4564-a64f-4a72433aba0a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:30:53.619984Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/fd3af95e-77a7-403b-abeb-9296c9e6969f/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/fd3af95e-77a7-403b-abeb-9296c9e6969f/","uuid":"fd3af95e-77a7-403b-abeb-9296c9e6969f","source":null,"default_effects":""}]}'
729
+ http_version:
730
+ recorded_at: Sat, 02 Jun 2018 18:31:11 GMT
731
+ - request:
732
+ method: get
733
+ uri: https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/
734
+ body:
735
+ encoding: US-ASCII
736
+ string: ''
737
+ headers:
738
+ Accept:
739
+ - application/vnd.uploadcare-v0.3+json
740
+ User-Agent:
741
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
742
+ Date:
743
+ - Sat, 02 Jun 2018 18:35:08 -0000
744
+ Authorization:
745
+ - Uploadcare demopublickey:2f53857acf3ffa7e3990c9143add6b056516b688
746
+ Accept-Encoding:
747
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
748
+ response:
749
+ status:
750
+ code: 200
751
+ message: OK
752
+ headers:
753
+ Date:
754
+ - Sat, 02 Jun 2018 18:35:20 GMT
755
+ Content-Type:
756
+ - application/vnd.uploadcare-v0.3+json
757
+ Content-Length:
758
+ - '1461'
759
+ Connection:
760
+ - keep-alive
761
+ Server:
762
+ - nginx
763
+ X-Xss-Protection:
764
+ - 1; mode=block
765
+ X-Content-Type-Options:
766
+ - nosniff
767
+ Vary:
768
+ - Accept
769
+ Warning:
770
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
771
+ version 0.5, not 0.3'
772
+ Allow:
773
+ - GET, HEAD, OPTIONS
774
+ Access-Control-Allow-Origin:
775
+ - https://uploadcare.com
776
+ X-Frame-Options:
777
+ - SAMEORIGIN
778
+ body:
779
+ encoding: UTF-8
780
+ string: '{"id":"04058c13-549a-495a-bab8-83a5deaae0a0~2","datetime_created":"2018-06-02T18:34:54.305546Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/04058c13-549a-495a-bab8-83a5deaae0a0~2/","url":"https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:34:52.263294Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/36e223f9-9fc6-4283-9245-34a4a690379a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/36e223f9-9fc6-4283-9245-34a4a690379a/","uuid":"36e223f9-9fc6-4283-9245-34a4a690379a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:34:52.306599Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/1dacbb47-491d-42e2-83a7-38534f4da7a6/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1dacbb47-491d-42e2-83a7-38534f4da7a6/","uuid":"1dacbb47-491d-42e2-83a7-38534f4da7a6","source":null,"default_effects":""}]}'
781
+ http_version:
782
+ recorded_at: Sat, 02 Jun 2018 18:35:20 GMT
783
+ - request:
784
+ method: get
785
+ uri: https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/
786
+ body:
787
+ encoding: US-ASCII
788
+ string: ''
789
+ headers:
790
+ Accept:
791
+ - application/vnd.uploadcare-v0.3+json
792
+ User-Agent:
793
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
794
+ Date:
795
+ - Sat, 02 Jun 2018 18:39:32 -0000
796
+ Authorization:
797
+ - Uploadcare demopublickey:d3ace2dd6a23bcb860cbe031851591cea6eab14c
798
+ Accept-Encoding:
799
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
800
+ response:
801
+ status:
802
+ code: 200
803
+ message: OK
804
+ headers:
805
+ Date:
806
+ - Sat, 02 Jun 2018 18:39:33 GMT
807
+ Content-Type:
808
+ - application/vnd.uploadcare-v0.3+json
809
+ Content-Length:
810
+ - '1461'
811
+ Connection:
812
+ - keep-alive
813
+ Server:
814
+ - nginx
815
+ X-Xss-Protection:
816
+ - 1; mode=block
817
+ X-Content-Type-Options:
818
+ - nosniff
819
+ Vary:
820
+ - Accept
821
+ Warning:
822
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
823
+ version 0.5, not 0.3'
824
+ Allow:
825
+ - GET, HEAD, OPTIONS
826
+ Access-Control-Allow-Origin:
827
+ - https://uploadcare.com
828
+ X-Frame-Options:
829
+ - SAMEORIGIN
830
+ body:
831
+ encoding: UTF-8
832
+ string: '{"id":"2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2","datetime_created":"2018-06-02T18:39:14.607820Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","url":"https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:39:13.011872Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/","uuid":"2ce44dbc-e38f-4601-afb1-c6b4b36bc57b","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-06-02T18:39:13.032614Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/61ab6222-418f-4239-b8ae-7ce94a6170fa/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/61ab6222-418f-4239-b8ae-7ce94a6170fa/","uuid":"61ab6222-418f-4239-b8ae-7ce94a6170fa","source":null,"default_effects":""}]}'
833
+ http_version:
834
+ recorded_at: Sat, 02 Jun 2018 18:39:34 GMT
679
835
  recorded_with: VCR 4.0.0
@@ -702,4 +702,166 @@ http_interactions:
702
702
  string: '{"id":"19073296-2315-4726-817b-46398b2c7431~2","datetime_created":"2018-05-28T19:05:04.518599Z","datetime_stored":"2018-05-28T19:05:25.719275Z","files_count":2,"cdn_url":"https://ucarecdn.com/19073296-2315-4726-817b-46398b2c7431~2/","url":"https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:25.637792Z","datetime_uploaded":"2018-05-28T19:05:02.297907Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/42627fa0-e88e-4055-b8ed-98e6a9500737/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/42627fa0-e88e-4055-b8ed-98e6a9500737/","uuid":"42627fa0-e88e-4055-b8ed-98e6a9500737","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:25.693326Z","datetime_uploaded":"2018-05-28T19:05:02.352341Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/","uuid":"1ee9aaa7-2aba-4700-9aa5-ce88cf95085b","source":null,"default_effects":""}]}'
703
703
  http_version:
704
704
  recorded_at: Mon, 28 May 2018 19:05:25 GMT
705
+ - request:
706
+ method: put
707
+ uri: https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/storage/
708
+ body:
709
+ encoding: UTF-8
710
+ string: ''
711
+ headers:
712
+ Accept:
713
+ - application/vnd.uploadcare-v0.3+json
714
+ User-Agent:
715
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
716
+ Content-Type:
717
+ - application/x-www-form-urlencoded
718
+ Date:
719
+ - Sat, 02 Jun 2018 18:31:11 -0000
720
+ Authorization:
721
+ - Uploadcare demopublickey:d7cc8ad3c302fb0a2eb92bdef837a36604d49c80
722
+ Accept-Encoding:
723
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
724
+ response:
725
+ status:
726
+ code: 200
727
+ message: OK
728
+ headers:
729
+ Date:
730
+ - Sat, 02 Jun 2018 18:31:13 GMT
731
+ Content-Type:
732
+ - application/vnd.uploadcare-v0.3+json
733
+ Content-Length:
734
+ - '1536'
735
+ Connection:
736
+ - keep-alive
737
+ Server:
738
+ - nginx
739
+ X-Xss-Protection:
740
+ - 1; mode=block
741
+ X-Content-Type-Options:
742
+ - nosniff
743
+ Vary:
744
+ - Accept
745
+ Warning:
746
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
747
+ version 0.5, not 0.3'
748
+ Allow:
749
+ - POST, PUT, PATCH, HEAD, OPTIONS
750
+ Access-Control-Allow-Origin:
751
+ - https://uploadcare.com
752
+ X-Frame-Options:
753
+ - SAMEORIGIN
754
+ body:
755
+ encoding: UTF-8
756
+ string: '{"id":"d35a4f57-71e6-447e-8143-0912fd1f0f59~2","datetime_created":"2018-06-02T18:30:55.386068Z","datetime_stored":"2018-06-02T18:31:13.334381Z","files_count":2,"cdn_url":"https://ucarecdn.com/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","url":"https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:31:12.745808Z","datetime_uploaded":"2018-06-02T18:30:53.594401Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/f3bbea1d-42d8-4564-a64f-4a72433aba0a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/f3bbea1d-42d8-4564-a64f-4a72433aba0a/","uuid":"f3bbea1d-42d8-4564-a64f-4a72433aba0a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:31:13.304402Z","datetime_uploaded":"2018-06-02T18:30:53.619984Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/fd3af95e-77a7-403b-abeb-9296c9e6969f/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/fd3af95e-77a7-403b-abeb-9296c9e6969f/","uuid":"fd3af95e-77a7-403b-abeb-9296c9e6969f","source":null,"default_effects":""}]}'
757
+ http_version:
758
+ recorded_at: Sat, 02 Jun 2018 18:31:13 GMT
759
+ - request:
760
+ method: put
761
+ uri: https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/storage/
762
+ body:
763
+ encoding: UTF-8
764
+ string: ''
765
+ headers:
766
+ Accept:
767
+ - application/vnd.uploadcare-v0.3+json
768
+ User-Agent:
769
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
770
+ Content-Type:
771
+ - application/x-www-form-urlencoded
772
+ Date:
773
+ - Sat, 02 Jun 2018 18:35:20 -0000
774
+ Authorization:
775
+ - Uploadcare demopublickey:5cfc0dd7956e95bf82983cf71dfeb3fe365cb83b
776
+ Accept-Encoding:
777
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
778
+ response:
779
+ status:
780
+ code: 200
781
+ message: OK
782
+ headers:
783
+ Date:
784
+ - Sat, 02 Jun 2018 18:35:23 GMT
785
+ Content-Type:
786
+ - application/vnd.uploadcare-v0.3+json
787
+ Content-Length:
788
+ - '1536'
789
+ Connection:
790
+ - keep-alive
791
+ Server:
792
+ - nginx
793
+ X-Xss-Protection:
794
+ - 1; mode=block
795
+ X-Content-Type-Options:
796
+ - nosniff
797
+ Vary:
798
+ - Accept
799
+ Warning:
800
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
801
+ version 0.5, not 0.3'
802
+ Allow:
803
+ - POST, PUT, PATCH, HEAD, OPTIONS
804
+ Access-Control-Allow-Origin:
805
+ - https://uploadcare.com
806
+ X-Frame-Options:
807
+ - SAMEORIGIN
808
+ body:
809
+ encoding: UTF-8
810
+ string: '{"id":"04058c13-549a-495a-bab8-83a5deaae0a0~2","datetime_created":"2018-06-02T18:34:54.305546Z","datetime_stored":"2018-06-02T18:35:23.343294Z","files_count":2,"cdn_url":"https://ucarecdn.com/04058c13-549a-495a-bab8-83a5deaae0a0~2/","url":"https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:35:21.726449Z","datetime_uploaded":"2018-06-02T18:34:52.263294Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/36e223f9-9fc6-4283-9245-34a4a690379a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/36e223f9-9fc6-4283-9245-34a4a690379a/","uuid":"36e223f9-9fc6-4283-9245-34a4a690379a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:35:22.596718Z","datetime_uploaded":"2018-06-02T18:34:52.306599Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/1dacbb47-491d-42e2-83a7-38534f4da7a6/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1dacbb47-491d-42e2-83a7-38534f4da7a6/","uuid":"1dacbb47-491d-42e2-83a7-38534f4da7a6","source":null,"default_effects":""}]}'
811
+ http_version:
812
+ recorded_at: Sat, 02 Jun 2018 18:35:23 GMT
813
+ - request:
814
+ method: put
815
+ uri: https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/storage/
816
+ body:
817
+ encoding: UTF-8
818
+ string: ''
819
+ headers:
820
+ Accept:
821
+ - application/vnd.uploadcare-v0.3+json
822
+ User-Agent:
823
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
824
+ Content-Type:
825
+ - application/x-www-form-urlencoded
826
+ Date:
827
+ - Sat, 02 Jun 2018 18:39:34 -0000
828
+ Authorization:
829
+ - Uploadcare demopublickey:3e9724c17a83c947591baff8d7f7c0f8e41d9619
830
+ Accept-Encoding:
831
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
832
+ response:
833
+ status:
834
+ code: 200
835
+ message: OK
836
+ headers:
837
+ Date:
838
+ - Sat, 02 Jun 2018 18:39:36 GMT
839
+ Content-Type:
840
+ - application/vnd.uploadcare-v0.3+json
841
+ Content-Length:
842
+ - '1536'
843
+ Connection:
844
+ - keep-alive
845
+ Server:
846
+ - nginx
847
+ X-Xss-Protection:
848
+ - 1; mode=block
849
+ X-Content-Type-Options:
850
+ - nosniff
851
+ Vary:
852
+ - Accept
853
+ Warning:
854
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
855
+ version 0.5, not 0.3'
856
+ Allow:
857
+ - POST, PUT, PATCH, HEAD, OPTIONS
858
+ Access-Control-Allow-Origin:
859
+ - https://uploadcare.com
860
+ X-Frame-Options:
861
+ - SAMEORIGIN
862
+ body:
863
+ encoding: UTF-8
864
+ string: '{"id":"2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2","datetime_created":"2018-06-02T18:39:14.607820Z","datetime_stored":"2018-06-02T18:39:36.027204Z","files_count":2,"cdn_url":"https://ucarecdn.com/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","url":"https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:39:35.312330Z","datetime_uploaded":"2018-06-02T18:39:13.011872Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/","uuid":"2ce44dbc-e38f-4601-afb1-c6b4b36bc57b","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:39:35.998539Z","datetime_uploaded":"2018-06-02T18:39:13.032614Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/61ab6222-418f-4239-b8ae-7ce94a6170fa/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/61ab6222-418f-4239-b8ae-7ce94a6170fa/","uuid":"61ab6222-418f-4239-b8ae-7ce94a6170fa","source":null,"default_effects":""}]}'
865
+ http_version:
866
+ recorded_at: Sat, 02 Jun 2018 18:39:36 GMT
705
867
  recorded_with: VCR 4.0.0