dropio 1.7.2 → 1.7.3

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.
data/dropio.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dropio}
5
- s.version = "1.7.2"
5
+ s.version = "1.7.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jake Good"]
data/lib/dropio/api.rb CHANGED
@@ -12,6 +12,7 @@ class Dropio::Api
12
12
  self.class.debug_output $stderr if Dropio::Config.debug
13
13
  self.class.default_params :api_key => Dropio::Config.api_key, :version => Dropio::Config.version, :format => "json"
14
14
  self.class.base_uri Dropio::Config.api_url
15
+ self.class.default_options[:timeout] = Dropio::Config.timeout
15
16
  end
16
17
 
17
18
  def drop(drop_name, token = nil)
data/lib/dropio.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dropio
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
 
4
4
  class MissingResourceError < Exception; end
5
5
  class AuthorizationError < Exception; end
@@ -8,7 +8,7 @@ module Dropio
8
8
 
9
9
  class Config
10
10
  class << self
11
- attr_accessor :api_key, :base_url, :api_url, :upload_url, :version, :debug
11
+ attr_accessor :api_key, :base_url, :api_url, :upload_url, :version, :debug, :timeout
12
12
  end
13
13
  end
14
14
 
@@ -25,6 +25,7 @@ Dropio::Config.api_url = "http://api.drop.io"
25
25
  Dropio::Config.upload_url = "http://assets.drop.io/upload"
26
26
  Dropio::Config.version = "2.0"
27
27
  Dropio::Config.debug = false
28
+ Dropio::Config.timeout = 60 # Default in Ruby
28
29
 
29
30
  require 'dropio/api'
30
31
  require 'dropio/client'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 2
9
- version: 1.7.2
8
+ - 3
9
+ version: 1.7.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jake Good