wristband 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.0.3'
4
- gem 'haml', '3.0.25'
5
- gem 'formatted_form', '1.0.0'
3
+ gem 'rails', '>=3.0.4'
4
+ gem 'haml', '>=3.0.25'
5
+ gem 'formatted_form'
6
6
 
7
7
  group :development, :test do
8
8
  gem 'sqlite3'
data/Gemfile.lock CHANGED
@@ -2,37 +2,37 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.3)
6
- actionpack (= 3.0.3)
7
- mail (~> 2.2.9)
8
- actionpack (3.0.3)
9
- activemodel (= 3.0.3)
10
- activesupport (= 3.0.3)
5
+ actionmailer (3.0.4)
6
+ actionpack (= 3.0.4)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.4)
9
+ activemodel (= 3.0.4)
10
+ activesupport (= 3.0.4)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
13
  i18n (~> 0.4)
14
14
  rack (~> 1.2.1)
15
15
  rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.6)
16
+ rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.3)
19
- activesupport (= 3.0.3)
18
+ activemodel (3.0.4)
19
+ activesupport (= 3.0.4)
20
20
  builder (~> 2.1.2)
21
21
  i18n (~> 0.4)
22
- activerecord (3.0.3)
23
- activemodel (= 3.0.3)
24
- activesupport (= 3.0.3)
22
+ activerecord (3.0.4)
23
+ activemodel (= 3.0.4)
24
+ activesupport (= 3.0.4)
25
25
  arel (~> 2.0.2)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.3)
28
- activemodel (= 3.0.3)
29
- activesupport (= 3.0.3)
30
- activesupport (3.0.3)
31
- arel (2.0.7)
27
+ activeresource (3.0.4)
28
+ activemodel (= 3.0.4)
29
+ activesupport (= 3.0.4)
30
+ activesupport (3.0.4)
31
+ arel (2.0.8)
32
32
  builder (2.1.2)
33
33
  erubis (2.6.6)
34
34
  abstract (>= 1.0.0)
35
- faker (0.9.4)
35
+ faker (0.9.5)
36
36
  i18n (~> 0.4)
37
37
  formatted_form (1.0.0)
38
38
  git (1.2.5)
@@ -42,7 +42,7 @@ GEM
42
42
  bundler (~> 1.0.0)
43
43
  git (>= 1.2.5)
44
44
  rake
45
- mail (2.2.14)
45
+ mail (2.2.15)
46
46
  activesupport (>= 2.3.6)
47
47
  i18n (>= 0.4.0)
48
48
  mime-types (~> 1.16)
@@ -54,17 +54,17 @@ GEM
54
54
  rack (>= 1.0.0)
55
55
  rack-test (0.5.7)
56
56
  rack (>= 1.0)
57
- rails (3.0.3)
58
- actionmailer (= 3.0.3)
59
- actionpack (= 3.0.3)
60
- activerecord (= 3.0.3)
61
- activeresource (= 3.0.3)
62
- activesupport (= 3.0.3)
57
+ rails (3.0.4)
58
+ actionmailer (= 3.0.4)
59
+ actionpack (= 3.0.4)
60
+ activerecord (= 3.0.4)
61
+ activeresource (= 3.0.4)
62
+ activesupport (= 3.0.4)
63
63
  bundler (~> 1.0)
64
- railties (= 3.0.3)
65
- railties (3.0.3)
66
- actionpack (= 3.0.3)
67
- activesupport (= 3.0.3)
64
+ railties (= 3.0.4)
65
+ railties (3.0.4)
66
+ actionpack (= 3.0.4)
67
+ activesupport (= 3.0.4)
68
68
  rake (>= 0.8.7)
69
69
  thor (~> 0.14.4)
70
70
  rake (0.8.7)
@@ -80,9 +80,9 @@ PLATFORMS
80
80
 
81
81
  DEPENDENCIES
82
82
  faker
83
- formatted_form (= 1.0.0)
84
- haml (= 3.0.25)
83
+ formatted_form
84
+ haml (>= 3.0.25)
85
85
  jeweler
86
- rails (= 3.0.3)
86
+ rails (>= 3.0.4)
87
87
  sqlite3
88
88
  test_dummy
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = 'jack@theworkinggroup.ca'
13
13
  gem.homepage = 'http://github.com/twg/wristband'
14
14
  gem.authors = ['Jack Neto', 'The Working Group Inc']
15
- gem.add_dependency('rails', '>=3.0.3')
15
+ gem.add_dependency('rails', '>=3.0.4')
16
16
  gem.add_dependency('haml', '>=3.0.25')
17
17
  gem.add_dependency('formatted_form', '>=1.0.0')
18
18
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.4
@@ -8,7 +8,7 @@ class SessionsController < ApplicationController
8
8
  login(@session_user)
9
9
  redirect_to(user_path(current_user), :notice => "Welcome, you are now logged in.")
10
10
  else
11
- flash[:alert] = 'Login failed. Did you mistype?'
11
+ flash.now[:alert] = 'Login failed. Did you mistype?'
12
12
  render :action => :new
13
13
  end
14
14
  end
data/app/models/user.rb CHANGED
@@ -20,12 +20,13 @@ class User < ActiveRecord::Base
20
20
  :with => /^([\w.%-+]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,
21
21
  :message => 'The email address you entered is not valid'
22
22
  },
23
- :uniqueness => true
23
+ :uniqueness => {:message => 'This email has already been taken'}
24
24
 
25
25
  validates :password,
26
26
  :length => {
27
27
  :within => 4..40,
28
- :too_short => "The password you entered is too short (minimum is 4 characters)"
28
+ :too_short => "The password you entered is too short (minimum is 4 characters)",
29
+ :if => :password_required?
29
30
  },
