embedly 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/VERSION +1 -1
- data/embedly.gemspec +3 -3
- data/lib/embedly/request/faraday.rb +17 -14
- metadata +4 -4
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.1
|
data/embedly.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "embedly"
|
8
|
-
s.version = "1.9.
|
8
|
+
s.version = "1.9.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bob Corsaro", "Felipe Elias Philipp", "Russ Bradberry", "Arun Thampi", "Anton Dieterle", "Nitesh", "Roman Shterenzon"]
|
12
|
-
s.date = "2014-01-
|
12
|
+
s.date = "2014-01-27"
|
13
13
|
s.description = "Ruby Embedly client library"
|
14
14
|
s.email = "bob@embed.ly"
|
15
15
|
s.executables = ["embedly_extract", "embedly_objectify", "embedly_oembed", "embedly_preview"]
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.homepage = "http://github.com/embedly/embedly-ruby"
|
55
55
|
s.licenses = ["MIT"]
|
56
56
|
s.require_paths = ["lib"]
|
57
|
-
s.rubygems_version = "1.8.
|
57
|
+
s.rubygems_version = "1.8.25"
|
58
58
|
s.summary = "Ruby Embedly client library"
|
59
59
|
|
60
60
|
if s.respond_to? :specification_version then
|
@@ -1,22 +1,25 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'faraday'
|
2
3
|
|
3
|
-
# Patch Faraday::Response to provide a status code
|
4
|
-
module Faraday
|
5
|
-
|
6
|
-
|
4
|
+
# Patch Faraday::Response to provide a status code
|
5
|
+
module Faraday
|
6
|
+
class Response
|
7
|
+
alias_method :code, :status unless method_defined?(:code)
|
8
|
+
end
|
7
9
|
end
|
8
|
-
end
|
9
10
|
|
10
|
-
module Embedly
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
module Embedly
|
12
|
+
module Request
|
13
|
+
class Faraday < Base
|
14
|
+
def get(uri, options = {})
|
15
|
+
::Faraday.get(uri.to_s, nil, options[:headers])
|
16
|
+
end
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
18
|
-
end
|
19
20
|
|
20
|
-
Embedly.configuration.add_requester :faraday do |api|
|
21
|
-
|
21
|
+
Embedly.configuration.add_requester :faraday do |api|
|
22
|
+
Embedly::Request::Faraday.new(api)
|
23
|
+
end
|
24
|
+
rescue LoadError
|
22
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embedly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2014-01-
|
18
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: querystring
|
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
segments:
|
254
254
|
- 0
|
255
|
-
hash:
|
255
|
+
hash: 1159190779838789309
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
none: false
|
258
258
|
requirements:
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
requirements: []
|
263
263
|
rubyforge_project:
|
264
|
-
rubygems_version: 1.8.
|
264
|
+
rubygems_version: 1.8.25
|
265
265
|
signing_key:
|
266
266
|
specification_version: 3
|
267
267
|
summary: Ruby Embedly client library
|