amqp-utils 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Rakefile +68 -4
- data/TODO.txt +7 -0
- data/VERSION +1 -0
- data/amqp-utils.gemspec +79 -0
- data/bin/amqp-deleteq +7 -3
- data/bin/amqp-dequeue +20 -8
- data/bin/amqp-enqueue +14 -6
- data/bin/amqp-peek +12 -7
- data/bin/amqp-pop +12 -6
- data/bin/amqp-purge +47 -0
- data/bin/amqp-statq +8 -4
- data/lib/amqp_utils/command.rb +66 -20
- data/lib/amqp_utils/message_formatter.rb +42 -0
- data/lib/amqp_utils.rb +9 -1
- metadata +44 -37
- data/Manifest.txt +0 -25
- data/config/hoe.rb +0 -75
- data/config/requirements.rb +0 -15
- data/lib/amqp_utils/version.rb +0 -9
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -9
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Barth
|
@@ -9,18 +9,18 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-13 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: amqp
|
16
|
+
name: tmm1-amqp
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.6.
|
23
|
+
version: 0.6.4
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: trollop
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.10.2
|
34
34
|
version:
|
@@ -38,69 +38,76 @@ dependencies:
|
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.
|
43
|
+
version: 2.7.0
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
|
-
name:
|
47
|
-
type: :
|
46
|
+
name: clio
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.3.0
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: json
|
57
|
+
type: :runtime
|
48
58
|
version_requirement:
|
49
59
|
version_requirements: !ruby/object:Gem::Requirement
|
50
60
|
requirements:
|
51
|
-
- -
|
61
|
+
- - ~>
|
52
62
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
63
|
+
version: 1.1.6
|
54
64
|
version:
|
55
|
-
description:
|
56
|
-
|
57
|
-
|
65
|
+
description: |-
|
66
|
+
Command line utilies for interacting with AMQP compliant queues.
|
67
|
+
The intention is provide simple management tools that can be used to complete ad hoc
|
68
|
+
housework on an AMQP queue. In addition, simple scripts can be layered over the tools
|
69
|
+
when needed.
|
70
|
+
email: dougbarth@gmail.com
|
58
71
|
executables:
|
72
|
+
- amqp-deleteq
|
59
73
|
- amqp-dequeue
|
60
74
|
- amqp-enqueue
|
61
75
|
- amqp-peek
|
62
76
|
- amqp-pop
|
63
|
-
- amqp-
|
77
|
+
- amqp-purge
|
64
78
|
- amqp-statq
|
65
79
|
extensions: []
|
66
80
|
|
67
81
|
extra_rdoc_files:
|
68
|
-
- History.txt
|
69
|
-
- License.txt
|
70
|
-
- Manifest.txt
|
71
82
|
- README.txt
|
72
83
|
files:
|
84
|
+
- .gitignore
|
73
85
|
- History.txt
|
74
86
|
- License.txt
|
75
|
-
- Manifest.txt
|
76
87
|
- README.txt
|
77
88
|
- Rakefile
|
89
|
+
- TODO.txt
|
90
|
+
- VERSION
|
91
|
+
- amqp-utils.gemspec
|
92
|
+
- bin/amqp-deleteq
|
78
93
|
- bin/amqp-dequeue
|
79
94
|
- bin/amqp-enqueue
|
80
95
|
- bin/amqp-peek
|
81
96
|
- bin/amqp-pop
|
82
|
-
- bin/amqp-
|
97
|
+
- bin/amqp-purge
|
83
98
|
- bin/amqp-statq
|
84
|
-
- config/hoe.rb
|
85
|
-
- config/requirements.rb
|
86
99
|
- lib/amqp_utils.rb
|
87
100
|
- lib/amqp_utils/command.rb
|
88
|
-
- lib/amqp_utils/
|
89
|
-
- script/console
|
90
|
-
- script/destroy
|
91
|
-
- script/generate
|
92
|
-
- setup.rb
|
93
|
-
- tasks/deployment.rake
|
94
|
-
- tasks/environment.rake
|
95
|
-
- tasks/website.rake
|
101
|
+
- lib/amqp_utils/message_formatter.rb
|
96
102
|
- test/test_amqp_utils.rb
|
97
103
|
- test/test_helper.rb
|
98
104
|
has_rdoc: true
|
99
|
-
homepage: http://amqp-utils
|
100
|
-
|
105
|
+
homepage: http://github.com/dougbarth/amqp-utils
|
106
|
+
licenses: []
|
107
|
+
|
108
|
+
post_install_message:
|
101
109
|
rdoc_options:
|
102
|
-
- --
|
103
|
-
- README.txt
|
110
|
+
- --charset=UTF-8
|
104
111
|
require_paths:
|
105
112
|
- lib
|
106
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -118,9 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
125
|
requirements: []
|
119
126
|
|
120
127
|
rubyforge_project: amqp-utils
|
121
|
-
rubygems_version: 1.3.
|
128
|
+
rubygems_version: 1.3.5
|
122
129
|
signing_key:
|
123
|
-
specification_version:
|
130
|
+
specification_version: 3
|
124
131
|
summary: Command line utilities for interacting with AMQP compliant queues
|
125
132
|
test_files:
|
126
133
|
- test/test_amqp_utils.rb
|
data/Manifest.txt
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
License.txt
|
3
|
-
Manifest.txt
|
4
|
-
README.txt
|
5
|
-
Rakefile
|
6
|
-
bin/amqp-dequeue
|
7
|
-
bin/amqp-enqueue
|
8
|
-
bin/amqp-peek
|
9
|
-
bin/amqp-pop
|
10
|
-
bin/amqp-deleteq
|
11
|
-
bin/amqp-statq
|
12
|
-
config/hoe.rb
|
13
|
-
config/requirements.rb
|
14
|
-
lib/amqp_utils.rb
|
15
|
-
lib/amqp_utils/command.rb
|
16
|
-
lib/amqp_utils/version.rb
|
17
|
-
script/console
|
18
|
-
script/destroy
|
19
|
-
script/generate
|
20
|
-
setup.rb
|
21
|
-
tasks/deployment.rake
|
22
|
-
tasks/environment.rake
|
23
|
-
tasks/website.rake
|
24
|
-
test/test_amqp_utils.rb
|
25
|
-
test/test_helper.rb
|
data/config/hoe.rb
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
require 'amqp_utils/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Doug Barth' # can also be an array of Authors
|
4
|
-
EMAIL = "dougbarth@gmail.com"
|
5
|
-
DESCRIPTION = "Command line utilities for interacting with AMQP compliant queues"
|
6
|
-
GEM_NAME = 'amqp-utils' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'amqp-utils' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
EXTRA_DEPENDENCIES = [
|
11
|
-
['amqp', '>= 0.6.0'],
|
12
|
-
['trollop', '>= 1.10.2'],
|
13
|
-
['facets', '>= 2.4.4']
|
14
|
-
] # An array of rubygem dependencies [name, version]
|
15
|
-
|
16
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
17
|
-
@config = nil
|
18
|
-
RUBYFORGE_USERNAME = "unknown"
|
19
|
-
def rubyforge_username
|
20
|
-
unless @config
|
21
|
-
begin
|
22
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
23
|
-
rescue
|
24
|
-
puts <<-EOS
|
25
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
26
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
27
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
28
|
-
EOS
|
29
|
-
exit
|
30
|
-
end
|
31
|
-
end
|
32
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
REV = nil
|
37
|
-
# UNCOMMENT IF REQUIRED:
|
38
|
-
# REV = YAML.load(`svn info`)['Revision']
|
39
|
-
VERS = AmqpUtils::VERSION::STRING + (REV ? ".#{REV}" : "")
|
40
|
-
RDOC_OPTS = ['--quiet', '--title', 'amqp-utils documentation',
|
41
|
-
"--opname", "index.html",
|
42
|
-
"--line-numbers",
|
43
|
-
"--main", "README",
|
44
|
-
"--inline-source"]
|
45
|
-
|
46
|
-
class Hoe
|
47
|
-
def extra_deps
|
48
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
49
|
-
@extra_deps
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
# Generate all the Rake tasks
|
54
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
55
|
-
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
56
|
-
p.developer(AUTHOR, EMAIL)
|
57
|
-
p.description = DESCRIPTION
|
58
|
-
p.summary = DESCRIPTION
|
59
|
-
p.url = HOMEPATH
|
60
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
61
|
-
p.test_globs = ["test/**/test_*.rb"]
|
62
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
63
|
-
|
64
|
-
# == Optional
|
65
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
66
|
-
p.extra_deps = EXTRA_DEPENDENCIES
|
67
|
-
|
68
|
-
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
69
|
-
end
|
70
|
-
|
71
|
-
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
72
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
73
|
-
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
74
|
-
$hoe.rsync_args = '-av --delete --ignore-errors'
|
75
|
-
$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
|
data/config/requirements.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
include FileUtils
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
%w[rake newgem rubigen].each do |req_gem|
|
6
|
-
begin
|
7
|
-
require req_gem
|
8
|
-
rescue LoadError
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|
data/lib/amqp_utils/version.rb
DELETED
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/amqp_utils.rb'}"
|
9
|
-
puts "Loading amqp-utils gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|