sequel-collation 0.0.1 → 0.0.2

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.
@@ -16,6 +16,8 @@ module Sequel
16
16
  row[:db_type] = row.delete(:Type)
17
17
  row[:type] = schema_column_type(row[:db_type])
18
18
  row[:collate] = row.delete(:Collation)
19
+ row.delete(:Privileges)
20
+ row.delete(:Comment)
19
21
  [m.call(row.delete(:Field)), row]
20
22
  end
21
23
  end
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Collation
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -17,4 +17,16 @@ class TestMysql < Test::Unit::TestCase
17
17
  assert_equal "latin1_swedish_ci", schema.assoc(:bar)[1][:collate]
18
18
  end
19
19
  end
20
+
21
+ test "schema removes Comment and Privileges" do
22
+ database_for("mysql") do |db|
23
+ db.extend(Sequel::Collation)
24
+ db.create_table!(:foo) do
25
+ String :bar, :collate => "latin1_swedish_ci"
26
+ end
27
+ schema = db.schema(:foo)
28
+ assert !schema.assoc(:bar)[1].has_key?(:Comment)
29
+ assert !schema.assoc(:bar)[1].has_key?(:Privileges)
30
+ end
31
+ end
20
32
  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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  segments:
67
67
  - 0
68
- hash: 868813292461605924
68
+ hash: -214765719096327347
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: 868813292461605924
77
+ hash: -214765719096327347
78
78
  requirements: []
79
79
  rubyforge_project:
80
80
  rubygems_version: 1.8.24