bonjour_vimeo 0.0.2.4 → 0.0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bonjour_vimeo/oembed_api.rb +2 -2
- data/lib/bonjour_vimeo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a28a26db5cd5842ea07c3b1602fcca314bee529b
|
4
|
+
data.tar.gz: 1cb5ad87a9c6ed529c3a129bdee1c6c75fab473b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804924f932d3ce187c8f890759e2d54ba9343e0421701e5cb5edadc2e34b1a711e0320f44484cd9467fd3f17e7f26e2de838680799b045c1d351381788a4f340
|
7
|
+
data.tar.gz: 32cef92afaf7e5c56f58bb6ffd7f36c46104bef6d6bb091e8eb2c0972b93687a74ee4c6cb7b0fc6366b832d789cfddbaa44acfea69ab39e821578228042f0bcc
|
@@ -6,8 +6,8 @@ module BonjourVimeo
|
|
6
6
|
base_uri "vimeo.com/api/oembed.#{format}"
|
7
7
|
|
8
8
|
|
9
|
-
def self.embed(video_id,autoplay=false)
|
10
|
-
response = get ("http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/#{video_id}Video&width=640&autoplay=#{autoplay}&api=1")
|
9
|
+
def self.embed(video_id,autoplay=false,byline=false,title=false,color="#fa6132")
|
10
|
+
response = get ("http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/#{video_id}Video&width=640&autoplay=#{autoplay}&byline=#{byline}&title=#{title}&color=#{color}&api=1")
|
11
11
|
case response.code
|
12
12
|
when 200
|
13
13
|
response['status']=true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bonjour_vimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juleswelsch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|