stargate 0.1.3 → 0.1.4
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/CHANGELOG.md +13 -1
- data/README.md +2 -2
- data/lib/stargate/client/protocol/http.rb +2 -2
- data/lib/stargate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11b68dbe118437721b8337760fae538e5b9bcddf
|
4
|
+
data.tar.gz: 1acb506843d367b60c55d9c4466c028e5fa9022b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0217a977185f572bc48994a13415f62795cdc793ef59fbec961c123c00764491629fabcd93858791a1c28152495d8d6a7368b30541f44ab29d74ac5d98b8e1f9
|
7
|
+
data.tar.gz: 34a930b264fa4d3beb6462172fdb0a71e8308c7e00d0d1ce147ec84d9bf5f530b7a10663de8e5a7c953f127cde8b474bd4a511c8045f7718af2d2142548f327c
|
data/CHANGELOG.md
CHANGED
@@ -6,9 +6,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
...
|
8
8
|
|
9
|
+
## [0.1.4]
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Failures in HTTP client implementation on CI
|
14
|
+
|
9
15
|
## [0.1.3]
|
10
16
|
|
11
|
-
|
17
|
+
### Added
|
18
|
+
|
19
|
+
- Documentation
|
20
|
+
|
21
|
+
### Removed
|
22
|
+
|
23
|
+
- Perfume dependency
|
12
24
|
|
13
25
|
## [0.1.2]
|
14
26
|
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ class are executed locally or remotely. Fire, get results, forget. No thinking o
|
|
36
36
|
Add this line to your application's Gemfile:
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
gem 'stargate', '0.1.
|
39
|
+
gem 'stargate', '0.1.4'
|
40
40
|
```
|
41
41
|
|
42
42
|
And then execute:
|
@@ -45,7 +45,7 @@ And then execute:
|
|
45
45
|
|
46
46
|
Or install it yourself as:
|
47
47
|
|
48
|
-
$ gem install stargate --version 0.1.
|
48
|
+
$ gem install stargate --version 0.1.4
|
49
49
|
|
50
50
|
## Usage
|
51
51
|
|
@@ -21,7 +21,7 @@ module Stargate
|
|
21
21
|
request_options = {}
|
22
22
|
request_options[:payload] = codec.encode(args)
|
23
23
|
request_options[:timeout] = options[:timeout] if options[:timeout]
|
24
|
-
request_headers = { 'Content-Type'
|
24
|
+
request_headers = { 'Content-Type' => codec.content_type }
|
25
25
|
|
26
26
|
request("#{klass.remote_name}.#{method}", 'POST', request_options, request_headers) do |response|
|
27
27
|
data = codec.decode(response.body.to_s)
|
@@ -36,7 +36,7 @@ module Stargate
|
|
36
36
|
options = {
|
37
37
|
url: File.join(uri.to_s, path),
|
38
38
|
method: method,
|
39
|
-
headers: { 'Accept'
|
39
|
+
headers: { 'Accept' => codec.content_type, 'User-Agent' => 'Stargate' }.merge(headers)
|
40
40
|
}.merge(options)
|
41
41
|
|
42
42
|
RestClient::Request.execute(options, &block)
|
data/lib/stargate/version.rb
CHANGED