amqp-tools 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "amqp-tools"
6
- s.version = "0.0.3"
6
+ s.version = "0.0.5"
7
7
  s.date = Date.today.to_s
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Paul Asmuth"]
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- exec "cat #{$0} | tail -n+4 | /bin/bash"
2
+ exec "cat #{__FILE__} | tail -n+4 | AMQP_OPTS='#{$* * " "}' /bin/bash"
3
3
  __END__
4
4
 
5
5
  #!/bin/bash
@@ -21,8 +21,11 @@ __END__
21
21
  # "disk_usage": "43%"
22
22
  # }
23
23
 
24
+ if [[ -z "$AMQP_OPTS" ]]; then
25
+ AMQP_OPTS=$@
26
+ fi
24
27
 
25
- if [[ $# -lt 1 ]]; then
28
+ if [[ -z "$AMQP_OPTS" ]]; then
26
29
  echo "usage: $0 [amqp-send options]"
27
30
  exit 1
28
31
  fi
@@ -68,6 +71,6 @@ data=$(
68
71
  )
69
72
 
70
73
  echo "{ $data }" | sed -e ':x;N;$!bx;s/\n/ /g' | \
71
- amqp-send $@
74
+ amqp-send $AMQP_OPTS
72
75
 
73
76
  exit $?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amqp
16
- requirement: &10489820 !ruby/object:Gem::Requirement
16
+ requirement: &19696520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.8.9
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10489820
24
+ version_requirements: *19696520
25
25
  description: command line tools for AMQP/RabbitMQ
26
26
  email:
27
27
  - paul@paulasmuth.com