amqparty 0.0.4 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24f1ff05a43649e133ef937f72d0a87abcb3940f
4
- data.tar.gz: be5500567394b7cdbc674dda48efc8be80a59bb1
3
+ metadata.gz: d4f5ca22f4d2bbff7bcb96316888a4ecf430b619
4
+ data.tar.gz: 2d926c2cb528dc3ca4fe2d467b6c4dd25003f9cb
5
5
  SHA512:
6
- metadata.gz: 5912b578d5d002737d15d5abe83314e58aa470f688fd28f14e935801adf6bbf4263c3712d58ca7d20257d120baf05c28d2ffdad34b23b12c1481e63bd2fb05d6
7
- data.tar.gz: 297bf404bc4cac06adbbcc3fc86a2904538385722e287ce2ea43e055e8b3c96c385436c1b1b5aa193db78af6716b88b0e848bf280458727c5a7597305738e7d3
6
+ metadata.gz: 708b49a6c3a8c5d11b389c6e567c23055952ca128d047c3f6fca90e5c9becc84069af61ef2c23405b80f47c542ab7b7c8955155aca9bcd6defa54ef1bcc89b96
7
+ data.tar.gz: 76db6e542be3f0c0ae14f39358bdce9f2ce3c33bbc8359bc5c3b03b85a0a986402a0ccb860818126f97f9b5e1ac29356a2f50ef5f6f6bd76dc00c7c782416539
data/README.md CHANGED
@@ -53,6 +53,7 @@ Valid configuration parameters are shown below:
53
53
  | tls\_key | path to the client private key for SSL connections in pem format | nil |
54
54
  | verify\_peer | disable/enable peer verification (used with TLS) | false |
55
55
  | request\_timeout | value in seconds indicating the reply wait timeout for an amqp request | 5 |
56
+ | hearbeat | value in seconds indicating the heartbeat | 60 |
56
57
 
57
58
  ## Contributing
58
59
 
data/lib/amqparty.rb CHANGED
@@ -45,6 +45,7 @@ module AMQParty
45
45
  attr_accessor :tls_cert
46
46
  attr_accessor :username
47
47
  attr_accessor :password
48
+ attr_accessor :heartbeat
48
49
 
49
50
  def default_options
50
51
  {
@@ -57,7 +58,8 @@ module AMQParty
57
58
  tls_key: tls_key,
58
59
  tls_cert: tls_cert,
59
60
  username: username || 'guest',
60
- password: password || 'guest'
61
+ password: password || 'guest',
62
+ heartbeat: heartbeat || 60
61
63
  },
62
64
  request_timeout: request_timeout || 5
63
65
  }
@@ -2,6 +2,7 @@ module AMQParty
2
2
  class AMQPartyError < StandardError; end
3
3
  class UnsupportedURISchemeError < AMQPartyError; end
4
4
  class UnconfiguredError < AMQPartyError; end
5
+ HTTParty::Request::SupportedURISchemes = ['amqp', 'amqps']
5
6
 
6
7
  class Request < HTTParty::Request
7
8
  def perform(&block)
@@ -1,3 +1,3 @@
1
1
  module AMQParty
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -5,7 +5,7 @@ shared_examples_for 'all request methods' do |meth|
5
5
  test = -> {
6
6
  AMQParty.send(meth, 'test.simple')
7
7
  }
8
- expect(test).to raise_error(AMQParty::UnsupportedURISchemeError)
8
+ expect(test).to raise_error(HTTParty::UnsupportedURIScheme)
9
9
  end
10
10
 
11
11
  it 'blows up when not configured to talk to a amqp broker' do
@@ -78,7 +78,8 @@ describe AMQParty do
78
78
  tls_key: nil,
79
79
  tls_cert: nil,
80
80
  username: 'guest',
81
- password: 'guest'
81
+ password: 'guest',
82
+ heartbeat: 60
82
83
  }
83
84
  }
84
85
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Szmajda
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-12 00:00:00.000000000 Z
12
+ date: 2015-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.2.2
155
+ rubygems_version: 2.4.5
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: AMQP-HTTP compliant replacement for HTTParty