lotus-auth0 0.0.2 → 0.0.3
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/lib/lotus-auth0.rb +9 -0
 - data/lib/lotus/auth0/config.rb +7 -0
 - data/lib/lotus/auth0/version.rb +1 -1
 - data/lib/lotus/model/adapters/auth0/collection.rb +2 -2
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5bb0719d3ae0feaa868a6e18d74e4c18a38ea857
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: fb3a17942157100218c9f09de7ec8456ce4a909a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4994bfb3da007831d048dbb0743389f56f1c3d0baa7fe210e082631c8e9009a18ecbc04cb1a7a32dd7bf2dc6b2c1d9cc57fee33f27dc7fbbd875f82feaa3505b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6b473c28835904e9fa7accf54b8147c306a349f9397f691d29169d3bbb347594d16a6e22ec78e59bb76d79b7bb09b0290c5f0ac558ef280db99ed6e7d4b9dd06
         
     | 
    
        data/lib/lotus-auth0.rb
    CHANGED
    
    | 
         @@ -2,9 +2,18 @@ require 'lotus/model' 
     | 
|
| 
       2 
2 
     | 
    
         
             
            require 'lotus/entity'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            require 'lotus/auth0/version'
         
     | 
| 
      
 5 
     | 
    
         
            +
            require 'lotus/auth0/config'
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
       5 
7 
     | 
    
         
             
            require 'lotus/model/adapters/auth0_adapter'
         
     | 
| 
       6 
8 
     | 
    
         | 
| 
       7 
9 
     | 
    
         
             
            module Lotus
         
     | 
| 
       8 
10 
     | 
    
         
             
              module Auth0
         
     | 
| 
      
 11 
     | 
    
         
            +
                def self.configure
         
     | 
| 
      
 12 
     | 
    
         
            +
                  yield configuration
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                def self.configuration
         
     | 
| 
      
 16 
     | 
    
         
            +
                  @configuration ||= Configuration.new
         
     | 
| 
      
 17 
     | 
    
         
            +
                end
         
     | 
| 
       9 
18 
     | 
    
         
             
              end
         
     | 
| 
       10 
19 
     | 
    
         
             
            end
         
     | 
    
        data/lib/lotus/auth0/version.rb
    CHANGED
    
    
| 
         @@ -13,8 +13,8 @@ module Lotus 
     | 
|
| 
       13 
13 
     | 
    
         
             
                      def initialize(_mapped_collection, _name, _identity)
         
     | 
| 
       14 
14 
     | 
    
         
             
                        raise InvalidCollectionName unless allowed_collection_names.include?(_name.to_s)
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
                        @client_token  =  
     | 
| 
       17 
     | 
    
         
            -
                        @client_domain =  
     | 
| 
      
 16 
     | 
    
         
            +
                        @client_token  = Lotus::Auth0.configuration.client_token
         
     | 
| 
      
 17 
     | 
    
         
            +
                        @client_domain = Lotus::Auth0.configuration.domain
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
                        @client = Auth0Client.new(
         
     | 
| 
       20 
20 
     | 
    
         
             
                          api_version: 2,
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: lotus-auth0
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Taylor Finnell
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2015-11- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-11-23 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: auth0
         
     | 
| 
         @@ -88,6 +88,7 @@ extensions: [] 
     | 
|
| 
       88 
88 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       89 
89 
     | 
    
         
             
            files:
         
     | 
| 
       90 
90 
     | 
    
         
             
            - lib/lotus-auth0.rb
         
     | 
| 
      
 91 
     | 
    
         
            +
            - lib/lotus/auth0/config.rb
         
     | 
| 
       91 
92 
     | 
    
         
             
            - lib/lotus/auth0/version.rb
         
     | 
| 
       92 
93 
     | 
    
         
             
            - lib/lotus/model/adapters/auth0/collection.rb
         
     | 
| 
       93 
94 
     | 
    
         
             
            - lib/lotus/model/adapters/auth0/command.rb
         
     |