rails_multitenant 0.3.0 → 0.3.1
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/CHANGELOG.md +3 -0
 - data/lib/rails_multitenant/multitenant_model.rb +1 -1
 - data/lib/rails_multitenant/version.rb +1 -1
 - data/spec/external_item_spec.rb +4 -0
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0d9d1830ec790f9afd698f90dab03a3758940e64
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a2e30e84291bc0080fbf75be97b676f576e2347c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: db8809d3660df19cae83d21b9e39d6f816c85eef587890a04042c0bdeb36a0919a052158cef1fc47b59d4741b18d71f9209a17cb3191ec0796ee8efeac09a177
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d188d1dbabb872fca6ec705714a704cbf3c87513d37fb88357f680637f8aba242519b460479042133f30819506e9f73127e584e57de6529f2bab98b3375422c3
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/spec/external_item_spec.rb
    CHANGED
    
    | 
         @@ -26,6 +26,10 @@ describe ExternalItem do 
     | 
|
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
      
 29 
     | 
    
         
            +
              it 'allows the organization scope to be removed' do
         
     | 
| 
      
 30 
     | 
    
         
            +
                expect(ExternalItem.strip_external_organization_scope.count).to eq 3
         
     | 
| 
      
 31 
     | 
    
         
            +
              end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
       29 
33 
     | 
    
         
             
              def as_external_org(id, &block)
         
     | 
| 
       30 
34 
     | 
    
         
             
                GlobalContextRegistry.with_isolated_registry(external_organization_id: id, &block)
         
     | 
| 
       31 
35 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rails_multitenant
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Pat Breault
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-05-02 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       198 
198 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       199 
199 
     | 
    
         
             
            requirements: []
         
     | 
| 
       200 
200 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       201 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 201 
     | 
    
         
            +
            rubygems_version: 2.5.1
         
     | 
| 
       202 
202 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       203 
203 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       204 
204 
     | 
    
         
             
            summary: Automatically configures multiple tenants in a Rails environment
         
     |