embedly 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.5.1
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  module Embedly
4
4
  describe API do
5
- let(:api) { API.new :key => ENV['EMBEDLY_KEY'] }
5
+ let(:api) { API.new :key => ENV['EMBEDLY_KEY'], :secret => ENV['EMBEDLY_SECRET'] }
6
6
 
7
7
  describe "logger" do
8
8
  let(:io) { StringIO.new }
@@ -16,7 +16,7 @@ module Embedly
16
16
 
17
17
  it "logs if debug is enabled" do
18
18
  api.oembed :url => 'http://blog.doki-pen.org/'
19
- io.string.should =~ %r{DEBUG -- : calling http://api.embed.ly/1/oembed?}
19
+ io.string.should =~ %r{.*DEBUG -- : .*}
20
20
  end
21
21
  end
22
22
  end
@@ -9,11 +9,11 @@ module Embedly
9
9
  end
10
10
 
11
11
  describe "::run!" do
12
- let(:arguments) { ['-k', 'MY_KEY', 'http://yfrog.com/h7qqespj', '-o', 'maxwidth=10'] }
12
+ let(:arguments) { ['-k', 'MY_KEY', '--no-secret', 'http://yfrog.com/h7qqespj', '-o', 'maxwidth=10'] }
13
13
  let(:api) { mock(API) }
14
14
 
15
15
  it "calls api with options" do
16
- API.should_receive(:new).with(:key => 'MY_KEY', :headers => {}) { api }
16
+ API.should_receive(:new).with(:key => 'MY_KEY', :headers => {}, :typhoeus => true) { api }
17
17
  api.should_receive(:oembed).with(:urls => ['http://yfrog.com/h7qqespj'], :maxwidth => '10')
18
18
  CommandLine.run!(:oembed, arguments)
19
19
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: embedly
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.5.0
5
+ version: 1.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bob Corsaro
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- hash: 2804359751864908164
168
+ hash: -2536752269930308098
169
169
  segments:
170
170
  - 0
171
171
  version: "0"