devise-proxy 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gem 'rack'
4
4
 
5
5
  group :development do
6
- # gem "shoulda"
6
+ gem "shoulda"
7
7
  # gem "rdoc", "~> 3.12"
8
8
  # gem "bundler", "~> 1.0.0"
9
9
  gem "jeweler", "~> 1.8.4"
data/Gemfile.lock CHANGED
@@ -1,17 +1,28 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
+ activesupport (3.2.8)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
4
7
  git (1.2.5)
8
+ i18n (0.6.1)
5
9
  jeweler (1.8.4)
6
10
  bundler (~> 1.0)
7
11
  git (>= 1.2.5)
8
12
  rake
9
13
  rdoc
10
14
  json (1.7.5)
15
+ multi_json (1.3.6)
11
16
  rack (1.4.1)
12
17
  rake (0.9.2.2)
13
18
  rdoc (3.12)
14
19
  json (~> 1.4)
20
+ shoulda (3.3.2)
21
+ shoulda-context (~> 1.0.1)
22
+ shoulda-matchers (~> 1.4.1)
23
+ shoulda-context (1.0.1)
24
+ shoulda-matchers (1.4.1)
25
+ activesupport (>= 3.0.0)
15
26
 
16
27
  PLATFORMS
17
28
  ruby
@@ -20,3 +31,4 @@ DEPENDENCIES
20
31
  jeweler (~> 1.8.4)
21
32
  rack
22
33
  rake
34
+ shoulda
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "devise-proxy"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Preston Lee"]
12
+ s.date = "2012-10-29"
13
+ s.description = "A standalone Rack Middleware application that authenticates a username/password against a devise-powered backend application before forwarding the original HTTP request to the same application. Authentication is done on *every* request, so it is advisable to use devise-proxy sparingly."
14
+ s.email = "conmotto@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "config.ru",
27
+ "config/devise-proxy.yml.sample",
28
+ "devise-proxy.gemspec",
29
+ "lib/devise-proxy.rb",
30
+ "lib/devise-proxy/authenticator.rb",
31
+ "lib/devise-proxy/proxy.rb",
32
+ "test/helper.rb",
33
+ "test/test_devise-proxy.rb"
34
+ ]
35
+ s.homepage = "http://github.com/preston/devise-proxy"
36
+ s.licenses = ["BSD"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = "1.8.24"
39
+ s.summary = "A standalone Rack Middleware application that authenticates a username/password against a devise-powered backend application before forwarding the original HTTP request to the same application."
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<rack>, [">= 0"])
46
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
47
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
48
+ s.add_development_dependency(%q<rake>, [">= 0"])
49
+ else
50
+ s.add_dependency(%q<rack>, [">= 0"])
51
+ s.add_dependency(%q<shoulda>, [">= 0"])
52
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
53
+ s.add_dependency(%q<rake>, [">= 0"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<rack>, [">= 0"])
57
+ s.add_dependency(%q<shoulda>, [">= 0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
59
+ s.add_dependency(%q<rake>, [">= 0"])
60
+ end
61
+ end
62
+
@@ -1,7 +1,27 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestDeviseProxy < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
4
+
5
+ context 'initialization' do
6
+
7
+ setup do
8
+ @host = 'localhost'
9
+ @port = '3000'
10
+ end
11
+
12
+ should "create multiple authenticators cleanly" do
13
+ DeviseProxy::Authenticator.new
14
+ DeviseProxy::Authenticator.new @host, @port
15
+ DeviseProxy::Authenticator.new
16
+ end
17
+
18
+ should 'create proxy cleanly' do
19
+ proxy = DeviseProxy::Proxy.new(@host, @port)
20
+ assert_equal proxy.host, @host
21
+ assert_equal proxy.port, @port
22
+ end
23
+
24
+ end
25
+
26
+
7
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: shoulda
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: jeweler
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +94,7 @@ files:
78
94
  - VERSION
79
95
  - config.ru
80
96
  - config/devise-proxy.yml.sample
97
+ - devise-proxy.gemspec
81
98
  - lib/devise-proxy.rb
82
99
  - lib/devise-proxy/authenticator.rb
83
100
  - lib/devise-proxy/proxy.rb
@@ -98,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
115
  version: '0'
99
116
  segments:
100
117
  - 0
101
- hash: -4305826360320545188
118
+ hash: -4515847689756379363
102
119
  required_rubygems_version: !ruby/object:Gem::Requirement
103
120
  none: false
104
121
  requirements: