apphunkd 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +18 -0
- data/Rakefile +78 -0
- data/TODO +1 -0
- data/VERSION +1 -0
- data/apphunkd.gemspec +258 -0
- data/bin/apphunkd +4 -0
- data/config/arguments.rb +12 -0
- data/config/boot.rb +68 -0
- data/config/environment.rb +23 -0
- data/config/environments/development.rb +2 -0
- data/config/environments/production.rb +2 -0
- data/config/environments/test.rb +2 -0
- data/config/post-daemonize/readme +5 -0
- data/config/pre-daemonize/readme +12 -0
- data/config/pre-daemonize/requires.rb +2 -0
- data/lib/apphunkd.rb +25 -0
- data/lib/apphunkd/api.rb +5 -0
- data/lib/apphunkd/api/service.rb +27 -0
- data/lib/apphunkd/queue.rb +96 -0
- data/lib/apphunkd/remote.rb +29 -0
- data/lib/apphunkd/remote/result.rb +15 -0
- data/libexec/apphunkd-daemon.rb +13 -0
- data/script/console +3 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/spec/lib/apphunkd/api/service_spec.rb +47 -0
- data/spec/lib/apphunkd/queue_spec.rb +129 -0
- data/spec/lib/apphunkd/remote_spec.rb +61 -0
- data/spec/lib/apphunkd_spec.rb +50 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +13 -0
- data/support/apphunkd.initd +47 -0
- data/support/apphunkd.monitrc +3 -0
- data/tasks/rspec.rake +21 -0
- data/vendor/daemon-kit/Configuration.txt +102 -0
- data/vendor/daemon-kit/Deployment.txt +113 -0
- data/vendor/daemon-kit/History.txt +97 -0
- data/vendor/daemon-kit/Logging.txt +92 -0
- data/vendor/daemon-kit/Manifest.txt +166 -0
- data/vendor/daemon-kit/PostInstall.txt +6 -0
- data/vendor/daemon-kit/README.rdoc +130 -0
- data/vendor/daemon-kit/Rakefile +37 -0
- data/vendor/daemon-kit/RuoteParticipants.txt +113 -0
- data/vendor/daemon-kit/TODO.txt +37 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/USAGE +7 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/daemon_kit_generator.rb +161 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/README +48 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/Rakefile +6 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/bin/daemon.erb +7 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/arguments.rb +12 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/boot.rb +68 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/environment.rb +23 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/development.rb +2 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/production.rb +2 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/test.rb +2 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/post-daemonize/readme +5 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/config/pre-daemonize/readme +12 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/lib/daemon.rb +2 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/libexec/daemon.erb +18 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/script/console +3 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/script/destroy +14 -0
- data/vendor/daemon-kit/app_generators/daemon_kit/templates/script/generate +14 -0
- data/vendor/daemon-kit/bin/daemon_kit +18 -0
- data/vendor/daemon-kit/daemon_generators/amqp/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/amqp/amqp_generator.rb +65 -0
- data/vendor/daemon-kit/daemon_generators/amqp/templates/config/amqp.yml +28 -0
- data/vendor/daemon-kit/daemon_generators/amqp/templates/config/initializers/amqp.rb +7 -0
- data/vendor/daemon-kit/daemon_generators/amqp/templates/libexec/daemon.rb +37 -0
- data/vendor/daemon-kit/daemon_generators/cron/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/cron/cron_generator.rb +64 -0
- data/vendor/daemon-kit/daemon_generators/cron/templates/config/initializers/cron.rb +11 -0
- data/vendor/daemon-kit/daemon_generators/cron/templates/libexec/daemon.rb +43 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/USAGE +11 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/cucumber_generator.rb +38 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber +8 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber.rake +13 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber_environment.rb +2 -0
- data/vendor/daemon-kit/daemon_generators/cucumber/templates/env.rb +7 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/deploy_capistrano_generator.rb +35 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/Capfile +10 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/USAGE +10 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy.rb +53 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy/production.rb +6 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy/staging.rb +6 -0
- data/vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/environments/staging.rb +0 -0
- data/vendor/daemon-kit/daemon_generators/jabber/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/jabber/jabber_generator.rb +65 -0
- data/vendor/daemon-kit/daemon_generators/jabber/templates/config/initializers/jabber.rb +7 -0
- data/vendor/daemon-kit/daemon_generators/jabber/templates/config/jabber.yml +26 -0
- data/vendor/daemon-kit/daemon_generators/jabber/templates/libexec/daemon.rb +27 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/nanite_agent_generator.rb +68 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/templates/config/initializers/nanite_agent.rb +6 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/templates/config/nanite.yml +35 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/templates/lib/actors/sample.rb +11 -0
- data/vendor/daemon-kit/daemon_generators/nanite_agent/templates/libexec/daemon.rb +31 -0
- data/vendor/daemon-kit/daemon_generators/rspec/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/rspec/rspec_generator.rb +55 -0
- data/vendor/daemon-kit/daemon_generators/rspec/templates/spec.rb +11 -0
- data/vendor/daemon-kit/daemon_generators/rspec/templates/spec/spec.opts +1 -0
- data/vendor/daemon-kit/daemon_generators/rspec/templates/spec/spec_helper.rb +21 -0
- data/vendor/daemon-kit/daemon_generators/rspec/templates/tasks/rspec.rake +21 -0
- data/vendor/daemon-kit/daemon_generators/ruote/USAGE +5 -0
- data/vendor/daemon-kit/daemon_generators/ruote/ruote_generator.rb +67 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/config/amqp.yml +30 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/config/initializers/ruote.rb +13 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/config/ruote.yml +23 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/lib/daemon.rb +4 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/lib/sample.rb +26 -0
- data/vendor/daemon-kit/daemon_generators/ruote/templates/libexec/daemon.rb +33 -0
- data/vendor/daemon-kit/lib/daemon_kit.rb +54 -0
- data/vendor/daemon-kit/lib/daemon_kit/abstract_logger.rb +235 -0
- data/vendor/daemon-kit/lib/daemon_kit/amqp.rb +38 -0
- data/vendor/daemon-kit/lib/daemon_kit/application.rb +187 -0
- data/vendor/daemon-kit/lib/daemon_kit/arguments.rb +165 -0
- data/vendor/daemon-kit/lib/daemon_kit/commands/console.rb +38 -0
- data/vendor/daemon-kit/lib/daemon_kit/config.rb +108 -0
- data/vendor/daemon-kit/lib/daemon_kit/console_daemon.rb +2 -0
- data/vendor/daemon-kit/lib/daemon_kit/core_ext.rb +1 -0
- data/vendor/daemon-kit/lib/daemon_kit/core_ext/configurable.rb +96 -0
- data/vendor/daemon-kit/lib/daemon_kit/core_ext/string.rb +22 -0
- data/vendor/daemon-kit/lib/daemon_kit/cron.rb +48 -0
- data/vendor/daemon-kit/lib/daemon_kit/cucumber/world.rb +38 -0
- data/vendor/daemon-kit/lib/daemon_kit/deployment/capistrano.rb +482 -0
- data/vendor/daemon-kit/lib/daemon_kit/em.rb +43 -0
- data/vendor/daemon-kit/lib/daemon_kit/error_handlers/base.rb +32 -0
- data/vendor/daemon-kit/lib/daemon_kit/error_handlers/hoptoad.rb +61 -0
- data/vendor/daemon-kit/lib/daemon_kit/error_handlers/mail.rb +85 -0
- data/vendor/daemon-kit/lib/daemon_kit/exceptions.rb +8 -0
- data/vendor/daemon-kit/lib/daemon_kit/initializer.rb +438 -0
- data/vendor/daemon-kit/lib/daemon_kit/jabber.rb +170 -0
- data/vendor/daemon-kit/lib/daemon_kit/nanite.rb +7 -0
- data/vendor/daemon-kit/lib/daemon_kit/nanite/agent.rb +56 -0
- data/vendor/daemon-kit/lib/daemon_kit/pid_file.rb +61 -0
- data/vendor/daemon-kit/lib/daemon_kit/ruote_participants.rb +119 -0
- data/vendor/daemon-kit/lib/daemon_kit/ruote_pseudo_participant.rb +68 -0
- data/vendor/daemon-kit/lib/daemon_kit/ruote_workitem.rb +169 -0
- data/vendor/daemon-kit/lib/daemon_kit/safety.rb +85 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks.rb +2 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks/environment.rake +10 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks/framework.rake +120 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks/god.rake +62 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks/log.rake +8 -0
- data/vendor/daemon-kit/lib/daemon_kit/tasks/monit.rake +29 -0
- data/vendor/daemon-kit/script/console +10 -0
- data/vendor/daemon-kit/script/destroy +14 -0
- data/vendor/daemon-kit/script/generate +14 -0
- data/vendor/daemon-kit/script/txt2html +71 -0
- data/vendor/daemon-kit/spec/abstract_logger_spec.rb +126 -0
- data/vendor/daemon-kit/spec/argument_spec.rb +70 -0
- data/vendor/daemon-kit/spec/config_spec.rb +79 -0
- data/vendor/daemon-kit/spec/configurable_spec.rb +56 -0
- data/vendor/daemon-kit/spec/daemon_kit_spec.rb +7 -0
- data/vendor/daemon-kit/spec/error_handlers_spec.rb +23 -0
- data/vendor/daemon-kit/spec/fixtures/env.yml +15 -0
- data/vendor/daemon-kit/spec/fixtures/noenv.yml +4 -0
- data/vendor/daemon-kit/spec/initializer_spec.rb +26 -0
- data/vendor/daemon-kit/spec/spec.opts +1 -0
- data/vendor/daemon-kit/spec/spec_helper.rb +27 -0
- data/vendor/daemon-kit/tasks/rspec.rake +21 -0
- data/vendor/daemon-kit/templates/god/god.erb +69 -0
- data/vendor/daemon-kit/templates/monit/monit.erb +14 -0
- data/vendor/daemon-kit/test/test_amqp_generator.rb +48 -0
- data/vendor/daemon-kit/test/test_cron_generator.rb +45 -0
- data/vendor/daemon-kit/test/test_daemon-kit_generator.rb +84 -0
- data/vendor/daemon-kit/test/test_daemon_kit_config.rb +28 -0
- data/vendor/daemon-kit/test/test_deploy_capistrano_generator.rb +48 -0
- data/vendor/daemon-kit/test/test_generator_helper.rb +29 -0
- data/vendor/daemon-kit/test/test_helper.rb +7 -0
- data/vendor/daemon-kit/test/test_jabber_generator.rb +49 -0
- data/vendor/daemon-kit/test/test_nanite_agent_generator.rb +49 -0
- data/vendor/daemon-kit/test/test_ruote_generator.rb +45 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail.rb +5 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/address.rb +426 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/attachments.rb +46 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/base64.rb +46 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/compat.rb +41 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/config.rb +67 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/core_extensions.rb +63 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/encode.rb +581 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/header.rb +960 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/index.rb +9 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/interface.rb +1130 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/loader.rb +3 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mail.rb +578 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mailbox.rb +495 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/main.rb +6 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mbox.rb +3 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/net.rb +248 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/obsolete.rb +132 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/parser.rb +1476 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/port.rb +379 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/quoting.rb +118 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/require_arch.rb +58 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/scanner.rb +49 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/scanner_r.rb +261 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/stringio.rb +280 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/utils.rb +337 -0
- data/vendor/daemon-kit/vendor/tmail-1.2.3/tmail/version.rb +39 -0
- data/vendor/daemon-kit/vendor/tmail.rb +13 -0
- metadata +281 -0
@@ -0,0 +1,337 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 1998-2003 Minero Aoki <aamine@loveruby.net>
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
# a copy of this software and associated documentation files (the
|
6
|
+
# "Software"), to deal in the Software without restriction, including
|
7
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
# the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
#
|
23
|
+
# Note: Originally licensed under LGPL v2+. Using MIT license for Rails
|
24
|
+
# with permission of Minero Aoki.
|
25
|
+
#++
|
26
|
+
|
27
|
+
# = TMail - The EMail Swiss Army Knife for Ruby
|
28
|
+
#
|
29
|
+
# The TMail library provides you with a very complete way to handle and manipulate EMails
|
30
|
+
# from within your Ruby programs.
|
31
|
+
#
|
32
|
+
# Used as the backbone for email handling by the Ruby on Rails and Nitro web frameworks as
|
33
|
+
# well as a bunch of other Ruby apps including the Ruby-Talk mailing list to newsgroup email
|
34
|
+
# gateway, it is a proven and reliable email handler that won't let you down.
|
35
|
+
#
|
36
|
+
# Originally created by Minero Aoki, TMail has been recently picked up by Mikel Lindsaar and
|
37
|
+
# is being actively maintained. Numerous backlogged bug fixes have been applied as well as
|
38
|
+
# Ruby 1.9 compatibility and a swath of documentation to boot.
|
39
|
+
#
|
40
|
+
# TMail allows you to treat an email totally as an object and allow you to get on with your
|
41
|
+
# own programming without having to worry about crafting the perfect email address validation
|
42
|
+
# parser, or assembling an email from all it's component parts.
|
43
|
+
#
|
44
|
+
# TMail handles the most complex part of the email - the header. It generates and parses
|
45
|
+
# headers and provides you with instant access to their innards through simple and logically
|
46
|
+
# named accessor and setter methods.
|
47
|
+
#
|
48
|
+
# TMail also provides a wrapper to Net/SMTP as well as Unix Mailbox handling methods to
|
49
|
+
# directly read emails from your unix mailbox, parse them and use them.
|
50
|
+
#
|
51
|
+
# Following is the comprehensive list of methods to access TMail::Mail objects. You can also
|
52
|
+
# check out TMail::Mail, TMail::Address and TMail::Headers for other lists.
|
53
|
+
module TMail
|
54
|
+
|
55
|
+
# Provides an exception to throw on errors in Syntax within TMail's parsers
|
56
|
+
class SyntaxError < StandardError; end
|
57
|
+
|
58
|
+
# Provides a new email boundary to separate parts of the email. This is a random
|
59
|
+
# string based off the current time, so should be fairly unique.
|
60
|
+
#
|
61
|
+
# For Example:
|
62
|
+
#
|
63
|
+
# TMail.new_boundary
|
64
|
+
# #=> "mimepart_47bf656968207_25a8fbb80114"
|
65
|
+
# TMail.new_boundary
|
66
|
+
# #=> "mimepart_47bf66051de4_25a8fbb80240"
|
67
|
+
def TMail.new_boundary
|
68
|
+
'mimepart_' + random_tag
|
69
|
+
end
|
70
|
+
|
71
|
+
# Provides a new email message ID. You can use this to generate unique email message
|
72
|
+
# id's for your email so you can track them.
|
73
|
+
#
|
74
|
+
# Optionally takes a fully qualified domain name (default to the current hostname
|
75
|
+
# returned by Socket.gethostname) that will be appended to the message ID.
|
76
|
+
#
|
77
|
+
# For Example:
|
78
|
+
#
|
79
|
+
# email.message_id = TMail.new_message_id
|
80
|
+
# #=> "<47bf66845380e_25a8fbb80332@baci.local.tmail>"
|
81
|
+
# email.to_s
|
82
|
+
# #=> "Message-Id: <47bf668b633f1_25a8fbb80475@baci.local.tmail>\n\n"
|
83
|
+
# email.message_id = TMail.new_message_id("lindsaar.net")
|
84
|
+
# #=> "<47bf668b633f1_25a8fbb80475@lindsaar.net.tmail>"
|
85
|
+
# email.to_s
|
86
|
+
# #=> "Message-Id: <47bf668b633f1_25a8fbb80475@lindsaar.net.tmail>\n\n"
|
87
|
+
def TMail.new_message_id( fqdn = nil )
|
88
|
+
fqdn ||= ::Socket.gethostname
|
89
|
+
"<#{random_tag()}@#{fqdn}.tmail>"
|
90
|
+
end
|
91
|
+
|
92
|
+
#:stopdoc:
|
93
|
+
def TMail.random_tag #:nodoc:
|
94
|
+
@uniq += 1
|
95
|
+
t = Time.now
|
96
|
+
sprintf('%x%x_%x%x%d%x',
|
97
|
+
t.to_i, t.tv_usec,
|
98
|
+
$$, Thread.current.object_id, @uniq, rand(255))
|
99
|
+
end
|
100
|
+
private_class_method :random_tag
|
101
|
+
|
102
|
+
@uniq = 0
|
103
|
+
|
104
|
+
#:startdoc:
|
105
|
+
|
106
|
+
# Text Utils provides a namespace to define TOKENs, ATOMs, PHRASEs and CONTROL characters that
|
107
|
+
# are OK per RFC 2822.
|
108
|
+
#
|
109
|
+
# It also provides methods you can call to determine if a string is safe
|
110
|
+
module TextUtils
|
111
|
+
|
112
|
+
aspecial = %Q|()<>[]:;.\\,"|
|
113
|
+
tspecial = %Q|()<>[];:\\,"/?=|
|
114
|
+
lwsp = %Q| \t\r\n|
|
115
|
+
control = %Q|\x00-\x1f\x7f-\xff|
|
116
|
+
|
117
|
+
CONTROL_CHAR = /[#{control}]/n
|
118
|
+
ATOM_UNSAFE = /[#{Regexp.quote aspecial}#{control}#{lwsp}]/n
|
119
|
+
PHRASE_UNSAFE = /[#{Regexp.quote aspecial}#{control}]/n
|
120
|
+
TOKEN_UNSAFE = /[#{Regexp.quote tspecial}#{control}#{lwsp}]/n
|
121
|
+
|
122
|
+
# Returns true if the string supplied is free from characters not allowed as an ATOM
|
123
|
+
def atom_safe?( str )
|
124
|
+
not ATOM_UNSAFE === str
|
125
|
+
end
|
126
|
+
|
127
|
+
# If the string supplied has ATOM unsafe characters in it, will return the string quoted
|
128
|
+
# in double quotes, otherwise returns the string unmodified
|
129
|
+
def quote_atom( str )
|
130
|
+
(ATOM_UNSAFE === str) ? dquote(str) : str
|
131
|
+
end
|
132
|
+
|
133
|
+
# If the string supplied has PHRASE unsafe characters in it, will return the string quoted
|
134
|
+
# in double quotes, otherwise returns the string unmodified
|
135
|
+
def quote_phrase( str )
|
136
|
+
(PHRASE_UNSAFE === str) ? dquote(str) : str
|
137
|
+
end
|
138
|
+
|
139
|
+
# Returns true if the string supplied is free from characters not allowed as a TOKEN
|
140
|
+
def token_safe?( str )
|
141
|
+
not TOKEN_UNSAFE === str
|
142
|
+
end
|
143
|
+
|
144
|
+
# If the string supplied has TOKEN unsafe characters in it, will return the string quoted
|
145
|
+
# in double quotes, otherwise returns the string unmodified
|
146
|
+
def quote_token( str )
|
147
|
+
(TOKEN_UNSAFE === str) ? dquote(str) : str
|
148
|
+
end
|
149
|
+
|
150
|
+
# Wraps supplied string in double quotes unless it is already wrapped
|
151
|
+
# Returns double quoted string
|
152
|
+
def dquote( str ) #:nodoc:
|
153
|
+
unless str =~ /^".*?"$/
|
154
|
+
'"' + str.gsub(/["\\]/n) {|s| '\\' + s } + '"'
|
155
|
+
else
|
156
|
+
str
|
157
|
+
end
|
158
|
+
end
|
159
|
+
private :dquote
|
160
|
+
|
161
|
+
# Unwraps supplied string from inside double quotes
|
162
|
+
# Returns unquoted string
|
163
|
+
def unquote( str )
|
164
|
+
str =~ /^"(.*?)"$/ ? $1 : str
|
165
|
+
end
|
166
|
+
|
167
|
+
# Provides a method to join a domain name by it's parts and also makes it
|
168
|
+
# ATOM safe by quoting it as needed
|
169
|
+
def join_domain( arr )
|
170
|
+
arr.map {|i|
|
171
|
+
if /\A\[.*\]\z/ === i
|
172
|
+
i
|
173
|
+
else
|
174
|
+
quote_atom(i)
|
175
|
+
end
|
176
|
+
}.join('.')
|
177
|
+
end
|
178
|
+
|
179
|
+
#:stopdoc:
|
180
|
+
ZONESTR_TABLE = {
|
181
|
+
'jst' => 9 * 60,
|
182
|
+
'eet' => 2 * 60,
|
183
|
+
'bst' => 1 * 60,
|
184
|
+
'met' => 1 * 60,
|
185
|
+
'gmt' => 0,
|
186
|
+
'utc' => 0,
|
187
|
+
'ut' => 0,
|
188
|
+
'nst' => -(3 * 60 + 30),
|
189
|
+
'ast' => -4 * 60,
|
190
|
+
'edt' => -4 * 60,
|
191
|
+
'est' => -5 * 60,
|
192
|
+
'cdt' => -5 * 60,
|
193
|
+
'cst' => -6 * 60,
|
194
|
+
'mdt' => -6 * 60,
|
195
|
+
'mst' => -7 * 60,
|
196
|
+
'pdt' => -7 * 60,
|
197
|
+
'pst' => -8 * 60,
|
198
|
+
'a' => -1 * 60,
|
199
|
+
'b' => -2 * 60,
|
200
|
+
'c' => -3 * 60,
|
201
|
+
'd' => -4 * 60,
|
202
|
+
'e' => -5 * 60,
|
203
|
+
'f' => -6 * 60,
|
204
|
+
'g' => -7 * 60,
|
205
|
+
'h' => -8 * 60,
|
206
|
+
'i' => -9 * 60,
|
207
|
+
# j not use
|
208
|
+
'k' => -10 * 60,
|
209
|
+
'l' => -11 * 60,
|
210
|
+
'm' => -12 * 60,
|
211
|
+
'n' => 1 * 60,
|
212
|
+
'o' => 2 * 60,
|
213
|
+
'p' => 3 * 60,
|
214
|
+
'q' => 4 * 60,
|
215
|
+
'r' => 5 * 60,
|
216
|
+
's' => 6 * 60,
|
217
|
+
't' => 7 * 60,
|
218
|
+
'u' => 8 * 60,
|
219
|
+
'v' => 9 * 60,
|
220
|
+
'w' => 10 * 60,
|
221
|
+
'x' => 11 * 60,
|
222
|
+
'y' => 12 * 60,
|
223
|
+
'z' => 0 * 60
|
224
|
+
}
|
225
|
+
#:startdoc:
|
226
|
+
|
227
|
+
# Takes a time zone string from an EMail and converts it to Unix Time (seconds)
|
228
|
+
def timezone_string_to_unixtime( str )
|
229
|
+
if m = /([\+\-])(\d\d?)(\d\d)/.match(str)
|
230
|
+
sec = (m[2].to_i * 60 + m[3].to_i) * 60
|
231
|
+
m[1] == '-' ? -sec : sec
|
232
|
+
else
|
233
|
+
min = ZONESTR_TABLE[str.downcase] or
|
234
|
+
raise SyntaxError, "wrong timezone format '#{str}'"
|
235
|
+
min * 60
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
#:stopdoc:
|
240
|
+
WDAY = %w( Sun Mon Tue Wed Thu Fri Sat TMailBUG )
|
241
|
+
MONTH = %w( TMailBUG Jan Feb Mar Apr May Jun
|
242
|
+
Jul Aug Sep Oct Nov Dec TMailBUG )
|
243
|
+
|
244
|
+
def time2str( tm )
|
245
|
+
# [ruby-list:7928]
|
246
|
+
gmt = Time.at(tm.to_i)
|
247
|
+
gmt.gmtime
|
248
|
+
offset = tm.to_i - Time.local(*gmt.to_a[0,6].reverse).to_i
|
249
|
+
|
250
|
+
# DO NOT USE strftime: setlocale() breaks it
|
251
|
+
sprintf '%s, %s %s %d %02d:%02d:%02d %+.2d%.2d',
|
252
|
+
WDAY[tm.wday], tm.mday, MONTH[tm.month],
|
253
|
+
tm.year, tm.hour, tm.min, tm.sec,
|
254
|
+
*(offset / 60).divmod(60)
|
255
|
+
end
|
256
|
+
|
257
|
+
|
258
|
+
MESSAGE_ID = /<[^\@>]+\@[^>\@]+>/
|
259
|
+
|
260
|
+
def message_id?( str )
|
261
|
+
MESSAGE_ID === str
|
262
|
+
end
|
263
|
+
|
264
|
+
|
265
|
+
MIME_ENCODED = /=\?[^\s?=]+\?[QB]\?[^\s?=]+\?=/i
|
266
|
+
|
267
|
+
def mime_encoded?( str )
|
268
|
+
MIME_ENCODED === str
|
269
|
+
end
|
270
|
+
|
271
|
+
|
272
|
+
def decode_params( hash )
|
273
|
+
new = Hash.new
|
274
|
+
encoded = nil
|
275
|
+
hash.each do |key, value|
|
276
|
+
if m = /\*(?:(\d+)\*)?\z/.match(key)
|
277
|
+
((encoded ||= {})[m.pre_match] ||= [])[(m[1] || 0).to_i] = value
|
278
|
+
else
|
279
|
+
new[key] = to_kcode(value)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
if encoded
|
283
|
+
encoded.each do |key, strings|
|
284
|
+
new[key] = decode_RFC2231(strings.join(''))
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
new
|
289
|
+
end
|
290
|
+
|
291
|
+
NKF_FLAGS = {
|
292
|
+
'EUC' => '-e -m',
|
293
|
+
'SJIS' => '-s -m'
|
294
|
+
}
|
295
|
+
|
296
|
+
def to_kcode( str )
|
297
|
+
flag = NKF_FLAGS[TMail.KCODE] or return str
|
298
|
+
NKF.nkf(flag, str)
|
299
|
+
end
|
300
|
+
|
301
|
+
RFC2231_ENCODED = /\A(?:iso-2022-jp|euc-jp|shift_jis|us-ascii)?'[a-z]*'/in
|
302
|
+
|
303
|
+
def decode_RFC2231( str )
|
304
|
+
m = RFC2231_ENCODED.match(str) or return str
|
305
|
+
begin
|
306
|
+
to_kcode(m.post_match.gsub(/%[\da-f]{2}/in) {|s| s[1,2].hex.chr })
|
307
|
+
rescue
|
308
|
+
m.post_match.gsub(/%[\da-f]{2}/in, "")
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
def quote_boundary
|
313
|
+
# Make sure the Content-Type boundary= parameter is quoted if it contains illegal characters
|
314
|
+
# (to ensure any special characters in the boundary text are escaped from the parser
|
315
|
+
# (such as = in MS Outlook's boundary text))
|
316
|
+
if @body =~ /^(.*)boundary=(.*)$/m
|
317
|
+
preamble = $1
|
318
|
+
remainder = $2
|
319
|
+
if remainder =~ /;/
|
320
|
+
remainder =~ /^(.*?)(;.*)$/m
|
321
|
+
boundary_text = $1
|
322
|
+
post = $2.chomp
|
323
|
+
else
|
324
|
+
boundary_text = remainder.chomp
|
325
|
+
end
|
326
|
+
if boundary_text =~ /[\/\?\=]/
|
327
|
+
boundary_text = "\"#{boundary_text}\"" unless boundary_text =~ /^".*?"$/
|
328
|
+
@body = "#{preamble}boundary=#{boundary_text}#{post}"
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|
332
|
+
#:startdoc:
|
333
|
+
|
334
|
+
|
335
|
+
end
|
336
|
+
|
337
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#
|
2
|
+
# version.rb
|
3
|
+
#
|
4
|
+
#--
|
5
|
+
# Copyright (c) 1998-2003 Minero Aoki <aamine@loveruby.net>
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
#
|
26
|
+
# Note: Originally licensed under LGPL v2+. Using MIT license for Rails
|
27
|
+
# with permission of Minero Aoki.
|
28
|
+
#++
|
29
|
+
|
30
|
+
#:stopdoc:
|
31
|
+
module TMail
|
32
|
+
module VERSION
|
33
|
+
MAJOR = 1
|
34
|
+
MINOR = 2
|
35
|
+
TINY = 3
|
36
|
+
|
37
|
+
STRING = [MAJOR, MINOR, TINY].join('.')
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,281 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: apphunkd
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andreas Wolff
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-11-17 00:00:00 +01:00
|
13
|
+
default_executable: apphunkd
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.9
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: yard
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
description: "\n Apphunkd is a ruby based daemon that runs on your application-servers and acts as local proxy between your apps and apphunk.com.\n It collects, queues and delivers message to the Apphunk remote-logging-service.\n "
|
36
|
+
email: andreas@apphunk.com
|
37
|
+
executables:
|
38
|
+
- apphunkd
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE
|
43
|
+
- README.rdoc
|
44
|
+
files:
|
45
|
+
- .document
|
46
|
+
- .gitignore
|
47
|
+
- LICENSE
|
48
|
+
- README.rdoc
|
49
|
+
- Rakefile
|
50
|
+
- TODO
|
51
|
+
- VERSION
|
52
|
+
- apphunkd.gemspec
|
53
|
+
- bin/apphunkd
|
54
|
+
- config/arguments.rb
|
55
|
+
- config/boot.rb
|
56
|
+
- config/environment.rb
|
57
|
+
- config/environments/development.rb
|
58
|
+
- config/environments/production.rb
|
59
|
+
- config/environments/test.rb
|
60
|
+
- config/post-daemonize/readme
|
61
|
+
- config/pre-daemonize/readme
|
62
|
+
- config/pre-daemonize/requires.rb
|
63
|
+
- lib/apphunkd.rb
|
64
|
+
- lib/apphunkd/api.rb
|
65
|
+
- lib/apphunkd/api/service.rb
|
66
|
+
- lib/apphunkd/queue.rb
|
67
|
+
- lib/apphunkd/remote.rb
|
68
|
+
- lib/apphunkd/remote/result.rb
|
69
|
+
- libexec/apphunkd-daemon.rb
|
70
|
+
- script/console
|
71
|
+
- script/destroy
|
72
|
+
- script/generate
|
73
|
+
- spec/lib/apphunkd/api/service_spec.rb
|
74
|
+
- spec/lib/apphunkd/queue_spec.rb
|
75
|
+
- spec/lib/apphunkd/remote_spec.rb
|
76
|
+
- spec/lib/apphunkd_spec.rb
|
77
|
+
- spec/spec.opts
|
78
|
+
- spec/spec_helper.rb
|
79
|
+
- support/apphunkd.initd
|
80
|
+
- support/apphunkd.monitrc
|
81
|
+
- tasks/rspec.rake
|
82
|
+
- vendor/daemon-kit/Configuration.txt
|
83
|
+
- vendor/daemon-kit/Deployment.txt
|
84
|
+
- vendor/daemon-kit/History.txt
|
85
|
+
- vendor/daemon-kit/Logging.txt
|
86
|
+
- vendor/daemon-kit/Manifest.txt
|
87
|
+
- vendor/daemon-kit/PostInstall.txt
|
88
|
+
- vendor/daemon-kit/README.rdoc
|
89
|
+
- vendor/daemon-kit/Rakefile
|
90
|
+
- vendor/daemon-kit/RuoteParticipants.txt
|
91
|
+
- vendor/daemon-kit/TODO.txt
|
92
|
+
- vendor/daemon-kit/app_generators/daemon_kit/USAGE
|
93
|
+
- vendor/daemon-kit/app_generators/daemon_kit/daemon_kit_generator.rb
|
94
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/README
|
95
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/Rakefile
|
96
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/bin/daemon.erb
|
97
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/arguments.rb
|
98
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/boot.rb
|
99
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/environment.rb
|
100
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/development.rb
|
101
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/production.rb
|
102
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/environments/test.rb
|
103
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/post-daemonize/readme
|
104
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/config/pre-daemonize/readme
|
105
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/lib/daemon.rb
|
106
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/libexec/daemon.erb
|
107
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/script/console
|
108
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/script/destroy
|
109
|
+
- vendor/daemon-kit/app_generators/daemon_kit/templates/script/generate
|
110
|
+
- vendor/daemon-kit/bin/daemon_kit
|
111
|
+
- vendor/daemon-kit/daemon_generators/amqp/USAGE
|
112
|
+
- vendor/daemon-kit/daemon_generators/amqp/amqp_generator.rb
|
113
|
+
- vendor/daemon-kit/daemon_generators/amqp/templates/config/amqp.yml
|
114
|
+
- vendor/daemon-kit/daemon_generators/amqp/templates/config/initializers/amqp.rb
|
115
|
+
- vendor/daemon-kit/daemon_generators/amqp/templates/libexec/daemon.rb
|
116
|
+
- vendor/daemon-kit/daemon_generators/cron/USAGE
|
117
|
+
- vendor/daemon-kit/daemon_generators/cron/cron_generator.rb
|
118
|
+
- vendor/daemon-kit/daemon_generators/cron/templates/config/initializers/cron.rb
|
119
|
+
- vendor/daemon-kit/daemon_generators/cron/templates/libexec/daemon.rb
|
120
|
+
- vendor/daemon-kit/daemon_generators/cucumber/USAGE
|
121
|
+
- vendor/daemon-kit/daemon_generators/cucumber/cucumber_generator.rb
|
122
|
+
- vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber
|
123
|
+
- vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber.rake
|
124
|
+
- vendor/daemon-kit/daemon_generators/cucumber/templates/cucumber_environment.rb
|
125
|
+
- vendor/daemon-kit/daemon_generators/cucumber/templates/env.rb
|
126
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/deploy_capistrano_generator.rb
|
127
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/Capfile
|
128
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/USAGE
|
129
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy.rb
|
130
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy/production.rb
|
131
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/deploy/staging.rb
|
132
|
+
- vendor/daemon-kit/daemon_generators/deploy_capistrano/templates/config/environments/staging.rb
|
133
|
+
- vendor/daemon-kit/daemon_generators/jabber/USAGE
|
134
|
+
- vendor/daemon-kit/daemon_generators/jabber/jabber_generator.rb
|
135
|
+
- vendor/daemon-kit/daemon_generators/jabber/templates/config/initializers/jabber.rb
|
136
|
+
- vendor/daemon-kit/daemon_generators/jabber/templates/config/jabber.yml
|
137
|
+
- vendor/daemon-kit/daemon_generators/jabber/templates/libexec/daemon.rb
|
138
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/USAGE
|
139
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/nanite_agent_generator.rb
|
140
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/templates/config/initializers/nanite_agent.rb
|
141
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/templates/config/nanite.yml
|
142
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/templates/lib/actors/sample.rb
|
143
|
+
- vendor/daemon-kit/daemon_generators/nanite_agent/templates/libexec/daemon.rb
|
144
|
+
- vendor/daemon-kit/daemon_generators/rspec/USAGE
|
145
|
+
- vendor/daemon-kit/daemon_generators/rspec/rspec_generator.rb
|
146
|
+
- vendor/daemon-kit/daemon_generators/rspec/templates/spec.rb
|
147
|
+
- vendor/daemon-kit/daemon_generators/rspec/templates/spec/spec.opts
|
148
|
+
- vendor/daemon-kit/daemon_generators/rspec/templates/spec/spec_helper.rb
|
149
|
+
- vendor/daemon-kit/daemon_generators/rspec/templates/tasks/rspec.rake
|
150
|
+
- vendor/daemon-kit/daemon_generators/ruote/USAGE
|
151
|
+
- vendor/daemon-kit/daemon_generators/ruote/ruote_generator.rb
|
152
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/config/amqp.yml
|
153
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/config/initializers/ruote.rb
|
154
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/config/ruote.yml
|
155
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/lib/daemon.rb
|
156
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/lib/sample.rb
|
157
|
+
- vendor/daemon-kit/daemon_generators/ruote/templates/libexec/daemon.rb
|
158
|
+
- vendor/daemon-kit/lib/daemon_kit.rb
|
159
|
+
- vendor/daemon-kit/lib/daemon_kit/abstract_logger.rb
|
160
|
+
- vendor/daemon-kit/lib/daemon_kit/amqp.rb
|
161
|
+
- vendor/daemon-kit/lib/daemon_kit/application.rb
|
162
|
+
- vendor/daemon-kit/lib/daemon_kit/arguments.rb
|
163
|
+
- vendor/daemon-kit/lib/daemon_kit/commands/console.rb
|
164
|
+
- vendor/daemon-kit/lib/daemon_kit/config.rb
|
165
|
+
- vendor/daemon-kit/lib/daemon_kit/console_daemon.rb
|
166
|
+
- vendor/daemon-kit/lib/daemon_kit/core_ext.rb
|
167
|
+
- vendor/daemon-kit/lib/daemon_kit/core_ext/configurable.rb
|
168
|
+
- vendor/daemon-kit/lib/daemon_kit/core_ext/string.rb
|
169
|
+
- vendor/daemon-kit/lib/daemon_kit/cron.rb
|
170
|
+
- vendor/daemon-kit/lib/daemon_kit/cucumber/world.rb
|
171
|
+
- vendor/daemon-kit/lib/daemon_kit/deployment/capistrano.rb
|
172
|
+
- vendor/daemon-kit/lib/daemon_kit/em.rb
|
173
|
+
- vendor/daemon-kit/lib/daemon_kit/error_handlers/base.rb
|
174
|
+
- vendor/daemon-kit/lib/daemon_kit/error_handlers/hoptoad.rb
|
175
|
+
- vendor/daemon-kit/lib/daemon_kit/error_handlers/mail.rb
|
176
|
+
- vendor/daemon-kit/lib/daemon_kit/exceptions.rb
|
177
|
+
- vendor/daemon-kit/lib/daemon_kit/initializer.rb
|
178
|
+
- vendor/daemon-kit/lib/daemon_kit/jabber.rb
|
179
|
+
- vendor/daemon-kit/lib/daemon_kit/nanite.rb
|
180
|
+
- vendor/daemon-kit/lib/daemon_kit/nanite/agent.rb
|
181
|
+
- vendor/daemon-kit/lib/daemon_kit/pid_file.rb
|
182
|
+
- vendor/daemon-kit/lib/daemon_kit/ruote_participants.rb
|
183
|
+
- vendor/daemon-kit/lib/daemon_kit/ruote_pseudo_participant.rb
|
184
|
+
- vendor/daemon-kit/lib/daemon_kit/ruote_workitem.rb
|
185
|
+
- vendor/daemon-kit/lib/daemon_kit/safety.rb
|
186
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks.rb
|
187
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks/environment.rake
|
188
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks/framework.rake
|
189
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks/god.rake
|
190
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks/log.rake
|
191
|
+
- vendor/daemon-kit/lib/daemon_kit/tasks/monit.rake
|
192
|
+
- vendor/daemon-kit/script/console
|
193
|
+
- vendor/daemon-kit/script/destroy
|
194
|
+
- vendor/daemon-kit/script/generate
|
195
|
+
- vendor/daemon-kit/script/txt2html
|
196
|
+
- vendor/daemon-kit/spec/abstract_logger_spec.rb
|
197
|
+
- vendor/daemon-kit/spec/argument_spec.rb
|
198
|
+
- vendor/daemon-kit/spec/config_spec.rb
|
199
|
+
- vendor/daemon-kit/spec/configurable_spec.rb
|
200
|
+
- vendor/daemon-kit/spec/daemon_kit_spec.rb
|
201
|
+
- vendor/daemon-kit/spec/error_handlers_spec.rb
|
202
|
+
- vendor/daemon-kit/spec/fixtures/env.yml
|
203
|
+
- vendor/daemon-kit/spec/fixtures/noenv.yml
|
204
|
+
- vendor/daemon-kit/spec/initializer_spec.rb
|
205
|
+
- vendor/daemon-kit/spec/spec.opts
|
206
|
+
- vendor/daemon-kit/spec/spec_helper.rb
|
207
|
+
- vendor/daemon-kit/tasks/rspec.rake
|
208
|
+
- vendor/daemon-kit/templates/god/god.erb
|
209
|
+
- vendor/daemon-kit/templates/monit/monit.erb
|
210
|
+
- vendor/daemon-kit/test/test_amqp_generator.rb
|
211
|
+
- vendor/daemon-kit/test/test_cron_generator.rb
|
212
|
+
- vendor/daemon-kit/test/test_daemon-kit_generator.rb
|
213
|
+
- vendor/daemon-kit/test/test_daemon_kit_config.rb
|
214
|
+
- vendor/daemon-kit/test/test_deploy_capistrano_generator.rb
|
215
|
+
- vendor/daemon-kit/test/test_generator_helper.rb
|
216
|
+
- vendor/daemon-kit/test/test_helper.rb
|
217
|
+
- vendor/daemon-kit/test/test_jabber_generator.rb
|
218
|
+
- vendor/daemon-kit/test/test_nanite_agent_generator.rb
|
219
|
+
- vendor/daemon-kit/test/test_ruote_generator.rb
|
220
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail.rb
|
221
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/address.rb
|
222
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/attachments.rb
|
223
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/base64.rb
|
224
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/compat.rb
|
225
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/config.rb
|
226
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/core_extensions.rb
|
227
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/encode.rb
|
228
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/header.rb
|
229
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/index.rb
|
230
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/interface.rb
|
231
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/loader.rb
|
232
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mail.rb
|
233
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mailbox.rb
|
234
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/main.rb
|
235
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/mbox.rb
|
236
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/net.rb
|
237
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/obsolete.rb
|
238
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/parser.rb
|
239
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/port.rb
|
240
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/quoting.rb
|
241
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/require_arch.rb
|
242
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/scanner.rb
|
243
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/scanner_r.rb
|
244
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/stringio.rb
|
245
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/utils.rb
|
246
|
+
- vendor/daemon-kit/vendor/tmail-1.2.3/tmail/version.rb
|
247
|
+
- vendor/daemon-kit/vendor/tmail.rb
|
248
|
+
has_rdoc: true
|
249
|
+
homepage: http://apphunk.com
|
250
|
+
licenses: []
|
251
|
+
|
252
|
+
post_install_message:
|
253
|
+
rdoc_options:
|
254
|
+
- --charset=UTF-8
|
255
|
+
require_paths:
|
256
|
+
- lib
|
257
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - ">="
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: "0"
|
262
|
+
version:
|
263
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
264
|
+
requirements:
|
265
|
+
- - ">="
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: "0"
|
268
|
+
version:
|
269
|
+
requirements: []
|
270
|
+
|
271
|
+
rubyforge_project:
|
272
|
+
rubygems_version: 1.3.5
|
273
|
+
signing_key:
|
274
|
+
specification_version: 3
|
275
|
+
summary: A daemon that acts as local proxy between your applications and the apphunk.com remote logging service.
|
276
|
+
test_files:
|
277
|
+
- spec/lib/apphunkd/api/service_spec.rb
|
278
|
+
- spec/lib/apphunkd/queue_spec.rb
|
279
|
+
- spec/lib/apphunkd/remote_spec.rb
|
280
|
+
- spec/lib/apphunkd_spec.rb
|
281
|
+
- spec/spec_helper.rb
|