muck-users 0.1.13 → 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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.13
1
+ 0.2.0
@@ -112,8 +112,10 @@ class Muck::UsersController < ApplicationController
112
112
 
113
113
  def is_login_available
114
114
  result = t('muck.users.username_not_available')
115
- if params[:user_login] && params[:user_login].length <= 0
115
+ if params[:user_login].nil?
116
116
  result = ''
117
+ elsif params[:user_login].empty?
118
+ result = t('muck.users.login_empty')
117
119
  elsif !User.login_exists?(params[:user_login])
118
120
  @user = User.new(:login => params[:user_login])
119
121
  if !@user.validate_attributes(:only => [:login])
data/locales/en.yml CHANGED
@@ -24,6 +24,7 @@ en:
24
24
  email_available: "Email available"
25
25
  email_invalid: "Invalid email"
26
26
  email_empty: "Please enter an email address"
27
+ login_empty: "Please enter a login"
27
28
  username: Username
28
29
  username_help: "You can use between 6 and 20 characters. If the name you want isn't available try adding numbers or punctuation."
29
30
  password: Password
data/muck-users.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-users}
5
- s.version = "0.1.13"
5
+ s.version = "0.2.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-users
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball