admin_auth 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2NhNWFmMWI2ZjZmYjkxYTQzN2Q1ZTU5ZTYzNThkZDJkMjZhYzMzMw==
4
+ MTEwMmRhNWM5YjAwOWRmZTYzZDlmNzRkOTk0Njc3ODMwMWIzY2RlOA==
5
5
  data.tar.gz: !binary |-
6
- MTc4NDA3MGQ5Nzk5MzdjZmYyYzRjZGVlNzA5YThjNjIzYjg1OWI2Mw==
6
+ ZDRjZWRhZjJlYzFjM2Y4ZDVhZTM3ZTkwZjI5MjhjYjBjNDllYzNlNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjU0MjQ2ZDZmNjJmYzhlOTk4ZjU4OWY4MTBlOWMwZjE2YjBhMWEwOGU2NDkz
10
- OTJiODRiMjhkMjc3YzM2NGYyMWZmNWViYTcwNTdiZGQ0MDI5NzBiNWRkNThm
11
- NWNhMDExOTQwODhiNTU3NjIyNzE3ODFmNThiODY0OTdjZjAzNGY=
9
+ ODhlZmZmOTc5ZWJjYTllMjhlYzk1MDFkY2FkMzAzNGMyNGQxZmE5OGExOTQ3
10
+ ZDY5M2JiY2MwODllZjEwYjcxMzFhZDI3MGNmNmU1NGU5MmVkY2FhNmYxYTVh
11
+ NTgxZmU5NjQ5NjA1YmUyNjZkNzIyNzM2ODBkMzZiNzEwMDZmN2Q=
12
12
  data.tar.gz: !binary |-
13
- OWE2N2ZkMmJkZjk4NzI3ZDY5MjQ1MDJhYWJjMzJhY2I3Zjg1MzFjZTk2NDQ4
14
- OWE5Y2QzMzEwNWY3MmYzMTFhZmRlZGE1ZjBlNDA2NmVkMGIzZjAwNTBiMGJj
15
- NDQyZDY1ZmFmMmQzMDZiMmQ5MjE5NjI1NTQ3M2I4OGJkMmQ4MzM=
13
+ NGY4MWQxYzg3ZDdmZGVjNzM0ODQyNzI4Zjg3MmViNGIwMjE5ZDIzY2YzY2Vk
14
+ NDBmYzk2ZjRjMGJjZWFjYTlmOWNiNzEzYjlhYWZkMjgwYWYyNWRkNWFlZjE0
15
+ NmFiMzI3ZDE1YzBjOGJiMWFhZjcyNzg5N2M1ZjU1YjBhOTMwOTY=
@@ -1,5 +1,6 @@
1
1
  module AdminAuth
2
2
  class Engine < ::Rails::Engine
3
3
  config.autoload_paths += Dir["#{config.root}/app/**/*.rb"]
4
+ config.autoload_paths += Dir["#{config.root}/app/**/*.haml"]
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module AdminAuth
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -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
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe AdminAuth::Engine do
4
+ subject { AdminAuth::Railtie }
5
+
6
+ describe 'initializer added' do
7
+ it { expect(subject.initializers.map(&:name)).to include :admin_auth }
8
+ end
9
+ 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.1
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