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.
    
        data/test/unit/test_mysql.rb
    CHANGED
    
    | 
         @@ -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. 
     | 
| 
      
 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:  
     | 
| 
      
 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:  
     | 
| 
      
 77 
     | 
    
         
            +
                  hash: -214765719096327347
         
     | 
| 
       78 
78 
     | 
    
         
             
            requirements: []
         
     | 
| 
       79 
79 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       80 
80 
     | 
    
         
             
            rubygems_version: 1.8.24
         
     |