warden 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+
5
+ gem 'rake'
6
+
7
+ group :test do
8
+ gem 'rspec', '~>2'
9
+ gem 'rack-test'
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ warden (1.0.4)
5
+ rack (>= 1.0)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.1.2)
11
+ rack (1.2.2)
12
+ rack-test (0.6.0)
13
+ rack (>= 1.0)
14
+ rake (0.8.7)
15
+ rspec (2.5.0)
16
+ rspec-core (~> 2.5.0)
17
+ rspec-expectations (~> 2.5.0)
18
+ rspec-mocks (~> 2.5.0)
19
+ rspec-core (2.5.1)
20
+ rspec-expectations (2.5.0)
21
+ diff-lcs (~> 1.1.2)
22
+ rspec-mocks (2.5.0)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ rack-test
29
+ rake
30
+ rspec (~> 2)
31
+ warden!
data/Rakefile CHANGED
@@ -1,31 +1,12 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  require 'rubygems'
2
- require 'rspec/core/rake_task'
3
- require File.join(File.dirname(__FILE__), "lib", "warden", "version")
4
-
5
- begin
6
- gem 'jeweler'
7
- require 'jeweler'
8
- Jeweler::Tasks.new do |gem|
9
- gem.name = "warden"
10
- gem.version = Warden::VERSION
11
- gem.summary = "Rack middleware that provides authentication for rack applications"
12
- gem.email = "has.sox@gmail.com"
13
- gem.homepage = "http://github.com/hassox/warden"
14
- gem.authors = ["Daniel Neighman"]
15
- gem.rubyforge_project = "warden"
16
- gem.add_dependency "rack", ">= 1.0.0"
17
- gem.add_development_dependency "rspec", "~>1"
18
- end
3
+ require 'rake'
4
+ $:.unshift File.join(File.dirname(__FILE__), "lib")
19
5
 
20
- Jeweler::GemcutterTasks.new
21
- rescue LoadError
22
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
23
- end
6
+ require 'rspec/core'
7
+ require 'rspec/core/rake_task'
24
8
 
25
9
  task :default => :spec
26
10
 
27
- desc "Run specs"
28
- RSpec::Core::RakeTask.new do |t|
29
- t.pattern = 'spec/**/*_spec.rb'
30
- t.rspec_opts = %w(-fs --color --backtrace)
31
- end
11
+ desc "Run all specs in spec directory"
12
+ RSpec::Core::RakeTask.new(:spec)
data/lib/warden/proxy.rb CHANGED
@@ -259,6 +259,14 @@ module Warden
259
259
  !!@custom_failure
260
260
  end
261
261
 
262
+ def inspect(*args)
263
+ "Warden::Proxy:#{object_id} @config=#{@config.inspect}"
264
+ end
265
+
266
+ def to_s(*args)
267
+ inspect(*args)
268
+ end
269
+
262
270
  private
263
271
 
264
272
  def _perform_authentication(*args)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Warden
3
- VERSION = "1.0.3".freeze
3
+ VERSION = "1.0.4".freeze
4
4
  end
data/warden-1.0.0.gem ADDED
Binary file
data/warden-1.0.1.gem ADDED
Binary file
data/warden.gemspec CHANGED
@@ -1,103 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
5
2
 
3
+ require 'lib/warden/version'
4
+
6
5
  Gem::Specification.new do |s|
7
6
  s.name = %q{warden}
8
- s.version = "1.0.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.version = Warden::VERSION
11
8
  s.authors = ["Daniel Neighman"]
12
- s.date = %q{2010-12-11}
9
+ s.date = %q{2010-10-12}
13
10
  s.email = %q{has.sox@gmail.com}
14
11
  s.extra_rdoc_files = [
15
12
  "LICENSE",
16
13
  "README.textile"
17
14
  ]
