pageflow-oembed 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3ab4e28e97a30dcb8bb9a5e62ff19140d17c125
4
- data.tar.gz: 9f75f2259db7007baf98103977bd5fd80601e6ca
3
+ metadata.gz: df20bdf9cb6436b3923f6f49929d80db90da2a1d
4
+ data.tar.gz: 71b6e3bbc4340f258acc5afd0ddc8b53bb5ba742
5
5
  SHA512:
6
- metadata.gz: 304639e97cd7959dc15b706540ce94e41e3da4ab8b6687a3e381efadcbfa0828844140c60480987b1482f0f890e2b5e87d25f36f022ab8dddd677278968fa36c
7
- data.tar.gz: e5326f68776ea1b68277a7ec7eb1d631b534da1499e98e4ac93ae4b6fe53564997ef89ad8baa32592500bfcfdc00361bfd163bc3f6ad0d5f778633ea46ca85ab
6
+ metadata.gz: 6bb34329b1ac035837811729d593093e8e89a461d0606f9b1c88b87cecc65ec3313553584bfe0bfd220e1b3c0cd894d9a89c70b0e1adb6ac4421687811cba00b
7
+ data.tar.gz: 665daf414db08b8f5e9806730dbacf06d88df911e2495ca1db4edc1d7a4fee76020f9d7b35c2827783a9299686e10a6a5a7636e398bb5407d6e161a206911780
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Version 1.1.1—25 July 2017
2
+
3
+ Bugfix: make the URL test more strict. Otherwise non-embeddable links were found.
4
+
1
5
  Version 1.1.0—16 July 2017
2
6
 
3
7
  Bugfix: NodeList to Array now considers empty Nodelist. Also, speed.
@@ -8,9 +8,11 @@ pageflow.widgetTypes.register('pageflow_oembed', {
8
8
 
9
9
  for (var i = 0, len = embedLinks.length; i < len; i++) {
10
10
  var url = embedLinks[i].getAttribute('href');
11
- if( /twitter/i.test(url) )
11
+ if( /twitter\.com\/\w*\/status\/\d*/i.test(url) )
12
12
  this.embedTwitter(embedLinks[i], url);
13
- else if( /spotify/i.test(url) )
13
+ else if( /open\.spotify\.com\/artist\/\w*/i.test(url) )
14
+ this.embedSpotify(embedLinks[i], url);
15
+ else if( /open\.spotify\.com\/track\/\w*/i.test(url) )
14
16
  this.embedSpotify(embedLinks[i], url);
15
17
  };
16
18
  },
@@ -4,6 +4,10 @@ require 'faraday_middleware'
4
4
  module Pageflow
5
5
  module Oembed
6
6
  module Providers
7
+ # Supported URLs:
8
+ #
9
+ # open.spotify.com/track/298gs9ATwr2rD9tGYJKlQR
10
+ # open.spotify.com/artist/0IIPgITtEO4JJfipw57KGv
7
11
  class Spotify
8
12
  def initialize(url, params)
9
13
  @url = url
@@ -4,6 +4,9 @@ require 'faraday_middleware'
4
4
  module Pageflow
5
5
  module Oembed
6
6
  module Providers
7
+ # Supported URLs:
8
+ #
9
+ # twitter.com/scrollytelling/status/886503890287546368
7
10
  class Twitter
8
11
  def initialize(url, params)
9
12
  @url = url
@@ -0,0 +1,4 @@
1
+ nl:
2
+ pageflow:
3
+ pageflow_oembed:
4
+ widget_type_name: Replace links with embeds, when available
@@ -1,4 +1,4 @@
1
1
  nl:
2
2
  pageflow:
3
3
  pageflow_oembed:
4
- widget_type_name: "When available, replace plain links with embedded content."
4
+ widget_type_name: Vervang links door embeds, indien beschikbaar
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module Oembed
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_runtime_dependency "pageflow", "< 12.0.0"
33
+ spec.add_runtime_dependency "pageflow", ">= 0.10.0", "< 12.0.0"
34
34
  spec.add_runtime_dependency 'rails', '>= 3.0'
35
35
  spec.add_runtime_dependency "faraday"
36
36
  spec.add_runtime_dependency "faraday_middleware"
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-oembed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joost Baaij
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.0
17
20
  - - "<"
18
21
  - !ruby/object:Gem::Version
19
22
  version: 12.0.0
@@ -21,6 +24,9 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.10.0
24
30
  - - "<"
25
31
  - !ruby/object:Gem::Version
26
32
  version: 12.0.0
@@ -140,6 +146,7 @@ files:
140
146
  - app/views/pageflow/oembed/_widget.html.erb
141
147
  - bin/console
142
148
  - bin/setup
149
+ - config/locales/en.yml
143
150
  - config/locales/nl.yml
144
151
  - config/routes.rb
145
152
  - db/migrate/20170715161924_create_pageflow_oembeds.rb
@@ -170,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
177
  version: '0'
171
178
  requirements: []
172
179
  rubyforge_project:
173
- rubygems_version: 2.5.1
180
+ rubygems_version: 2.6.11
174
181
  signing_key:
175
182
  specification_version: 4
176
183
  summary: Turn links to embeddable content into the actual embedded content itself.