simple_auth 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,115 +1,114 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_auth (1.4.4)
4
+ simple_auth (1.4.5)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- actionmailer (3.2.1)
10
- actionpack (= 3.2.1)
11
- mail (~> 2.4.0)
12
- actionpack (3.2.1)
13
- activemodel (= 3.2.1)
14
- activesupport (= 3.2.1)
9
+ actionmailer (3.2.12)
10
+ actionpack (= 3.2.12)
11
+ mail (~> 2.4.4)
12
+ actionpack (3.2.12)
13
+ activemodel (= 3.2.12)
14
+ activesupport (= 3.2.12)
15
15
  builder (~> 3.0.0)
16
16
  erubis (~> 2.7.0)
17
- journey (~> 1.0.1)
18
- rack (~> 1.4.0)
19
- rack-cache (~> 1.1)
17
+ journey (~> 1.0.4)
18
+ rack (~> 1.4.5)
19
+ rack-cache (~> 1.2)
20
20
  rack-test (~> 0.6.1)
21
- sprockets (~> 2.1.2)
22
- activemodel (3.2.1)
23
- activesupport (= 3.2.1)
21
+ sprockets (~> 2.2.1)
22
+ activemodel (3.2.12)
23
+ activesupport (= 3.2.12)
24
24
  builder (~> 3.0.0)
25
- activerecord (3.2.1)
26
- activemodel (= 3.2.1)
27
- activesupport (= 3.2.1)
28
- arel (~> 3.0.0)
25
+ activerecord (3.2.12)
26
+ activemodel (= 3.2.12)
27
+ activesupport (= 3.2.12)
28
+ arel (~> 3.0.2)
29
29
  tzinfo (~> 0.3.29)
30
- activeresource (3.2.1)
31
- activemodel (= 3.2.1)
32
- activesupport (= 3.2.1)
33
- activesupport (3.2.1)
30
+ activeresource (3.2.12)
31
+ activemodel (= 3.2.12)
32
+ activesupport (= 3.2.12)
33
+ activesupport (3.2.12)
34
34
  i18n (~> 0.6)
35
35
  multi_json (~> 1.0)
36
36
  arel (3.0.2)
37
- bson (1.6.0)
38
- bson_ext (1.6.0)
39
- bson (= 1.6.0)
40
- builder (3.0.0)
37
+ bson (1.8.2)
38
+ bson_ext (1.8.2)
39
+ bson (~> 1.8.2)
40
+ builder (3.0.4)
41
41
  diff-lcs (1.1.3)
42
42
  erubis (2.7.0)
43
43
  hike (1.2.1)
44
- i18n (0.6.0)
45
- journey (1.0.3)
46
- json (1.6.5)
47
- mail (2.4.1)
44
+ i18n (0.6.1)
45
+ journey (1.0.4)
46
+ json (1.7.7)
47
+ mail (2.4.4)
48
48
  i18n (>= 0.4.0)
49
49
  mime-types (~> 1.16)
50
50
  treetop (~> 1.4.8)
51
- mime-types (1.17.2)
52
- mongo (1.6.0)
53
- bson (= 1.6.0)
51
+ mime-types (1.21)
52
+ mongo (1.8.2)
53
+ bson (~> 1.8.2)
54
54
  mongo_mapper (0.9.2)
55
55
  activemodel (~> 3.0)
56
56
  activesupport (~> 3.0)
57
57
  plucky (~> 0.3.8)
58
- multi_json (1.1.0)
58
+ multi_json (1.6.0)
59
59
  plucky (0.3.8)
60
60
  mongo (~> 1.3)
61
61
  polyglot (0.3.3)
62
- rack (1.4.1)
63
- rack-cache (1.1)
62
+ rack (1.4.5)
63
+ rack-cache (1.2)
64
64
  rack (>= 0.4)
65
- rack-ssl (1.3.2)
65
+ rack-ssl (1.3.3)
66
66
  rack
67
- rack-test (0.6.1)
67
+ rack-test (0.6.2)
68
68
  rack (>= 1.0)
69
- rails (3.2.1)
70
- actionmailer (= 3.2.1)
71
- actionpack (= 3.2.1)
72
- activerecord (= 3.2.1)
73
- activeresource (= 3.2.1)
74
- activesupport (= 3.2.1)
69
+ rails (3.2.12)
70
+ actionmailer (= 3.2.12)
71
+ actionpack (= 3.2.12)
72
+ activerecord (= 3.2.12)
73
+ activeresource (= 3.2.12)
74
+ activesupport (= 3.2.12)
75
75
  bundler (~> 1.0)
76
- railties (= 3.2.1)
77
- railties (3.2.1)
78
- actionpack (= 3.2.1)
79
- activesupport (= 3.2.1)
76
+ railties (= 3.2.12)
77
+ railties (3.2.12)
78
+ actionpack (= 3.2.12)
79
+ activesupport (= 3.2.12)
80
80
  rack-ssl (~> 1.3.2)
81
81
  rake (>= 0.8.7)
82
82
  rdoc (~> 3.4)
