mix-auth 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- module MixAuth
1
+ module Auth
2
2
  class ApplicationController < ActionController::Base
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module MixAuth
1
+ module Auth
2
2
  class SessionsController < Devise::SessionsController
3
3
  def new
4
4
 
@@ -1,4 +1,4 @@
1
- module MixAuth
1
+ module Auth
2
2
  module ApplicationHelper
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module MixAuth
1
+ module Auth
2
2
  class User
3
3
  include Mongoid::Document
4
4
  # Include default devise modules. Others available are:
@@ -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
- # ==> Mountable engine configurations
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
- MixAuth::Engine.routes.draw do
2
- devise_for :users, class_name: 'MixAuth::User', module: :devise, mounted: true
1
+ Auth::Engine.routes.draw do
2
+ devise_for :users, class_name: 'Auth::User', module: :devise, mounted: true
3
3
  end
@@ -0,0 +1,5 @@
1
+ module Auth
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Auth
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Auth
2
+ VERSION = "0.2.0"
3
+ end
data/lib/mix-auth.rb CHANGED
@@ -1,7 +1,7 @@
1
- require "mix-auth/engine"
1
+ require "auth/engine"
2
2
 
3
3
  require "mongoid"
4
4
  require "devise"
5
5
 
6
- module MixAuth
6
+ module Auth
7
7
  end
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.1.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/mix-auth/application.css
86
- - app/assets/javascripts/mix-auth/application.js
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/mix-auth/application_controller.rb
100
- - app/controllers/mix-auth/sessions_controller.rb
101
- - app/models/mix-auth/user.rb
102
- - app/helpers/mix-auth/application_helper.rb
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/tasks/mix-auth_tasks.rake
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: 550318476984316709
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: 550318476984316709
139
+ hash: -1855578429569968668
140
140
  requirements: []
141
141
  rubyforge_project:
142
142
  rubygems_version: 1.8.24
@@ -1,5 +0,0 @@
1
- module MixAuth
2
- class Engine < ::Rails::Engine
3
- isolate_namespace MixAuth
4
- end
5
- end
@@ -1,3 +0,0 @@
1
- module MixAuth
2
- VERSION = "0.1.0"
3
- end