rabbitmq_http_api_client 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7932d8badd37c31de6d1633a26e3c9a368852153
4
- data.tar.gz: 48f7c0a66aea7b70cbc4e99994a12c8984cd6d9c
3
+ metadata.gz: 366f97e6e4043f1e77d62b5f09b6e8e357a8d99d
4
+ data.tar.gz: 9bdcde9439b49077c30290ec7f2b6b3ff210cc2b
5
5
  SHA512:
6
- metadata.gz: d1b7c14e02533636d58a0ded1dac35017b7fc74ba1a7d52762393df67386fa2e98989dc8fee396adca083a43d626e78f90149f38f74462b59b9a511731155940
7
- data.tar.gz: 765fe34afc853433180f4ee3fc5aa29b9271e4745960a7bcc253fc31f2eca09f07a63792f756715c124616a0b6bae688ac862bf511bcf79e5786d0749ec88d1d
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
@@ -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
@@ -1,7 +1,7 @@
1
1
  module RabbitMQ
2
2
  module HTTP
3
3
  class Client
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
6
6
  end
7
7
  end
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.5.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-09-17 00:00:00.000000000 Z
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.5
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: