ruby-oembed 0.14.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.rdoc +13 -1
  4. data/lib/oembed.rb +1 -0
  5. data/lib/oembed/provider.rb +54 -5
  6. data/lib/oembed/providers.rb +39 -300
  7. data/lib/oembed/providers/aggregators/embedly_urls.yml +167 -6
  8. data/lib/oembed/providers/builtin_providers.rb +292 -0
  9. data/lib/oembed/providers/facebook_post.rb +27 -17
  10. data/lib/oembed/providers/facebook_video.rb +22 -10
  11. data/lib/oembed/providers/instagram.rb +37 -20
  12. data/lib/oembed/providers/tik_tok.rb +11 -0
  13. data/lib/oembed/version.rb +2 -2
  14. data/spec/cassettes/OEmbed_Provider.yml +117 -16
  15. data/spec/cassettes/OEmbed_Providers_CodePen.yml +177 -0
  16. data/spec/cassettes/OEmbed_Providers_FacebookPost.yml +539 -0
  17. data/spec/cassettes/OEmbed_Providers_FacebookVideo.yml +267 -0
  18. data/spec/cassettes/OEmbed_Providers_Instagram.yml +1473 -0
  19. data/spec/cassettes/OEmbed_Providers_Slideshare.yml +420 -834
  20. data/spec/cassettes/OEmbed_Providers_TikTok.yml +293 -0
  21. data/spec/cassettes/OEmbed_Providers_Twitter.yml +84 -357
  22. data/spec/cassettes/OEmbed_Providers_Youtube.yml +188 -26
  23. data/spec/provider_spec.rb +315 -138
  24. data/spec/providers/code_pen_spec.rb +21 -0
  25. data/spec/providers/facebook_post_spec.rb +54 -0
  26. data/spec/providers/facebook_video_spec.rb +48 -0
  27. data/spec/providers/instagram_spec.rb +48 -0
  28. data/spec/providers/slideshare_spec.rb +2 -9
  29. data/spec/providers/tik_tok_spec.rb +26 -0
  30. data/spec/providers/twitter_spec.rb +3 -10
  31. data/spec/providers/youtube_spec.rb +3 -9
  32. data/spec/providers_spec.rb +151 -16
  33. data/spec/response_spec.rb +2 -2
  34. data/spec/spec_helper.rb +19 -1
  35. data/spec/support/shared_examples_for_providers.rb +32 -20
  36. metadata +25 -5
  37. data/spec/providers/facebook_spec.rb +0 -50
@@ -0,0 +1,11 @@
1
+ module OEmbed
2
+ class Providers
3
+ # Provider for TikTok
4
+ # See https://developers.tiktok.com/doc/Embed
5
+ TikTok = OEmbed::Provider.new("https://www.tiktok.com/oembed")
6
+
7
+ TikTok << "https://www.tiktok.com/*/video/*"
8
+
9
+ add_official_provider(TikTok)
10
+ end
11
+ end
@@ -1,8 +1,8 @@
1
1
  module OEmbed
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 14
5
- PATCH = 1
4
+ MINOR = 15
5
+ PATCH = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
 
8
8
  class << self
@@ -41,7 +41,7 @@ http_interactions:
41
41
  string: '{"version":"1.0","type":"photo","author_url":"http:\/\/www.flickr.com\/photos\/bees\/","cache_age":3600,"provider_name":"Flickr","provider_url":"http:\/\/www.flickr.com\/","title":"Bacon
42
42
  Lollys","author_name":"\u202e\u202d\u202cbees\u202c","width":"500","height":"375","url":"http:\/\/farm4.staticflickr.com\/3040\/2362225867_4a87ab8baf.jpg"}
43
43
 
44
- '
44
+ '
45
45
  http_version: '1.1'
46
46
  recorded_at: Sat, 28 Mar 2020 02:32:33 GMT
47
47
  - request:
@@ -289,7 +289,6 @@ http_interactions:
289
289
  encoding: UTF-8
290
290
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
291
291
  bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>CloudFront</center>\r\n</body>\r\n</html>\r\n"
292
- http_version: null
293
292
  recorded_at: Sat, 28 Mar 2020 02:41:56 GMT
294
293
  - request:
295
294
  method: get
@@ -396,8 +395,7 @@ http_interactions:
396
395
  width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\"
397
396
  charset=\"utf-8\"><\/script>","version":"1.0","cache_age":3600,"provider_name":"Flickr","provider_url":"https:\/\/www.flickr.com\/"}
398
397
 
399
- '
400
- http_version: null
398
+ '
401
399
  recorded_at: Sat, 28 Mar 2020 02:41:57 GMT
402
400
  - request:
403
401
  method: get
@@ -482,7 +480,6 @@ http_interactions:
482
480
  phenomena.\n\nFacebook: Islands And Rivers\nFor licensing information contact
483
481
  Dale Dobson - dale@iconiclinx.com","thumbnail_url":"https:\/\/i.vimeocdn.com\/video\/448600816_295x166.jpg","thumbnail_width":295,"thumbnail_height":221,"thumbnail_url_with_play_button":"https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F448600816_295x166.jpg&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png","upload_date":"2011-10-26
484
482
  14:43:13","video_id":31158841,"uri":"\/videos\/31158841"}'
485
- http_version: null
486
483
  recorded_at: Sat, 28 Mar 2020 02:41:57 GMT
487
484
  - request:
488
485
  method: get
@@ -526,7 +523,6 @@ http_interactions:
526
523
  encoding: UTF-8
527
524
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
528
525
  bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>CloudFront</center>\r\n</body>\r\n</html>\r\n"
529
- http_version: null
530
526
  recorded_at: Sat, 28 Mar 2020 02:43:37 GMT
531
527
  - request:
532
528
  method: get
@@ -633,8 +629,7 @@ http_interactions:
633
629
  width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\"
634
630
  charset=\"utf-8\"><\/script>","version":"1.0","cache_age":3600,"provider_name":"Flickr","provider_url":"https:\/\/www.flickr.com\/"}
635
631
 
636
- '
637
- http_version: null
632
+ '
638
633
  recorded_at: Sat, 28 Mar 2020 02:43:37 GMT
639
634
  - request:
640
635
  method: get
@@ -678,7 +673,6 @@ http_interactions:
678
673
  encoding: UTF-8
