amqparty 0.0.6 → 0.0.7

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: d4f5ca22f4d2bbff7bcb96316888a4ecf430b619
4
- data.tar.gz: 2d926c2cb528dc3ca4fe2d467b6c4dd25003f9cb
3
+ metadata.gz: d6047915de23d151247589934dd34801037ab1bd
4
+ data.tar.gz: f9e343ae15f68f657ff574c9d48b56b5b08dadc9
5
5
  SHA512:
6
- metadata.gz: 708b49a6c3a8c5d11b389c6e567c23055952ca128d047c3f6fca90e5c9becc84069af61ef2c23405b80f47c542ab7b7c8955155aca9bcd6defa54ef1bcc89b96
7
- data.tar.gz: 76db6e542be3f0c0ae14f39358bdce9f2ce3c33bbc8359bc5c3b03b85a0a986402a0ccb860818126f97f9b5e1ac29356a2f50ef5f6f6bd76dc00c7c782416539
6
+ metadata.gz: d2cdde060724a17ee543de89cdebf3fd5639b0e4b751a45dd67de1348b591c5a43a7f8780826519d4f5d269e74c83f41d271c15ca9799947db3a176f37dcc211
7
+ data.tar.gz: 3ac5934329b9ffe0fa1af1876575df444c97b9887abcdcffc3cac38b14065c561c4ce930cd5ec6e9feb14bcf92d0b85cef275e2af49ce43fb8da74987acd2e15
data/.travis.yml CHANGED
@@ -1,10 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.3
3
4
  - 2.1.0
4
5
  - 2.0.0
5
- - 1.9.3
6
- # Decided not to support 1.9.2 because HTTParty won't support it - 1.9.2
7
- - jruby-19mode # JRuby in 1.9 mode
8
6
  - ruby-head
9
7
  - jruby-head
10
8
  # Not trying to test because Travis doesn't like it - rbx
@@ -2,12 +2,12 @@ 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
+ HTTParty::Request::SupportedURISchemes = HTTParty::Request::SupportedURISchemes + ['amqp', 'amqps']
6
6
 
7
7
  class Request < HTTParty::Request
8
8
  def perform(&block)
9
9
  unless %w{amqp}.include? uri.scheme.to_s.downcase
10
- raise UnsupportedURISchemeError, "#{uri.scheme} must be amqp"
10
+ raise UnsupportedURISchemeError
11
11
  end
12
12
  validate
13
13
  setup_raw_request
@@ -45,7 +45,7 @@ module AMQParty
45
45
  http_response.add_field key, value
46
46
  end
47
47
  http_response.body = response.payload
48
-
48
+
49
49
  # TODO GIANT HACK
50
50
  http_response.send(:instance_eval, "def body; @body; end")
51
51
  self.last_response = http_response
@@ -1,3 +1,3 @@
1
1
  module AMQParty
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
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(HTTParty::UnsupportedURIScheme)
8
+ expect(test).to raise_error(AMQParty::UnsupportedURISchemeError)
9
9
  end
10
10
 
11
11
  it 'blows up when not configured to talk to a amqp broker' do
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.6
4
+ version: 0.0.7
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: 2015-09-29 00:00:00.000000000 Z
12
+ date: 2015-10-01 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.4.5
155
+ rubygems_version: 2.4.8
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: AMQP-HTTP compliant replacement for HTTParty