netshade-oembed_links 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,7 +101,7 @@ class OEmbed
101
101
  rendered_response = ERBTemplate.new(url, data, response).evaluate(contents)
102
102
  end
103
103
  end
104
- return rendered_response
104
+ return rendered_response.chomp
105
105
  end
106
106
 
107
107
  private
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.4"
3
+ s.version = "0.1.5"
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"]
@@ -197,7 +197,7 @@ describe OEmbed, "transforming functions" do
197
197
  OEmbed::TemplateResolver.template_root = @template_path
198
198
  OEmbed.transform("http://test1.net/foo") do |r, url|
199
199
  r.any?(:template => "test.html.erb")
200
- end.should == "template! erb\n"
200
+ end.should == "template! erb"
201
201
  end
202
202
 
203
203
  it "should allow for selection of different template renderers" do
@@ -210,12 +210,12 @@ describe OEmbed, "transforming functions" do
210
210
  OEmbed::TemplateResolver.template_processor = :erubis
211
211
  OEmbed.transform("http://test1.net/foo") do |r, url|
212
212
  r.any?(:template => "test.html.erb")
213
- end.should == "template! erb\n"
213
+ end.should == "template! erb"
214
214
  defined?(Erubis).should == "constant"
215
215
  OEmbed::TemplateResolver.template_processor = :haml
216
216
  OEmbed.transform("http://test1.net/foo") do |r, url|
217
217
  r.any?(:template => "test.haml")
218
- end.should == "template! haml\n"
218
+ end.should == "template! haml"
219
219
  defined?(Haml).should == "constant"
220
220
  end
221
221
 
@@ -263,7 +263,7 @@ describe OEmbed, "Rails template resolving functions" do
263
263
 
264
264
  OEmbed.transform("http://test1.net/foo") do |r, url|
265
265
  r.any?(:template => "templates/test")
266
- end.should == "rails erb\n"
266
+ end.should == "rails erb"
267
267
  end
268
268
 
269
269
  it "should support Rails-like template paths with extension specified" do
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indianapolis Star MD&D