sequel-collation 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,11 @@ module Sequel
|
|
2
2
|
module Collation
|
3
3
|
ADAPTER_MAP = {}
|
4
4
|
|
5
|
+
@@suppress_warnings = false
|
6
|
+
def self.suppress_warnings=(value)
|
7
|
+
@@suppress_warnings = value
|
8
|
+
end
|
9
|
+
|
5
10
|
def self.extended(base)
|
6
11
|
db_type = base.database_type
|
7
12
|
unless ADAPTER_MAP.has_key?(db_type)
|
@@ -9,7 +14,9 @@ module Sequel
|
|
9
14
|
begin
|
10
15
|
Sequel.tsk_require("sequel/extensions/collation/adapters/#{db_type}")
|
11
16
|
rescue LoadError => e
|
12
|
-
|
17
|
+
if !@@suppress_warnings
|
18
|
+
warn "NOTE: Sequel::Collation does not support the database type '#{db_type}'"
|
19
|
+
end
|
13
20
|
return
|
14
21
|
end
|
15
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-collation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: 4287609627825932385
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 4287609627825932385
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
80
|
rubygems_version: 1.8.24
|