679
674
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
680
675
  bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>CloudFront</center>\r\n</body>\r\n</html>\r\n"
681
- http_version: null
682
676
  recorded_at: Sat, 28 Mar 2020 02:43:37 GMT
683
677
  - request:
684
678
  method: get
@@ -785,8 +779,7 @@ http_interactions:
785
779
  width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\"
786
780
  charset=\"utf-8\"><\/script>","version":"1.0","cache_age":3600,"provider_name":"Flickr","provider_url":"https:\/\/www.flickr.com\/"}
787
781
 
788
- '
789
- http_version: null
782
+ '
790
783
  recorded_at: Sat, 28 Mar 2020 02:43:37 GMT
791
784
  - request:
792
785
  method: get
@@ -830,7 +823,6 @@ http_interactions:
830
823
  encoding: UTF-8
831
824
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
832
825
  bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>CloudFront</center>\r\n</body>\r\n</html>\r\n"
833
- http_version: null
834
826
  recorded_at: Sat, 28 Mar 2020 02:43:37 GMT
835
827
  - request:
836
828
  method: get
@@ -937,8 +929,7 @@ http_interactions:
937
929
  width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\"
938
930
  charset=\"utf-8\"><\/script>","version":"1.0","cache_age":3600,"provider_name":"Flickr","provider_url":"https:\/\/www.flickr.com\/"}
939
931
 
940
- '
941
- http_version: null
932
+ '
942
933
  recorded_at: Sat, 28 Mar 2020 02:43:38 GMT
943
934
  - request:
944
935
  method: get
@@ -982,6 +973,116 @@ http_interactions:
982
973
  encoding: UTF-8
983
974
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
984
975
  bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>CloudFront</center>\r\n</body>\r\n</html>\r\n"
985
- http_version: null
986
976
  recorded_at: Sat, 28 Mar 2020 02:57:10 GMT
