authn-rails 1.0.0 → 1.1.0

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.
data/.gitignore CHANGED
@@ -33,8 +33,3 @@
33
33
  # /test/tmp/
34
34
  # /test/version_tmp/
35
35
 
36
- # Ignore sub-gems
37
- /lib/authn/activation
38
- /lib/authn/recovery
39
- /lib/authn/protection
40
- /lib/authn/rails
data/authn-rails.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_runtime_dependency 'authn', '~> 1.0'
20
+ gem.add_runtime_dependency 'authn', '~> 2.0'
21
21
  gem.add_runtime_dependency 'rails', '~> 3.2'
22
22
  gem.add_runtime_dependency 'astruct', '~> 2.9'
23
23
  gem.add_runtime_dependency 'bcrypt-ruby', '~> 3.0'
@@ -1,13 +1,10 @@
1
- require 'authn'
2
- require 'rails'
3
-
4
1
  module AuthN
5
2
  # The AuthN engine takes care of extending ActiveRecord (if used) and ActionController,
6
3
  # With the plugin logic.
7
- class Engine < Rails::Engine
4
+ class Engine < ::Rails::Engine
8
5
  config.authn = AuthN.config
9
6
 
10
- initializer "extend Controller with AuthN" do |app|
7
+ initializer "Extend ActionController with AuthN" do |app|
11
8
  ActionController::Base.send :include, AuthN::Session
12
9
  ActionController::Base.helper_method :current_user
13
10
  ActionController::Base.helper_method :logged_in?
@@ -0,0 +1,5 @@
1
+ module AuthN
2
+ module Rails
3
+ VERSION = "1.1.0"
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ require 'authn'
2
+ require 'rails'
3
+ require_relative 'authn/rails/engine'
4
+ require_relative 'authn/rails/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authn-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-28 00:00:00.000000000 Z
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: authn
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '1.0'
21
+ version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: '2.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -123,8 +123,9 @@ files:
123
123
  - README.md
124
124
  - Rakefile
125
125
  - authn-rails.gemspec
126
- - lib/authn.rb
127
- - lib/authn/engine.rb
126
+ - lib/authn-rails.rb
127
+ - lib/authn/rails/engine.rb
128
+ - lib/authn/rails/version.rb
128
129
  - test/helper.rb
129
130
  - test/lib/authn/rails/version_test.rb
130
131
  homepage: http://github.com/krainboltgreene/authn-rails
@@ -141,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
142
  version: '0'
142
143
  segments:
143
144
  - 0
144
- hash: 3489654314563009080
145
+ hash: 2824456558225758350
145
146
  required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  none: false
147
148
  requirements:
@@ -150,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  version: '0'
151
152
  segments:
152
153
  - 0
153
- hash: 3489654314563009080
154
+ hash: 2824456558225758350
154
155
  requirements: []
155
156
  rubyforge_project:
156
157
  rubygems_version: 1.8.24
data/lib/authn.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'authn'
2
- require 'rails'