18
- s.files = [
19
- ".gitignore",
20
- "History.rdoc",
21
- "LICENSE",
22
- "README.textile",
23
- "Rakefile",
24
- "TODO.textile",
25
- "lib/warden.rb",
26
- "lib/warden/config.rb",
27
- "lib/warden/errors.rb",
28
- "lib/warden/hooks.rb",
29
- "lib/warden/manager.rb",
30
- "lib/warden/mixins/common.rb",
31
- "lib/warden/proxy.rb",
32
- "lib/warden/session_serializer.rb",
33
- "lib/warden/strategies.rb",
34
- "lib/warden/strategies/base.rb",
35
- "lib/warden/test/helpers.rb",
36
- "lib/warden/test/warden_helpers.rb",
37
- "lib/warden/version.rb",
38
- "spec/helpers/request_helper.rb",
39
- "spec/helpers/strategies/failz.rb",
40
- "spec/helpers/strategies/invalid.rb",
41
- "spec/helpers/strategies/pass.rb",
42
- "spec/helpers/strategies/pass_with_message.rb",
43
- "spec/helpers/strategies/password.rb",
44
- "spec/helpers/strategies/single.rb",
45
- "spec/spec_helper.rb",
46
- "spec/warden/authenticated_data_store_spec.rb",
47
- "spec/warden/config_spec.rb",
48
- "spec/warden/errors_spec.rb",
49
- "spec/warden/hooks_spec.rb",
50
- "spec/warden/manager_spec.rb",
51
- "spec/warden/proxy_spec.rb",
52
- "spec/warden/session_serializer_spec.rb",
53
- "spec/warden/strategies/base_spec.rb",
54
- "spec/warden/strategies_spec.rb",
55
- "spec/warden/test/helpers_spec.rb",
56
- "spec/warden/test/test_mode_spec.rb",
57
- "warden.gemspec"
58
- ]
15
+ s.files = Dir["**/*"]
59
16
  s.homepage = %q{http://github.com/hassox/warden}
60
17
  s.rdoc_options = ["--charset=UTF-8"]
61
18
  s.require_paths = ["lib"]
62
19
  s.rubyforge_project = %q{warden}
63
20
  s.rubygems_version = %q{1.3.7}
64
21
  s.summary = %q{Rack middleware that provides authentication for rack applications}
65
- s.test_files = [
66
- "spec/helpers/request_helper.rb",
67
- "spec/helpers/strategies/failz.rb",
68
- "spec/helpers/strategies/invalid.rb",
69
- "spec/helpers/strategies/pass.rb",
70
- "spec/helpers/strategies/pass_with_message.rb",
71
- "spec/helpers/strategies/password.rb",
72
- "spec/helpers/strategies/single.rb",
73
- "spec/spec_helper.rb",
74
- "spec/warden/authenticated_data_store_spec.rb",
75
- "spec/warden/config_spec.rb",
76
- "spec/warden/errors_spec.rb",
77
- "spec/warden/hooks_spec.rb",
78
- "spec/warden/manager_spec.rb",
79
- "spec/warden/proxy_spec.rb",
80
- "spec/warden/session_serializer_spec.rb",
81
- "spec/warden/strategies/base_spec.rb",
82
- "spec/warden/strategies_spec.rb",
83
- "spec/warden/test/helpers_spec.rb",
84
- "spec/warden/test/test_mode_spec.rb"
85
- ]
86
-
87
- if s.respond_to? :specification_version then
88
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
89
- s.specification_version = 3
90
-
91
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
92
- s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
93
- s.add_development_dependency(%q<rspec>, ["~> 1"])
94
- else
95
- s.add_dependency(%q<rack>, [">= 1.0.0"])
96
- s.add_dependency(%q<rspec>, ["~> 1"])
97
- end
98
- else
99
- s.add_dependency(%q<rack>, [">= 1.0.0"])
100
- s.add_dependency(%q<rspec>, ["~> 1"])
101
- end
22
+ s.add_dependency "rack", ">= 1.0"
102
23
  end
103
24
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Neighman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-11 00:00:00 +01:00
18
+ date: 2010-10-12 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,28 +26,13 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 23
29
+ hash: 15
30
30
  segments:
31
31
  - 1
32
32
  - 0
33
- - 0
34
- version: 1.0.0
33
+ version: "1.0"
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 1
46
- segments:
47
- - 1
48
- version: "1"
49
- type: :development
50
- version_requirements: *id002
51
36
  description:
52
37
  email: has.sox@gmail.com
53
38
  executables: []
@@ -58,13 +43,9 @@ extra_rdoc_files:
58
43
  - LICENSE
59
44
  - README.textile
60
45
  files:
61
- - .gitignore
46
+ - Gemfile
47
+ - Gemfile.lock
62
48
  - History.rdoc
63
- - LICENSE
64
- - README.textile
65
- - Rakefile
66
- - TODO.textile
67
- - lib/warden.rb
68
49
  - lib/warden/config.rb
69
50
  - lib/warden/errors.rb
70
51
  - lib/warden/hooks.rb
@@ -72,11 +53,15 @@ files:
72
53
  - lib/warden/mixins/common.rb
73
54
  - lib/warden/proxy.rb
74
55
  - lib/warden/session_serializer.rb
75
- - lib/warden/strategies.rb
76
56
  - lib/warden/strategies/base.rb
57
+ - lib/warden/strategies.rb
77
58
  - lib/warden/test/helpers.rb
78
59
  - lib/warden/test/warden_helpers.rb
79
60
  - lib/warden/version.rb
61
+ - lib/warden.rb
62
+ - LICENSE
63
+ - Rakefile
64
+ - README.textile
80
65
  - spec/helpers/request_helper.rb
81
66
  - spec/helpers/strategies/failz.rb
82
67
  - spec/helpers/strategies/invalid.rb
@@ -96,6 +81,9 @@ files:
96
81
  - spec/warden/strategies_spec.rb
97
82
  - spec/warden/test/helpers_spec.rb
98
83
  - spec/warden/test/test_mode_spec.rb
84
+ - TODO.textile
85
+ - warden-1.0.0.gem
86
+ - warden-1.0.1.gem
99
87
  - warden.gemspec
100
88
  has_rdoc: true
101
89
  homepage: http://github.com/hassox/warden
@@ -127,27 +115,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
115
  requirements: []
128
116
 
129
117
  rubyforge_project: warden
130
- rubygems_version: 1.3.7
118
+ rubygems_version: 1.4.2
131
119
  signing_key:
132
120
  specification_version: 3
133
121
  summary: Rack middleware that provides authentication for rack applications
134
- test_files:
135
- - spec/helpers/request_helper.rb
136
- - spec/helpers/strategies/failz.rb
137
- - spec/helpers/strategies/invalid.rb
138
- - spec/helpers/strategies/pass.rb
139
- - spec/helpers/strategies/pass_with_message.rb
140
- - spec/helpers/strategies/password.rb
141
- - spec/helpers/strategies/single.rb
142
- - spec/spec_helper.rb
143
- - spec/warden/authenticated_data_store_spec.rb
144
- - spec/warden/config_spec.rb
145
- - spec/warden/errors_spec.rb
146
- - spec/warden/hooks_spec.rb
147
- - spec/warden/manager_spec.rb
148
- - spec/warden/proxy_spec.rb
149
- - spec/warden/session_serializer_spec.rb
150
- - spec/warden/strategies/base_spec.rb
151
- - spec/warden/strategies_spec.rb
152
- - spec/warden/test/helpers_spec.rb
153
- - spec/warden/test/test_mode_spec.rb
122
+ test_files: []
123
+
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- pkg
3
- .*~
4
-
5
- *.gem