rack-rabbit 0.6.0 → 0.6.1

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: d0ae6fe9017057176665a112219b20bcb02cf6c4
4
- data.tar.gz: 643d99de440abf0344e63bbe6628acb55cfba3a4
3
+ metadata.gz: fdbf908af8f71425fd074a0872211905d2379a49
4
+ data.tar.gz: e8c412bf1a29367f4b79f461126ee14d1f550008
5
5
  SHA512:
6
- metadata.gz: f24c11999c486fa2272ff592cc0a6fd2564d0a345102852375393952d8397646478b8178ed8153413e194a7cd3df74be9ee46a84059f3118874dad6d068b3d79
7
- data.tar.gz: 7aa285b2a94b5ebafadd532df2f260523d636a8fe2f1ed1615fd977bbfc78284a2fd285014904a335f8aa33027e98061accf1dd88a64839b9ab94e48020cd2e6
6
+ metadata.gz: 1ca9690c887e3ebbd68f5062c85c75a39a4829120ec1aac54fb981da2521d87f363df128dd5d8bc6d564e01af0a14284dabc3a2ba851d7ebb1610f83cb50300e
7
+ data.tar.gz: a34ad4dbc75d6800800204eda81f285c1a5f0a75a3ac006ebb4c0536c630b808063d12caa0829e503ec4a63273e846b04554c7dfa7bd4ba8b47a74b883197906
data/bin/rr CHANGED
@@ -16,6 +16,7 @@ EXCHANGE_HELP = "publish to a non-default exchange - name"
16
16
  EXCHANGE_TYPE_HELP = "publish to a non-default exchange - type (e.g. :direct, :fanout, :topic)"
17
17
  ROUTING_KEY_HELP = "a routing key when publishing to a non-default exchange"
18
18
  INCLUDE_HELP = "specify an additional $LOAD_PATH (may be used more than once)"
19
+ TIMEOUT_HELP = "specify a request timeout in seconds (default: no timeout)"
19
20
  DEBUG_HELP = "set $DEBUG to true"
20
21
  WARN_HELP = "enable warnings"
21
22
 
@@ -50,6 +51,7 @@ parser.on("-q", "--queue QUEUE", QUEUE_HELP) { |value| options[:qu
50
51
  parser.on("-e", "--exchange EXCHANGE", EXCHANGE_HELP) { |value| options[:exchange] = value }
51
52
  parser.on("-t", "--type TYPE", EXCHANGE_TYPE_HELP) { |value| options[:exchange_type] = value }
52
53
  parser.on("-r", "--route ROUTE", ROUTING_KEY_HELP) { |value| options[:routing_key] = value }
54
+ parser.on( "--timeout SECONDS", TIMEOUT_HELP) { |value| options[:timeout] = value.to_i }
53
55
  parser.separator ""
54
56
  parser.separator "Ruby options:"
55
57
  parser.on("-I", "--include PATH", INCLUDE_HELP) { |value| $LOAD_PATH.unshift(*value.split(":")) }
@@ -4,7 +4,7 @@ module RackRabbit
4
4
  # CONSTANTS
5
5
  #============================================================================
6
6
 
7
- VERSION = "0.6.0"
7
+ VERSION = "0.6.1"
8
8
  SUMMARY = "A Unicorn-style forking, rack-based server for hosting rabbitMQ consumer processes"
9
9
 
10
10
  DEFAULT_RABBIT = {
@@ -55,7 +55,7 @@ module RackRabbit
55
55
  method = options[:method] || :GET
56
56
  headers = options[:headers] || {}
57
57
  response = nil
58
- timeout = options[:timeout] || 1
58
+ timeout = options[:timeout]
59
59
 
60
60
  rabbit.with_reply_queue do |reply_queue|
61
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Gordon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: