netshade-oembed_links 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.1.2 / 2008-10-16
2
+
3
+ * 1 minor enhancement
4
+
5
+ * add saimonmoore's nil response addition
6
+
1
7
  === 0.1.1 / 2008-10-16
2
8
 
3
9
  * 1 minor fix
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'hoe'
3
3
 
4
- Hoe.new('oembed_links', "0.1.1") do |p|
4
+ Hoe.new('oembed_links', "0.1.2") do |p|
5
5
  p.summary = ""
6
6
  p.url = 'http://indystar.com/'
7
7
  p.description = "Easy OEmbed integration for Ruby (and Rails)."
data/lib/oembed_links.rb CHANGED
@@ -354,7 +354,13 @@ class OEmbed
354
354
  yield(response, u)
355
355
  txt.gsub!(u, response.rendered_content)
356
356
  end
357
- end
357
+ else
358
+ if block.nil?
359
+ txt
360
+ else
361
+ txt.gsub!(u, yield(nil, u))
362
+ end
363
+ end
358
364
  end
359
365
  end
360
366
 
data/oembed_links.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{oembed_links}
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Indianapolis Star MD&D"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netshade-oembed_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indianapolis Star MD&D