native-query 0.9.5 → 0.9.6
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/lib/native-query/row.rb +13 -1
- data/native-query.gemspec +2 -2
- metadata +3 -3
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.9. | 
| 1 | 
            +
            0.9.6
         | 
    
        data/lib/native-query/row.rb
    CHANGED
    
    | @@ -32,7 +32,7 @@ module NativeQuery | |
| 32 32 | 
             
                    # Maps unknown calls to data fields. 
         | 
| 33 33 | 
             
                    #
         | 
| 34 34 |  | 
| 35 | 
            -
                    def method_missing(sym, *args | 
| 35 | 
            +
                    def method_missing(sym, *args)
         | 
| 36 36 | 
             
                        __data[sym]
         | 
| 37 37 | 
             
                    end
         | 
| 38 38 |  | 
| @@ -44,12 +44,22 @@ module NativeQuery | |
| 44 44 | 
             
                       not __data.nil? 
         | 
| 45 45 | 
             
                    end
         | 
| 46 46 |  | 
| 47 | 
            +
                    ##
         | 
| 48 | 
            +
                    # Converts to hash.
         | 
| 49 | 
            +
                    #
         | 
| 50 | 
            +
                    
         | 
| 51 | 
            +
                    def to_hash
         | 
| 52 | 
            +
                        __data.to_hash
         | 
| 53 | 
            +
                    end
         | 
| 54 | 
            +
                    
         | 
| 47 55 | 
             
                    ##
         | 
| 48 56 | 
             
                    # Returns data field.
         | 
| 49 57 | 
             
                    #
         | 
| 50 58 |  | 
| 51 59 | 
             
                    private
         | 
| 52 60 | 
             
                    def __data
         | 
| 61 | 
            +
                        @data
         | 
| 62 | 
            +
            =begin
         | 
| 53 63 | 
             
                        if @__data.nil?
         | 
| 54 64 |  | 
| 55 65 | 
             
                            # Calls for data and converts string keys of hash 
         | 
| @@ -60,6 +70,7 @@ module NativeQuery | |
| 60 70 |  | 
| 61 71 | 
             
                            if not data.nil?
         | 
| 62 72 | 
             
                                @data = nil
         | 
| 73 | 
            +
                                
         | 
| 63 74 | 
             
                                data.each_pair do |k, v|
         | 
| 64 75 | 
             
                                    @__data[k.to_sym] = v
         | 
| 65 76 | 
             
                                end
         | 
| @@ -70,6 +81,7 @@ module NativeQuery | |
| 70 81 | 
             
                        end
         | 
| 71 82 |  | 
| 72 83 | 
             
                        return @__data
         | 
| 84 | 
            +
            =end
         | 
| 73 85 | 
             
                    end
         | 
| 74 86 | 
             
                end
         | 
| 75 87 | 
             
            end
         | 
    
        data/native-query.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "native-query"
         | 
| 8 | 
            -
              s.version = "0.9. | 
| 8 | 
            +
              s.version = "0.9.6"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Martin Koz\u{e1}k"]
         | 
| 12 | 
            -
              s.date = "2012-05- | 
| 12 | 
            +
              s.date = "2012-05-30"
         | 
| 13 13 | 
             
              s.email = "martinkozak@martinkozak.net"
         | 
| 14 14 | 
             
              s.extra_rdoc_files = [
         | 
| 15 15 | 
             
                "LICENSE.txt",
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: native-query
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.9. | 
| 4 | 
            +
              version: 0.9.6
         | 
| 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: 2012-05- | 
| 12 | 
            +
            date: 2012-05-30 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: fluent-query
         | 
| @@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 112 112 | 
             
                  version: '0'
         | 
| 113 113 | 
             
                  segments:
         | 
| 114 114 | 
             
                  - 0
         | 
| 115 | 
            -
                  hash:  | 
| 115 | 
            +
                  hash: 522949133952293208
         | 
| 116 116 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 117 117 | 
             
              none: false
         | 
| 118 118 | 
             
              requirements:
         |