mix-rails-auth 0.12.2 → 0.15.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/lib/mix-rails-auth/version.rb +2 -2
- data/lib/tasks/auth_tasks.rake +12 -0
- metadata +14 -14
    
        data/lib/tasks/auth_tasks.rake
    CHANGED
    
    | @@ -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. | 
| 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/ | 
| 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/ | 
| 129 | 
            -
            -  | 
| 130 | 
            -
            -  | 
| 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. | 
| 136 | 
            -
            -  | 
| 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: - | 
| 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: - | 
| 166 | 
            +
                  hash: -1018458869242263962
         | 
| 167 167 | 
             
            requirements: []
         | 
| 168 168 | 
             
            rubyforge_project: 
         | 
| 169 169 | 
             
            rubygems_version: 1.8.24
         |