twofishes 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3c7334a84fc91c8aebed74fc084cf1576ae8e79
4
- data.tar.gz: f0fcfe385a2f01a375fd11cbd4fdbaf143ae5687
3
+ metadata.gz: 8b8c77625022ef059bb6f9472bdee77a0263fe9d
4
+ data.tar.gz: ba376cae29b53951ada0b7c4bfaa9054049e272d
5
5
  SHA512:
6
- metadata.gz: a864e65d4040eed5eb6fc3f5e4e3f9efd86650e79937bfce93c4dd86b8c68176836473c19bde2063de30f0113fd3fb4c5128846516d374d7e006433c6d013f70
7
- data.tar.gz: 02b0ce30ade5a7e095a9793a8be050bbce1e2ca7b2842503cf0ae234b0deb10b41c6ae030f24932eb8f1d0a623c5880e586505d2f69ea5343a53e7a555198f13
6
+ metadata.gz: 6f9d2bde67e886e1926145d848c9c4ff7a5eb7503c78f0f475173774cca1e7ac9f78e0b21447a2248db422d9a6342083826957230a37c259c6845b85d07a7411
7
+ data.tar.gz: 5f8b16fc94637f82aacdcda36af382c6e7eeaad9163cea922852b8e9a09be4f5191996a9339f1f9cc73a5c50e92480ee4a5c676e1e97dcb829eef9ce3c33f808
@@ -34,7 +34,7 @@ module Twofishes
34
34
 
35
35
  def self.call_api(params)
36
36
  handle_response do
37
- get(Twofishes.configuration.base_url, query: params)
37
+ get(Twofishes.configuration.base_url, query: params, timeout: Twofishes.configuration.timeout)
38
38
  end
39
39
  end
40
40
 
@@ -50,4 +50,4 @@ module Twofishes
50
50
  end
51
51
 
52
52
  end
53
- end
53
+ end
@@ -4,10 +4,11 @@ module Twofishes
4
4
 
5
5
  # @see https://github.com/thoughtbot/clearance/blob/master/lib/clearance/configuration.rb
6
6
 
7
- attr_accessor :base_url
7
+ attr_accessor :base_url, :timeout
8
8
 
9
9
  def initialize
10
10
  @base_url = 'http://localhost:8081'
11
+ @timeout = 3
11
12
  end
12
13
 
13
14
  end
@@ -24,4 +25,4 @@ module Twofishes
24
25
  @configuration = nil
25
26
  end
26
27
 
27
- end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Twofishes
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twofishes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Felder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -143,12 +143,12 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
+ - lib/twofishes.rb
146
147
  - lib/twofishes/client.rb
147
148
  - lib/twofishes/configuration.rb
148
149
  - lib/twofishes/errors.rb
149
150
  - lib/twofishes/result.rb
150
151
  - lib/twofishes/version.rb
151
- - lib/twofishes.rb
152
152
  homepage: https://github.com/masone/twofishes-ruby
153
153
  licenses:
154
154
  - MIT
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.0.3
172
+ rubygems_version: 2.4.3
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Client for foursquare's Twofishes API, a sparse reverse geocoder.