mysql2 0.4.6 → 0.5.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.
- checksums.yaml +4 -4
 - data/README.md +82 -52
 - data/examples/eventmachine.rb +0 -2
 - data/examples/threaded.rb +2 -4
 - data/ext/mysql2/client.c +171 -75
 - data/ext/mysql2/client.h +2 -41
 - data/ext/mysql2/extconf.rb +30 -23
 - data/ext/mysql2/mysql2_ext.c +2 -1
 - data/ext/mysql2/mysql2_ext.h +8 -8
 - data/ext/mysql2/mysql_enc_to_ruby.h +10 -0
 - data/ext/mysql2/result.c +24 -77
 - data/ext/mysql2/result.h +2 -3
 - data/ext/mysql2/statement.c +101 -73
 - data/ext/mysql2/statement.h +0 -2
 - data/ext/mysql2/wait_for_single_fd.h +2 -1
 - data/lib/mysql2/client.rb +37 -31
 - data/lib/mysql2/em.rb +2 -4
 - data/lib/mysql2/error.rb +49 -20
 - data/lib/mysql2/result.rb +2 -0
 - data/lib/mysql2/statement.rb +3 -9
 - data/lib/mysql2/version.rb +1 -1
 - data/lib/mysql2.rb +14 -15
 - data/spec/em/em_spec.rb +6 -6
 - data/spec/mysql2/client_spec.rb +300 -215
 - data/spec/mysql2/error_spec.rb +3 -9
 - data/spec/mysql2/result_spec.rb +124 -158
 - data/spec/mysql2/statement_spec.rb +138 -185
 - data/spec/spec_helper.rb +79 -61
 - data/support/5072E1F5.asc +432 -0
 - data/support/mysql_enc_to_ruby.rb +2 -2
 - data/support/ruby_enc_to_mysql.rb +5 -5
 - metadata +16 -14
 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: mysql2
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.5.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Brian Lopez
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2018-07-04 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       14 
14 
     | 
    
         
             
            description: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            email:
         
     | 
| 
         @@ -23,6 +23,8 @@ files: 
     | 
|
| 
       23 
23 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
       24 
24 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       25 
25 
     | 
    
         
             
            - README.md
         
     | 
| 
      
 26 
     | 
    
         
            +
            - examples/eventmachine.rb
         
     | 
| 
      
 27 
     | 
    
         
            +
            - examples/threaded.rb
         
     | 
| 
       26 
28 
     | 
    
         
             
            - ext/mysql2/client.c
         
     | 
| 
       27 
29 
     | 
    
         
             
            - ext/mysql2/client.h
         
     | 
| 
       28 
30 
     | 
    
         
             
            - ext/mysql2/extconf.rb
         
     | 
| 
         @@ -46,11 +48,6 @@ files: 
     | 
|
| 
       46 
48 
     | 
    
         
             
            - lib/mysql2/result.rb
         
     | 
| 
       47 
49 
     | 
    
         
             
            - lib/mysql2/statement.rb
         
     | 
| 
       48 
50 
     | 
    
         
             
            - lib/mysql2/version.rb
         
     | 
| 
       49 
     | 
    
         
            -
            - support/libmysql.def
         
     | 
| 
       50 
     | 
    
         
            -
            - support/mysql_enc_to_ruby.rb
         
     | 
| 
       51 
     | 
    
         
            -
            - support/ruby_enc_to_mysql.rb
         
     | 
| 
       52 
     | 
    
         
            -
            - examples/eventmachine.rb
         
     | 
| 
       53 
     | 
    
         
            -
            - examples/threaded.rb
         
     | 
| 
       54 
51 
     | 
    
         
             
            - spec/configuration.yml.example
         
     | 
| 
       55 
52 
     | 
    
         
             
            - spec/em/em_spec.rb
         
     | 
| 
       56 
53 
     | 
    
         
             
            - spec/my.cnf.example
         
     | 
| 
         @@ -74,28 +71,33 @@ files: 
     | 
|
| 
       74 
71 
     | 
    
         
             
            - spec/ssl/server-key.pem
         
     | 
| 
       75 
72 
     | 
    
         
             
            - spec/ssl/server-req.pem
         
     | 
| 
       76 
73 
     | 
    
         
             
            - spec/test_data
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
      
 74 
     | 
    
         
            +
            - support/5072E1F5.asc
         
     | 
| 
      
 75 
     | 
    
         
            +
            - support/libmysql.def
         
     | 
| 
      
 76 
     | 
    
         
            +
            - support/mysql_enc_to_ruby.rb
         
     | 
| 
      
 77 
     | 
    
         
            +
            - support/ruby_enc_to_mysql.rb
         
     | 
| 
      
 78 
     | 
    
         
            +
            homepage: https://github.com/brianmario/mysql2
         
     | 
| 
       78 
79 
     | 
    
         
             
            licenses:
         
     | 
| 
       79 
80 
     | 
    
         
             
            - MIT
         
     | 
| 
       80 
     | 
    
         
            -
            metadata: 
     | 
| 
      
 81 
     | 
    
         
            +
            metadata:
         
     | 
| 
      
 82 
     | 
    
         
            +
              msys2_mingw_dependencies: libmariadbclient
         
     | 
| 
       81 
83 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       82 
84 
     | 
    
         
             
            rdoc_options:
         
     | 
| 
       83 
     | 
    
         
            -
            - --charset=UTF-8
         
     | 
| 
      
 85 
     | 
    
         
            +
            - "--charset=UTF-8"
         
     | 
| 
       84 
86 
     | 
    
         
             
            require_paths:
         
     | 
| 
       85 
87 
     | 
    
         
             
            - lib
         
     | 
| 
       86 
88 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       87 
89 
     | 
    
         
             
              requirements:
         
     | 
| 
       88 
     | 
    
         
            -
              - -  
     | 
| 
      
 90 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       89 
91 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       90 
     | 
    
         
            -
                  version:  
     | 
| 
      
 92 
     | 
    
         
            +
                  version: 2.0.0
         
     | 
| 
       91 
93 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       92 
94 
     | 
    
         
             
              requirements:
         
     | 
| 
       93 
     | 
    
         
            -
              - -  
     | 
| 
      
 95 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       94 
96 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       95 
97 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       96 
98 
     | 
    
         
             
            requirements: []
         
     | 
| 
       97 
99 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       98 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 100 
     | 
    
         
            +
            rubygems_version: 2.5.2
         
     | 
| 
       99 
101 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       100 
102 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       101 
103 
     | 
    
         
             
            summary: A simple, fast Mysql library for Ruby, binding to libmysql
         
     |