admin_auth 0.2.2 → 0.2.3

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
- MTEwMmRhNWM5YjAwOWRmZTYzZDlmNzRkOTk0Njc3ODMwMWIzY2RlOA==
4
+ ZmYxZDBhNDU3YmQ3ZDZjNjg5ZTAyMzkyMTFiNTM3ZjY4MmQ5MGNkNw==
5
5
  data.tar.gz: !binary |-
6
- ZDRjZWRhZjJlYzFjM2Y4ZDVhZTM3ZTkwZjI5MjhjYjBjNDllYzNlNQ==
6
+ NDRmYWViMzBhNmIyMTkxZmJhOThlN2Q5NjBiYTUxYmYxYjAzMDUwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODhlZmZmOTc5ZWJjYTllMjhlYzk1MDFkY2FkMzAzNGMyNGQxZmE5OGExOTQ3
10
- ZDY5M2JiY2MwODllZjEwYjcxMzFhZDI3MGNmNmU1NGU5MmVkY2FhNmYxYTVh
11
- NTgxZmU5NjQ5NjA1YmUyNjZkNzIyNzM2ODBkMzZiNzEwMDZmN2Q=
9
+ Y2U3NTZmZDYyMjU5MTA5NWU1YWUwYWUwOTc0YjFjMGEyM2Q2NWViN2NiYTNj
10
+ MjE5ZDAwYmVlZjg2NjRhOWFmYTNhNzZmZDQ1NWVhYThjNWE3MjgxMzBhYWVl
11
+ YmI1MDNkYmFkZjBjNzQ3NTM0ZDU2ODkxOGY5ODZhNzgwNDE3MTg=
12
12
  data.tar.gz: !binary |-
13
- NGY4MWQxYzg3ZDdmZGVjNzM0ODQyNzI4Zjg3MmViNGIwMjE5ZDIzY2YzY2Vk
14
- NDBmYzk2ZjRjMGJjZWFjYTlmOWNiNzEzYjlhYWZkMjgwYWYyNWRkNWFlZjE0
15
- NmFiMzI3ZDE1YzBjOGJiMWFhZjcyNzg5N2M1ZjU1YjBhOTMwOTY=
13
+ MTU4ZTNmNGY1ZjMxYWM2ZTkzNmJkZWI0ZDBlY2Q3ZmY1MmZiZmM0MmI2ZTZk
14
+ ZWU5YzI1NDk1NWQ4ODkxYmE4ZjI4MmVlNzc1ZjQ2MzcxMTYwZWI5ZmRmMTA3
15
+ NWI5MTg5MTFkZjU5ZDFkYjNiNjNiYTAwOGUzMzc3YjNhZWIxOWM=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AdminAuth
2
2
 
3
- This a small gem that extracts simple admin database authentication functionality.
3
+ This is a small gem for rails that extracts simple admin database authentication functionality.
4
4
 
5
5
  It is written in a way that will work with both `ActiveRecord` and `Mongoid` and any other ORM that has the methods `all`, `new`, `create`, `where`, `update_attributes`, `destroy` (And they work in the same fashion).
6
6
 
data/admin_auth.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = AdminAuth::VERSION
9
9
  spec.authors = ["Phillip Boksz"]
10
10
  spec.email = ["pboksz@gmail.com"]
11
- spec.summary = "A gem that helps with basic database authentication."
11
+ spec.summary = "A gem for rails that helps with basic database authentication."
12
12
  spec.description = spec.summary
13
13
  spec.license = "MIT"
14
14
  spec.homepage = "https://github.com/pboksz/admin_auth"
@@ -1,8 +1,8 @@
1
1
  module AdminAuth
2
2
  class Railtie < ::Rails::Railtie
3
3
  initializer :admin_auth do
4
- ::Admin.include(AdminAuth::Model)
5
- ::ApplicationController.include(AdminAuth::Controller)
4
+ ::Admin.include(AdminAuth::Model) if defined?(::Admin)
5
+ ::ApplicationController.include(AdminAuth::Controller) if defined?(::ApplicationController)
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module AdminAuth
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Boksz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-12 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3'
111
- description: A gem that helps with basic database authentication.
111
+ description: A gem for rails that helps with basic database authentication.
112
112
  email:
113
113
  - pboksz@gmail.com
114
114
  executables: []
@@ -169,7 +169,7 @@ rubyforge_project:
169
169
  rubygems_version: 2.4.5
170
170
  signing_key:
171
171
  specification_version: 4
172
- summary: A gem that helps with basic database authentication.
172
+ summary: A gem for rails that helps with basic database authentication.
173
173
  test_files:
174
174
  - spec/lib/admin_auth/controller_spec.rb
175
175
  - spec/lib/admin_auth/encryptor_spec.rb