merb_sequel 0.9.13 → 0.9.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +3 -1
  2. data/Rakefile +1 -2
  3. data/lib/merb_sequel.rb +10 -0
  4. metadata +2 -2
data/README CHANGED
@@ -43,5 +43,7 @@ Originally written by Duane Johnson (canadaduane@gmail.com).
43
43
  Contributions by:
44
44
  * Wayne E. Seguin
45
45
  * Lance Carlson
46
+ * Jacob Dunphy
47
+ * Lori Holden
46
48
 
47
- Maintained by Michael S. Klishin (michael at novemberain.com)
49
+ Maintained by Michael S. Klishin (michael at novemberain.com)
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ require "rake/rdoctask"
4
4
  require "extlib"
5
5
  require 'merb-core/tasks/merb_rake_helper'
6
6
  require "spec/rake/spectask"
7
- require "#{File.dirname(__FILE__)}" / ".." / "version"
8
7
 
9
8
  ##############################################################################
10
9
  # Package && release
@@ -19,7 +18,7 @@ GEM_EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
19
18
 
20
19
  GEM_NAME = "merb_sequel"
21
20
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
22
- GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.9") + PKG_BUILD
21
+ GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.14") + PKG_BUILD
23
22
 
24
23
  RELEASE_NAME = "REL #{GEM_VERSION}"
25
24
 
data/lib/merb_sequel.rb CHANGED
@@ -20,6 +20,16 @@ if defined?(Merb::Plugins)
20
20
 
21
21
  end
22
22
 
23
+ class Merb::Orms::Sequel::DisconnectBeforeFork < Merb::BootLoader
24
+ after AfterAppLoads
25
+
26
+ def self.run
27
+ Merb.logger.debug "Disconnecting database connection before forking."
28
+ ::Sequel::DATABASES.each { |db| db.disconnect }
29
+ end
30
+
31
+ end
32
+
23
33
  generators = File.join(File.dirname(__FILE__), 'generators')
24
34
  Merb.add_generators generators / :migration
25
35
  Merb.add_generators generators / :model
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.13
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin, Lance Carlson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-03 00:00:00 -08:00
12
+ date: 2008-12-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency