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 +4 -4
- data/.travis.yml +1 -3
- data/lib/amqparty/request.rb +3 -3
- data/lib/amqparty/version.rb +1 -1
- data/spec/amqparty_classmethods_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6047915de23d151247589934dd34801037ab1bd
|
4
|
+
data.tar.gz: f9e343ae15f68f657ff574c9d48b56b5b08dadc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/amqparty/request.rb
CHANGED
@@ -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
|
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
|
data/lib/amqparty/version.rb
CHANGED
@@ -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(
|
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.
|
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-
|
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.
|
155
|
+
rubygems_version: 2.4.8
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: AMQP-HTTP compliant replacement for HTTParty
|