rabbitmq_http_api_client 0.5.0 → 0.6.0
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 +22 -0
- data/lib/rabbitmq/http/client.rb +1 -1
- data/lib/rabbitmq/http/client/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 366f97e6e4043f1e77d62b5f09b6e8e357a8d99d
|
4
|
+
data.tar.gz: 9bdcde9439b49077c30290ec7f2b6b3ff210cc2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5befe88a6a443db70b828e3fc1f01407cb1f8767ad90aada1ab241404d3f33b28fa4c2b1194762c3793b1a06edc57c3ce1ce6026d19495c2229243ac8153344e
|
7
|
+
data.tar.gz: a9e0034159d5c9baeacf7a96c2922a98d9f9cadd2cf04a5b9dee6077de8c46123018af934a790a1b959cce4225bfa9421c54c2f91a341f208fdfe909db798a9c
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## Changes Between 0.5.0 and 0.6.0
|
2
|
+
|
3
|
+
### Support for Advanced Connection Options
|
4
|
+
|
5
|
+
It is now possible to pass more options to Faraday connection,
|
6
|
+
for example, HTTPS related ones:
|
7
|
+
|
8
|
+
``` ruby
|
9
|
+
c = RabbitMQ::HTTP::Client.new("https://127.0.0.1:15672/", username: "guest", password: "guest", ssl: {
|
10
|
+
client_cer: ...,
|
11
|
+
client_key: ...,
|
12
|
+
ca_file: ...,
|
13
|
+
ca_path: ...,
|
14
|
+
cert_store: ...
|
15
|
+
})
|
16
|
+
```
|
17
|
+
|
18
|
+
Any options other than `username` and `password` will be passed on to
|
19
|
+
`Faraday::Connection`.
|
20
|
+
|
21
|
+
|
22
|
+
|
1
23
|
## Changes Between 0.4.0 and 0.5.0
|
2
24
|
|
3
25
|
### Endpoint Reader
|
data/lib/rabbitmq/http/client.rb
CHANGED
@@ -308,7 +308,7 @@ module RabbitMQ
|
|
308
308
|
protected
|
309
309
|
|
310
310
|
def initialize_connection(endpoint, options = {})
|
311
|
-
@connection = Faraday.new(:url => endpoint) do |conn|
|
311
|
+
@connection = Faraday.new(options.merge(:url => endpoint)) do |conn|
|
312
312
|
conn.basic_auth options.fetch(:username, "guest"), options.fetch(:password, "guest")
|
313
313
|
conn.use FaradayMiddleware::FollowRedirects, :limit => 3
|
314
314
|
conn.use Faraday::Response::RaiseError
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbitmq_http_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klishin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -120,10 +120,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.0.
|
123
|
+
rubygems_version: 2.0.6
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: RabbitMQ HTTP API client for Ruby
|
127
127
|
test_files:
|
128
128
|
- spec/integration/client_spec.rb
|
129
129
|
- spec/spec_helper.rb
|
130
|
+
has_rdoc:
|