83
- thor (~> 0.14.6)
84
- rake (0.9.2.2)
85
- rdoc (3.12)
83
+ thor (>= 0.14.6, < 2.0)
84
+ rake (10.0.3)
85
+ rdoc (3.12.1)
86
86
  json (~> 1.4)
87
- rspec (2.8.0)
88
- rspec-core (~> 2.8.0)
89
- rspec-expectations (~> 2.8.0)
90
- rspec-mocks (~> 2.8.0)
91
- rspec-core (2.8.0)
92
- rspec-expectations (2.8.0)
93
- diff-lcs (~> 1.1.2)
94
- rspec-mocks (2.8.0)
95
- rspec-rails (2.8.1)
87
+ rspec-core (2.12.2)
88
+ rspec-expectations (2.12.1)
89
+ diff-lcs (~> 1.1.3)
90
+ rspec-mocks (2.12.2)
91
+ rspec-rails (2.12.2)
96
92
  actionpack (>= 3.0)
97
93
  activesupport (>= 3.0)
98
94
  railties (>= 3.0)
99
- rspec (~> 2.8.0)
100
- sprockets (2.1.2)
95
+ rspec-core (~> 2.12.0)
96
+ rspec-expectations (~> 2.12.0)
97
+ rspec-mocks (~> 2.12.0)
98
+ sprockets (2.2.2)
101
99
  hike (~> 1.2)
100
+ multi_json (~> 1.0)
102
101
  rack (~> 1.0)
103
102
  tilt (~> 1.1, != 1.3.0)
104
- sqlite3 (1.3.5)
103
+ sqlite3 (1.3.7)
105
104
  sqlite3-ruby (1.3.3)
106
105
  sqlite3 (>= 1.3.3)
107
- thor (0.14.6)
106
+ thor (0.17.0)
108
107
  tilt (1.3.3)
109
- treetop (1.4.10)
108
+ treetop (1.4.12)
110
109
  polyglot
111
110
  polyglot (>= 0.3.1)
112
- tzinfo (0.3.31)
111
+ tzinfo (0.3.35)
113
112
 
114
113
  PLATFORMS
115
114
  ruby
@@ -72,13 +72,13 @@ module SimpleAuth
72
72
  # User.authenticate "john@doe.com", "test"
73
73
  #
74
74
  def authenticate(credential, password)
75
- record = find_by_credential(credential)
75
+ record = find_by_credential(credential.to_s)
76
76
 
77
77
  # If no record has been found
78
78
  return nil unless record
79
79
 
80
80
  # Compare password
81
- return nil unless record.password_hash == SimpleAuth::Config.crypter.call(password, record.password_salt)
81
+ return nil unless record.password_hash == SimpleAuth::Config.crypter.call(password.to_s, record.password_salt)
82
82
 
83
83
  # Yay! Everything matched so return record.
84
84
  record
@@ -2,7 +2,7 @@ module SimpleAuth
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- PATCH = 4
5
+ PATCH = 5
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
- end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-03 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70095643747020 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70095643747020
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: sqlite3-ruby
27
- requirement: &70095643746440 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70095643746440
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec-rails
38
- requirement: &70095643745900 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '2.5'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70095643745900
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.5'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: mongo_mapper
49
- requirement: &70095643745400 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: 0.9.1
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70095643745400
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.9.1
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: bson_ext
60
- requirement: &70095643745020 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: '0'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70095643745020
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  description: A simple authentication system for Rails apps
70
95
  email:
71
96
  - fnando.vieira@gmail.com
@@ -126,40 +151,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
151
  - - ! '>='
127
152
  - !ruby/object:Gem::Version
128
153
  version: '0'
129
- segments:
130
- - 0
131
- hash: -1522657453782155445
132
154
  required_rubygems_version: !ruby/object:Gem::Requirement
133
155
  none: false
134
156
  requirements:
135
157
  - - ! '>='
136
158
  - !ruby/object:Gem::Version
137
159
  version: '0'
138
- segments:
139
- - 0
140
- hash: -1522657453782155445
141
160
  requirements: []
142
161
  rubyforge_project:
143
- rubygems_version: 1.8.11
162
+ rubygems_version: 1.8.25
144
163
  signing_key:
145
164
  specification_version: 3
146
165
  summary: A simple authentication system for Rails apps
147
- test_files:
148
- - spec/controllers/redirect_logged_user_spec.rb
149
- - spec/controllers/require_logged_user_spec.rb
150
- - spec/schema.rb
151
- - spec/simple_auth/active_record_spec.rb
152
- - spec/simple_auth/config_spec.rb
153
- - spec/simple_auth/helper_spec.rb
154
- - spec/simple_auth/initializer_spec.rb
155
- - spec/simple_auth/mongo_mapper_spec.rb
156
- - spec/simple_auth/session_spec.rb
157
- - spec/spec_helper.rb
158
- - spec/support/app/controllers/application_controller.rb
159
- - spec/support/app/models/account.rb
160
- - spec/support/app/models/user.rb
161
- - spec/support/app/views/dashboard/index.erb
162
- - spec/support/app/views/session/new.erb
163
- - spec/support/config/boot.rb
164
- - spec/support/config/database.yml
165
- - spec/support/config/routes.rb
166
+ test_files: []