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 +4 -4
- data/CHANGELOG +4 -0
- data/app/assets/javascript/pageflow/oembed.js +4 -2
- data/app/models/pageflow/oembed/providers/spotify.rb +4 -0
- data/app/models/pageflow/oembed/providers/twitter.rb +3 -0
- data/config/locales/en.yml +4 -0
- data/config/locales/nl.yml +1 -1
- data/lib/pageflow/oembed/version.rb +1 -1
- data/pageflow-oembed.gemspec +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df20bdf9cb6436b3923f6f49929d80db90da2a1d
|
4
|
+
data.tar.gz: 71b6e3bbc4340f258acc5afd0ddc8b53bb5ba742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb34329b1ac035837811729d593093e8e89a461d0606f9b1c88b87cecc65ec3313553584bfe0bfd220e1b3c0cd894d9a89c70b0e1adb6ac4421687811cba00b
|
7
|
+
data.tar.gz: 665daf414db08b8f5e9806730dbacf06d88df911e2495ca1db4edc1d7a4fee76020f9d7b35c2827783a9299686e10a6a5a7636e398bb5407d6e161a206911780
|
data/CHANGELOG
CHANGED
@@ -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
|
11
|
+
if( /twitter\.com\/\w*\/status\/\d*/i.test(url) )
|
12
12
|
this.embedTwitter(embedLinks[i], url);
|
13
|
-
else if( /spotify
|
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
|
data/config/locales/nl.yml
CHANGED
data/pageflow-oembed.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|