ruby-oembed 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/CHANGELOG.rdoc +7 -4
  4. data/README.md +3 -5
  5. data/lib/oembed/providers/aggregators/embedly_urls.yml +6 -167
  6. data/lib/oembed/providers/builtin_providers.rb +6 -1
  7. data/lib/oembed/providers/tiktok.rb +13 -0
  8. data/lib/oembed/version.rb +1 -1
  9. data/ruby-oembed.gemspec +1 -2
  10. metadata +8 -76
  11. data/integration_test/test.rb +0 -31
  12. data/integration_test/test_urls.csv +0 -502
  13. data/lib/oembed/providers/tik_tok.rb +0 -11
  14. data/spec/cassettes/OEmbed_Provider.yml +0 -1088
  15. data/spec/cassettes/OEmbed_ProviderDiscovery.yml +0 -27184
  16. data/spec/cassettes/OEmbed_Providers_CodePen.yml +0 -177
  17. data/spec/cassettes/OEmbed_Providers_FacebookPost.yml +0 -539
  18. data/spec/cassettes/OEmbed_Providers_FacebookVideo.yml +0 -267
  19. data/spec/cassettes/OEmbed_Providers_Instagram.yml +0 -1473
  20. data/spec/cassettes/OEmbed_Providers_Slideshare.yml +0 -1019
  21. data/spec/cassettes/OEmbed_Providers_TikTok.yml +0 -293
  22. data/spec/cassettes/OEmbed_Providers_Twitter.yml +0 -339
  23. data/spec/cassettes/OEmbed_Providers_Youtube.yml +0 -373
  24. data/spec/formatter/ducktype_backend_spec.rb +0 -94
  25. data/spec/formatter/json/.DS_Store +0 -0
  26. data/spec/formatter/json/jsongem_backend_spec.rb +0 -71
  27. data/spec/formatter/json/yaml_backend_spec.rb +0 -55
  28. data/spec/formatter/xml/nokogiri_backend_spec.rb +0 -59
  29. data/spec/formatter/xml/rexml_backend_spec.rb +0 -55
  30. data/spec/formatter/xml/xmlsimple_backend_spec.rb +0 -59
  31. data/spec/formatter_spec.rb +0 -37
  32. data/spec/provider_discovery_spec.rb +0 -141
  33. data/spec/provider_spec.rb +0 -543
  34. data/spec/providers/code_pen_spec.rb +0 -21
  35. data/spec/providers/facebook_post_spec.rb +0 -54
  36. data/spec/providers/facebook_video_spec.rb +0 -48
  37. data/spec/providers/instagram_spec.rb +0 -48
  38. data/spec/providers/slideshare_spec.rb +0 -35
  39. data/spec/providers/tik_tok_spec.rb +0 -26
  40. data/spec/providers/twitter_spec.rb +0 -37
  41. data/spec/providers/youtube_spec.rb +0 -36
  42. data/spec/providers_spec.rb +0 -441
  43. data/spec/response_spec.rb +0 -230
  44. data/spec/spec_helper.rb +0 -129
  45. data/spec/spec_helper_examples.yml +0 -27
  46. data/spec/support/shared_examples_for_providers.rb +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3021fa6c864c1372498ae5f2467fc06fe430def7252f2301c7dbc955c8ec0a
4
- data.tar.gz: b84a4dcb5fdeb59e3cd0bd0f1ce04eb66e43cca450f07f2eb5bb2fa8eb473a65
3
+ metadata.gz: eeb96fbccad7fd520db58a1a89c977249ec15af8318b1a40800e2467a3c2e341
4
+ data.tar.gz: 80ac3291c0193e290ddae08a434bcefa40d94767a2f3db3986c83554f6ff05b7
5
5
  SHA512:
6
- metadata.gz: a5e74bb8e0487882d07cb70ec920a967cd7e28ea5b404fc16a771d28a755ace31243ec83549691116c41f1c8acc04b7440890cf7ba9d055fb3f9130ec3928020
7
- data.tar.gz: d48b92fb4a08e469dcfd74cd310a894dff0b54edd3c3496ca9ba6b1726e8a503cff98fb213d9258bae50ffd5dd332035322fe4c46428e04e1dd176dd50edccac
6
+ metadata.gz: 06bd338f7b9f3d33e0cb865e9c605cd38393d4324d5191d1654089862a0f5fc81c7cb54c14557fc5c1f842ffdd935b8e463368af40ce6532bddd4cc56dd6ecef
7
+ data.tar.gz: 529bc64612cb52c8950e0fa93d4ab3afc6a13b2c1ca2cf31b2b69d41a0ed7f7244695f1f2d2dc8577c8614d769893ce748dd504f260d6d081dabd5a1c8a3d639
data/.travis.yml CHANGED
@@ -5,8 +5,8 @@ before_install:
5
5
  bundler_args: --without guard
