easy_auth 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,33 +14,57 @@ In your Gemfile add the following:
14
14
  gem 'easy_auth'
15
15
  ```
16
16
 
17
- After running Bundler you'll need to install the migrations
17
+ After running Bundler you'll need to install the migrations:
18
18
 
19
- ```ruby
19
+ ```
20
20
  rake easy_auth:install:migrations
21
21
  ```
22
22
 
23
23
  Then run your migrations.
24
24
 
25
+ You should also run the generator:
26
+
27
+ ```
28
+ rails g easy_auth:setup
29
+ ```
30
+
31
+ You will need to mix-in a few modules into your application:
32
+
33
+ ```ruby
34
+ class ApplicationController < ActionController::Base
35
+ include EasyAuthHelper
36
+ end
37
+ ```
38
+
39
+ ```ruby
40
+ class User < ActiveRecord::Base
41
+ include EasyAuth::Models::Account
42
+ end
43
+ ```
44
+
45
+ Your application is now ready for EasyAuth.
46
+
47
+ ## Usage ##
48
+
49
+ You will need to use one of the many
50
+ [plugins](https://github.com/dockyard/easy_auth/wiki/Plugins) available for EasyAuth to
51
+ provide a specific authentication strategy.
52
+
25
53
  ## Authors ##
26
54
 
27
55
  [Brian Cardarella](http://twitter.com/bcardarella)
28
56
 
57
+ [We are very thankful for the many contributors](https://github.com/dockyard/easy_auth/graphs/contributors)
58
+
29
59
  ## Versioning ##
30
60
 
31
61
  This gem follows [Semantic Versioning](http://semver.org)
32
62
 
33
63
  ## Want to help? ##
34
64
 
35
- Stable branches are created based upon each minor version. Please make
36
- pull requests to specific branches rather than master.
37
-
38
- Please make sure you include tests!
39
-
40
- Unles Rails drops support for Ruby 1.8.7 we will continue to use the
41
- hash-rocket syntax. Please respect this.
42
-
43
- Don't use tabs to indent, two spaces are the standard.
65
+ Please do! We are always looking to improve this gem. Please see our
66
+ [Contribution Guidelines](https://github.com/dockyard/easy_auth/blob/master/CONTRIBUTING.md)
67
+ on how to properly submit issues and pull requests.
44
68
 
45
69
  ## Legal ##
46
70
 
@@ -1,3 +1,3 @@
1
1
  module EasyAuth
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
data/lib/easy_auth.rb CHANGED
@@ -69,8 +69,8 @@ module EasyAuth
69
69
  camelcased_identity_name = params[:identity].to_s.camelcase
70
70
  if respond_to?(method_name)
71
71
  send(method_name, params)
72
- elsif eval("defined?(Identities::#{camelcased_identity_name})")
73
- eval("Identities::#{camelcased_identity_name}")
72
+ elsif eval("::Identities::#{camelcased_identity_name} rescue nil")
73
+ eval("::Identities::#{camelcased_identity_name}")
74
74
  else
75
75
  camelcased_identity_name.constantize
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  segments:
254
254
  - 0
255
- hash: 2413348689923643998
255
+ hash: 911422429951666950
256
256
  required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements:
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  segments:
263
263
  - 0
264
- hash: 2413348689923643998
264
+ hash: 911422429951666950
265
265
  requirements: []
266
266
  rubyforge_project:
267
267
  rubygems_version: 1.8.23