embedly 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -1
- data/VERSION +1 -1
- data/lib/embedly/model.rb +9 -5
- metadata +4 -4
data/ChangeLog
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
*embedly-1.5.
|
1
|
+
*embedly-1.5.6 (23 May 2012)
|
2
|
+
|
3
|
+
23 May 2012: Bob Corsaro <bob@embed.ly>
|
4
|
+
Fixes bug where EmbedlyObject fails with nil parameter
|
5
|
+
|
6
|
+
*embedly-1.5.5 (11 May 2012)
|
2
7
|
|
3
8
|
11 May 2012: Bob Corsaro <bob@embed.ly>
|
4
9
|
Remove Typhoeus as dependency for jruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.6
|
data/lib/embedly/model.rb
CHANGED
@@ -4,13 +4,17 @@ class Embedly::EmbedlyObject < OpenStruct
|
|
4
4
|
|
5
5
|
# Resursively make ostruct
|
6
6
|
def initialize obj
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
if obj
|
8
|
+
o = obj.clone
|
9
|
+
o.each do |k,v|
|
10
|
+
if v.is_a?Hash
|
11
|
+
o[k] = Embedly::EmbedlyObject.new v
|
12
|
+
end
|
11
13
|
end
|
14
|
+
super o
|
15
|
+
else
|
16
|
+
super
|
12
17
|
end
|
13
|
-
super o
|
14
18
|
end
|
15
19
|
|
16
20
|
# for ruby 1.8.x, type should return @table[:type], not the
|
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.5.
|
4
|
+
version: 1.5.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-05-
|
15
|
+
date: 2012-05-23 00:00:00.000000000Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: querystring
|
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
segments:
|
228
228
|
- 0
|
229
|
-
hash:
|
229
|
+
hash: 73647087576035366
|
230
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
231
|
none: false
|
232
232
|
requirements:
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
237
|
rubyforge_project:
|
238
|
-
rubygems_version: 1.8.
|
238
|
+
rubygems_version: 1.8.19
|
239
239
|
signing_key:
|
240
240
|
specification_version: 3
|
241
241
|
summary: Ruby Embedly client library
|