987
- recorded_with: VCR 5.1.0
977
+ - request:
978
+ method: get
979
+ uri: https://www.flickr.com/services/oembed/?format=json&url=http://flickr.com/photos/bees/2362225867/
980
+ body:
981
+ encoding: US-ASCII
982
+ string: ''
983
+ headers:
984
+ Accept-Encoding:
985
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
986
+ Accept:
987
+ - "*/*"
988
+ User-Agent:
989
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
990
+ response:
991
+ status:
992
+ code: 200
993
+ message: OK
994
+ headers:
995
+ Content-Type:
996
+ - application/json
997
+ Transfer-Encoding:
998
+ - chunked
999
+ Connection:
1000
+ - keep-alive
1001
+ Vary:
1002
+ - Accept-Encoding
1003
+ Date:
1004
+ - Sun, 29 Nov 2020 17:06:22 GMT
1005
+ Server:
1006
+ - Apache/2.4.46 (Ubuntu)
1007
+ Set-Cookie:
1008
+ - flrb=28; expires=Sun, 29-Nov-2020 19:06:22 GMT; Max-Age=7200; path=/; domain=.flickr.com;
1009
+ HttpOnly
1010
+ - flrbgdrp=1606669582-23f5729ecb4b84a5c35b37f838608a94f6d2675e; expires=Fri,
1011
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1012
+ - flrbgmrp=1606669582-4e7e32b97697d8df5628cdc19b6debe732025dae; expires=Fri,
1013
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1014
+ - flrbgrp=1606669582-f29dbc48a5ccc72a2c8b63edc79f027be12fa534; expires=Fri,
1015
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1016
+ - flrbp=1606669582-ba365789131bc9799456f8393d568f2e431b6e65; expires=Fri, 28-May-2021
1017
+ 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1018
+ - flrbrgs=1606669582-11659fc35e81d354c1d67c8907ecc7f35e995c5d; expires=Fri,
1019
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1020
+ - flrbrp=1606669582-bda3f855d73087bc19adc836297ebc425af59d74; expires=Fri, 28-May-2021
1021
+ 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1022
+ - flrbrst=1606669582-c96cb45050d7bf9fc938b93cbdbb327d58dc1706; expires=Fri,
1023
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1024
+ - flrbs=1606669582-878e099eb89de0040a560d9a26cf63bd0cb144aa; expires=Fri, 28-May-2021
1025
+ 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1026
+ - flrtags=1606669582-25b5e7641a4e16f3f9ff4c6f68abedb4f81a3fe9; expires=Fri,
1027
+ 28-May-2021 17:06:22 GMT; Max-Age=15552000; path=/; domain=.flickr.com; HttpOnly
1028
+ - localization=en-us%3Bus%3Bus; expires=Sun, 27-Nov-2022 17:06:22 GMT; Max-Age=62899200;
1029
+ path=/; domain=.flickr.com
1030
+ - xb=308442; expires=Wed, 27-Nov-2030 17:06:22 GMT; Max-Age=315360000; path=/;
1031
+ domain=.flickr.com
1032
+ Content-Security-Policy:
1033
+ - 'default-src ''unsafe-inline'' https://*.flickr.com https://*.staticflickr.com
1034
+ https://*.flickr.net https://*.braintreegateway.com https://*.kaptcha.com
1035
+ https://*.paypal.com http://api.flickr.com https://*.pinterest.com https://connect.facebook.net
1036
+ https://*.facebook.com https://*.maps.api.here.com https://*.maps.cit.api.here.com
1037
+ https://cdn.siftscience.com https://tpc.googlesyndication.com https://securepubads.g.doubleclick.net
1038
+ https://adservice.google.com https://cdn.ampproject.org https://trustarc.mgr.consensu.org/
1039
+ https://consent.trustarc.com https://consent-pref.trustarc.com; img-src data:
1040
+ blob: https://*.flickr.com https://*.flickr.net http://*.flickr.net https://*.staticflickr.com
1041
+ http://*.staticflickr.com https://*.yimg.com https://*.yahoo.com https://image.maps.api.here.com
1042
+ https://*.paypal.com https://*.pinterest.com http://*.static-alpha.flickr.com
1043
+ https://connect.facebook.net https://*.facebook.com https://*.maps.api.here.com
1044
+ https://*.maps.cit.api.here.com https://creativecommons.org https://hexagon-analytics.com
1045
+ https://*.2o7.net https://tagmanager.google.com https://www.googletagmanager.com
1046
+ https://*.google.com https://*.google-analytics.com https://*.googleadservices.com
1047
+ https://*.googlesyndication.com https://*.doubleclick.com https://*.doubleclick.de
1048
+ https://*.doubleclick.net https://*.googletagservices.com https://*.googleadservices.com
1049
+ https://*.googlesyndication.com https://*.googleapis.com https://api.mapbox.com
1050
+ https://consent.trustarc.com https://consent-pref.trustarc.com/; script-src
1051
+ ''unsafe-eval'' ''unsafe-inline'' https://*.flickr.com http://*.flickr.net
1052
+ https://*.flickr.net https://*.staticflickr.com https://*.analytics.yahoo.com
1053
+ https://yep.video.yahoo.com https://video.media.yql.yahoo.com https://*.yahooapis.com
1054
+ https://*.braintreegateway.com https://*.paypalobjects.com https://connect.facebook.net
1055
+ https://*.facebook.com https://*.maps.api.here.com https://*.maps.cit.api.here.com
1056
+ https://cdn.siftscience.com https://assets.adobedtm.com https://securepubads.g.doubleclick.net
1057
+ https://adservice.google.com https://cdn.ampproject.org https://*.google.com
1058
+ https://*.google-analytics.com https://*.googleadservices.com https://*.googlesyndication.com
1059
+ https://*.doubleclick.com https://*.doubleclick.de https://*.doubleclick.net
1060
+ https://*.googletagservices.com https://*.googleadservices.com https://*.googlesyndication.com
1061
+ https://*.googleapis.com https://consent.trustarc.com https://trustarc.mgr.consensu.org;
1062
+ connect-src https://*.flickr.com https://*.flickr.net http://*.flickr.net
1063
+ https://*.staticflickr.com https://geo.query.yahoo.com https://*.yahooapis.com
1064
+ http://api.flickr.com https://*.pinterest.com http://*.yahoo.com https://*.maps.api.here.com
1065
+ https://*.maps.cit.api.here.com https://cdn.siftscience.com https://*.demdex.net
1066
+ https://securepubads.g.doubleclick.net https://consent.trustarc.com https://consent-pref.trustarc.com;
1067
+ report-uri https://csp.flickr.com/beacon/csp?src=adsecflickr;'
1068
+ X-Frame-Options:
1069
+ - SAMEORIGIN
1070
+ X-Cache:
1071
+ - Miss from cloudfront
1072
+ Via:
1073
+ - 1.1 32c16f33c8f5601364fa8229b0d74dc3.cloudfront.net (CloudFront)
1074
+ X-Amz-Cf-Pop:
1075
+ - SEA19-C2
1076
+ X-Amz-Cf-Id:
1077
+ - aSD9R0Gf6NuljmG08WpU6BlxZDcV1yNpsgwKcZYnKilcRB_wtp4jpA==
1078
+ body:
1079
+ encoding: ASCII-8BIT
1080
+ string: '{"type":"photo","flickr_type":"photo","title":"Bacon Lollys","author_name":"\u202e\u202d\u202cbees\u202c","author_url":"https:\/\/www.flickr.com\/photos\/bees\/","width":1024,"height":768,"url":"https:\/\/live.staticflickr.com\/3040\/2362225867_4a87ab8baf_b.jpg","web_page":"https:\/\/www.flickr.com\/photos\/bees\/2362225867\/","thumbnail_url":"https:\/\/live.staticflickr.com\/3040\/2362225867_4a87ab8baf_q.jpg","thumbnail_width":150,"thumbnail_height":150,"web_page_short_url":"https:\/\/flic.kr\/p\/4AK2sc","license":"All
1081
+ Rights Reserved","license_id":0,"html":"<a data-flickr-embed=\"true\" href=\"https:\/\/www.flickr.com\/photos\/bees\/2362225867\/\"
1082
+ title=\"Bacon Lollys by \u202e\u202d\u202cbees\u202c, on Flickr\"><img src=\"https:\/\/live.staticflickr.com\/3040\/2362225867_4a87ab8baf_b.jpg\"
1083
+ width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\"
1084
+ charset=\"utf-8\"><\/script>","version":"1.0","cache_age":3600,"provider_name":"Flickr","provider_url":"https:\/\/www.flickr.com\/"}
1085
+
1086
+ '
1087
+ recorded_at: Sun, 29 Nov 2020 17:06:22 GMT
1088
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,177 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://codepen.io/api/oembed?format=json&url=https://codepen.io/maximakymenko/pen/mdbpeXm
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Mozilla/5.0 (compatible; ruby-oembed/0.13.1)
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 16 Nov 2020 05:47:47 GMT
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d58b6838d8b02b3aee68a5267dca2a9531605505667; expires=Wed, 16-Dec-20
31
+ 05:47:47 GMT; path=/; domain=.codepen.io; HttpOnly; SameSite=Lax; Secure
32
+ - __cfruid=181713fe255d24b57c1f12fedcd894ebbbf72abf-1605505667; path=/; domain=.codepen.io;
33
+ HttpOnly; Secure; SameSite=None
34
+ Status:
35
+ - 200 OK
36
+ Cache-Control:
37
+ - max-age=0, private, must-revalidate
38
+ Referrer-Policy:
39
+ - strict-origin-when-cross-origin
40
+ X-Permitted-Cross-Domain-Policies:
41
+ - none
42
+ X-Xss-Protection:
43
+ - 1; mode=block
44
+ X-Request-Id:
45
+ - bdee9208-3c74-4234-82f2-77fa93acd4fc
46
+ X-Download-Options:
47
+ - noopen
48
+ X-Env:
49
+ - production
50
+ Etag:
51
+ - W/"964b76525e93bf121b7284a64730e6e3"
52
+ X-Frame-Options:
53
+ - ALLOWALL
54
+ X-Runtime:
55
+ - '0.028484'
56
+ X-Content-Type-Options:
57
+ - nosniff
58
+ X-Powered-By:
59
+ - Phusion Passenger Enterprise
60
+ Cf-Cache-Status:
61
+ - DYNAMIC
62
+ Cf-Request-Id:
63
+ - 06713167e10000093dae0e5000000001
64
+ Expect-Ct:
65
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
66
+ Server:
67
+ - cloudflare
68
+ Cf-Ray:
69
+ - 5f2eeb530872093d-SEA
70
+ body:
71
+ encoding: ASCII-8BIT
72
+ string: |
73
+ {
74
+ "success": true,
75
+ "type": "rich",
76
+ "version": "1.0",
77
+ "provider_name": "CodePen",
78
+ "provider_url": "https://codepen.io",
79
+ "title": "Day/night mode switch toggle with React and ThemeProvider",
80
+ "author_name": "Maks Akymenko",
81
+ "author_url": "https://codepen.io/maximakymenko/",
82
+ "height": "300",
83
+ "width": "800",
84
+ "thumbnail_width": "384",
85
+ "thumbnail_height": "225",
86
+ "thumbnail_url": "https://assets.codepen.io/2163704/internal/screenshots/pens/mdbpeXm.default.png?fit=cover&amp;format=auto&amp;ha=false&amp;height=360&amp;quality=75&amp;v=2&amp;version=1568797448&amp;width=640",
87
+ "html": "<iframe id=\"cp_embed_mdbpeXm\" src=\"https://codepen.io/maximakymenko/embed/preview/mdbpeXm?height=300&amp;slug-hash=mdbpeXm&amp;default-tabs=js,result&amp;host=https://codepen.io\" title=\"Day/night mode switch toggle with React and ThemeProvider\" scrolling=\"no\" frameborder=\"0\" height=\"300\" allowtransparency=\"true\" class=\"cp_embed_iframe\" style=\"width: 100%; overflow: hidden;\"></iframe>"
88
+ }
89
+ recorded_at: Mon, 16 Nov 2020 05:47:47 GMT
90
+ - request:
91
+ method: get
92
+ uri: https://codepen.io/api/oembed?format=json&url=https://codepen.io/maximakymenko/pen/mdbpeXm
93
+ body:
94
+ encoding: US-ASCII
95
+ string: ''
96
+ headers:
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ Accept:
100
+ - "*/*"
101
+ User-Agent:
102
+ - Mozilla/5.0 (compatible; ruby-oembed/0.13.1)
103
+ response:
104
+ status:
105
+ code: 200
106
+ message: OK
107
+ headers:
108
+ Date:
109
+ - Mon, 16 Nov 2020 05:47:47 GMT
110
+ Content-Type:
111
+ - application/json; charset=utf-8
112
+ Transfer-Encoding:
113
+ - chunked
114
+ Connection:
115
+ - keep-alive
116
+ Set-Cookie:
117
+ - __cfduid=d521f9b17190910e1d2851fcb0c3d87471605505667; expires=Wed, 16-Dec-20
118
+ 05:47:47 GMT; path=/; domain=.codepen.io; HttpOnly; SameSite=Lax; Secure
119
+ - __cfruid=181713fe255d24b57c1f12fedcd894ebbbf72abf-1605505667; path=/; domain=.codepen.io;
120
+ HttpOnly; Secure; SameSite=None
121
+ Status:
122
+ - 200 OK
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ Referrer-Policy:
126
+ - strict-origin-when-cross-origin
127
+ X-Permitted-Cross-Domain-Policies:
128
+ - none
129
+ X-Xss-Protection:
130
+ - 1; mode=block
131
+ X-Request-Id:
132
+ - '08ba5511-ff94-4c20-8b26-efd2876a5fc3'
133
+ X-Download-Options:
134
+ - noopen
135
+ X-Env:
136
+ - production
137
+ Etag:
138
+ - W/"964b76525e93bf121b7284a64730e6e3"
139
+ X-Frame-Options:
140
+ - ALLOWALL
141
+ X-Runtime:
142
+ - '0.049626'
143
+ X-Content-Type-Options:
144
+ - nosniff
145
+ X-Powered-By:
146
+ - Phusion Passenger Enterprise
147
+ Cf-Cache-Status:
148
+ - DYNAMIC
149
+ Cf-Request-Id:
150
+ - '06713168920000bcb4fdacd000000001'
151
+ Expect-Ct:
152
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
153
+ Server:
154
+ - cloudflare
155
+ Cf-Ray:
156
+ - 5f2eeb541d38bcb4-SEA
157
+ body:
158
+ encoding: ASCII-8BIT
159
+ string: |
160
+ {
161
+ "success": true,
162
+ "type": "rich",
163
+ "version": "1.0",
164
+ "provider_name": "CodePen",
165
+ "provider_url": "https://codepen.io",
166
+ "title": "Day/night mode switch toggle with React and ThemeProvider",
167
+ "author_name": "Maks Akymenko",
168
+ "author_url": "https://codepen.io/maximakymenko/",
169
+ "height": "300",
170
+ "width": "800",
171
+ "thumbnail_width": "384",
172
+ "thumbnail_height": "225",
173
+ "thumbnail_url": "https://assets.codepen.io/2163704/internal/screenshots/pens/mdbpeXm.default.png?fit=cover&amp;format=auto&amp;ha=false&amp;height=360&amp;quality=75&amp;v=2&amp;version=1568797448&amp;width=640",
174
+ "html": "<iframe id=\"cp_embed_mdbpeXm\" src=\"https://codepen.io/maximakymenko/embed/preview/mdbpeXm?height=300&amp;slug-hash=mdbpeXm&amp;default-tabs=js,result&amp;host=https://codepen.io\" title=\"Day/night mode switch toggle with React and ThemeProvider\" scrolling=\"no\" frameborder=\"0\" height=\"300\" allowtransparency=\"true\" class=\"cp_embed_iframe\" style=\"width: 100%; overflow: hidden;\"></iframe>"
175
+ }
176
+ recorded_at: Mon, 16 Nov 2020 05:47:47 GMT
177
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,539 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/rubyonrailstogo/posts/3610333842332884
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Etag:
22
+ - '"eb01eb59b509bdf14c26fd306c34d0bbf859211d"'
23
+ Expires:
24
+ - Sat, 01 Jan 2000 00:00:00 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Facebook-Api-Version:
28
+ - v9.0
29
+ X-Fb-Request-Id:
30
+ - AdKS1wszt3TwgqkvKrCDMDW
31
+ Strict-Transport-Security:
32
+ - max-age=15552000; preload
33
+ X-Fb-Trace-Id:
34
+ - GJsTqVvTC3f
35
+ X-App-Usage:
36
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
37
+ X-Fb-Rev:
38
+ - '1003094866'
39
+ Cache-Control:
40
+ - private, no-cache, no-store, must-revalidate
41
+ Vary:
42
+ - Accept-Encoding
43
+ Pragma:
44
+ - no-cache
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ X-Fb-Debug:
48
+ - qV3+xDvyuW5r5vudtOqgU7WPSATlO4OiDwQGw2e/dTSImhM5syn55sllGPmlfB8reJ+CFkSseguWvKfWQVAyuQ==
49
+ Date:
50
+ - Mon, 14 Dec 2020 14:50:47 GMT
51
+ Alt-Svc:
52
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
53
+ Connection:
54
+ - keep-alive
55
+ Content-Length:
56
+ - '479'
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: '{"author_name":"Ruby on Rails","author_url":"https:\/\/www.facebook.com\/1284562961576662","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
60
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
61
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
62
+ nonce=\"rm9rZdxr\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/rubyonrailstogo\/posts\/3610333842332884\"
63
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/graph.facebook.com\/1284562961576662\/posts\/3610333842332884\/\"
64
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Nice Article\u003C\/p>Posted by \u003Ca
65
+ href=\"https:\/\/www.facebook.com\/1284562961576662\">Ruby on Rails\u003C\/a>
66
+ on&nbsp;\u003Ca href=\"https:\/\/graph.facebook.com\/1284562961576662\/posts\/3610333842332884\/\">Wednesday,
67
+ August 5, 2020\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
68
+ recorded_at: Mon, 14 Dec 2020 14:50:47 GMT
69
+ - request:
70
+ method: get
71
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/notes/facebook-app/welcome-to-the-facebook-blog/2207517130/
72
+ body:
73
+ encoding: US-ASCII
74
+ string: ''
75
+ headers:
76
+ Accept-Encoding:
77
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
78
+ Accept:
79
+ - "*/*"
80
+ User-Agent:
81
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Etag:
88
+ - '"ae6d8776377e8db5fa97a82479d1b2280c19a629"'
89
+ Expires:
90
+ - Sat, 01 Jan 2000 00:00:00 GMT
91
+ Content-Type:
92
+ - application/json; charset=UTF-8
93
+ Facebook-Api-Version:
94
+ - v9.0
95
+ X-Fb-Request-Id:
96
+ - AUKJ0CrM-7a-8mOxYkEJ5r3
97
+ Strict-Transport-Security:
98
+ - max-age=15552000; preload
99
+ X-Fb-Trace-Id:
100
+ - CYaAQJtJ2Sf
101
+ X-App-Usage:
102
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
103
+ X-Fb-Rev:
104
+ - '1003094866'
105
+ Cache-Control:
106
+ - private, no-cache, no-store, must-revalidate
107
+ Vary:
108
+ - Accept-Encoding
109
+ Pragma:
110
+ - no-cache
111
+ Access-Control-Allow-Origin:
112
+ - "*"
113
+ X-Fb-Debug:
114
+ - UowoKZRRbpsSr1joleqHcdAf8dYgKONagbyEIsT5ai+FiYzZXvcQ7EoandzHzn0T8tFkcmkEpy+fT5xZJjVBeg==
115
+ Date:
116
+ - Mon, 14 Dec 2020 14:50:47 GMT
117
+ Alt-Svc:
118
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
119
+ Connection:
120
+ - keep-alive
121
+ Content-Length:
122
+ - '461'
123
+ body:
124
+ encoding: ASCII-8BIT
125
+ string: '{"author_name":"Facebook App","author_url":"https:\/\/www.facebook.com\/20531316728","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
126
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
127
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
128
+ nonce=\"Is1XBJi7\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\"
129
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/graph.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\"
130
+ class=\"fb-xfbml-parse-ignore\">Posted by \u003Ca href=\"https:\/\/www.facebook.com\/20531316728\">Facebook
131
+ App\u003C\/a> on&nbsp;\u003Ca href=\"https:\/\/graph.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\">Tuesday,
132
+ August 22, 2006\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
133
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
134
+ - request:
135
+ method: get
136
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/tumocenter/photos/bc.AbpR7-R7Lu6GodUph_UNg1Ttn-k7Ni-M8X89Io4cWsYkK0OPde6MTVKHSiTNDEanWYkwQGyu-YwpNnS4MXUqeYen_ovuiBPQixaA-tjNBcVUFAMWPaxX-NU1mm2ovExEORQOdohcH339Xmxch3kbSPcJ/1084373708267461/
137
+ body:
138
+ encoding: US-ASCII
139
+ string: ''
140
+ headers:
141
+ Accept-Encoding:
142
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
143
+ Accept:
144
+ - "*/*"
145
+ User-Agent:
146
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
147
+ response:
148
+ status:
149
+ code: 200
150
+ message: OK
151
+ headers:
152
+ Etag:
153
+ - '"87d7cd634363d6de81f5f8e531774d27b51a2f35"'
154
+ Expires:
155
+ - Sat, 01 Jan 2000 00:00:00 GMT
156
+ Content-Type:
157
+ - application/json; charset=UTF-8
158
+ Facebook-Api-Version:
159
+ - v9.0
160
+ X-Fb-Request-Id:
161
+ - Ayno64g3gSbFaLe83gltCos
162
+ Strict-Transport-Security:
163
+ - max-age=15552000; preload
164
+ X-Fb-Trace-Id:
165
+ - DrrNXzxPe3x
166
+ X-App-Usage:
167
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
168
+ X-Fb-Rev:
169
+ - '1003094866'
170
+ Cache-Control:
171
+ - private, no-cache, no-store, must-revalidate
172
+ Vary:
173
+ - Accept-Encoding
174
+ Pragma:
175
+ - no-cache
176
+ Access-Control-Allow-Origin:
177
+ - "*"
178
+ X-Fb-Debug:
179
+ - GFw2+vTyFqyciZOjSQoK1XpSp3j/0smcloILB6zi1DUQD69s7D4SxALdb2Dy/JCNj8rxJymIuM0C9ch0PDLj3g==
180
+ Date:
181
+ - Mon, 14 Dec 2020 14:50:48 GMT
182
+ Alt-Svc:
183
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
184
+ Connection:
185
+ - keep-alive
186
+ Content-Length:
187
+ - '801'
188
+ body:
189
+ encoding: ASCII-8BIT
190
+ string: '{"author_name":"Tumo Center for Creative Technologies","author_url":"https:\/\/www.facebook.com\/193484930689681","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
191
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
192
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
193
+ nonce=\"ohoeVSCy\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/tumocenter\/photos\/bc.AbpR7-R7Lu6GodUph_UNg1Ttn-k7Ni-M8X89Io4cWsYkK0OPde6MTVKHSiTNDEanWYkwQGyu-YwpNnS4MXUqeYen_ovuiBPQixaA-tjNBcVUFAMWPaxX-NU1mm2ovExEORQOdohcH339Xmxch3kbSPcJ\/1084373708267461\/\"
194
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/www.facebook.com\/tumocenter\/photos\/a.215522485152592\/1084373708267461\/?type=3\"
195
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Ruby on Rails-\u0568 \u0563\u0561\u056c\u056b\u057d
196
+ \u0567 \u0539\u0578\u0582\u0574\u0578: \u0532\u0578\u056c\u0578\u0580 \u0576\u0580\u0561\u0576\u0581
197
+ \u0570\u0561\u0574\u0561\u0580, \u0578\u057e\u0584\u0565\u0580 \u057f\u0565\u0572\u0575\u0561\u056f
198
+ \u0579\u0565\u0576 \u057f\u0565\u056d\u0576\u0578\u056c\u0578\u0563\u056b\u0561\u0576\u0565\u0580\u056b
199
+ \u057e\u0565\u0580\u057b\u056b\u0576 \u0576\u0578\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0576\u0565\u0580\u056b\u0581\u055d
200
+ Ruby on...\u003C\/p>Posted by \u003Ca href=\"https:\/\/www.facebook.com\/193484930689681\">Tumo
201
+ Center for Creative Technologies\u003C\/a> on&nbsp;\u003Ca href=\"https:\/\/www.facebook.com\/tumocenter\/photos\/a.215522485152592\/1084373708267461\/?type=3\">Tuesday,
202
+ May 17, 2016\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
203
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
204
+ - request:
205
+ method: get
206
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/photo/?fbid=3348617585198325%26set=gm.1675022489341591
207
+ body:
208
+ encoding: US-ASCII
209
+ string: ''
210
+ headers:
211
+ Accept-Encoding:
212
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
213
+ Accept:
214
+ - "*/*"
215
+ User-Agent:
216
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
217
+ response:
218
+ status:
219
+ code: 200
220
+ message: OK
221
+ headers:
222
+ Etag:
223
+ - '"d40a58ebd369fd17813e41d03ded99c17014d169"'
224
+ Expires:
225
+ - Sat, 01 Jan 2000 00:00:00 GMT
226
+ Content-Type:
227
+ - application/json; charset=UTF-8
228
+ Facebook-Api-Version:
229
+ - v9.0
230
+ X-Fb-Request-Id:
231
+ - A1kIvCOU-KbYMzLbLxqMbzS
232
+ Strict-Transport-Security:
233
+ - max-age=15552000; preload
234
+ X-Fb-Trace-Id:
235
+ - Eo10NuGOv/s
236
+ X-App-Usage:
237
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
238
+ X-Fb-Rev:
239
+ - '1003094866'
240
+ Cache-Control:
241
+ - private, no-cache, no-store, must-revalidate
242
+ Vary:
243
+ - Accept-Encoding
244
+ Pragma:
245
+ - no-cache
246
+ Access-Control-Allow-Origin:
247
+ - "*"
248
+ X-Fb-Debug:
249
+ - 1ZP6Ic5m+YsVb4skcANjJb2jv8bamYCPJfXzUCV95FWaJeT7OMgl9poB57etedj4tTim5dCe/MBMbH8tDbdHXw==
250
+ Date:
251
+ - Mon, 14 Dec 2020 14:50:48 GMT
252
+ Alt-Svc:
253
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
254
+ Connection:
255
+ - keep-alive
256
+ Content-Length:
257
+ - '574'
258
+ body:
259
+ encoding: ASCII-8BIT
260
+ string: '{"author_name":"Ruby on Rails Developers","author_url":"\/groups\/rordevelopers\/","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
261
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
262
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
263
+ nonce=\"UszE52ML\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/photo\/?fbid=3348617585198325&amp;set=gm.1675022489341591\"
264
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/www.facebook.com\/photo.php?fbid=3348617585198325&amp;set=gm.1675022489341591&amp;type=3\"
265
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Why does the While stop at the gets.chomp
266
+ inside the While knowing that the prompt result is still an empty string?\u003C\/p>Posted
267
+ by \u003Ca href=\"https:\/\/www.facebook.com\/rickson.rick.9\">Rickson Turra\u003C\/a>
268
+ on&nbsp;\u003Ca href=\"https:\/\/www.facebook.com\/photo.php?fbid=3348617585198325&amp;set=gm.1675022489341591&amp;type=3\">Monday,
269
+ August 31, 2020\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
270
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
271
+ - request:
272
+ method: get
273
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/rubyonrailstogo/posts/3610333842332884
274
+ body:
275
+ encoding: US-ASCII
276
+ string: ''
277
+ headers:
278
+ Accept-Encoding:
279
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
280
+ Accept:
281
+ - "*/*"
282
+ User-Agent:
283
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
284
+ response:
285
+ status:
286
+ code: 200
287
+ message: OK
288
+ headers:
289
+ Etag:
290
+ - '"31314157b1f352820f8abaeb4bc29998667e044c"'
291
+ Expires:
292
+ - Sat, 01 Jan 2000 00:00:00 GMT
293
+ Content-Type:
294
+ - application/json; charset=UTF-8
295
+ Facebook-Api-Version:
296
+ - v9.0
297
+ X-Fb-Request-Id:
298
+ - AFrunLZ7ugV6DawKIWRHzT6
299
+ Strict-Transport-Security:
300
+ - max-age=15552000; preload
301
+ X-Fb-Trace-Id:
302
+ - CfVjvSXvNpa
303
+ X-App-Usage:
304
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
305
+ X-Fb-Rev:
306
+ - '1003094866'
307
+ Cache-Control:
308
+ - private, no-cache, no-store, must-revalidate
309
+ Vary:
310
+ - Accept-Encoding
311
+ Pragma:
312
+ - no-cache
313
+ Access-Control-Allow-Origin:
314
+ - "*"
315
+ X-Fb-Debug:
316
+ - kQzAjpJ6Gp05+m5He1OLkeYsTACU1/Gl2mmuRoM6US7GJhmArEWSiGL/MEsJ3kh9VGTNiInMtT0GkZ94u4yJvw==
317
+ Date:
318
+ - Mon, 14 Dec 2020 14:50:48 GMT
319
+ Alt-Svc:
320
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
321
+ Connection:
322
+ - keep-alive
323
+ Content-Length:
324
+ - '481'
325
+ body:
326
+ encoding: ASCII-8BIT
327
+ string: '{"author_name":"Ruby on Rails","author_url":"https:\/\/www.facebook.com\/1284562961576662","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
328
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
329
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
330
+ nonce=\"XjHB4r69\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/rubyonrailstogo\/posts\/3610333842332884\"
331
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/graph.facebook.com\/1284562961576662\/posts\/3610333842332884\/\"
332
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Nice Article\u003C\/p>Posted by \u003Ca
333
+ href=\"https:\/\/www.facebook.com\/1284562961576662\">Ruby on Rails\u003C\/a>
334
+ on&nbsp;\u003Ca href=\"https:\/\/graph.facebook.com\/1284562961576662\/posts\/3610333842332884\/\">Wednesday,
335
+ August 5, 2020\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
336
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
337
+ - request:
338
+ method: get
339
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/notes/facebook-app/welcome-to-the-facebook-blog/2207517130/
340
+ body:
341
+ encoding: US-ASCII
342
+ string: ''
343
+ headers:
344
+ Accept-Encoding:
345
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
346
+ Accept:
347
+ - "*/*"
348
+ User-Agent:
349
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
350
+ response:
351
+ status:
352
+ code: 200
353
+ message: OK
354
+ headers:
355
+ Etag:
356
+ - '"bc192fea44d349b7893d504d8078b4570ec3be05"'
357
+ Expires:
358
+ - Sat, 01 Jan 2000 00:00:00 GMT
359
+ Content-Type:
360
+ - application/json; charset=UTF-8
361
+ Facebook-Api-Version:
362
+ - v9.0
363
+ X-Fb-Request-Id:
364
+ - AAWs9LPy1C5vwjOK0hvPiMJ
365
+ Strict-Transport-Security:
366
+ - max-age=15552000; preload
367
+ X-Fb-Trace-Id:
368
+ - EsNjqM6BXHY
369
+ X-App-Usage:
370
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
371
+ X-Fb-Rev:
372
+ - '1003094866'
373
+ Cache-Control:
374
+ - private, no-cache, no-store, must-revalidate
375
+ Vary:
376
+ - Accept-Encoding
377
+ Pragma:
378
+ - no-cache
379
+ Access-Control-Allow-Origin:
380
+ - "*"
381
+ X-Fb-Debug:
382
+ - lcJMoILabP7ehJu036kK7kcZpkGRCr6HaczqqsFz5GUMm6eozr3p64gtz67O9aNPaKuS7HlU2LOpY0IVFX0dmw==
383
+ Date:
384
+ - Mon, 14 Dec 2020 14:50:48 GMT
385
+ Alt-Svc:
386
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
387
+ Connection:
388
+ - keep-alive
389
+ Content-Length:
390
+ - '459'
391
+ body:
392
+ encoding: ASCII-8BIT
393
+ string: '{"author_name":"Facebook App","author_url":"https:\/\/www.facebook.com\/20531316728","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
394
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
395
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
396
+ nonce=\"DfWuBWwn\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\"
397
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/graph.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\"
398
+ class=\"fb-xfbml-parse-ignore\">Posted by \u003Ca href=\"https:\/\/www.facebook.com\/20531316728\">Facebook
399
+ App\u003C\/a> on&nbsp;\u003Ca href=\"https:\/\/graph.facebook.com\/notes\/facebook-app\/welcome-to-the-facebook-blog\/2207517130\/\">Tuesday,
400
+ August 22, 2006\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
401
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
402
+ - request:
403
+ method: get
404
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/tumocenter/photos/bc.AbpR7-R7Lu6GodUph_UNg1Ttn-k7Ni-M8X89Io4cWsYkK0OPde6MTVKHSiTNDEanWYkwQGyu-YwpNnS4MXUqeYen_ovuiBPQixaA-tjNBcVUFAMWPaxX-NU1mm2ovExEORQOdohcH339Xmxch3kbSPcJ/1084373708267461/
405
+ body:
406
+ encoding: US-ASCII
407
+ string: ''
408
+ headers:
409
+ Accept-Encoding:
410
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
411
+ Accept:
412
+ - "*/*"
413
+ User-Agent:
414
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
415
+ response:
416
+ status:
417
+ code: 200
418
+ message: OK
419
+ headers:
420
+ Etag:
421
+ - '"f8aa8ead164d8b30cc3d46001179d3c237b36525"'
422
+ Expires:
423
+ - Sat, 01 Jan 2000 00:00:00 GMT
424
+ Content-Type:
425
+ - application/json; charset=UTF-8
426
+ Facebook-Api-Version:
427
+ - v9.0
428
+ X-Fb-Request-Id:
429
+ - AHWQjCqwStLeSDpc9iCtCCS
430
+ Strict-Transport-Security:
431
+ - max-age=15552000; preload
432
+ X-Fb-Trace-Id:
433
+ - CrmVbrSiSG/
434
+ X-App-Usage:
435
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
436
+ X-Fb-Rev:
437
+ - '1003094866'
438
+ Cache-Control:
439
+ - private, no-cache, no-store, must-revalidate
440
+ Vary:
441
+ - Accept-Encoding
442
+ Pragma:
443
+ - no-cache
444
+ Access-Control-Allow-Origin:
445
+ - "*"
446
+ X-Fb-Debug:
447
+ - 1wllTS0vVpbEouDCyRgIxgFYSeDFVlx62pX5wng+CZKFxIXlfU/8pIUm6v+6pE4Yf3xvbL8D3p4DX2AQpw82Eg==
448
+ Date:
449
+ - Mon, 14 Dec 2020 14:50:48 GMT
450
+ Alt-Svc:
451
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
452
+ Connection:
453
+ - keep-alive
454
+ Content-Length:
455
+ - '804'
456
+ body:
457
+ encoding: ASCII-8BIT
458
+ string: '{"author_name":"Tumo Center for Creative Technologies","author_url":"https:\/\/www.facebook.com\/193484930689681","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
459
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
460
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
461
+ nonce=\"I25znXDL\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/tumocenter\/photos\/bc.AbpR7-R7Lu6GodUph_UNg1Ttn-k7Ni-M8X89Io4cWsYkK0OPde6MTVKHSiTNDEanWYkwQGyu-YwpNnS4MXUqeYen_ovuiBPQixaA-tjNBcVUFAMWPaxX-NU1mm2ovExEORQOdohcH339Xmxch3kbSPcJ\/1084373708267461\/\"
462
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/www.facebook.com\/tumocenter\/photos\/a.215522485152592\/1084373708267461\/?type=3\"
463
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Ruby on Rails-\u0568 \u0563\u0561\u056c\u056b\u057d
464
+ \u0567 \u0539\u0578\u0582\u0574\u0578: \u0532\u0578\u056c\u0578\u0580 \u0576\u0580\u0561\u0576\u0581
465
+ \u0570\u0561\u0574\u0561\u0580, \u0578\u057e\u0584\u0565\u0580 \u057f\u0565\u0572\u0575\u0561\u056f
466
+ \u0579\u0565\u0576 \u057f\u0565\u056d\u0576\u0578\u056c\u0578\u0563\u056b\u0561\u0576\u0565\u0580\u056b
467
+ \u057e\u0565\u0580\u057b\u056b\u0576 \u0576\u0578\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0576\u0565\u0580\u056b\u0581\u055d
468
+ Ruby on...\u003C\/p>Posted by \u003Ca href=\"https:\/\/www.facebook.com\/193484930689681\">Tumo
469
+ Center for Creative Technologies\u003C\/a> on&nbsp;\u003Ca href=\"https:\/\/www.facebook.com\/tumocenter\/photos\/a.215522485152592\/1084373708267461\/?type=3\">Tuesday,
470
+ May 17, 2016\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
471
+ recorded_at: Mon, 14 Dec 2020 14:50:48 GMT
472
+ - request:
473
+ method: get
474
+ uri: https://graph.facebook.com/v8.0/oembed_post?access_token=A_FAKE_TOKEN_FOR_TESTS&format=json&url=https://www.facebook.com/photo/?fbid=3348617585198325%26set=gm.1675022489341591
475
+ body:
476
+ encoding: US-ASCII
477
+ string: ''
478
+ headers:
479
+ Accept-Encoding:
480
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
481
+ Accept:
482
+ - "*/*"
483
+ User-Agent:
484
+ - Mozilla/5.0 (compatible; ruby-oembed/0.14.0)
485
+ response:
486
+ status:
487
+ code: 200
488
+ message: OK
489
+ headers:
490
+ Etag:
491
+ - '"746c14013d2831a130d947d749664d64728f26c4"'
492
+ Expires:
493
+ - Sat, 01 Jan 2000 00:00:00 GMT
494
+ Content-Type:
495
+ - application/json; charset=UTF-8
496
+ Facebook-Api-Version:
497
+ - v9.0
498
+ X-Fb-Request-Id:
499
+ - AqL_l4lq_solHHaeLLg5mEE
500
+ Strict-Transport-Security:
501
+ - max-age=15552000; preload
502
+ X-Fb-Trace-Id:
503
+ - C8G87Xr0hP3
504
+ X-App-Usage:
505
+ - '{"call_count":0,"total_cputime":0,"total_time":0}'
506
+ X-Fb-Rev:
507
+ - '1003094866'
508
+ Cache-Control:
509
+ - private, no-cache, no-store, must-revalidate
510
+ Vary:
511
+ - Accept-Encoding
512
+ Pragma:
513
+ - no-cache
514
+ Access-Control-Allow-Origin:
515
+ - "*"
516
+ X-Fb-Debug:
517
+ - RIJObBKb2E16+q3jHHVBtI4E5VjJSBiPht4FNnrwE8hf5fbXxzDlkKAH612ASQaCHKOxQh3qYw7yKv7lbj1XeQ==
518
+ Date:
519
+ - Mon, 14 Dec 2020 14:50:48 GMT
520
+ Alt-Svc:
521
+ - h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
522
+ Connection:
523
+ - keep-alive
524
+ Content-Length:
525
+ - '570'
526
+ body:
527
+ encoding: ASCII-8BIT
528
+ string: '{"author_name":"Ruby on Rails Developers","author_url":"\/groups\/rordevelopers\/","provider_url":"https:\/\/www.facebook.com","provider_name":"Facebook","html":"\u003Cdiv
529
+ id=\"fb-root\">\u003C\/div>\n\u003Cscript async=\"1\" defer=\"1\" crossorigin=\"anonymous\"
530
+ src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v9.0\"
531
+ nonce=\"ln3T8s9p\">\u003C\/script>\u003Cdiv class=\"fb-post\" data-href=\"https:\/\/www.facebook.com\/photo\/?fbid=3348617585198325&amp;set=gm.1675022489341591\"
532
+ data-width=\"552\">\u003Cblockquote cite=\"https:\/\/www.facebook.com\/photo.php?fbid=3348617585198325&amp;set=gm.1675022489341591&amp;type=3\"
533
+ class=\"fb-xfbml-parse-ignore\">\u003Cp>Why does the While stop at the gets.chomp
534
+ inside the While knowing that the prompt result is still an empty string?\u003C\/p>Posted
535
+ by \u003Ca href=\"https:\/\/www.facebook.com\/rickson.rick.9\">Rickson Turra\u003C\/a>
536
+ on&nbsp;\u003Ca href=\"https:\/\/www.facebook.com\/photo.php?fbid=3348617585198325&amp;set=gm.1675022489341591&amp;type=3\">Monday,
537
+ August 31, 2020\u003C\/a>\u003C\/blockquote>\u003C\/div>","type":"rich","version":"1.0","width":552}'
538
+ recorded_at: Mon, 14 Dec 2020 14:50:49 GMT
539
+ recorded_with: VCR 6.0.0