rails_warden 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +91 -0
- data/Rakefile +4 -30
- data/VERSION +1 -1
- data/lib/rails_warden.rb +1 -1
- data/rails_warden-0.5.0.gem +0 -0
- data/rails_warden-0.5.1.gem +0 -0
- data/rails_warden-0.5.2.gem +0 -0
- data/rails_warden.gemspec +9 -47
- data/spec/rails_warden_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +27 -16
- data/.gitignore +0 -3
data/CHANGELOG
CHANGED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rails_warden (0.5.3)
|
5
|
+
warden (>= 1.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
abstract (1.0.0)
|
11
|
+
actionmailer (3.0.7)
|
12
|
+
actionpack (= 3.0.7)
|
13
|
+
mail (~> 2.2.15)
|
14
|
+
actionpack (3.0.7)
|
15
|
+
activemodel (= 3.0.7)
|
16
|
+
activesupport (= 3.0.7)
|
17
|
+
builder (~> 2.1.2)
|
18
|
+
erubis (~> 2.6.6)
|
19
|
+
i18n (~> 0.5.0)
|
20
|
+
rack (~> 1.2.1)
|
21
|
+
rack-mount (~> 0.6.14)
|
22
|
+
rack-test (~> 0.5.7)
|
23
|
+
tzinfo (~> 0.3.23)
|
24
|
+
activemodel (3.0.7)
|
25
|
+
activesupport (= 3.0.7)
|
26
|
+
builder (~> 2.1.2)
|
27
|
+
i18n (~> 0.5.0)
|
28
|
+
activerecord (3.0.7)
|
29
|
+
activemodel (= 3.0.7)
|
30
|
+
activesupport (= 3.0.7)
|
31
|
+
arel (~> 2.0.2)
|
32
|
+
tzinfo (~> 0.3.23)
|
33
|
+
activeresource (3.0.7)
|
34
|
+
activemodel (= 3.0.7)
|
35
|
+
activesupport (= 3.0.7)
|
36
|
+
activesupport (3.0.7)
|
37
|
+
arel (2.0.9)
|
38
|
+
builder (2.1.2)
|
39
|
+
diff-lcs (1.1.2)
|
40
|
+
erubis (2.6.6)
|
41
|
+
abstract (>= 1.0.0)
|
42
|
+
i18n (0.5.0)
|
43
|
+
mail (2.2.17)
|
44
|
+
activesupport (>= 2.3.6)
|
45
|
+
i18n (>= 0.4.0)
|
46
|
+
mime-types (~> 1.16)
|
47
|
+
treetop (~> 1.4.8)
|
48
|
+
mime-types (1.16)
|
49
|
+
polyglot (0.3.1)
|
50
|
+
rack (1.2.2)
|
51
|
+
rack-mount (0.6.14)
|
52
|
+
rack (>= 1.0.0)
|
53
|
+
rack-test (0.5.7)
|
54
|
+
rack (>= 1.0)
|
55
|
+
rails (3.0.7)
|
56
|
+
actionmailer (= 3.0.7)
|
57
|
+
actionpack (= 3.0.7)
|
58
|
+
activerecord (= 3.0.7)
|
59
|
+
activeresource (= 3.0.7)
|
60
|
+
activesupport (= 3.0.7)
|
61
|
+
bundler (~> 1.0)
|
62
|
+
railties (= 3.0.7)
|
63
|
+
railties (3.0.7)
|
64
|
+
actionpack (= 3.0.7)
|
65
|
+
activesupport (= 3.0.7)
|
66
|
+
rake (>= 0.8.7)
|
67
|
+
thor (~> 0.14.4)
|
68
|
+
rake (0.8.7)
|
69
|
+
rspec (2.5.0)
|
70
|
+
rspec-core (~> 2.5.0)
|
71
|
+
rspec-expectations (~> 2.5.0)
|
72
|
+
rspec-mocks (~> 2.5.0)
|
73
|
+
rspec-core (2.5.1)
|
74
|
+
rspec-expectations (2.5.0)
|
75
|
+
diff-lcs (~> 1.1.2)
|
76
|
+
rspec-mocks (2.5.0)
|
77
|
+
thor (0.14.6)
|
78
|
+
treetop (1.4.9)
|
79
|
+
polyglot (>= 0.3.1)
|
80
|
+
tzinfo (0.3.26)
|
81
|
+
warden (1.0.3)
|
82
|
+
rack (>= 1.0.0)
|
83
|
+
|
84
|
+
PLATFORMS
|
85
|
+
ruby
|
86
|
+
|
87
|
+
DEPENDENCIES
|
88
|
+
rails (>= 3)
|
89
|
+
rails_warden!
|
90
|
+
rake
|
91
|
+
rspec (>= 2.0)
|
data/Rakefile
CHANGED
@@ -1,36 +1,10 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
3
|
-
require 'spec/rake/spectask'
|
2
|
+
require 'rake'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
EMAIL = "has.sox@gmail.com"
|
8
|
-
HOMEPAGE = "http://github.com/hassox/rails_warden"
|
9
|
-
SUMMARY = "A gem that provides authenitcation via the Warden framework"
|
10
|
-
|
11
|
-
begin
|
12
|
-
require 'jeweler'
|
13
|
-
Jeweler::Tasks.new do |gem|
|
14
|
-
gem.name = GEM
|
15
|
-
gem.email = EMAIL
|
16
|
-
gem.has_rdoc = true
|
17
|
-
gem.extra_rdoc_files = ["README.textile", "LICENSE", 'TODO']
|
18
|
-
gem.summary = SUMMARY
|
19
|
-
gem.description = SUMMARY
|
20
|
-
gem.authors = AUTHORS
|
21
|
-
gem.email = EMAIL
|
22
|
-
gem.homepage = HOMEPAGE
|
23
|
-
gem.rubyforge_project = "warden"
|
24
|
-
gem.add_dependency 'warden'
|
25
|
-
end
|
26
|
-
rescue LoadError
|
27
|
-
puts "Jeweler (or a dependency) not available. Install with: sudo gem install jeweler"
|
28
|
-
end
|
4
|
+
require 'rspec/core'
|
5
|
+
require 'rspec/core/rake_task'
|
29
6
|
|
30
7
|
task :default => :spec
|
31
8
|
|
32
9
|
desc "Run specs"
|
33
|
-
|
34
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
35
|
-
t.spec_opts = %w(-fs --color)
|
36
|
-
end
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/rails_warden.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/rails_warden.gemspec
CHANGED
@@ -1,64 +1,26 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
1
|
Gem::Specification.new do |s|
|
7
2
|
s.name = %q{rails_warden}
|
8
|
-
s.version = "0.5.
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
3
|
+
s.version = "0.5.3"
|
11
4
|
s.authors = ["Daniel Neighman"]
|
12
5
|
s.date = %q{2010-05-14}
|
6
|
+
s.summary = %q{A gem that provides authenitcation via the Warden framework}
|
13
7
|
s.description = %q{A gem that provides authenitcation via the Warden framework}
|
14
8
|
s.email = %q{has.sox@gmail.com}
|
9
|
+
s.homepage = %q{http://github.com/hassox/rails_warden}
|
10
|
+
s.rubygems_version = %q{1.3.7}
|
11
|
+
|
12
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
15
13
|
s.extra_rdoc_files = [
|
16
14
|
"LICENSE",
|
17
15
|
"README.textile",
|
18
16
|
"TODO"
|
19
17
|
]
|
20
|
-
|
21
|
-
|
22
|
-
"CHANGELOG",
|
23
|
-
"LICENSE",
|
24
|
-
"README.textile",
|
25
|
-
"Rakefile",
|
26
|
-
"TODO",
|
27
|
-
"VERSION",
|
28
|
-
"lib/rails_warden.rb",
|
29
|
-
"lib/rails_warden/controller_mixin.rb",
|
30
|
-
"lib/rails_warden/manager.rb",
|
31
|
-
"lib/rails_warden/rails_settings.rb",
|
32
|
-
"rails_warden.gemspec",
|
33
|
-
"script/destroy",
|
34
|
-
"script/generate",
|
35
|
-
"spec/controller_mixin_spec.rb",
|
36
|
-
"spec/rails_warden_spec.rb",
|
37
|
-
"spec/spec_helper.rb"
|
38
|
-
]
|
39
|
-
s.homepage = %q{http://github.com/hassox/rails_warden}
|
18
|
+
|
19
|
+
s.files = Dir["**/*"]
|
40
20
|
s.rdoc_options = ["--charset=UTF-8"]
|
41
21
|
s.require_paths = ["lib"]
|
42
22
|
s.rubyforge_project = %q{warden}
|
43
|
-
s.rubygems_version = %q{1.3.6}
|
44
|
-
s.summary = %q{A gem that provides authenitcation via the Warden framework}
|
45
|
-
s.test_files = [
|
46
|
-
"spec/controller_mixin_spec.rb",
|
47
|
-
"spec/rails_warden_spec.rb",
|
48
|
-
"spec/spec_helper.rb"
|
49
|
-
]
|
50
|
-
|
51
|
-
if s.respond_to? :specification_version then
|
52
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
53
|
-
s.specification_version = 3
|
54
23
|
|
55
|
-
|
56
|
-
s.add_runtime_dependency(%q<warden>, [">= 0"])
|
57
|
-
else
|
58
|
-
s.add_dependency(%q<warden>, [">= 0"])
|
59
|
-
end
|
60
|
-
else
|
61
|
-
s.add_dependency(%q<warden>, [">= 0"])
|
62
|
-
end
|
24
|
+
s.add_dependency "warden", ">=1.0.0"
|
63
25
|
end
|
64
26
|
|
data/spec/rails_warden_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe "rails_warden" do
|
|
24
24
|
|
25
25
|
it "should set the failure application to FooFailure" do
|
26
26
|
r = RailsWarden::Manager.new(@app, :failure_app => "foo_failure", :defaults => :password)
|
27
|
-
r.failure_app.should == FooFailure
|
27
|
+
r.config.failure_app.should == FooFailure
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should set the default user to FooUser if specified" do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_warden
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Daniel Neighman
|
@@ -21,12 +22,16 @@ dependencies:
|
|
21
22
|
name: warden
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 23
|
27
30
|
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
28
33
|
- 0
|
29
|
-
version:
|
34
|
+
version: 1.0.0
|
30
35
|
type: :runtime
|
31
36
|
version_requirements: *id001
|
32
37
|
description: A gem that provides authenitcation via the Warden framework
|
@@ -40,23 +45,27 @@ extra_rdoc_files:
|
|
40
45
|
- README.textile
|
41
46
|
- TODO
|
42
47
|
files:
|
43
|
-
- .gitignore
|
44
48
|
- CHANGELOG
|
45
|
-
-
|
46
|
-
-
|
47
|
-
- Rakefile
|
48
|
-
- TODO
|
49
|
-
- VERSION
|
50
|
-
- lib/rails_warden.rb
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
51
|
- lib/rails_warden/controller_mixin.rb
|
52
52
|
- lib/rails_warden/manager.rb
|
53
53
|
- lib/rails_warden/rails_settings.rb
|
54
|
+
- lib/rails_warden.rb
|
55
|
+
- LICENSE
|
56
|
+
- rails_warden-0.5.0.gem
|
57
|
+
- rails_warden-0.5.1.gem
|
58
|
+
- rails_warden-0.5.2.gem
|
54
59
|
- rails_warden.gemspec
|
60
|
+
- Rakefile
|
61
|
+
- README.textile
|
55
62
|
- script/destroy
|
56
63
|
- script/generate
|
57
64
|
- spec/controller_mixin_spec.rb
|
58
65
|
- spec/rails_warden_spec.rb
|
59
66
|
- spec/spec_helper.rb
|
67
|
+
- TODO
|
68
|
+
- VERSION
|
60
69
|
has_rdoc: true
|
61
70
|
homepage: http://github.com/hassox/rails_warden
|
62
71
|
licenses: []
|
@@ -67,27 +76,29 @@ rdoc_options:
|
|
67
76
|
require_paths:
|
68
77
|
- lib
|
69
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
70
80
|
requirements:
|
71
81
|
- - ">="
|
72
82
|
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
73
84
|
segments:
|
74
85
|
- 0
|
75
86
|
version: "0"
|
76
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
77
89
|
requirements:
|
78
90
|
- - ">="
|
79
91
|
- !ruby/object:Gem::Version
|
92
|
+
hash: 3
|
80
93
|
segments:
|
81
94
|
- 0
|
82
95
|
version: "0"
|
83
96
|
requirements: []
|
84
97
|
|
85
98
|
rubyforge_project: warden
|
86
|
-
rubygems_version: 1.
|
99
|
+
rubygems_version: 1.4.2
|
87
100
|
signing_key:
|
88
101
|
specification_version: 3
|
89
102
|
summary: A gem that provides authenitcation via the Warden framework
|
90
|
-
test_files:
|
91
|
-
|
92
|
-
- spec/rails_warden_spec.rb
|
93
|
-
- spec/spec_helper.rb
|
103
|
+
test_files: []
|
104
|
+
|
data/.gitignore
DELETED