protobuf-activerecord 3.2.1 → 3.2.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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 90545cb2f19b9a54086785f64eb7f6aeca67c17f
         | 
| 4 | 
            +
              data.tar.gz: da7799d0f3deb1e2ed5f95d39df427f7ac5ca2f9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 04345ee9db33e0212bfa94d12c994412ed8326c40bdc3b737735494054dd7f756c4fe0d14855a89b48d119fd57d534d53d33cd762d3ab43fb40ffb18a570e0d6
         | 
| 7 | 
            +
              data.tar.gz: 7dabbb91f14d697099776512a688611326900609366684b5dda15c37eb95cddacacd1be152fc5e516bf600bca3803b82e823ca2d5e108716999d176fb8ce33ab
         | 
| @@ -1,3 +1,4 @@ | |
| 1 | 
            +
            require 'set'
         | 
| 1 2 | 
             
            require 'active_support/concern'
         | 
| 2 3 |  | 
| 3 4 | 
             
            module Protobuf
         | 
| @@ -46,7 +47,7 @@ module Protobuf | |
| 46 47 | 
             
                        return if _protobuf_mapped_columns?
         | 
| 47 48 |  | 
| 48 49 | 
             
                        @_protobuf_columns = {}
         | 
| 49 | 
            -
                        @_protobuf_column_types = Hash.new { |h,k| h[k] =  | 
| 50 | 
            +
                        @_protobuf_column_types = ::Hash.new { |h,k| h[k] = ::Set.new }
         | 
| 50 51 |  | 
| 51 52 | 
             
                        columns.map do |column|
         | 
| 52 53 | 
             
                          @_protobuf_columns[column.name.to_sym] = column
         | 
| @@ -12,7 +12,7 @@ describe Protobuf::ActiveRecord::Columns do | |
| 12 12 |  | 
| 13 13 | 
             
                  let(:expected_column_types) {
         | 
| 14 14 | 
             
                    User.columns.inject({}) do |hash, column|
         | 
| 15 | 
            -
                      hash[column.type.to_sym] ||=  | 
| 15 | 
            +
                      hash[column.type.to_sym] ||= ::Set.new
         | 
| 16 16 | 
             
                      hash[column.type.to_sym] << column.name.to_sym
         | 
| 17 17 | 
             
                      hash
         | 
| 18 18 | 
             
                    end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: protobuf-activerecord
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.2. | 
| 4 | 
            +
              version: 3.2.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Adam Hutchison
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015- | 
| 11 | 
            +
            date: 2015-10-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activerecord
         | 
| @@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 234 234 | 
             
                  version: '0'
         | 
| 235 235 | 
             
            requirements: []
         | 
| 236 236 | 
             
            rubyforge_project: 
         | 
| 237 | 
            -
            rubygems_version: 2. | 
| 237 | 
            +
            rubygems_version: 2.2.0
         | 
| 238 238 | 
             
            signing_key: 
         | 
| 239 239 | 
             
            specification_version: 4
         | 
| 240 240 | 
             
            summary: Google Protocol Buffers integration for Active Record
         |