6
6
  cache: bundler
7
7
  rvm:
8
- - 2.4.1
9
- - 2.6.5
8
+ - 2.6.9
9
+ - 3.0.3
10
10
  env:
11
11
  global:
12
12
  - RUN_ALL_TESTS=true
data/CHANGELOG.rdoc CHANGED
@@ -1,16 +1,19 @@
1
1
  = CHANGELOG
2
2
 
3
- == Unreleased (0.15.1)
3
+ == Unreleased (0.16.1)
4
+
5
+ == 0.16.0 - 8 January 2022
6
+
7
+ * Add a built-in TikTok provider.
8
+ * Reduce gem size by excluding test files; Pull #81 (fauno)
4
9
 
5
10
  == 0.15.0 - 1 January 2021
6
11
 
7
12
  * *DEPRECATION* When creating an `OEmbed::Provider` instance, specifying the format via positional argument is now deprecated. Please use a named argument instead: `OEmbed::Provider.new(@endpoint_url, format: :json)`
8
13
  * *DEPRECATION* Do not use the `new` method for `Instagram`, `FacebookPost`, or `FacebookVideo` providers to set your access token. Instead either use the `OEMBED_FACEBOOK_TOKEN` environment variable or call `Instagram.access_token = @your_token`.
9
- * Add built-in TikTok provider (Happy 2021)!
10
- * Add support for Instgram Reels URLs to the built-in OEmbed::Providers::Instagram.
11
- * Updated the list of {Embedly}[https://embed.ly/] and {Noembed}[https://noembed.com/] URL schemes.
12
14
  * Fix Issue #77: Built-in Instagram & Facebook providers are now instances again.
13
15
  * Add support for `OEmbed::Provider` instances with `required_query_params` (like access tokens), where the provider will fail to answer until it is fully configured.
16
+ * Add support for Instgram Reels URLs to the built-in OEmbed::Providers::Instagram.
14
17
  * Support focused rspec tests for local development (e.g. "fcontext" or "fit")
15
18
  * Fix a few typos in documentation & tests; Pull #76 (Inge Jørgensen)
16
19
 
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # ruby-oembed
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/ruby-oembed.svg)](https://rubygems.org/gems/ruby-oembed)
4
- [![Travis branch](https://img.shields.io/travis/ruby-oembed/ruby-oembed/master.svg)](https://travis-ci.org/ruby-oembed/ruby-oembed/branches)
4
+ [![Travis CI](https://img.shields.io/travis/com/ruby-oembed/ruby-oembed.svg)](https://app.travis-ci.com/github/ruby-oembed/ruby-oembed)
5
5
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/ruby-oembed/ruby-oembed.svg)](https://codeclimate.com/github/ruby-oembed/ruby-oembed)
6
6
  [![Coveralls](https://coveralls.io/repos/github/ruby-oembed/ruby-oembed/badge.svg?branch=coveralls)](https://coveralls.io/github/ruby-oembed/ruby-oembed?branch=coveralls)
7
- ![Maintenance](https://img.shields.io/maintenance/yes/2020.svg)
7
+ ![Maintenance](https://img.shields.io/maintenance/yes/2022.svg)
8
8
 
9
9
 
10
10
  An oEmbed consumer library written in Ruby, letting you easily get embeddable HTML representations of supported web pages, based on their URLs. See [oembed.com](http://oembed.com) for more about the protocol.
@@ -106,8 +106,6 @@ The following, optional, backends are currently supported:
106
106
 
107
107
  # Lend a Hand
108
108
 
109
- **Note:** Work is under way on a v1.0 of ruby-oembed. If you'd like to contribute, take a look at [the rubocop branch!](https://github.com/ruby-oembed/ruby-oembed/tree/rubocop)
110
-
111
109
  Code for the ruby-oembed library is [hosted on GitHub](https://github.com/ruby-oembed/ruby-oembed).
112
110
 
113
111
  ```bash
@@ -127,7 +125,7 @@ If you encounter any bug, feel free to [create an Issue](https://github.com/ruby
127
125
 
128
126
  We gladly accept pull requests! Just [fork](http://help.github.com/forking/) the library and commit your changes along with relevant tests. Once you're happy with the changes, [send a pull request](http://help.github.com/pull-requests/).
129
127
 
130
- We do our best to [keep our tests green](http://travis-ci.org/ruby-oembed/ruby-oembed)
128
+ We do our best to [keep our tests green](https://app.travis-ci.com/github/ruby-oembed/ruby-oembed)
131
129
 
132
130
  # Contributors
133
131