twofishes 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/lib/twofishes/client.rb +2 -2
- data/lib/twofishes/configuration.rb +3 -2
- data/lib/twofishes/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b8c77625022ef059bb6f9472bdee77a0263fe9d
|
|
4
|
+
data.tar.gz: ba376cae29b53951ada0b7c4bfaa9054049e272d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f9d2bde67e886e1926145d848c9c4ff7a5eb7503c78f0f475173774cca1e7ac9f78e0b21447a2248db422d9a6342083826957230a37c259c6845b85d07a7411
|
|
7
|
+
data.tar.gz: 5f8b16fc94637f82aacdcda36af382c6e7eeaad9163cea922852b8e9a09be4f5191996a9339f1f9cc73a5c50e92480ee4a5c676e1e97dcb829eef9ce3c33f808
|
data/lib/twofishes/client.rb
CHANGED
|
@@ -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
|
data/lib/twofishes/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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.
|