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
- require 'rubygems'
43
- gem 'daemon-kit'
44
- require 'daemon_kit/initializer'
45
- rescue Gem::LoadError => e
46
- $stderr.puts %(Missing the daemon-kit gem. Please 'gem install daemon_kit')
47
- exit 1
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
@@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'rubygems'
5
5
 
6
6
  module DaemonKit
7
- VERSION = '0.1.2'
7
+ VERSION = '0.1.3'
8
8
 
9
9
  autoload :Initializer, 'daemon_kit/initializer'
10
10
  autoload :Application, 'daemon_kit/application'
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.2
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-28 00:00:00 -07:00
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