djinn 0.1.5 → 0.1.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -1,54 +1,51 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{djinn}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Craig Paterson"]
12
- s.date = %q{2010-10-13}
12
+ s.date = %q{2011-02-25}
13
13
  s.description = %q{Helper for creating simple custom daemons}
14
14
  s.email = %q{darksavant@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc",
18
- "README.rdoc.old"
17
+ "README.rdoc",
18
+ "README.rdoc.old"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "README.rdoc.old",
26
- "Rakefile",
27
- "VERSION",
28
- "djinn.gemspec",
29
- "lib/djinn.rb",
30
- "lib/djinn/base.rb",
31
- "lib/djinn/base/dsl.rb",
32
- "lib/djinn/base/logging.rb",
33
- "lib/djinn/base/pid_file.rb",
34
- "lib/djinn/base/tonic.rb",
35
- "lib/djinn/rails.rb",
36
- "lib/djinn/rails/handlers.rb",
37
- "test/helper.rb",
38
- "test/test_djinn.rb"
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "README.rdoc.old",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "djinn.gemspec",
28
+ "lib/djinn.rb",
29
+ "lib/djinn/base.rb",
30
+ "lib/djinn/base/dsl.rb",
31
+ "lib/djinn/base/logging.rb",
32
+ "lib/djinn/base/pid_file.rb",
33
+ "lib/djinn/base/tonic.rb",
34
+ "lib/djinn/rails.rb",
35
+ "lib/djinn/rails/handlers.rb",
36
+ "test/helper.rb",
37
+ "test/test_djinn.rb"
39
38
  ]
40
39
  s.homepage = %q{http://github.com/craigp/djinn}
41
- s.rdoc_options = ["--charset=UTF-8"]
42
40
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.3.7}
41
+ s.rubygems_version = %q{1.5.0}
44
42
  s.summary = %q{Helper for creating simple custom daemons}
45
43
  s.test_files = [
46
44
  "test/helper.rb",
47
- "test/test_djinn.rb"
45
+ "test/test_djinn.rb"
48
46
  ]
49
47
 
50
48
  if s.respond_to? :specification_version then
51
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
49
  s.specification_version = 3
53
50
 
54
51
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -24,6 +24,7 @@ module Djinn
24
24
  djinn = new
25
25
  @definition.prepare(djinn.config.update(config))
26
26
  unless djinn.config[:__stop]
27
+ yield djinn if block_given?
27
28
  if djinn.config[:__daemonize]
28
29
  djinn.start
29
30
  else
@@ -39,6 +39,9 @@ module Djinn
39
39
  def load_rails
40
40
  puts "Loading Rails in #{ENV['RAILS_ENV']} environment"
41
41
  require File.join(RAILS_ROOT, 'config', 'environment')
42
+ logger = Logger.new(STDOUT)
43
+ ActiveRecord::Base.logger = logger
44
+ ActiveResource::Base.logger = logger
42
45
  end
43
46
 
44
47
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djinn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Craig Paterson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-13 00:00:00 +02:00
18
+ date: 2011-02-25 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,6 @@ extra_rdoc_files:
46
46
  - README.rdoc.old
47
47
  files:
48
48
  - .document
49
- - .gitignore
50
49
  - LICENSE
51
50
  - README.rdoc
52
51
  - README.rdoc.old
@@ -68,8 +67,8 @@ homepage: http://github.com/craigp/djinn
68
67
  licenses: []
69
68
 
70
69
  post_install_message:
71
- rdoc_options:
72
- - --charset=UTF-8
70
+ rdoc_options: []
71
+
73
72
  require_paths:
74
73
  - lib
75
74
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -93,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
92
  requirements: []
94
93
 
95
94
  rubyforge_project:
96
- rubygems_version: 1.3.7
95
+ rubygems_version: 1.5.0
97
96
  signing_key:
98
97
  specification_version: 3
99
98
  summary: Helper for creating simple custom daemons
data/.gitignore DELETED
@@ -1,28 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- *.log
23
- log
24
- **/*.log
25
- *.sqlite3
26
- **/*.sqlite3
27
- *.pid
28
- **/*.pid