muck-users 0.3.19 → 0.3.20
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.3.
|
1
|
+
0.3.20
|
@@ -106,7 +106,7 @@ class Muck::UsersController < ApplicationController
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
respond_to do |format|
|
109
|
-
if
|
109
|
+
if !@user.blank? && !@user.errors.on(:login) && !result.blank?
|
110
110
|
format.html { render :partial => 'users/available', :locals => { :message => result } }
|
111
111
|
format.js { render :partial => 'users/available', :locals => { :message => result } }
|
112
112
|
else
|
data/muck-users.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-users}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.20"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-10}
|
13
13
|
s.description = %q{Easily add user signup, login and other features to your application}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -299,21 +299,21 @@ class Muck::UsersControllerTest < ActionController::TestCase
|
|
299
299
|
post :is_login_available
|
300
300
|
end
|
301
301
|
should_respond_with :success
|
302
|
-
should_render_text ""
|
302
|
+
should_render_text '<span class="unavailable"></span>'
|
303
303
|
end
|
304
304
|
context "empty login" do
|
305
305
|
setup do
|
306
306
|
post :is_login_available, :user_login => ''
|
307
307
|
end
|
308
308
|
should_respond_with :success
|
309
|
-
should_render_text I18n.t('muck.users.login_empty')
|
309
|
+
should_render_text '<span class="unavailable">' + I18n.t('muck.users.login_empty') + '</span>'
|
310
310
|
end
|
311
311
|
context "valid login" do
|
312
312
|
setup do
|
313
313
|
post :is_login_available, :user_login => 'testdude1945'
|
314
314
|
end
|
315
315
|
should_respond_with :success
|
316
|
-
should_render_text I18n.t('muck.users.username_available')
|
316
|
+
should_render_text '<span class="available">' + I18n.t('muck.users.username_available') + '</span>'
|
317
317
|
end
|
318
318
|
context "invalid login" do
|
319
319
|
setup do
|
@@ -338,28 +338,28 @@ class Muck::UsersControllerTest < ActionController::TestCase
|
|
338
338
|
post :is_email_available
|
339
339
|
end
|
340
340
|
should_respond_with :success
|
341
|
-
should_render_text ""
|
341
|
+
should_render_text '<span class="available"></span>'
|
342
342
|
end
|
343
343
|
context "empty email" do
|
344
344
|
setup do
|
345
345
|
post :is_email_available, :user_email => ''
|
346
346
|
end
|
347
347
|
should_respond_with :success
|
348
|
-
should_render_text I18n.t('muck.users.email_empty')
|
348
|
+
should_render_text '<span class="available">' + I18n.t('muck.users.email_empty') + '</span>'
|
349
349
|
end
|
350
350
|
context "valid email" do
|
351
351
|
setup do
|
352
352
|
post :is_email_available, :user_email => 'testdude1945@example.com'
|
353
353
|
end
|
354
354
|
should_respond_with :success
|
355
|
-
should_render_text I18n.t('muck.users.email_available')
|
355
|
+
should_render_text '<span class="available">' + I18n.t('muck.users.email_available') + '</span>'
|
356
356
|
end
|
357
357
|
context "invalid email" do
|
358
358
|
setup do
|
359
359
|
post :is_email_available, :user_email => 'testdude1945@com'
|
360
360
|
end
|
361
361
|
should_respond_with :success
|
362
|
-
should_render_text I18n.t('muck.users.email_invalid')
|
362
|
+
should_render_text '<span class="unavailable">' + I18n.t('muck.users.email_invalid') + '</span>'
|
363
363
|
end
|
364
364
|
context "email not available" do
|
365
365
|
setup do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-users
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 20
|
10
|
+
version: 0.3.20
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-08-10 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|