mix-rails-auth 0.12.2 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  module MixRailsAuth
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 12
5
- TINY = 2
4
+ MINOR = 15
5
+ TINY = 0
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
@@ -2,3 +2,15 @@
2
2
  # task :auth do
3
3
  # # Task goes here
4
4
  # end
5
+ #
6
+ #
7
+ desc "Create a default user as admin"
8
+ task :create_user, [:email, :password] => [:environment] do |t, args|
9
+ puts "Creating new user with #{:email} and password *** !"
10
+ u = User.create({email: args.email, password: args.password, password_confirmation: args.password})
11
+ if u.save!
12
+ puts "User created!"
13
+ else
14
+ puts "Error"
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.15.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -116,25 +116,25 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - app/controllers/admix/users_controller.rb
119
120
  - app/assets/stylesheets/admix/users.css
120
121
  - app/assets/javascripts/admix/users.js
121
- - app/views/admix/users/_form_fields.html.haml
122
- - app/views/admix/users/_table_actions.html.haml
123
- - app/views/admix/users/_show.html.haml
124
- - app/controllers/admix/users_controller.rb
125
- - app/models/user.rb
122
+ - app/helpers/admix/users_helper.rb
126
123
  - app/models/admix/users_datagrid.rb
127
124
  - app/models/ability.rb
128
- - app/helpers/admix/users_helper.rb
129
- - config/initializers/devise.rb
130
- - config/routes.rb
125
+ - app/models/user.rb
126
+ - app/views/admix/users/_show.html.haml
127
+ - app/views/admix/users/_table_actions.html.haml
128
+ - app/views/admix/users/_form_fields.html.haml
131
129
  - config/sessions.rb
130
+ - config/locales/auth.en.yml
132
131
  - config/locales/devise.pt-BR.yml
133
- - config/locales/auth.pt-BR.yml
134
132
  - config/locales/devise.en.yml
135
- - config/locales/auth.en.yml
136
- - lib/mix-rails-auth.rb
133
+ - config/locales/auth.pt-BR.yml
134
+ - config/initializers/devise.rb
135
+ - config/routes.rb
137
136
  - lib/tasks/auth_tasks.rake
137
+ - lib/mix-rails-auth.rb
138
138
  - lib/mix-rails-auth/version.rb
139
139
  - lib/mix-rails-auth/engine.rb
140
140
  - MIT-LICENSE
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: -2492373220237090831
157
+ hash: -1018458869242263962
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  none: false
160
160
  requirements:
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: -2492373220237090831
166
+ hash: -1018458869242263962
167
167
  requirements: []
168
168
  rubyforge_project:
169
169
  rubygems_version: 1.8.24