user_authentication 1.2.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57e9ba4daaad1b708937f87ff438dd0d0a1b353f
4
- data.tar.gz: 729a910c66b5e0dab1797b2510cec2c86b91be38
3
+ metadata.gz: 1290fcf0cd4be8593675206e2e2b7a1bad4bf860
4
+ data.tar.gz: 9aa3253d9ccc6814236e2fd36be987abde5cf23e
5
5
  SHA512:
6
- metadata.gz: 3005e24b0eff3e478813c1e00ef46a3c450196459161f70800e04d5e5a66c315b103ca4cb769e4493886f9d082a9ca6f649aa3f9402194c76f9740b90e889ce1
7
- data.tar.gz: ed2f71e9e14824b5432191eae842a605b703634858d04317bc2b865c33aa5fab7fc73749c59eee05ab98be31a91a2cf1c6e8b1179eb0f8aa63efa74b8e7b731e
6
+ metadata.gz: 52652bc849c384e5c3ef577f3f644e516e4cc79bc55e623deca68c79ab2e002b3e3c07ff7345728990ce8f0f0c31965c885e8f45ae33c16c1f2f79a45721b708
7
+ data.tar.gz: e45024f92f338452b8130768d3132fd5abe22e49fd0694e582ad4978674cb83008d2298d9b532a68780860dbd4fb7d3072b63994957e915a6bee0a5c084a63db
@@ -12,5 +12,16 @@ module UserAuthentication
12
12
  config.after_initialize do
13
13
  require File.expand_path('../../app/models/account', __FILE__)
14
14
  end
15
+
16
+ def self.routes
17
+ Rails.application.routes.draw do
18
+ get 'login' => 'accounts#login'
19
+ post 'login' => 'accounts#do_login'
20
+ get 'logout' => 'accounts#logout'
21
+ post 'set_password' => 'accounts#do_set_password'
22
+ get 'signup' => 'accounts#signup'
23
+ post 'signup' => 'accounts#do_signup'
24
+ end
25
+ end
15
26
  end
16
- end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module UserAuthentication
2
- VERSION = '1.2.2'
2
+ VERSION = '2.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujoy Gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -154,13 +154,11 @@ files:
154
154
  - app/views/accounts/default_signup.html.erb
155
155
  - app/views/shared/_login.html.erb
156
156
  - app/views/shared/_signup.html.erb
157
- - config/routes.rb
158
157
  - db/migrate/20121009010000_create_accounts.rb
159
158
  - lib/random.rb
160
159
  - lib/tasks/user_authentication_tasks.rake
161
160
  - lib/user_authentication.rb
162
161
  - lib/user_authentication/version.rb
163
- - lib/user_authentication/version.rb~
164
162
  homepage: http://github.com/sujoyg/user_authentication
165
163
  licenses:
166
164
  - MIT
@@ -181,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
179
  version: '0'
182
180
  requirements: []
183
181
  rubyforge_project:
184
- rubygems_version: 2.4.6
182
+ rubygems_version: 2.4.8
185
183
  signing_key:
186
184
  specification_version: 4
187
185
  summary: A rails engine for email and password based account authentication.
data/config/routes.rb DELETED
@@ -1,8 +0,0 @@
1
- Rails.application.routes.draw do
2
- get 'login' => 'accounts#login'
3
- post 'login' => 'accounts#do_login'
4
- get 'logout' => 'accounts#logout'
5
- post 'set_password' => 'accounts#do_set_password'
6
- get 'signup' => 'accounts#signup'
7
- post 'signup' => 'accounts#do_signup'
8
- end
@@ -1,3 +0,0 @@
1
- module UserAuthentication
2
- VERSION = '1.2.1'
3
- end