onebox 1.8.89 → 1.8.90
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +1 -1
- data/Guardfile +2 -0
- data/Rakefile +2 -0
- data/lib/onebox.rb +2 -0
- data/lib/onebox/engine.rb +2 -0
- data/lib/onebox/engine/amazon_onebox.rb +2 -0
- data/lib/onebox/engine/asciinema_onebox.rb +2 -0
- data/lib/onebox/engine/audio_onebox.rb +2 -0
- data/lib/onebox/engine/audioboom_onebox.rb +2 -0
- data/lib/onebox/engine/bandcamp_onebox.rb +2 -0
- data/lib/onebox/engine/cloudapp_onebox.rb +2 -0
- data/lib/onebox/engine/coub_onebox.rb +2 -0
- data/lib/onebox/engine/douban_onebox.rb +2 -0
- data/lib/onebox/engine/five_hundred_px_onebox.rb +2 -0
- data/lib/onebox/engine/flickr_onebox.rb +2 -0
- data/lib/onebox/engine/flickr_shortened_onebox.rb +2 -0
- data/lib/onebox/engine/gfycat_onebox.rb +2 -0
- data/lib/onebox/engine/giphy_onebox.rb +2 -0
- data/lib/onebox/engine/github_blob_onebox.rb +2 -0
- data/lib/onebox/engine/github_commit_onebox.rb +2 -0
- data/lib/onebox/engine/github_gist_onebox.rb +2 -0
- data/lib/onebox/engine/github_issue_onebox.rb +2 -0
- data/lib/onebox/engine/github_pullrequest_onebox.rb +2 -0
- data/lib/onebox/engine/gitlab_blob_onebox.rb +2 -0
- data/lib/onebox/engine/google_calendar_onebox.rb +2 -0
- data/lib/onebox/engine/google_docs_onebox.rb +2 -0
- data/lib/onebox/engine/google_drive_onebox.rb +2 -0
- data/lib/onebox/engine/google_maps_onebox.rb +2 -0
- data/lib/onebox/engine/google_photos_onebox.rb +2 -0
- data/lib/onebox/engine/google_play_app_onebox.rb +2 -0
- data/lib/onebox/engine/html.rb +2 -0
- data/lib/onebox/engine/image_onebox.rb +2 -0
- data/lib/onebox/engine/imgur_onebox.rb +2 -0
- data/lib/onebox/engine/instagram_onebox.rb +2 -0
- data/lib/onebox/engine/json.rb +2 -0
- data/lib/onebox/engine/kaltura_onebox.rb +2 -0
- data/lib/onebox/engine/mixcloud_onebox.rb +2 -0
- data/lib/onebox/engine/opengraph_image.rb +2 -0
- data/lib/onebox/engine/pastebin_onebox.rb +2 -0
- data/lib/onebox/engine/pdf_onebox.rb +2 -0
- data/lib/onebox/engine/pubmed_onebox.rb +2 -0
- data/lib/onebox/engine/reddit_image_onebox.rb +2 -0
- data/lib/onebox/engine/replit_onebox.rb +2 -0
- data/lib/onebox/engine/simplecast_onebox.rb +2 -0
- data/lib/onebox/engine/sketchfab_onebox.rb +2 -0
- data/lib/onebox/engine/slides_onebox.rb +2 -0
- data/lib/onebox/engine/soundcloud_onebox.rb +2 -0
- data/lib/onebox/engine/stack_exchange_onebox.rb +2 -0
- data/lib/onebox/engine/standard_embed.rb +2 -0
- data/lib/onebox/engine/steam_store_onebox.rb +2 -0
- data/lib/onebox/engine/trello_onebox.rb +2 -0
- data/lib/onebox/engine/twitch_clips_onebox.rb +2 -0
- data/lib/onebox/engine/twitch_stream_onebox.rb +2 -0
- data/lib/onebox/engine/twitch_video_onebox.rb +2 -0
- data/lib/onebox/engine/twitter_status_onebox.rb +2 -0
- data/lib/onebox/engine/typeform_onebox.rb +2 -0
- data/lib/onebox/engine/video_onebox.rb +2 -0
- data/lib/onebox/engine/vimeo_onebox.rb +2 -0
- data/lib/onebox/engine/wechat_mp_onebox.rb +2 -0
- data/lib/onebox/engine/whitelisted_generic_onebox.rb +5 -1
- data/lib/onebox/engine/wikimedia_onebox.rb +2 -0
- data/lib/onebox/engine/wikipedia_onebox.rb +3 -1
- data/lib/onebox/engine/wistia_onebox.rb +2 -0
- data/lib/onebox/engine/xkcd_onebox.rb +2 -0
- data/lib/onebox/engine/youku_onebox.rb +2 -0
- data/lib/onebox/engine/youtube_onebox.rb +2 -0
- data/lib/onebox/file_type_finder.rb +2 -0
- data/lib/onebox/helpers.rb +2 -0
- data/lib/onebox/layout.rb +2 -0
- data/lib/onebox/layout_support.rb +2 -0
- data/lib/onebox/matcher.rb +2 -0
- data/lib/onebox/mixins/git_blob_onebox.rb +2 -0
- data/lib/onebox/mixins/twitch_onebox.rb +2 -0
- data/lib/onebox/oembed.rb +2 -0
- data/lib/onebox/open_graph.rb +2 -0
- data/lib/onebox/preview.rb +2 -0
- data/lib/onebox/sanitize_config.rb +2 -0
- data/lib/onebox/status_check.rb +2 -0
- data/lib/onebox/template_support.rb +2 -0
- data/lib/onebox/version.rb +1 -1
- data/lib/onebox/view.rb +2 -0
- data/lib/onebox/web.rb +2 -0
- data/lib/onebox/web_helpers.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fda02fb71c3fae791aedb06022c4a45b7cf93ce962276d1f563a1c0e2281e67f
|
4
|
+
data.tar.gz: cbd6456edeef7864f8bb877f6212421ea89bf05beb3d917b133ae43cf1788941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c05faaf2186324176e37e0e4a7d06e0236735b077e3dde8fb2d7fb302987422434c1e2860ee424aca557da2fb7c9cbe8881b2df1a543341ceed0de7daa9385f
|
7
|
+
data.tar.gz: a7fd8aa589bcad1e73f3059b962fd5df58c56b3a428db411708d92fd536d3a768b1396ebe227edc8a597555b18d2d97c4ecb920b64a998eba0f9c08232b6dc0b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/Guardfile
CHANGED
data/Rakefile
CHANGED
data/lib/onebox.rb
CHANGED
data/lib/onebox/engine.rb
CHANGED
data/lib/onebox/engine/html.rb
CHANGED
data/lib/onebox/engine/json.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'htmlentities'
|
2
4
|
|
3
5
|
module Onebox
|
@@ -255,7 +257,9 @@ module Onebox
|
|
255
257
|
def rewrite_https(html)
|
256
258
|
return unless html
|
257
259
|
uri = URI(@url)
|
258
|
-
|
260
|
+
if WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.rewrites)
|
261
|
+
html = html.gsub("http://", "https://")
|
262
|
+
end
|
259
263
|
html
|
260
264
|
end
|
261
265
|
|
data/lib/onebox/helpers.rb
CHANGED
data/lib/onebox/layout.rb
CHANGED
data/lib/onebox/matcher.rb
CHANGED
data/lib/onebox/oembed.rb
CHANGED
data/lib/onebox/open_graph.rb
CHANGED
data/lib/onebox/preview.rb
CHANGED
data/lib/onebox/status_check.rb
CHANGED
data/lib/onebox/version.rb
CHANGED
data/lib/onebox/view.rb
CHANGED
data/lib/onebox/web.rb
CHANGED
data/lib/onebox/web_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.90
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-05-
|
13
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|