admin_auth 0.2.1 → 0.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 +8 -8
- data/lib/admin_auth/engine.rb +1 -0
- data/lib/admin_auth/version.rb +1 -1
- data/spec/lib/admin_auth/engine_spec.rb +21 -0
- data/spec/lib/admin_auth/railtie_spec.rb +9 -0
- metadata +5 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                MTEwMmRhNWM5YjAwOWRmZTYzZDlmNzRkOTk0Njc3ODMwMWIzY2RlOA==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                ZDRjZWRhZjJlYzFjM2Y4ZDVhZTM3ZTkwZjI5MjhjYjBjNDllYzNlNQ==
         | 
| 7 7 | 
             
            SHA512:
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                ODhlZmZmOTc5ZWJjYTllMjhlYzk1MDFkY2FkMzAzNGMyNGQxZmE5OGExOTQ3
         | 
| 10 | 
            +
                ZDY5M2JiY2MwODllZjEwYjcxMzFhZDI3MGNmNmU1NGU5MmVkY2FhNmYxYTVh
         | 
| 11 | 
            +
                NTgxZmU5NjQ5NjA1YmUyNjZkNzIyNzM2ODBkMzZiNzEwMDZmN2Q=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                NGY4MWQxYzg3ZDdmZGVjNzM0ODQyNzI4Zjg3MmViNGIwMjE5ZDIzY2YzY2Vk
         | 
| 14 | 
            +
                NDBmYzk2ZjRjMGJjZWFjYTlmOWNiNzEzYjlhYWZkMjgwYWYyNWRkNWFlZjE0
         | 
| 15 | 
            +
                NmFiMzI3ZDE1YzBjOGJiMWFhZjcyNzg5N2M1ZjU1YjBhOTMwOTY=
         | 
    
        data/lib/admin_auth/engine.rb
    CHANGED
    
    
    
        data/lib/admin_auth/version.rb
    CHANGED
    
    
| @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AdminAuth::Engine do
         | 
| 4 | 
            +
              subject { AdminAuth::Engine }
         | 
| 5 | 
            +
             | 
| 6 | 
            +
              describe 'autoload controllers' do
         | 
| 7 | 
            +
                let(:root_path) { "#{subject.config.root}/app/controllers/admin" }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/admins_controller.rb" }
         | 
| 10 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/sessions_controller.rb" }
         | 
| 11 | 
            +
              end
         | 
| 12 | 
            +
             | 
| 13 | 
            +
              describe 'autoload controllers' do
         | 
| 14 | 
            +
                let(:root_path) { "#{subject.config.root}/app/views/admin" }
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/admins/edit.haml" }
         | 
| 17 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/admins/index.haml" }
         | 
| 18 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/admins/new.haml" }
         | 
| 19 | 
            +
                it { expect(subject.config.autoload_paths).to include "#{root_path}/sessions/new.haml" }
         | 
| 20 | 
            +
              end
         | 
| 21 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: admin_auth
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Phillip Boksz
         | 
| @@ -140,7 +140,9 @@ files: | |
| 140 140 | 
             
            - lib/admin_auth/version.rb
         | 
| 141 141 | 
             
            - spec/lib/admin_auth/controller_spec.rb
         | 
| 142 142 | 
             
            - spec/lib/admin_auth/encryptor_spec.rb
         | 
| 143 | 
            +
            - spec/lib/admin_auth/engine_spec.rb
         | 
| 143 144 | 
             
            - spec/lib/admin_auth/model_spec.rb
         | 
| 145 | 
            +
            - spec/lib/admin_auth/railtie_spec.rb
         | 
| 144 146 | 
             
            - spec/lib/admin_auth/repository_spec.rb
         | 
| 145 147 | 
             
            - spec/lib/admin_auth/routes_spec.rb
         | 
| 146 148 | 
             
            - spec/spec_helper.rb
         | 
| @@ -171,7 +173,9 @@ summary: A gem that helps with basic database authentication. | |
| 171 173 | 
             
            test_files:
         | 
| 172 174 | 
             
            - spec/lib/admin_auth/controller_spec.rb
         | 
| 173 175 | 
             
            - spec/lib/admin_auth/encryptor_spec.rb
         | 
| 176 | 
            +
            - spec/lib/admin_auth/engine_spec.rb
         | 
| 174 177 | 
             
            - spec/lib/admin_auth/model_spec.rb
         | 
| 178 | 
            +
            - spec/lib/admin_auth/railtie_spec.rb
         | 
| 175 179 | 
             
            - spec/lib/admin_auth/repository_spec.rb
         | 
| 176 180 | 
             
            - spec/lib/admin_auth/routes_spec.rb
         | 
| 177 181 | 
             
            - spec/spec_helper.rb
         |