sequel-collation 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@ module Sequel
12
12
  result.each do |(name, info)|
13
13
  row = ds.filter(:LOWER.sql_function(:COLUMN_NAME) => :LOWER.sql_function(name.to_s)).first
14
14
  if row[:collation_name] == "OFF"
15
- info[:collate] = nil
15
+ info[:collation] = nil
16
16
  else
17
- info[:collate] = row[:collation_name]
17
+ info[:collation] = row[:collation_name]
18
18
  end
19
19
  end
20
20
  result
@@ -15,7 +15,7 @@ module Sequel
15
15
  row[:default] = nil if blank_object?(row[:default])
16
16
  row[:db_type] = row.delete(:Type)
17
17
  row[:type] = schema_column_type(row[:db_type])
18
- row[:collate] = row.delete(:Collation)
18
+ row[:collation] = row.delete(:Collation)
19
19
  row.delete(:Privileges)
20
20
  row.delete(:Comment)
21
21
  [m.call(row.delete(:Field)), row]
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Collation
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
data/test/unit/test_h2.rb CHANGED
@@ -15,7 +15,7 @@ class TestH2 < Test::Unit::TestCase
15
15
  String :bar
16
16
  end
17
17
  schema = db.schema(:foo)
18
- assert_equal "ENGLISH", schema.assoc(:bar)[1][:collate]
18
+ assert_equal "ENGLISH", schema.assoc(:bar)[1][:collation]
19
19
  end
20
20
  end
21
21
  end
@@ -11,10 +11,10 @@ class TestMysql < Test::Unit::TestCase
11
11
  database_for("mysql") do |db|
12
12
  db.extend(Sequel::Collation)
13
13
  db.create_table!(:foo) do
14
- String :bar, :collate => "latin1_swedish_ci"
14
+ String :bar, :collation => "latin1_swedish_ci"
15
15
  end
16
16
  schema = db.schema(:foo)
17
- assert_equal "latin1_swedish_ci", schema.assoc(:bar)[1][:collate]
17
+ assert_equal "latin1_swedish_ci", schema.assoc(:bar)[1][:collation]
18
18
  end
19
19
  end
20
20
 
@@ -22,7 +22,7 @@ class TestMysql < Test::Unit::TestCase
22
22
  database_for("mysql") do |db|
23
23
  db.extend(Sequel::Collation)
24
24
  db.create_table!(:foo) do
25
- String :bar, :collate => "latin1_swedish_ci"
25
+ String :bar, :collation => "latin1_swedish_ci"
26
26
  end
27
27
  schema = db.schema(:foo)
28
28
  assert !schema.assoc(:bar)[1].has_key?(:Comment)
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.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 -05:00
13
+ default_executable:
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: sequel
16
- requirement: !ruby/object:Gem::Requirement
17
+ requirement: &22300560 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
@@ -21,12 +22,7 @@ dependencies:
21
22
  version: '0'
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
25
+ version_requirements: *22300560
30
26
  description: Adds collation information to data returned by a Sequel database's schema
31
27
  method
32
28
  email:
@@ -51,6 +47,7 @@ files:
51
47
  - test/helper.rb
52
48
  - test/unit/test_h2.rb
53
49
  - test/unit/test_mysql.rb
50
+ has_rdoc: true
54
51
  homepage: http://github.com/coupler/sequel-collation
55
52
  licenses: []
56
53
  post_install_message:
@@ -63,21 +60,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
60
  - - ! '>='
64
61
  - !ruby/object:Gem::Version
65
62
  version: '0'
66
- segments:
67
- - 0
68
- hash: 4287609627825932385
69
63
  required_rubygems_version: !ruby/object:Gem::Requirement
70
64
  none: false
71
65
  requirements:
72
66
  - - ! '>='
73
67
  - !ruby/object:Gem::Version
74
68
  version: '0'
75
- segments:
76
- - 0
77
- hash: 4287609627825932385
78
69
  requirements: []
79
70
  rubyforge_project:
80
- rubygems_version: 1.8.24
71
+ rubygems_version: 1.3.9.5
81
72
  signing_key:
82
73
  specification_version: 3
83
74
  summary: Sequel extension to access collation information