mini_auth 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -1
- data/Gemfile +3 -7
- data/lib/mini_auth.rb +1 -1
- data/lib/mini_auth/version.rb +1 -1
- data/mini_auth.gemspec +3 -3
- data/spec/mini_auth/setting_password_spec.rb +9 -0
- data/test_on_multiple_environments2.sh +24 -0
- metadata +42 -16
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -7,17 +7,13 @@ if rails_version == "edge"
|
|
7
7
|
elsif rails_version && rails_version.strip != ""
|
8
8
|
gem "rails", rails_version
|
9
9
|
else
|
10
|
-
gem "rails", ">= 3.
|
10
|
+
gem "rails", ">= 3.2.6"
|
11
11
|
end
|
12
12
|
|
13
|
-
gem "bcrypt-ruby", "~> 3.0.
|
13
|
+
gem "bcrypt-ruby", "~> 3.0.1"
|
14
14
|
|
15
15
|
group :test do
|
16
|
-
|
17
|
-
gem "rspec-rails", "~> 2.8.0.rc2"
|
18
|
-
else
|
19
|
-
gem "rspec-rails", "~> 2.7.0"
|
20
|
-
end
|
16
|
+
gem "rspec-rails", "~> 2.11.0"
|
21
17
|
gem "sqlite3", "~> 1.3.4"
|
22
18
|
gem "database_cleaner", "~> 0.7.0"
|
23
19
|
end
|
data/lib/mini_auth.rb
CHANGED
data/lib/mini_auth/version.rb
CHANGED
data/mini_auth.gemspec
CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_runtime_dependency "rails", ">= 3.1.
|
21
|
-
s.add_runtime_dependency "bcrypt-ruby", "~> 3.0.
|
22
|
-
s.add_development_dependency "rspec-rails", "~> 2.
|
20
|
+
s.add_runtime_dependency "rails", ">= 3.1.6"
|
21
|
+
s.add_runtime_dependency "bcrypt-ruby", "~> 3.0.1"
|
22
|
+
s.add_development_dependency "rspec-rails", "~> 2.11.0"
|
23
23
|
s.add_development_dependency "sqlite3", "~> 1.3.4"
|
24
24
|
s.add_development_dependency "database_cleaner", "~> 0.7.0"
|
25
25
|
end
|
@@ -11,6 +11,15 @@ describe "setting_password" do
|
|
11
11
|
v.authenticate('hotyoga').should be_true
|
12
12
|
end
|
13
13
|
|
14
|
+
it "should set password even if the user is saved without validation" do
|
15
|
+
u = User.new(:name => 'alice', :password => 'hotyoga')
|
16
|
+
u.setting_password = true
|
17
|
+
u.save(:validate => false)
|
18
|
+
|
19
|
+
v = User.find_by_name('alice')
|
20
|
+
v.authenticate('hotyoga').should be_true
|
21
|
+
end
|
22
|
+
|
14
23
|
it "should update password" do
|
15
24
|
u = User.create!(:name => 'alice')
|
16
25
|
u.setting_password = true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
#
|
3
|
+
# rbenv version
|
4
|
+
|
5
|
+
set -e
|
6
|
+
|
7
|
+
function run {
|
8
|
+
gem list --local bundler | grep bundler || gem install bundler --no-ri --no-rdoc
|
9
|
+
|
10
|
+
for version in 3.1.6 3.2.6
|
11
|
+
do
|
12
|
+
echo "Running bundle exec rspec spec against rails $version..."
|
13
|
+
MINI_AUTH_RAILS_VERSION=$version bundle update rails
|
14
|
+
MINI_AUTH_RAILS_VERSION=$version bundle exec rake spec
|
15
|
+
done
|
16
|
+
}
|
17
|
+
|
18
|
+
export RBENV_VERSION=1.8.7-p358
|
19
|
+
run
|
20
|
+
|
21
|
+
export RBENV_VERSION=1.9.3-p194
|
22
|
+
run
|
23
|
+
|
24
|
+
echo 'Success!'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,44 +9,59 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.1.
|
21
|
+
version: 3.1.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.6
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: bcrypt-ruby
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.0.
|
37
|
+
version: 3.0.1
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.1
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec-rails
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.
|
53
|
+
version: 2.11.0
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.11.0
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: sqlite3
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: 1.3.4
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.4
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: database_cleaner
|
60
|
-
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.7.0
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.7.0
|
69
94
|
description: A minimal authentication module for Rails
|
70
95
|
email:
|
71
96
|
- hermes@oiax.jp
|
@@ -90,6 +115,7 @@ files:
|
|
90
115
|
- spec/mini_auth/token_spec.rb
|
91
116
|
- spec/spec_helper.rb
|
92
117
|
- test_on_multiple_environments.sh
|
118
|
+
- test_on_multiple_environments2.sh
|
93
119
|
homepage: https://github.com/kuroda/mini_auth
|
94
120
|
licenses: []
|
95
121
|
post_install_message:
|
@@ -110,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
136
|
version: '0'
|
111
137
|
requirements: []
|
112
138
|
rubyforge_project: mini_auth
|
113
|
-
rubygems_version: 1.8.
|
139
|
+
rubygems_version: 1.8.23
|
114
140
|
signing_key:
|
115
141
|
specification_version: 3
|
116
142
|
summary: A minimal authentication module for Rails
|