easy-rack-open-id 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  Manifest
2
2
  pkg/*
3
3
  vendor/*
4
- .bundle/*
4
+ .bundle/*
5
+ .rvmrc
data/Gemfile.lock CHANGED
@@ -8,8 +8,6 @@ GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  bson (1.3.1)
11
- columnize (0.3.2)
12
- linecache (0.43)
13
11
  mongo (1.3.1)
14
12
  bson (>= 1.3.1)
15
13
  openid_mongodb_store (0.3.0)
@@ -19,11 +17,6 @@ GEM
19
17
  rack-openid (1.3.1)
20
18
  rack (>= 1.1.0)
21
19
  ruby-openid (>= 2.1.8)
22
- ruby-debug (0.10.4)
23
- columnize (>= 0.1)
24
- ruby-debug-base (~> 0.10.4.0)
25
- ruby-debug-base (0.10.4)
26
- linecache (>= 0.3)
27
20
  ruby-openid (2.1.8)
28
21
  shotgun (0.9)
29
22
  rack (>= 1.0)
@@ -34,5 +27,4 @@ PLATFORMS
34
27
  DEPENDENCIES
35
28
  easy-rack-open-id!
36
29
  openid_mongodb_store
37
- ruby-debug
38
30
  shotgun
data/README.rdoc CHANGED
@@ -1,20 +1,18 @@
1
- = EasyRackOpenID. Simplifies OpenID login for Rack apps.
1
+ = EasyRackOpenId. Simplifies OpenID login for Rack apps.
2
2
 
3
3
  == Installation
4
- gem install easy-rack-open-id
5
- (depends on rack-openid which depends on ruby-openid)
6
4
 
7
- Then, you:
8
- require 'rack/openid'
5
+ gem install easy-rack-open-id
6
+ require 'easy-rack-open-id'
9
7
  use Rack::Session::Cookie
10
8
  use Rack::OpenID
11
- use EasyRackOpenID, :allowed_identifiers => ['http://example.com/']
9
+ use EasyRackOpenId::Server, :allowed_identifiers => ['http://example.com/']
12
10
  run lambda {|env| [ 200, { 'Content-Type' => 'text/plain' }, [ 'Authenticated!' ] ] }
13
11
 
14
12
  There's an example in config.ru
15
13
 
16
14
 
17
- Basically, slap EasyRackOpenID in front of the App you want to protect. Rack::OpenID needs to be above it. Data from the login (identifier, registration info) will be made available in session[:verified_identity]
15
+ Basically, slap EasyRackOpenId in front of the App you want to protect. Rack::OpenID needs to be above it. Data from the login (identifier, registration info) will be made available in session[:verified_identity]
18
16
 
19
17
  session['verified_identity']['identifier'] # http://samsm.com/
20
18
  session['verified_identity']['nickname'] # samsm
@@ -30,7 +28,7 @@ OpenID needs some storage to remember cryptographic nuts and bolts. Rack:OpenID
30
28
 
31
29
  == Too Many Options!
32
30
 
33
- With no arguments, EasyRackOpenID will only allow users with a verified OpenID to proceed. It won't care what that identity is.
31
+ With no arguments, EasyRackOpenId will only allow users with a verified OpenID to proceed. It won't care what that identity is.
34
32
 
35
33
  :allowed_identifiers - when used, only identities in the provided array will be allowed access.
36
34
 
data/config.ru CHANGED
@@ -1,6 +1,4 @@
1
1
  require 'rubygems'
2
- require 'rack'
3
- require 'rack/openid'
4
2
  require 'lib/easy-rack-open-id'
5
3
 
6
4
  use Rack::ShowExceptions
@@ -1,7 +1,7 @@
1
1
  module Easy
2
2
  module Rack
3
3
  module Openid
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,6 @@
1
+ require 'rack'
2
+ require 'rack/openid'
3
+
1
4
  require File.dirname(__FILE__) + '/easy-rack-open-id/server'
2
5
  require File.dirname(__FILE__) + '/easy-rack-open-id/processing'
3
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-rack-open-id
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Schenkman-Moore
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-24 00:00:00 -04:00
19
- default_executable:
18
+ date: 2011-06-02 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rack-openid
@@ -51,10 +50,10 @@ files:
51
50
  - Rakefile
52
51
  - config.ru
53
52
  - easy-rack-open-id.gemspec
53
+ - lib/easy-rack-open-id.rb
54
54
  - lib/easy-rack-open-id/processing.rb
55
55
  - lib/easy-rack-open-id/server.rb
56
56
  - lib/easy-rack-open-id/version.rb
57
- - lib/easy-rack-openid.rb
58
57
  - lib/generic_openid_form.html.erb
59
58
  - lib/nice_openid_form.html.erb
60
59
  - lib/nicer_openid_form.html.erb
@@ -84,7 +83,6 @@ files:
84
83
  - public/easy-rack-open-id-assets/openid-selector/images/yahoo.gif
85
84
  - public/easy-rack-open-id-assets/openid-selector/js/jquery-1.2.6.min.js
86
85
  - public/easy-rack-open-id-assets/openid-selector/js/openid-jquery.js
87
- has_rdoc: true
88
86
  homepage: http://github.com/samsm/easy-rack-open-id
89
87
  licenses: []
90
88
 
@@ -114,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  requirements: []
115
113
 
116
114
  rubyforge_project: easy-rack-open-id
117
- rubygems_version: 1.3.7
115
+ rubygems_version: 1.8.4
118
116
  signing_key:
119
117
  specification_version: 3
120
118
  summary: Super easy OpenID protection for Rack.