rails3_sequel 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/rails3_sequel/logging.rb +1 -1
- data/lib/rails3_sequel/railties/log_subscriber.rb +1 -1
- metadata +21 -21
data/CHANGELOG
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
=== HEAD
|
2
2
|
|
3
|
+
* Rails::LogSubscriber was renamed to ActiveSupport::LogSubscriber
|
4
|
+
|
5
|
+
=== 0.3.0
|
6
|
+
|
3
7
|
* Can now do adapter specific database configurations. Specifically this addressed Postgres schema_search_path option.
|
4
8
|
* Create database in Postgres will also create schema.
|
5
9
|
* MySql and SQLite adapters
|
@@ -4,7 +4,7 @@ module Rails
|
|
4
4
|
def log_duration (duration, message)
|
5
5
|
@controller_runtime ||= 0
|
6
6
|
@controller_runtime += duration
|
7
|
-
ActiveSupport::Notifications.instrument('sequel
|
7
|
+
ActiveSupport::Notifications.instrument('sql.sequel',
|
8
8
|
:sql => message,
|
9
9
|
:name => 'SQL',
|
10
10
|
:duration => duration * 1000
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Rails
|
2
2
|
module Sequel
|
3
3
|
module Railties
|
4
|
-
class LogSubscriber <
|
4
|
+
class LogSubscriber < ActiveSupport::LogSubscriber
|
5
5
|
def sql(event)
|
6
6
|
name = '%s (%.1fms)' % [event.payload[:name], event.payload[:duration]]
|
7
7
|
sql = event.payload[:sql].squeeze(' ')
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 1
|
9
|
+
version: 0.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Rachot Moragraan
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-31 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -42,8 +42,8 @@ dependencies:
|
|
42
42
|
- 3
|
43
43
|
- 0
|
44
44
|
- 0
|
45
|
-
-
|
46
|
-
version: 3.0.0.
|
45
|
+
- rc
|
46
|
+
version: 3.0.0.rc
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
49
|
description: Rails 3 integration with Sequel
|
@@ -55,30 +55,30 @@ extensions: []
|
|
55
55
|
extra_rdoc_files: []
|
56
56
|
|
57
57
|
files:
|
58
|
+
- lib/rails3_sequel/railties/log_subscriber.rb
|
59
|
+
- lib/rails3_sequel/railties/controller_runtime.rb
|
60
|
+
- lib/rails3_sequel/logging.rb
|
61
|
+
- lib/rails3_sequel/database.rb
|
62
|
+
- lib/rails3_sequel/railtie.rb
|
63
|
+
- lib/rails3_sequel/adapters/sqlite.rb
|
64
|
+
- lib/rails3_sequel/adapters/mysql.rb
|
65
|
+
- lib/rails3_sequel/adapters/postgres.rb
|
66
|
+
- lib/rails/generators/sequel.rb
|
67
|
+
- lib/rails/generators/sequel/migration/migration_generator.rb
|
68
|
+
- lib/rails/generators/sequel/migration/templates/migration.rb
|
69
|
+
- lib/rails/generators/sequel/generated_attribute.rb
|
58
70
|
- lib/rails/generators/sequel/observer/templates/observer.rb
|
59
71
|
- lib/rails/generators/sequel/observer/observer_generator.rb
|
72
|
+
- lib/rails/generators/sequel/active_model.rb
|
60
73
|
- lib/rails/generators/sequel/model/model_generator.rb
|
61
|
-
- lib/rails/generators/sequel/model/templates/migration.rb
|
62
74
|
- lib/rails/generators/sequel/model/templates/model.rb
|
63
|
-
- lib/rails/generators/sequel/
|
64
|
-
- lib/rails/generators/sequel/migration/templates/migration.rb
|
65
|
-
- lib/rails/generators/sequel/migration/migration_generator.rb
|
66
|
-
- lib/rails/generators/sequel/generated_attribute.rb
|
67
|
-
- lib/rails/generators/sequel.rb
|
68
|
-
- lib/rails3_sequel/adapters/mysql.rb
|
69
|
-
- lib/rails3_sequel/adapters/sqlite.rb
|
70
|
-
- lib/rails3_sequel/adapters/postgres.rb
|
71
|
-
- lib/rails3_sequel/railtie.rb
|
72
|
-
- lib/rails3_sequel/database.rb
|
73
|
-
- lib/rails3_sequel/logging.rb
|
74
|
-
- lib/rails3_sequel/railties/controller_runtime.rb
|
75
|
-
- lib/rails3_sequel/railties/log_subscriber.rb
|
75
|
+
- lib/rails/generators/sequel/model/templates/migration.rb
|
76
76
|
- lib/rails3_sequel.rb
|
77
77
|
- lib/rails3_sequel/railties/database.rake
|
78
|
-
- CHANGELOG
|
79
|
-
- README.md
|
80
78
|
- VERSION
|
81
79
|
- LICENSE
|
80
|
+
- README.md
|
81
|
+
- CHANGELOG
|
82
82
|
has_rdoc: true
|
83
83
|
homepage: http://github.com/mooman/rails3_sequel
|
84
84
|
licenses: []
|