mix-auth 0.1.0 → 0.2.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/app/assets/javascripts/{mix-auth → auth}/application.js +0 -0
- data/app/assets/stylesheets/{mix-auth → auth}/application.css +0 -0
- data/app/controllers/{mix-auth → auth}/application_controller.rb +1 -1
- data/app/controllers/{mix-auth → auth}/sessions_controller.rb +1 -1
- data/app/helpers/{mix-auth → auth}/application_helper.rb +1 -1
- data/app/models/{mix-auth → auth}/user.rb +1 -1
- data/config/initializers/devise.rb +14 -13
- data/config/routes.rb +2 -2
- data/lib/auth/engine.rb +5 -0
- data/lib/auth/version.rb +3 -0
- data/lib/mix-auth.rb +2 -2
- data/lib/tasks/{mix-auth_tasks.rake → auth_tasks.rake} +0 -0
- metadata +12 -12
- data/lib/mix-auth/engine.rb +0 -5
- data/lib/mix-auth/version.rb +0 -3
File without changes
|
File without changes
|
@@ -2,6 +2,19 @@
|
|
2
2
|
# Many of these configuration options can be set straight in your model.
|
3
3
|
Devise.setup do |config|
|
4
4
|
|
5
|
+
# ==> Mountable engine configurations
|
6
|
+
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
7
|
+
# is mountable, there are some extra configurations to be taken into account.
|
8
|
+
# The following options are available, assuming the engine is mounted as:
|
9
|
+
#
|
10
|
+
# mount MyEngine, at: "/my_engine"
|
11
|
+
#
|
12
|
+
# The router that invoked `devise_for`, in the example above, would be:
|
13
|
+
config.router_name = :auth
|
14
|
+
#
|
15
|
+
# When using omniauth, Devise cannot automatically set Omniauth path,
|
16
|
+
# so you need to do it manually. For the users scope, it would be:
|
17
|
+
# config.omniauth_path_prefix = "/my_engine/users/auth"
|
5
18
|
|
6
19
|
#config.router_name = :auth_user
|
7
20
|
#
|
@@ -223,17 +236,5 @@ Devise.setup do |config|
|
|
223
236
|
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
224
237
|
# end
|
225
238
|
|
226
|
-
|
227
|
-
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
228
|
-
# is mountable, there are some extra configurations to be taken into account.
|
229
|
-
# The following options are available, assuming the engine is mounted as:
|
230
|
-
#
|
231
|
-
# mount MyEngine, at: "/my_engine"
|
232
|
-
#
|
233
|
-
# The router that invoked `devise_for`, in the example above, would be:
|
234
|
-
config.router_name = :auth
|
235
|
-
#
|
236
|
-
# When using omniauth, Devise cannot automatically set Omniauth path,
|
237
|
-
# so you need to do it manually. For the users scope, it would be:
|
238
|
-
# config.omniauth_path_prefix = "/my_engine/users/auth"
|
239
|
+
|
239
240
|
end
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
devise_for :users, class_name: '
|
1
|
+
Auth::Engine.routes.draw do
|
2
|
+
devise_for :users, class_name: 'Auth::User', module: :devise, mounted: true
|
3
3
|
end
|
data/lib/auth/engine.rb
ADDED
data/lib/auth/version.rb
ADDED
data/lib/mix-auth.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mix-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -82,8 +82,8 @@ executables: []
|
|
82
82
|
extensions: []
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
|
-
- app/assets/stylesheets/
|
86
|
-
- app/assets/javascripts/
|
85
|
+
- app/assets/stylesheets/auth/application.css
|
86
|
+
- app/assets/javascripts/auth/application.js
|
87
87
|
- app/views/layouts/auth/application.html.erb
|
88
88
|
- app/views/users/passwords/edit.html.erb
|
89
89
|
- app/views/users/passwords/new.html.erb
|
@@ -96,20 +96,20 @@ files:
|
|
96
96
|
- app/views/users/confirmations/new.html.erb
|
97
97
|
- app/views/users/sessions/new.html.erb
|
98
98
|
- app/views/users/shared/_links.erb
|
99
|
-
- app/controllers/
|
100
|
-
- app/controllers/
|
101
|
-
- app/models/
|
102
|
-
- app/helpers/
|
99
|
+
- app/controllers/auth/application_controller.rb
|
100
|
+
- app/controllers/auth/sessions_controller.rb
|
101
|
+
- app/models/auth/user.rb
|
102
|
+
- app/helpers/auth/application_helper.rb
|
103
103
|
- config/initializers/devise.rb
|
104
104
|
- config/initializers/locales.rb
|
105
105
|
- config/routes.rb
|
106
106
|
- config/locales/devise.pt-BR.yml
|
107
107
|
- config/locales/auth.pt-BR.yml
|
108
108
|
- config/locales/devise.en.yml
|
109
|
-
- lib/
|
109
|
+
- lib/auth/version.rb
|
110
|
+
- lib/auth/engine.rb
|
111
|
+
- lib/tasks/auth_tasks.rake
|
110
112
|
- lib/mix-auth.rb
|
111
|
-
- lib/mix-auth/version.rb
|
112
|
-
- lib/mix-auth/engine.rb
|
113
113
|
- MIT-LICENSE
|
114
114
|
- Rakefile
|
115
115
|
- README.rdoc
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
segments:
|
129
129
|
- 0
|
130
|
-
hash:
|
130
|
+
hash: -1855578429569968668
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: -1855578429569968668
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
142
|
rubygems_version: 1.8.24
|
data/lib/mix-auth/engine.rb
DELETED
data/lib/mix-auth/version.rb
DELETED