30
31
  :presence => {
31
32
  :message => 'Please choose a password',
data/config/routes.rb CHANGED
@@ -1,8 +1,10 @@
1
- Rails.application.routes.draw do
2
- post '/login' => 'sessions#create'
3
- get '/login' => 'sessions#new'
4
- get '/logout' => 'sessions#destroy'
1
+ if defined?(Wristband::Application)
2
+ Rails.application.routes.draw do
3
+ post '/login' => 'sessions#create'
4
+ get '/login' => 'sessions#new'
5
+ get '/logout' => 'sessions#destroy'
5
6
 
6
- resources :users
7
- resources :passwords, :only => [:new, :create, :edit, :update]
8
- end
7
+ resources :users
8
+ resources :passwords, :only => [:new, :create, :edit, :update]
9
+ end
10
+ end
data/wristband.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wristband}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "The Working Group Inc"]
12
- s.date = %q{2011-01-25}
12
+ s.date = %q{2011-02-15}
13
13
  s.description = %q{Provides a starting point for user authentication}
14
14
  s.email = %q{jack@theworkinggroup.ca}
15
15
  s.extra_rdoc_files = [
@@ -92,31 +92,31 @@ Gem::Specification.new do |s|
92
92
  s.specification_version = 3
93
93
 
94
94
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
95
- s.add_runtime_dependency(%q<rails>, ["= 3.0.3"])
96
- s.add_runtime_dependency(%q<haml>, ["= 3.0.25"])
97
- s.add_runtime_dependency(%q<formatted_form>, ["= 1.0.0"])
95
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.4"])
96
+ s.add_runtime_dependency(%q<haml>, [">= 3.0.25"])
97
+ s.add_runtime_dependency(%q<formatted_form>, [">= 0"])
98
98
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
99
99
  s.add_development_dependency(%q<jeweler>, [">= 0"])
100
- s.add_runtime_dependency(%q<rails>, [">= 3.0.3"])
100
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.4"])
101
101
  s.add_runtime_dependency(%q<haml>, [">= 3.0.25"])
102
102
  s.add_runtime_dependency(%q<formatted_form>, [">= 1.0.0"])
103
103
  else
104
- s.add_dependency(%q<rails>, ["= 3.0.3"])
105
- s.add_dependency(%q<haml>, ["= 3.0.25"])
106
- s.add_dependency(%q<formatted_form>, ["= 1.0.0"])
104
+ s.add_dependency(%q<rails>, [">= 3.0.4"])
105
+ s.add_dependency(%q<haml>, [">= 3.0.25"])
106
+ s.add_dependency(%q<formatted_form>, [">= 0"])
107
107
  s.add_dependency(%q<sqlite3>, [">= 0"])
108
108
  s.add_dependency(%q<jeweler>, [">= 0"])
109
- s.add_dependency(%q<rails>, [">= 3.0.3"])
109
+ s.add_dependency(%q<rails>, [">= 3.0.4"])
110
110
  s.add_dependency(%q<haml>, [">= 3.0.25"])
111
111
  s.add_dependency(%q<formatted_form>, [">= 1.0.0"])
112
112
  end
113
113
  else
114
- s.add_dependency(%q<rails>, ["= 3.0.3"])
115
- s.add_dependency(%q<haml>, ["= 3.0.25"])
116
- s.add_dependency(%q<formatted_form>, ["= 1.0.0"])
114
+ s.add_dependency(%q<rails>, [">= 3.0.4"])
115
+ s.add_dependency(%q<haml>, [">= 3.0.25"])
116
+ s.add_dependency(%q<formatted_form>, [">= 0"])
117
117
  s.add_dependency(%q<sqlite3>, [">= 0"])
118
118
  s.add_dependency(%q<jeweler>, [">= 0"])
119
- s.add_dependency(%q<rails>, [">= 3.0.3"])
119
+ s.add_dependency(%q<rails>, [">= 3.0.4"])
120
120
  s.add_dependency(%q<haml>, [">= 3.0.25"])
121
121
  s.add_dependency(%q<formatted_form>, [">= 1.0.0"])
122
122
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jack Neto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-25 00:00:00 -05:00
18
+ date: 2011-02-15 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -23,13 +23,13 @@ dependencies:
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - "="
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 3
30
30
  - 0
31
- - 3
32
- version: 3.0.3
31
+ - 4
32
+ version: 3.0.4
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: *id001
@@ -38,7 +38,7 @@ dependencies:
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - "="
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  segments:
44
44
  - 3
@@ -53,13 +53,11 @@ dependencies:
53
53
  requirement: &id003 !ruby/object:Gem::Requirement
54
54
  none: false
55
55
  requirements:
56
- - - "="
56
+ - - ">="
57
57
  - !ruby/object:Gem::Version
58
58
  segments:
59
- - 1
60
59
  - 0
61
- - 0
62
- version: 1.0.0
60
+ version: "0"
63
61
  type: :runtime
64
62
  prerelease: false
65
63
  version_requirements: *id003
@@ -99,8 +97,8 @@ dependencies:
99
97
  segments:
100
98
  - 3
101
99
  - 0
102
- - 3
103
- version: 3.0.3
100
+ - 4
101
+ version: 3.0.4
104
102
  type: :runtime
105
103
  prerelease: false
106
104
  version_requirements: *id006
@@ -211,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
209
  requirements:
212
210
  - - ">="
213
211
  - !ruby/object:Gem::Version
214
- hash: -1436971957664611674
212
+ hash: -600781172638808744
215
213
  segments:
216
214
  - 0
217
215
  version: "0"