embedly 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/Gemfile +1 -1
  2. data/VERSION +1 -1
  3. data/lib/embedly/command_line.rb +8 -2
  4. metadata +2 -2
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gem "querystring"
4
4
  gem "oauth"
5
5
  gem "json"
6
6
 
7
- platforms :ruby do
7
+ platforms :mri do
8
8
  gem "typhoeus"
9
9
  end
10
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.4
1
+ 1.5.5
@@ -1,6 +1,12 @@
1
1
  require "optparse"
2
2
 
3
- Embedly.configuration.typhoeus = true
3
+ begin
4
+ require "typhoeus"
5
+ Embedly.configuration.typhoeus = true
6
+ rescue LoadError
7
+ Embedly.configuration.typhoeus = false
8
+ end
9
+
4
10
  module Embedly
5
11
  class CommandLine
6
12
 
@@ -35,7 +41,7 @@ module Embedly
35
41
  :timeout => nil,
36
42
  :headers => {},
37
43
  :query => {},
38
- :typhoeus => true
44
+ :typhoeus => Embedly.configuration.typhoeus
39
45
  }
40
46
  end
41
47
 
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
4
+ version: 1.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  segments:
228
228
  - 0
229
- hash: -442286769
229
+ hash: 825670033
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  none: false
232
232
  requirements: