admin_auth 0.2.3 → 0.2.4

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
- ZmYxZDBhNDU3YmQ3ZDZjNjg5ZTAyMzkyMTFiNTM3ZjY4MmQ5MGNkNw==
4
+ NzVkZjM2NTExOWIyNmQyOWZmMmMyYTI4MzI5ZmVhNTYzNWM5MGZkMw==
5
5
  data.tar.gz: !binary |-
6
- NDRmYWViMzBhNmIyMTkxZmJhOThlN2Q5NjBiYTUxYmYxYjAzMDUwNA==
6
+ ZjYxNGY3OTU1ZTU3NjFlN2FlZWFjNmEwOTgyZGY4ODU5NDYwMzI5OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2U3NTZmZDYyMjU5MTA5NWU1YWUwYWUwOTc0YjFjMGEyM2Q2NWViN2NiYTNj
10
- MjE5ZDAwYmVlZjg2NjRhOWFmYTNhNzZmZDQ1NWVhYThjNWE3MjgxMzBhYWVl
11
- YmI1MDNkYmFkZjBjNzQ3NTM0ZDU2ODkxOGY5ODZhNzgwNDE3MTg=
9
+ ODUwZmJlNmFiYjE1ZmQxNGMxODkzODUxMTI4YmQxYzFjMzk3OGFmNzViMzEx
10
+ YmUxOTBhYzVkY2E1ZWUwYmIxY2RiNDhkN2JmMTE0MzE5ZGQ3MDgxYTkwYjc5
11
+ MDVjZDNhZTJjNmE5OWZmODczNDQ1NTI4NWQxN2NjNzg3YjczNDI=
12
12
  data.tar.gz: !binary |-
13
- MTU4ZTNmNGY1ZjMxYWM2ZTkzNmJkZWI0ZDBlY2Q3ZmY1MmZiZmM0MmI2ZTZk
14
- ZWU5YzI1NDk1NWQ4ODkxYmE4ZjI4MmVlNzc1ZjQ2MzcxMTYwZWI5ZmRmMTA3
15
- NWI5MTg5MTFkZjU5ZDFkYjNiNjNiYTAwOGUzMzc3YjNhZWIxOWM=
13
+ NTQ0Y2U5ODE2N2UwNWNiNDMxYTU2YmMyOTY0MjYyYTFhNWMzN2RlYjRlNWZj
14
+ MjMwMTliMTE5YjNkY2ZhZjE5OWE2MzViODQ3NzdkMjc4MmRjZWVhNmRlMzM0
15
+ OWFkNGE3YzQwMGU3YTQ1ZjVhNzYwMTAzZGRiYjhjN2MwOWY4MDk=
@@ -1,8 +1,8 @@
1
1
  module AdminAuth
2
2
  class Railtie < ::Rails::Railtie
3
- initializer :admin_auth do
4
- ::Admin.include(AdminAuth::Model) if defined?(::Admin)
5
- ::ApplicationController.include(AdminAuth::Controller) if defined?(::ApplicationController)
3
+ config.after_initialize do
4
+ ::ApplicationController.include(AdminAuth::Controller) rescue nil
5
+ ::Admin.include(AdminAuth::Model) rescue nil
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module AdminAuth
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Boksz
@@ -142,7 +142,6 @@ files:
142
142
  - spec/lib/admin_auth/encryptor_spec.rb
143
143
  - spec/lib/admin_auth/engine_spec.rb
144
144
  - spec/lib/admin_auth/model_spec.rb
145
- - spec/lib/admin_auth/railtie_spec.rb
146
145
  - spec/lib/admin_auth/repository_spec.rb
147
146
  - spec/lib/admin_auth/routes_spec.rb
148
147
  - spec/spec_helper.rb
@@ -175,7 +174,6 @@ test_files:
175
174
  - spec/lib/admin_auth/encryptor_spec.rb
176
175
  - spec/lib/admin_auth/engine_spec.rb
177
176
  - spec/lib/admin_auth/model_spec.rb
178
- - spec/lib/admin_auth/railtie_spec.rb
179
177
  - spec/lib/admin_auth/repository_spec.rb
180
178
  - spec/lib/admin_auth/routes_spec.rb
181
179
  - spec/spec_helper.rb
@@ -1,9 +0,0 @@
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