esp-commons 0.5.8 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esp-commons/libraries/requester.rb +3 -4
- data/lib/esp-commons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 320822e3332c60867207df6b8965c39ba8a7e9a2
|
4
|
+
data.tar.gz: 4fe07da5c8d1c3ffb6454fc82d66d4af6956b37c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d255a46df0afc0386941928d34d41e4feed3bf8e8fc65ee82373e76bed990ddf7af01b196b478138cf2730c245afebc990f49ef90c07e5cd3e4c2492960a45a
|
7
|
+
data.tar.gz: cb805b48f7e7cae68253a7c1f150ae5c4e3d37e8bfeca13c5c81747fe8743809a187e9909887a0f9997c5a135c297d6822de58a1256270dedadc07ded0dbf407
|
@@ -8,10 +8,9 @@ class Requester
|
|
8
8
|
@response ||= RestClient::Request.execute(
|
9
9
|
:method => :get,
|
10
10
|
:url => url,
|
11
|
-
:timeout =>
|
11
|
+
:timeout => nil,
|
12
12
|
:headers => {
|
13
|
-
:Accept => headers_accept
|
14
|
-
:timeout => 600
|
13
|
+
:Accept => headers_accept
|
15
14
|
}
|
16
15
|
) do |response, request, result, &block|
|
17
16
|
response
|
@@ -41,7 +40,7 @@ class Requester
|
|
41
40
|
end
|
42
41
|
|
43
42
|
def response_body
|
44
|
-
@response_body ||= response.body.force_encoding
|
43
|
+
@response_body ||= response.body.force_encoding('UTF-8')
|
45
44
|
end
|
46
45
|
|
47
46
|
def response_hash
|
data/lib/esp-commons/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esp-commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|