daemon-kit 0.1.7.11 → 0.1.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- == 0.2 (WIP)
1
+ == 0.1.7.12 2009-12-04
2
+
3
+ * Bug fix, don't load environment files twice [grockit]
4
+
5
+ == 0.1.7.11 2009-11-30
2
6
 
3
7
  * Renamed 'daemon_kit' executable to 'daemon-kit'
4
8
  * Fixed some broken links in README.rdoc
data/daemon-kit.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{daemon-kit}
8
- s.version = "0.1.7.11"
8
+ s.version = "0.1.7.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kenneth.kalmer@gmail.com"]
12
- s.date = %q{2009-11-30}
12
+ s.date = %q{2009-12-04}
13
13
  s.default_executable = %q{daemon-kit}
14
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
15
  s.email = %q{kenneth.kalmer@gmail.com}
data/lib/daemon_kit.rb CHANGED
@@ -18,7 +18,7 @@ $:.unshift( File.dirname(__FILE__).to_absolute_path ) unless
18
18
  $:.include?( File.dirname(__FILE__).to_absolute_path )
19
19
 
20
20
  module DaemonKit
21
- VERSION = '0.1.7.11'
21
+ VERSION = '0.1.7.12'
22
22
 
23
23
  autoload :Initializer, 'daemon_kit/initializer'
24
24
  autoload :Application, 'daemon_kit/application'
@@ -137,8 +137,9 @@ module DaemonKit
137
137
  end
138
138
 
139
139
  def load_environment
140
- return if @environment_loaded
141
- @environment_loaded = true
140
+ # Needs to be global to prevent loading the files twice
141
+ return if $_daemon_environment_loaded
142
+ $_daemon_environment_loaded = true
142
143
 
143
144
  config = configuration
144
145
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.11
4
+ version: 0.1.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - kenneth.kalmer@gmail.com
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-30 00:00:00 +02:00
12
+ date: 2009-12-04 00:00:00 +02:00
13
13
  default_executable: daemon-kit
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency