daemon-kit 0.1.8.1 → 0.1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +16 -4
- data/Gemfile +4 -0
- data/History.txt +8 -0
- data/README.rdoc +3 -3
- data/Rakefile +3 -25
- data/Upgrading.md +21 -0
- data/bin/daemon-kit +1 -1
- data/daemon-kit.gemspec +36 -256
- data/lib/daemon_kit.rb +2 -2
- data/lib/daemon_kit/arguments.rb +3 -3
- data/lib/daemon_kit/commands/console.rb +1 -1
- data/lib/daemon_kit/deployment/capistrano.rb +7 -39
- data/lib/daemon_kit/dk_amqp.rb +1 -1
- data/lib/daemon_kit/initializer.rb +14 -37
- data/lib/daemon_kit/ruote_participants.rb +9 -2
- data/lib/daemon_kit/ruote_workitem.rb +6 -6
- data/lib/daemon_kit/version.rb +6 -0
- data/lib/generators/daemon_kit/amqp/templates/config/pre-daemonize/amqp.rb +0 -1
- data/lib/generators/daemon_kit/amqp/templates/libexec/%app_name%-daemon.rb +1 -1
- data/lib/generators/daemon_kit/app/templates/Gemfile +5 -0
- data/lib/generators/daemon_kit/app/templates/config/boot.rb +2 -8
- data/lib/generators/daemon_kit/app/templates/config/environment.rb.tt +0 -4
- data/lib/generators/daemon_kit/app/templates/config/pre-daemonize/safely.rb +13 -0
- data/lib/generators/daemon_kit/capistrano/templates/config/deploy.rb.tt +5 -4
- data/lib/generators/daemon_kit/ruote/templates/config/pre-daemonize/ruote.rb +0 -1
- data/spec/initializer_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -3
- data/tasks/rspec.rake +5 -6
- metadata +123 -49
- data/lib/daemon_kit/error_handlers/base.rb +0 -32
- data/lib/daemon_kit/error_handlers/hoptoad.rb +0 -180
- data/lib/daemon_kit/safety.rb +0 -84
- data/spec/error_handlers_spec.rb +0 -23
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 0.1.9 (WIP)
|
2
|
+
|
3
|
+
* Depend on the 'safely' gem for the safely method and logging backtraces
|
4
|
+
* Fixed compatibility with ruote-amqp 2.2.0
|
5
|
+
* AMQP fixes by @marcbowes
|
6
|
+
* Updated to rspec 2 (various contributors)
|
7
|
+
* Up to AMQP gem 0.7.1 or later
|
8
|
+
|
1
9
|
== 0.1.18.1 2010-08-04
|
2
10
|
|
3
11
|
* Fixed issue with our own amqp.rb file causing havoc on Ruby 1.8.7
|
data/README.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= Daemon Kit
|
2
2
|
|
3
|
-
*
|
4
|
-
* http://
|
3
|
+
* https://github.com/kennethkalmer/daemon-kit/wiki
|
4
|
+
* http://rdoc.info/github/kennethkalmer/daemon-kit
|
5
5
|
* http://groups.google.com/group/daemon-kit (daemon-kit@googlegroups.com)
|
6
6
|
* #daemon-kit on Freenode
|
7
7
|
|
@@ -54,7 +54,7 @@ The cron generator creates a simple daemon that leverages the rufus-scheduler[ht
|
|
54
54
|
|
55
55
|
=== AMQP Consumer Generator
|
56
56
|
|
57
|
-
The AMQP generator creates a simple daemon that has all the stub code and configuration in place to help you write AMQP consumers quickly and effectively. The generated daemon relies on the presence of the amqp[http://github.com/
|
57
|
+
The AMQP generator creates a simple daemon that has all the stub code and configuration in place to help you write AMQP consumers quickly and effectively. The generated daemon relies on the presence of the amqp[http://github.com/ruby-amqp/amqp] gem.
|
58
58
|
|
59
59
|
=== Nanite Agent Generator
|
60
60
|
|
data/Rakefile
CHANGED
@@ -1,29 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require File.dirname(__FILE__) + '/lib/daemon_kit'
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
4
3
|
|
5
|
-
|
6
|
-
require 'jeweler'
|
7
|
-
Jeweler::Tasks.new do |gemspec|
|
8
|
-
gemspec.name = 'daemon-kit'
|
9
|
-
gemspec.version = DaemonKit::VERSION
|
10
|
-
gemspec.summary = 'Opinionated framework for Ruby daemons'
|
11
|
-
gemspec.description = 'daemon-kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.'
|
12
|
-
gemspec.email = 'kenneth.kalmer@gmail.com'
|
13
|
-
gemspec.homepage = 'http://github.com/kennethkalmer/daemon-kit'
|
14
|
-
gemspec.authors = ['kenneth.kalmer@gmail.com']
|
15
|
-
gemspec.post_install_message = IO.read('PostInstall.txt')
|
16
|
-
gemspec.extra_rdoc_files.include '*.txt'
|
17
|
-
gemspec.files.include("lib/generators/**/*", "lib/daemon_kit/vendor/**/*")
|
18
|
-
|
19
|
-
gemspec.add_dependency 'eventmachine', '>=0.12.10'
|
20
|
-
gemspec.add_development_dependency 'rspec'
|
21
|
-
gemspec.add_development_dependency 'cucumber'
|
22
|
-
end
|
23
|
-
Jeweler::GemcutterTasks.new
|
24
|
-
rescue LoadError
|
25
|
-
puts "Jeweler not available. Install it with 'gem install jeweler'"
|
26
|
-
end
|
4
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
27
5
|
|
28
6
|
# TODO - want other tests/tasks run by default? Add them to the list
|
29
7
|
task :default => [:spec] #, :features]
|
data/Upgrading.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Some important upgrading information
|
2
|
+
====================================
|
3
|
+
|
4
|
+
Upgrading to 0.1.9
|
5
|
+
------------------
|
6
|
+
|
7
|
+
The "safely" method and logging of backtraces functionality of
|
8
|
+
daemon-kit has now been extracted into a separate gem called 'safely',
|
9
|
+
which is available on github at https://github.com/kennethkalmer/safely.
|
10
|
+
|
11
|
+
You now need to add 'safely' to your Gemfile like so:
|
12
|
+
|
13
|
+
gem "safely"
|
14
|
+
|
15
|
+
And update your _environment.rb_ to no longer configure the _safety_net_
|
16
|
+
attribute (which has been removed completely and will result in an
|
17
|
+
undefined method exception).
|
18
|
+
|
19
|
+
To configure safely, make an initializer with your configuration.
|
20
|
+
Alternatively you generate a new daemon and copy the safely initializer
|
21
|
+
into your current project as a reference.
|
data/bin/daemon-kit
CHANGED
@@ -8,7 +8,7 @@ rescue LoadError
|
|
8
8
|
end
|
9
9
|
|
10
10
|
if %w(-v --version).include? ARGV.first
|
11
|
-
puts "#{File.basename($0)} #{DaemonKit
|
11
|
+
puts "#{File.basename($0)} #{DaemonKit.version} (http://github.com/kennethkalmer/daemon-kit)"
|
12
12
|
exit(0)
|
13
13
|
end
|
14
14
|
|
data/daemon-kit.gemspec
CHANGED
@@ -1,265 +1,45 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
s.description = %q{daemon-kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.}
|
15
|
-
s.email = %q{kenneth.kalmer@gmail.com}
|
16
|
-
s.executables = ["daemon-kit"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"Configuration.txt",
|
19
|
-
"Deployment.txt",
|
20
|
-
"History.txt",
|
21
|
-
"Logging.txt",
|
22
|
-
"PostInstall.txt",
|
23
|
-
"README.rdoc",
|
24
|
-
"RuoteParticipants.txt",
|
25
|
-
"TODO.txt"
|
26
|
-
]
|
27
|
-
s.files = [
|
28
|
-
".gitignore",
|
29
|
-
"Configuration.txt",
|
30
|
-
"Deployment.txt",
|
31
|
-
"History.txt",
|
32
|
-
"Logging.txt",
|
33
|
-
"PostInstall.txt",
|
34
|
-
"README.rdoc",
|
35
|
-
"Rakefile",
|
36
|
-
"RuoteParticipants.txt",
|
37
|
-
"TODO.txt",
|
38
|
-
"bin/daemon-kit",
|
39
|
-
"config/website.yml",
|
40
|
-
"daemon-kit.gemspec",
|
41
|
-
"lib/daemon_kit.rb",
|
42
|
-
"lib/daemon_kit/abstract_logger.rb",
|
43
|
-
"lib/daemon_kit/application.rb",
|
44
|
-
"lib/daemon_kit/arguments.rb",
|
45
|
-
"lib/daemon_kit/commands/console.rb",
|
46
|
-
"lib/daemon_kit/commands/destroy.rb",
|
47
|
-
"lib/daemon_kit/commands/generate.rb",
|
48
|
-
"lib/daemon_kit/config.rb",
|
49
|
-
"lib/daemon_kit/console_daemon.rb",
|
50
|
-
"lib/daemon_kit/core_ext.rb",
|
51
|
-
"lib/daemon_kit/core_ext/configurable.rb",
|
52
|
-
"lib/daemon_kit/core_ext/string.rb",
|
53
|
-
"lib/daemon_kit/cron.rb",
|
54
|
-
"lib/daemon_kit/cucumber/world.rb",
|
55
|
-
"lib/daemon_kit/deployment/capistrano.rb",
|
56
|
-
"lib/daemon_kit/dk_amqp.rb",
|
57
|
-
"lib/daemon_kit/em.rb",
|
58
|
-
"lib/daemon_kit/error_handlers/base.rb",
|
59
|
-
"lib/daemon_kit/error_handlers/hoptoad.rb",
|
60
|
-
"lib/daemon_kit/exceptions.rb",
|
61
|
-
"lib/daemon_kit/generators.rb",
|
62
|
-
"lib/daemon_kit/generators/base.rb",
|
63
|
-
"lib/daemon_kit/initializer.rb",
|
64
|
-
"lib/daemon_kit/jabber.rb",
|
65
|
-
"lib/daemon_kit/nanite.rb",
|
66
|
-
"lib/daemon_kit/nanite/agent.rb",
|
67
|
-
"lib/daemon_kit/pid_file.rb",
|
68
|
-
"lib/daemon_kit/ruote_participants.rb",
|
69
|
-
"lib/daemon_kit/ruote_pseudo_participant.rb",
|
70
|
-
"lib/daemon_kit/ruote_workitem.rb",
|
71
|
-
"lib/daemon_kit/safety.rb",
|
72
|
-
"lib/daemon_kit/tasks.rb",
|
73
|
-
"lib/daemon_kit/tasks/environment.rake",
|
74
|
-
"lib/daemon_kit/tasks/framework.rake",
|
75
|
-
"lib/daemon_kit/tasks/god.rake",
|
76
|
-
"lib/daemon_kit/tasks/log.rake",
|
77
|
-
"lib/daemon_kit/tasks/monit.rake",
|
78
|
-
"lib/daemon_kit/vendor/thor-0.13.6/CHANGELOG.rdoc",
|
79
|
-
"lib/daemon_kit/vendor/thor-0.13.6/LICENSE",
|
80
|
-
"lib/daemon_kit/vendor/thor-0.13.6/README.rdoc",
|
81
|
-
"lib/daemon_kit/vendor/thor-0.13.6/Thorfile",
|
82
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor.rb",
|
83
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions.rb",
|
84
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions/create_file.rb",
|
85
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions/directory.rb",
|
86
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions/empty_directory.rb",
|
87
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions/file_manipulation.rb",
|
88
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/actions/inject_into_file.rb",
|
89
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/base.rb",
|
90
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/core_ext/file_binary_read.rb",
|
91
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/core_ext/hash_with_indifferent_access.rb",
|
92
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/core_ext/ordered_hash.rb",
|
93
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/error.rb",
|
94
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/group.rb",
|
95
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/invocation.rb",
|
96
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/parser.rb",
|
97
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/parser/argument.rb",
|
98
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/parser/arguments.rb",
|
99
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/parser/option.rb",
|
100
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/parser/options.rb",
|
101
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/rake_compat.rb",
|
102
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/runner.rb",
|
103
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/shell.rb",
|
104
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/shell/basic.rb",
|
105
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/shell/color.rb",
|
106
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/task.rb",
|
107
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/util.rb",
|
108
|
-
"lib/daemon_kit/vendor/thor-0.13.6/lib/thor/version.rb",
|
109
|
-
"lib/daemon_kit/xmpp.rb",
|
110
|
-
"lib/generators/daemon_kit/amqp/USAGE",
|
111
|
-
"lib/generators/daemon_kit/amqp/amqp_generator.rb",
|
112
|
-
"lib/generators/daemon_kit/amqp/templates/config/amqp.yml",
|
113
|
-
"lib/generators/daemon_kit/amqp/templates/config/pre-daemonize/amqp.rb",
|
114
|
-
"lib/generators/daemon_kit/amqp/templates/libexec/%app_name%-daemon.rb",
|
115
|
-
"lib/generators/daemon_kit/app/USAGE",
|
116
|
-
"lib/generators/daemon_kit/app/app_generator.rb",
|
117
|
-
"lib/generators/daemon_kit/app/templates/Gemfile",
|
118
|
-
"lib/generators/daemon_kit/app/templates/README.tt",
|
119
|
-
"lib/generators/daemon_kit/app/templates/Rakefile",
|
120
|
-
"lib/generators/daemon_kit/app/templates/bin/daemon.tt",
|
121
|
-
"lib/generators/daemon_kit/app/templates/config/arguments.rb",
|
122
|
-
"lib/generators/daemon_kit/app/templates/config/boot.rb",
|
123
|
-
"lib/generators/daemon_kit/app/templates/config/environment.rb.tt",
|
124
|
-
"lib/generators/daemon_kit/app/templates/config/environments/development.rb",
|
125
|
-
"lib/generators/daemon_kit/app/templates/config/environments/production.rb",
|
126
|
-
"lib/generators/daemon_kit/app/templates/config/environments/test.rb",
|
127
|
-
"lib/generators/daemon_kit/app/templates/config/post-daemonize/readme",
|
128
|
-
"lib/generators/daemon_kit/app/templates/config/pre-daemonize/readme",
|
129
|
-
"lib/generators/daemon_kit/app/templates/lib/%app_name%.rb",
|
130
|
-
"lib/generators/daemon_kit/app/templates/libexec/%app_name%-daemon.rb",
|
131
|
-
"lib/generators/daemon_kit/app/templates/script/console",
|
132
|
-
"lib/generators/daemon_kit/app/templates/script/destroy",
|
133
|
-
"lib/generators/daemon_kit/app/templates/script/generate",
|
134
|
-
"lib/generators/daemon_kit/capistrano/capistrano_generator.rb",
|
135
|
-
"lib/generators/daemon_kit/capistrano/templates/Capfile",
|
136
|
-
"lib/generators/daemon_kit/capistrano/templates/USAGE",
|
137
|
-
"lib/generators/daemon_kit/capistrano/templates/config/deploy.rb.tt",
|
138
|
-
"lib/generators/daemon_kit/capistrano/templates/config/deploy/logrotate.erb",
|
139
|
-
"lib/generators/daemon_kit/capistrano/templates/config/deploy/production.rb.tt",
|
140
|
-
"lib/generators/daemon_kit/capistrano/templates/config/deploy/staging.rb.tt",
|
141
|
-
"lib/generators/daemon_kit/capistrano/templates/config/environments/staging.rb",
|
142
|
-
"lib/generators/daemon_kit/cron/USAGE",
|
143
|
-
"lib/generators/daemon_kit/cron/cron_generator.rb",
|
144
|
-
"lib/generators/daemon_kit/cron/templates/config/pre-daemonize/cron.rb",
|
145
|
-
"lib/generators/daemon_kit/cron/templates/libexec/%app_name%-daemon.rb",
|
146
|
-
"lib/generators/daemon_kit/cucumber/USAGE",
|
147
|
-
"lib/generators/daemon_kit/cucumber/cucumber_generator.rb",
|
148
|
-
"lib/generators/daemon_kit/cucumber/templates/config/environments/cucumber.rb",
|
149
|
-
"lib/generators/daemon_kit/cucumber/templates/features/step_definitions/.empty_directory",
|
150
|
-
"lib/generators/daemon_kit/cucumber/templates/features/support/env.rb",
|
151
|
-
"lib/generators/daemon_kit/cucumber/templates/script/cucumber",
|
152
|
-
"lib/generators/daemon_kit/cucumber/templates/tasks/cucumber.rake",
|
153
|
-
"lib/generators/daemon_kit/nanite_agent/USAGE",
|
154
|
-
"lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb",
|
155
|
-
"lib/generators/daemon_kit/nanite_agent/templates/config/nanite.yml",
|
156
|
-
"lib/generators/daemon_kit/nanite_agent/templates/config/pre-daemonize/nanite_agent.rb",
|
157
|
-
"lib/generators/daemon_kit/nanite_agent/templates/lib/actors/sample.rb",
|
158
|
-
"lib/generators/daemon_kit/nanite_agent/templates/libexec/%app_name%-daemon.rb",
|
159
|
-
"lib/generators/daemon_kit/rspec/USAGE",
|
160
|
-
"lib/generators/daemon_kit/rspec/rspec_generator.rb",
|
161
|
-
"lib/generators/daemon_kit/rspec/templates/spec/%app_name%_spec.rb",
|
162
|
-
"lib/generators/daemon_kit/rspec/templates/spec/spec.opts",
|
163
|
-
"lib/generators/daemon_kit/rspec/templates/spec/spec_helper.rb",
|
164
|
-
"lib/generators/daemon_kit/rspec/templates/tasks/rspec.rake",
|
165
|
-
"lib/generators/daemon_kit/ruote/USAGE",
|
166
|
-
"lib/generators/daemon_kit/ruote/ruote_generator.rb",
|
167
|
-
"lib/generators/daemon_kit/ruote/templates/config/amqp.yml",
|
168
|
-
"lib/generators/daemon_kit/ruote/templates/config/pre-daemonize/ruote.rb",
|
169
|
-
"lib/generators/daemon_kit/ruote/templates/config/ruote.yml",
|
170
|
-
"lib/generators/daemon_kit/ruote/templates/lib/%app_name%.rb",
|
171
|
-
"lib/generators/daemon_kit/ruote/templates/lib/sample.rb",
|
172
|
-
"lib/generators/daemon_kit/ruote/templates/libexec/%app_name%-daemon.rb",
|
173
|
-
"lib/generators/daemon_kit/test_unit/USAGE",
|
174
|
-
"lib/generators/daemon_kit/test_unit/templates/tasks/test_unit.rake",
|
175
|
-
"lib/generators/daemon_kit/test_unit/templates/test/%app_name%_test.rb.tt",
|
176
|
-
"lib/generators/daemon_kit/test_unit/templates/test/test_helper.rb",
|
177
|
-
"lib/generators/daemon_kit/test_unit/test_unit_generator.rb",
|
178
|
-
"lib/generators/daemon_kit/xmpp/templates/config/pre-daemonize/xmpp.rb",
|
179
|
-
"lib/generators/daemon_kit/xmpp/templates/config/xmpp.yml",
|
180
|
-
"lib/generators/daemon_kit/xmpp/templates/libexec/%app_name%-daemon.rb",
|
181
|
-
"lib/generators/daemon_kit/xmpp/xmpp_generator.rb",
|
182
|
-
"script/console",
|
183
|
-
"script/destroy",
|
184
|
-
"script/generate",
|
185
|
-
"script/txt2html",
|
186
|
-
"spec/abstract_logger_spec.rb",
|
187
|
-
"spec/argument_spec.rb",
|
188
|
-
"spec/config_spec.rb",
|
189
|
-
"spec/configurable_spec.rb",
|
190
|
-
"spec/daemon_kit_spec.rb",
|
191
|
-
"spec/error_handlers_spec.rb",
|
192
|
-
"spec/fixtures/env.yml",
|
193
|
-
"spec/fixtures/noenv.yml",
|
194
|
-
"spec/initializer_spec.rb",
|
195
|
-
"spec/spec.opts",
|
196
|
-
"spec/spec_helper.rb",
|
197
|
-
"tasks/cucumber.rake",
|
198
|
-
"tasks/rspec.rake",
|
199
|
-
"tasks/tests.rake",
|
200
|
-
"templates/god/god.erb",
|
201
|
-
"templates/monit/monit.erb",
|
202
|
-
"test/test_amqp_generator.rb",
|
203
|
-
"test/test_cron_generator.rb",
|
204
|
-
"test/test_daemon-kit_generator.rb",
|
205
|
-
"test/test_daemon_kit_config.rb",
|
206
|
-
"test/test_deploy_capistrano_generator.rb",
|
207
|
-
"test/test_generator_helper.rb",
|
208
|
-
"test/test_helper.rb",
|
209
|
-
"test/test_nanite_agent_generator.rb",
|
210
|
-
"test/test_ruote_generator.rb",
|
211
|
-
"test/test_test_unit_generator.rb"
|
212
|
-
]
|
213
|
-
s.homepage = %q{http://github.com/kennethkalmer/daemon-kit}
|
214
|
-
s.post_install_message = %q{
|
2
|
+
require File.expand_path('../lib/daemon_kit/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Kenneth Kalmer"]
|
6
|
+
gem.email = ["kenneth.kalmer@gmail.com"]
|
7
|
+
gem.description = %q{daemon-kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.}
|
8
|
+
gem.summary = %q{Opinionated framework for Ruby daemons}
|
9
|
+
gem.homepage = %q{http://github.com/kennethkalmer/daemon-kit}
|
10
|
+
gem.post_install_message = %q{
|
215
11
|
For more information on daemon-kit, see http://kit.rubyforge.org/daemon-kit
|
216
12
|
|
217
13
|
To get started quickly run 'daemon-kit' without any arguments
|
218
14
|
|
219
15
|
|
220
16
|
}
|
221
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
222
|
-
s.require_paths = ["lib"]
|
223
|
-
s.rubygems_version = %q{1.3.7}
|
224
|
-
s.summary = %q{Opinionated framework for Ruby daemons}
|
225
|
-
s.test_files = [
|
226
|
-
"spec/abstract_logger_spec.rb",
|
227
|
-
"spec/argument_spec.rb",
|
228
|
-
"spec/config_spec.rb",
|
229
|
-
"spec/configurable_spec.rb",
|
230
|
-
"spec/daemon_kit_spec.rb",
|
231
|
-
"spec/error_handlers_spec.rb",
|
232
|
-
"spec/initializer_spec.rb",
|
233
|
-
"spec/spec_helper.rb",
|
234
|
-
"test/test_amqp_generator.rb",
|
235
|
-
"test/test_cron_generator.rb",
|
236
|
-
"test/test_daemon-kit_generator.rb",
|
237
|
-
"test/test_daemon_kit_config.rb",
|
238
|
-
"test/test_deploy_capistrano_generator.rb",
|
239
|
-
"test/test_generator_helper.rb",
|
240
|
-
"test/test_helper.rb",
|
241
|
-
"test/test_nanite_agent_generator.rb",
|
242
|
-
"test/test_ruote_generator.rb",
|
243
|
-
"test/test_test_unit_generator.rb"
|
244
|
-
]
|
245
17
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
18
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
gem.files = `git ls-files`.split("\n")
|
20
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
gem.name = "daemon-kit"
|
22
|
+
gem.require_paths = ["lib"]
|
23
|
+
gem.version = DaemonKit.version
|
24
|
+
|
25
|
+
gem.extra_rdoc_files = [
|
26
|
+
"Configuration.txt",
|
27
|
+
"Deployment.txt",
|
28
|
+
"History.txt",
|
29
|
+
"Logging.txt",
|
30
|
+
"PostInstall.txt",
|
31
|
+
"README.rdoc",
|
32
|
+
"RuoteParticipants.txt",
|
33
|
+
"TODO.txt",
|
34
|
+
]
|
35
|
+
|
36
|
+
gem.add_development_dependency(%q<bundler>)
|
37
|
+
gem.add_development_dependency(%q<rake>)
|
38
|
+
gem.add_development_dependency(%q<rdoc>)
|
39
|
+
gem.add_development_dependency(%q<rspec>, ["~> 2.6"])
|
40
|
+
gem.add_development_dependency(%q<cucumber>, ["~> 0.10.0"])
|
41
|
+
gem.add_development_dependency(%q<mocha>, ["~> 0.9.12"])
|
42
|
+
gem.add_development_dependency(%q<SyslogLogger>)
|
43
|
+
gem.add_runtime_dependency(%q<eventmachine>, [">= 0.12.10"])
|
44
|
+
gem.add_runtime_dependency(%q<safely>, [">= 0.3.1"])
|
264
45
|
end
|
265
|
-
|
data/lib/daemon_kit.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "daemon_kit/version"
|
2
|
+
|
1
3
|
# Seems we need to load openssl before em or there are failures all around.
|
2
4
|
# But we need to consider that people might not have ssl in the first place.
|
3
5
|
begin
|
@@ -13,13 +15,11 @@ $LOAD_PATH.unshift( File.dirname(__FILE__).to_absolute_path ) unless
|
|
13
15
|
$LOAD_PATH.include?( File.dirname(__FILE__).to_absolute_path )
|
14
16
|
|
15
17
|
module DaemonKit
|
16
|
-
VERSION = '0.1.8.1'
|
17
18
|
|
18
19
|
autoload :Initializer, 'daemon_kit/initializer'
|
19
20
|
autoload :Application, 'daemon_kit/application'
|
20
21
|
autoload :Arguments, 'daemon_kit/arguments'
|
21
22
|
autoload :Config, 'daemon_kit/config'
|
22
|
-
autoload :Safety, 'daemon_kit/safety'
|
23
23
|
autoload :PidFile, 'daemon_kit/pid_file'
|
24
24
|
autoload :AbstractLogger, 'daemon_kit/abstract_logger'
|
25
25
|
autoload :EM, 'daemon_kit/em'
|