kennethkalmer-daemon-kit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,12 +39,28 @@ module DaemonKit
|
|
39
39
|
|
40
40
|
class GemBoot < Boot
|
41
41
|
def load_initializer
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
42
|
+
begin
|
43
|
+
require 'rubygems'
|
44
|
+
gem 'kennethkalmer-daemon-kit'
|
45
|
+
require 'daemon_kit/initializer'
|
46
|
+
rescue Gem::LoadError
|
47
|
+
begin
|
48
|
+
gem 'daemon-kit'
|
49
|
+
require 'daemon_kit/initializer'
|
50
|
+
rescue Gem::LoadError => e
|
51
|
+
msg = <<EOF
|
52
|
+
You are missing the daemon-kit gem. Please install one of the following gems:
|
53
|
+
|
54
|
+
* Unstable - sudo gem install kennethkalmer-daemon-kit -s http://gems.github.com/
|
55
|
+
* Stable - sudo gem install daemon-kit
|
56
|
+
|
57
|
+
NOTE: The 'unstable' gem is loaded first, before falling back to the stable gem!
|
58
|
+
|
59
|
+
EOF
|
60
|
+
$stderr.puts msg
|
61
|
+
exit 1
|
62
|
+
end
|
63
|
+
end
|
48
64
|
end
|
49
65
|
end
|
50
66
|
end
|
data/lib/daemon_kit.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kennethkalmer-daemon-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenneth Kalmer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-29 00:00:00 -07:00
|
13
13
|
default_executable: daemon_kit
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|