global_registry 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/lib/global_registry/base.rb +3 -3
- data/lib/global_registry/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efa5748256bc13e73f0bd4401b8e37d5f027295
|
4
|
+
data.tar.gz: 418c52acf5dccf6e106e3e35b699960ffc0c634a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c23d9a43434331bab5e9a7495b4cdb590919b739419db5afc17f3073e126a150a0d612b0a8e542e6a3716a2b5112534ce4304a3c5b40a94bce3486db48fe48e9
|
7
|
+
data.tar.gz: 4ed44fd94273fe9cad6fecc3d4e6281702ea6392b32fe1b983aaa923f16ee8a0aa28049d61ca8bee13095ca4a27dddb9a90e6e9acf8639ba2cb237105b35d3b3
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.1
|
data/lib/global_registry/base.rb
CHANGED
@@ -80,18 +80,18 @@ module GlobalRegistry
|
|
80
80
|
|
81
81
|
case method
|
82
82
|
when :post
|
83
|
-
post_headers = default_headers.merge(content_type: :json, timeout:
|
83
|
+
post_headers = default_headers.merge(content_type: :json, timeout: nil).merge(headers)
|
84
84
|
RestClient.post(url.to_s, params.to_json, post_headers) { |response, request, result, &block|
|
85
85
|
handle_response(response, request, result)
|
86
86
|
}
|
87
87
|
when :put
|
88
|
-
put_headers = default_headers.merge(content_type: :json, timeout:
|
88
|
+
put_headers = default_headers.merge(content_type: :json, timeout: nil).merge(headers)
|
89
89
|
RestClient.put(url.to_s, params.to_json, put_headers) { |response, request, result, &block|
|
90
90
|
handle_response(response, request, result)
|
91
91
|
}
|
92
92
|
else
|
93
93
|
url.query_values = (url.query_values || {}).merge(params) if params.any?
|
94
|
-
get_args = { method: method, url: url.to_s, timeout:
|
94
|
+
get_args = { method: method, url: url.to_s, timeout: nil,
|
95
95
|
headers: default_headers.merge(headers)
|
96
96
|
}
|
97
97
|
RestClient::Request.execute(get_args) { |response, request, result, &block|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_registry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Starcher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -108,6 +108,7 @@ extensions: []
|
|
108
108
|
extra_rdoc_files: []
|
109
109
|
files:
|
110
110
|
- ".gitignore"
|
111
|
+
- ".ruby-version"
|
111
112
|
- ".travis.yml"
|
112
113
|
- Gemfile
|
113
114
|
- LICENSE
|
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
149
|
version: '0'
|
149
150
|
requirements: []
|
150
151
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.6.
|
152
|
+
rubygems_version: 2.6.11
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
155
|
summary: Push and pull data from the Global Registry
|
@@ -156,3 +157,4 @@ test_files:
|
|
156
157
|
- spec/base_spec.rb
|
157
158
|
- spec/entity_spec.rb
|
158
159
|
- spec/spec_helper.rb
|
160
|
+
has_rdoc:
|