sequel-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -26,3 +26,4 @@ log
26
26
  vendor
27
27
  .bundle
28
28
  .rvmrc
29
+ *.gem
@@ -0,0 +1,9 @@
1
+ == 0.1.2
2
+ * fixed log_subscriber bug that 0.1.1 was -supposed- to fix.
3
+ * fixed controller_runtime bug
4
+
5
+ == 0.1.1
6
+ * bug fixes, no additional functionality
7
+
8
+ == 0.1.0
9
+ * initial release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -13,11 +13,9 @@ module Rails
13
13
  attr_internal :db_runtime
14
14
 
15
15
  def cleanup_view_runtime
16
- # TODO add checks if Sequel is connected to a repository.
17
- # If it is, do this, if it isn't, just delegate to super
18
- db_rt_before_render = ::Sequel.repository.adapter.reset_runtime
16
+ db_rt_before_render = ::Rails::Sequel.reset_runtime
19
17
  runtime = super
20
- db_rt_after_render = ::Sequel.repository.adapter.reset_runtime
18
+ db_rt_after_render = ::Rails::Sequel.reset_runtime
21
19
  self.db_runtime = db_rt_before_render + db_rt_after_render
22
20
  runtime - db_rt_after_render
23
21
  end
@@ -22,7 +22,7 @@ module Sequel
22
22
  end
23
23
 
24
24
  def logger
25
- ::Sequel::Configuration.logger
25
+ ::Rails::Sequel.configuration.logger
26
26
  end
27
27
 
28
28
  end
@@ -0,0 +1,14 @@
1
+ module Rails
2
+ module Sequel
3
+
4
+ class << self
5
+ def reset_runtime
6
+ @runtime ||= 0
7
+
8
+ rt, @runtime = @runtime, 0
9
+ rt
10
+ end
11
+ end
12
+
13
+ end
14
+ end
@@ -3,6 +3,7 @@ require 'active_support/core_ext/hash/except'
3
3
  require 'sequel/extensions/migration'
4
4
 
5
5
  require 'sequel-rails/configuration'
6
+ require 'sequel-rails/runtime'
6
7
  require 'sequel-rails/railties/benchmarking_mixin'
7
8
 
8
9
  module Rails
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel-rails}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brasten Sager (brasten)"]
12
- s.date = %q{2010-05-19}
12
+ s.date = %q{2010-06-02}
13
13
  s.description = %q{Integrate Sequel with Rails 3}
14
14
  s.email = %q{brasten@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".gitignore",
22
+ "CHANGELOG",
22
23
  "Gemfile",
23
24
  "LICENSE",
24
25
  "README.rdoc",
@@ -41,6 +42,7 @@ Gem::Specification.new do |s|
41
42
  "lib/sequel-rails/railties/database.rake",
42
43
  "lib/sequel-rails/railties/i18n_support.rb",
43
44
  "lib/sequel-rails/railties/log_subscriber.rb",
45
+ "lib/sequel-rails/runtime.rb",
44
46
  "lib/sequel-rails/session_store.rb",
45
47
  "lib/sequel-rails/setup.rb",
46
48
  "lib/sequel-rails/storage.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brasten Sager (brasten)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-19 00:00:00 -07:00
17
+ date: 2010-06-02 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -91,6 +91,7 @@ extra_rdoc_files:
91
91
  files:
92
92
  - .document
93
93
  - .gitignore
94
+ - CHANGELOG
94
95
  - Gemfile
95
96
  - LICENSE
96
97
  - README.rdoc
@@ -113,6 +114,7 @@ files:
113
114
  - lib/sequel-rails/railties/database.rake
114
115
  - lib/sequel-rails/railties/i18n_support.rb
115
116
  - lib/sequel-rails/railties/log_subscriber.rb
117
+ - lib/sequel-rails/runtime.rb
116
118
  - lib/sequel-rails/session_store.rb
117
119
  - lib/sequel-rails/setup.rb
118
120
  - lib/sequel-rails/storage.rb