1 |
commit: f8599080cf83084706259b91d78240710cb502b6 |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Wed May 2 15:03:13 2012 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 2 15:03:13 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=f8599080 |
7 |
|
8 |
Revision bump with patch for compatibility with Rails 3.x. |
9 |
|
10 |
(Portage version: 2.1.10.49/git/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!) |
11 |
|
12 |
--- |
13 |
dev-ruby/open_id_authentication/ChangeLog | 9 ++- |
14 |
dev-ruby/open_id_authentication/Manifest | 11 +-- |
15 |
.../open_id_authentication-1.1.0-rails3.patch | 126 ++++++++++++++++++++ |
16 |
.../open_id_authentication-1.1.0-r3.ebuild | 32 +++++ |
17 |
4 files changed, 169 insertions(+), 9 deletions(-) |
18 |
|
19 |
diff --git a/dev-ruby/open_id_authentication/ChangeLog b/dev-ruby/open_id_authentication/ChangeLog |
20 |
index 959179e..1793483 100644 |
21 |
--- a/dev-ruby/open_id_authentication/ChangeLog |
22 |
+++ b/dev-ruby/open_id_authentication/ChangeLog |
23 |
@@ -1,7 +1,14 @@ |
24 |
# ChangeLog for dev-ruby/open_id_authentication |
25 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*open_id_authentication-1.1.0-r3 (02 May 2012) |
30 |
+ |
31 |
+ 02 May 2012; Hans de Graaff <graaff@g.o> |
32 |
+ +open_id_authentication-1.1.0-r3.ebuild, |
33 |
+ +files/open_id_authentication-1.1.0-rails3.patch: |
34 |
+ Revision bump with patch for compatibility with Rails 3.x. |
35 |
+ |
36 |
*open_id_authentication-1.1.0-r2 (06 Oct 2011) |
37 |
|
38 |
06 Oct 2011; Hans de Graaff <graaff@g.o> |
39 |
|
40 |
diff --git a/dev-ruby/open_id_authentication/Manifest b/dev-ruby/open_id_authentication/Manifest |
41 |
index 8b15fff..63d2fd9 100644 |
42 |
--- a/dev-ruby/open_id_authentication/Manifest |
43 |
+++ b/dev-ruby/open_id_authentication/Manifest |
44 |
@@ -3,15 +3,10 @@ Hash: SHA256 |
45 |
|
46 |
DIST open_id_authentication-1.1.0.gem 8704 RMD160 a3919d4dd38e38c9cda118e8cfe0a64be109d3cb SHA1 e66b4812b82e2ed42630014d8f92a176a33898fb SHA256 dd25ac0465f4015efaf4f7c9f02be4afb4ca431dd45d1b5b9c8b30a9f8861485 |
47 |
DIST open_id_authentication-1.1.0.tgz 6166 RMD160 26f0ec85480c5d7d933b78211e24cfde6c4a0cc0 SHA1 8e379186ce891b7eb9c1f324db97a888507bb83b SHA256 4dfe86929a19e48ed115d64cc8266c0f697bdce9bcc403ce61ecc078af84ffbd |
48 |
-EBUILD open_id_authentication-1.1.0-r1.ebuild 658 RMD160 623353f34ddad557424d05fa34f24cce99708f98 SHA1 b5e004a0dab2b3061399423e6aba3bf983251358 SHA256 471a41e1e06644806e615919277f3d3ab84e11f49817f904fb428a9c1dd2c901 |
49 |
-EBUILD open_id_authentication-1.1.0-r2.ebuild 713 RMD160 760af3bf3697acc91636b8a7e72b3a29cc1cb8c8 SHA1 906b9c4a4d968dcc6ee69d0182aa1f417e038bc9 SHA256 600b4c6408be458be0127026110028b09c3219e3f4f02367cdf7ee1f86c6ebac |
50 |
-EBUILD open_id_authentication-1.1.0.ebuild 491 RMD160 6e41aa06b68792117f22c3a16f1ef778061fb37a SHA1 5a032bf005a023f712899de066c397acd4579118 SHA256 8890c8c0234807fbf28c74ca66f5d468225e33563c58ef778dabc637cef8ccbf |
51 |
-MISC ChangeLog 702 RMD160 f99b1c8782ac94389290811490b32f826ce25d16 SHA1 56d7e552b6a0f6e1fdfaa9090adb0b33a7de1a82 SHA256 19ef298998e43015d5d269204085054293e8149878c1d3dbbbb809f58956cb36 |
52 |
-MISC metadata.xml 201 RMD160 bbf7920d9809941fb024d20016dbe2fb9f15ff97 SHA1 e629d21795e99a77bd0a6aded1a153fd12d5b2c5 SHA256 c90b12c6600840878686d4544dbc51d97b0715add76b40d9400415cdef6324ad |
53 |
-----BEGIN PGP SIGNATURE----- |
54 |
Version: GnuPG v2.0.17 (GNU/Linux) |
55 |
|
56 |
-iF4EAREIAAYFAk6NbGkACgkQiIP6VqMIqNf4GQD/YN+ukdoV5VwPLz8LDoYFaYET |
57 |
-DLSifLsSCXCxayGIiTsA/2xNNwyDBJMxr4N+bpAb6JXXUpB8tkIm39G6w0twcnvF |
58 |
-=YjGX |
59 |
+iF4EAREIAAYFAk+hTLEACgkQiIP6VqMIqNfnZgD/VtNXNQTO7f+U3cLWZyGZ3UMK |
60 |
++Li3E64TUUP/S+60PcgA/2WTpz+o+4yaNUOveoa/GhkpdU6Gv0GDHUgShbT35YuN |
61 |
+=NP62 |
62 |
-----END PGP SIGNATURE----- |
63 |
|
64 |
diff --git a/dev-ruby/open_id_authentication/files/open_id_authentication-1.1.0-rails3.patch b/dev-ruby/open_id_authentication/files/open_id_authentication-1.1.0-rails3.patch |
65 |
new file mode 100644 |
66 |
index 0000000..a61b317 |
67 |
--- /dev/null |
68 |
+++ b/dev-ruby/open_id_authentication/files/open_id_authentication-1.1.0-rails3.patch |
69 |
@@ -0,0 +1,126 @@ |
70 |
+Based on a pull request: https://github.com/Velir/open_id_authentication/pull/8 |
71 |
+ |
72 |
+--- lib/open_id_authentication.rb 2012-05-02 16:16:16.993103399 +0200 |
73 |
++++ lib/open_id_authentication.rb 2012-04-11 18:30:02.000000000 +0200 |
74 |
+@@ -3,6 +3,61 @@ |
75 |
+ require 'rack/openid' |
76 |
+ |
77 |
+ module OpenIdAuthentication |
78 |
++ module ControllerMethods |
79 |
++ protected |
80 |
++ # The parameter name of "openid_identifier" is used rather than |
81 |
++ # the Rails convention "open_id_identifier" because that's what |
82 |
++ # the specification dictates in order to get browser auto-complete |
83 |
++ # working across sites |
84 |
++ def using_open_id?(identifier = nil) #:doc: |
85 |
++ identifier ||= open_id_identifier |
86 |
++ !identifier.blank? || request.env[Rack::OpenID::RESPONSE] |
87 |
++ end |
88 |
++ |
89 |
++ def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc: |
90 |
++ identifier ||= open_id_identifier |
91 |
++ |
92 |
++ if request.env[Rack::OpenID::RESPONSE] |
93 |
++ complete_open_id_authentication(&block) |
94 |
++ else |
95 |
++ begin_open_id_authentication(identifier, options, &block) |
96 |
++ end |
97 |
++ end |
98 |
++ |
99 |
++ private |
100 |
++ def open_id_identifier |
101 |
++ params[:openid_identifier] || params[:openid_url] |
102 |
++ end |
103 |
++ |
104 |
++ def begin_open_id_authentication(identifier, options = {}) |
105 |
++ options[:identifier] = identifier |
106 |
++ value = Rack::OpenID.build_header(options) |
107 |
++ response.headers[Rack::OpenID::AUTHENTICATE_HEADER] = value |
108 |
++ head :unauthorized |
109 |
++ end |
110 |
++ |
111 |
++ def complete_open_id_authentication |
112 |
++ response = request.env[Rack::OpenID::RESPONSE] |
113 |
++ identifier = response.display_identifier |
114 |
++ |
115 |
++ case response.status |
116 |
++ when OpenID::Consumer::SUCCESS |
117 |
++ yield Result[:successful], identifier, |
118 |
++ OpenID::SReg::Response.from_success_response(response), |
119 |
++ OpenID::AX::FetchResponse.from_success_response(response) |
120 |
++ when :missing |
121 |
++ yield Result[:missing], identifier, nil |
122 |
++ when :invalid |
123 |
++ yield Result[:invalid], identifier, nil |
124 |
++ when OpenID::Consumer::CANCEL |
125 |
++ yield Result[:canceled], identifier, nil |
126 |
++ when OpenID::Consumer::FAILURE |
127 |
++ yield Result[:failed], identifier, nil |
128 |
++ when OpenID::Consumer::SETUP_NEEDED |
129 |
++ yield Result[:setup_needed], response.setup_url, nil |
130 |
++ end |
131 |
++ end |
132 |
++ end |
133 |
+ def self.new(app) |
134 |
+ store = OpenIdAuthentication.store |
135 |
+ if store.nil? |
136 |
+@@ -88,59 +143,4 @@ |
137 |
+ end |
138 |
+ end |
139 |
+ |
140 |
+- module ControllerMethods |
141 |
+- protected |
142 |
+- # The parameter name of "openid_identifier" is used rather than |
143 |
+- # the Rails convention "open_id_identifier" because that's what |
144 |
+- # the specification dictates in order to get browser auto-complete |
145 |
+- # working across sites |
146 |
+- def using_open_id?(identifier = nil) #:doc: |
147 |
+- identifier ||= open_id_identifier |
148 |
+- !identifier.blank? || request.env[Rack::OpenID::RESPONSE] |
149 |
+- end |
150 |
+- |
151 |
+- def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc: |
152 |
+- identifier ||= open_id_identifier |
153 |
+- |
154 |
+- if request.env[Rack::OpenID::RESPONSE] |
155 |
+- complete_open_id_authentication(&block) |
156 |
+- else |
157 |
+- begin_open_id_authentication(identifier, options, &block) |
158 |
+- end |
159 |
+- end |
160 |
+- |
161 |
+- private |
162 |
+- def open_id_identifier |
163 |
+- params[:openid_identifier] || params[:openid_url] |
164 |
+- end |
165 |
+- |
166 |
+- def begin_open_id_authentication(identifier, options = {}) |
167 |
+- options[:identifier] = identifier |
168 |
+- value = Rack::OpenID.build_header(options) |
169 |
+- response.headers[Rack::OpenID::AUTHENTICATE_HEADER] = value |
170 |
+- head :unauthorized |
171 |
+- end |
172 |
+- |
173 |
+- def complete_open_id_authentication |
174 |
+- response = request.env[Rack::OpenID::RESPONSE] |
175 |
+- identifier = response.display_identifier |
176 |
+- |
177 |
+- case response.status |
178 |
+- when OpenID::Consumer::SUCCESS |
179 |
+- yield Result[:successful], identifier, |
180 |
+- OpenID::SReg::Response.from_success_response(response), |
181 |
+- OpenID::AX::FetchResponse.from_success_response(response) |
182 |
+- when :missing |
183 |
+- yield Result[:missing], identifier, nil |
184 |
+- when :invalid |
185 |
+- yield Result[:invalid], identifier, nil |
186 |
+- when OpenID::Consumer::CANCEL |
187 |
+- yield Result[:canceled], identifier, nil |
188 |
+- when OpenID::Consumer::FAILURE |
189 |
+- yield Result[:failed], identifier, nil |
190 |
+- when OpenID::Consumer::SETUP_NEEDED |
191 |
+- yield Result[:setup_needed], response.setup_url, nil |
192 |
+- end |
193 |
+- end |
194 |
+- end |
195 |
+ end |
196 |
|
197 |
diff --git a/dev-ruby/open_id_authentication/open_id_authentication-1.1.0-r3.ebuild b/dev-ruby/open_id_authentication/open_id_authentication-1.1.0-r3.ebuild |
198 |
new file mode 100644 |
199 |
index 0000000..58e58df |
200 |
--- /dev/null |
201 |
+++ b/dev-ruby/open_id_authentication/open_id_authentication-1.1.0-r3.ebuild |
202 |
@@ -0,0 +1,32 @@ |
203 |
+# Copyright 1999-2012 Gentoo Foundation |
204 |
+# Distributed under the terms of the GNU General Public License v2 |
205 |
+# $Header: $ |
206 |
+ |
207 |
+EAPI=4 |
208 |
+USE_RUBY="ruby18" |
209 |
+ |
210 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
211 |
+ |
212 |
+RUBY_FAKEGEM_TASK_DOC="" |
213 |
+RUBY_FAKEGEM_TASK_TEST="" |
214 |
+ |
215 |
+RUBY_FAKEGEM_EXTRAINSTALL="init.rb" |
216 |
+ |
217 |
+RUBY_FAKEGEM_GEMSPEC="open_id_authentication.gemspec" |
218 |
+ |
219 |
+inherit ruby-fakegem |
220 |
+ |
221 |
+DESCRIPTION="a thin wrapper around the excellent ruby-openid gem from JanRain." |
222 |
+HOMEPAGE="http://github.com/Velir/open_id_authentication" |
223 |
+LICENSE="MIT" |
224 |
+SRC_URI="https://github.com/Velir/open_id_authentication/tarball/4f0ebc18b3 -> ${P}.tgz" |
225 |
+ |
226 |
+RUBY_S="Velir-open_id_authentication-*" |
227 |
+ |
228 |
+KEYWORDS="~amd64" |
229 |
+SLOT="0" |
230 |
+IUSE="" |
231 |
+ |
232 |
+RUBY_PATCHES=( "${P}-rails3.patch" ) |
233 |
+ |
234 |
+ruby_add_rdepend ">=dev-ruby/rack-openid-1.3" |