em-sequel-async 0.1.3 → 0.1.4
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/VERSION +1 -1
- data/em-sequel-async.gemspec +2 -2
- data/lib/em-sequel-async/mysql.rb +11 -0
- metadata +3 -3
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.1. | 
| 1 | 
            +
            0.1.4
         | 
    
        data/em-sequel-async.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "em-sequel-async"
         | 
| 8 | 
            -
              s.version = "0.1. | 
| 8 | 
            +
              s.version = "0.1.4"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Scott Tadman"]
         | 
| 12 | 
            -
              s.date = " | 
| 12 | 
            +
              s.date = "2013-02-19"
         | 
| 13 13 | 
             
              s.description = "Implements a number of asynchronous helper methods for Sequel"
         | 
| 14 14 | 
             
              s.email = "scott@twg.ca"
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -114,6 +114,7 @@ class EmSequelAsync::Mysql | |
| 114 114 |  | 
| 115 115 | 
             
                    self.add(connection)
         | 
| 116 116 | 
             
                  end
         | 
| 117 | 
            +
             | 
| 117 118 | 
             
                  deferrable.errback do |err|
         | 
| 118 119 | 
             
                    handled = false
         | 
| 119 120 |  | 
| @@ -148,6 +149,16 @@ class EmSequelAsync::Mysql | |
| 148 149 | 
             
                      self.add(connection)
         | 
| 149 150 | 
             
                    end
         | 
| 150 151 | 
             
                  end
         | 
| 152 | 
            +
             | 
| 153 | 
            +
                rescue Mysql2::Error => err
         | 
| 154 | 
            +
                  case (err.message)
         | 
| 155 | 
            +
                  when /MySQL server has gone away|Lost connection/i
         | 
| 156 | 
            +
                    @query_queue << [ query, callback ]
         | 
| 157 | 
            +
             | 
| 158 | 
            +
                    self.remove(connection)
         | 
| 159 | 
            +
             | 
| 160 | 
            +
                    handled = true
         | 
| 161 | 
            +
                  end
         | 
| 151 162 | 
             
                end
         | 
| 152 163 |  | 
| 153 164 | 
             
                def pool_connection
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: em-sequel-async
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.4
         | 
| 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:  | 
| 12 | 
            +
            date: 2013-02-19 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: sequel
         | 
| @@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 149 149 | 
             
                  version: '0'
         | 
| 150 150 | 
             
            requirements: []
         | 
| 151 151 | 
             
            rubyforge_project: 
         | 
| 152 | 
            -
            rubygems_version: 1.8. | 
| 152 | 
            +
            rubygems_version: 1.8.23
         | 
| 153 153 | 
             
            signing_key: 
         | 
| 154 154 | 
             
            specification_version: 3
         | 
| 155 155 | 
             
            summary: Asynchronous Helper Methods for Sequel
         |