sequel-reporter 0.0.9 → 0.0.10

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.
@@ -43,16 +43,17 @@ module Sequel::Reporter
43
43
  def initialize(app=nil)
44
44
  @db = Sequel.connect(self.class.settings.database_url)
45
45
 
46
- if settings.after_db_connect_hook
47
- settings.after_db_connect_hook(@db)
48
- end
49
-
50
46
  path = File.join(settings.root, "lib", "**", "*.rb")
51
47
  Dir.glob(path).each do |file|
52
48
  next if file.match(/ruby\/1.9.1/) # in case ruby somehow got in the lib directory (don't ask)
53
49
  require file
54
50
  end
51
+
55
52
  super(app)
53
+
54
+ if self.class.settings.respond_to?(:after_db_connect_hook)
55
+ self.send(self.class.settings.after_db_connect_hook)
56
+ end
56
57
  end
57
58
  end
58
59
  end
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Reporter
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: