Permalink
Browse files

Clearing out everything to move towards the new 1.0 independent gems …

…strategy.
  • Loading branch information...
Michael Bleigh
Michael Bleigh committed Sep 4, 2011
1 parent 9f81195 commit cc73281406882b65a1f311004a7dab202856e56f
Showing with 60 additions and 10,805 deletions.
  1. +1 −12 Gemfile
  2. +0 −27 Guardfile
  3. +0 −19 LICENSE.md
  4. +5 −50 Rakefile
  5. +0 −6 lib/omniauth.rb
  6. 0 {oa-core → }/lib/omniauth/auth_hash.rb
  7. +1 −0 lib/omniauth/core.rb
  8. +6 −1 lib/omniauth/form.rb
  9. +18 −6 lib/omniauth/strategy.rb
  10. 0 {oa-core → }/oa-core.gemspec
  11. 0 oa-core/.gemtest
  12. +0 −3 oa-core/.rspec
  13. +0 −4 oa-core/.yardopts
  14. +0 −3 oa-core/Gemfile
  15. +0 −19 oa-core/LICENSE
  16. +0 −6 oa-core/Rakefile
  17. +0 −1 oa-core/autotest/discover.rb
  18. +0 −1 oa-core/lib/oa-core.rb
  19. +0 −33 oa-core/lib/omniauth/builder.rb
  20. +0 −141 oa-core/lib/omniauth/core.rb
  21. +0 −191 oa-core/lib/omniauth/form.rb
  22. +0 −242 oa-core/lib/omniauth/strategy.rb
  23. +0 −12 oa-core/lib/omniauth/test.rb
  24. +0 −8 oa-core/lib/omniauth/test/phony_session.rb
  25. +0 −34 oa-core/lib/omniauth/test/strategy_macros.rb
  26. +0 −49 oa-core/lib/omniauth/test/strategy_test_case.rb
  27. +0 −19 oa-core/lib/omniauth/version.rb
  28. +0 −20 oa-core/spec/omniauth/builder_spec.rb
  29. +0 −79 oa-core/spec/omniauth/core_spec.rb
  30. +0 −397 oa-core/spec/omniauth/strategy_spec.rb
  31. +0 −12 oa-core/spec/spec_helper.rb
  32. 0 oa-enterprise/.gemtest
  33. +0 −3 oa-enterprise/.rspec
  34. +0 −4 oa-enterprise/.yardopts
  35. +0 −11 oa-enterprise/Gemfile
  36. +0 −19 oa-enterprise/LICENSE
  37. +0 −115 oa-enterprise/README.rdoc
  38. +0 −6 oa-enterprise/Rakefile
  39. +0 −1 oa-enterprise/lib/oa-enterprise.rb
  40. +0 −9 oa-enterprise/lib/omniauth/enterprise.rb
  41. +0 −47 oa-enterprise/lib/omniauth/strategies/cas.rb
  42. +0 −98 oa-enterprise/lib/omniauth/strategies/cas/configuration.rb
  43. +0 −91 oa-enterprise/lib/omniauth/strategies/cas/service_ticket_validator.rb
  44. +0 −124 oa-enterprise/lib/omniauth/strategies/ldap.rb
  45. +0 −276 oa-enterprise/lib/omniauth/strategies/ldap/adaptor.rb
  46. +0 −50 oa-enterprise/lib/omniauth/strategies/saml.rb
  47. +0 −38 oa-enterprise/lib/omniauth/strategies/saml/auth_request.rb
  48. +0 −141 oa-enterprise/lib/omniauth/strategies/saml/auth_response.rb
  49. +0 −8 oa-enterprise/lib/omniauth/strategies/saml/validation_error.rb
  50. +0 −126 oa-enterprise/lib/omniauth/strategies/saml/xml_security.rb
  51. +0 −19 oa-enterprise/lib/omniauth/version.rb
  52. +0 −31 oa-enterprise/oa-enterprise.gemspec
  53. +0 −4 oa-enterprise/spec/fixtures/cas_failure.xml
  54. +0 −8 oa-enterprise/spec/fixtures/cas_success.xml
  55. +0 −94 oa-enterprise/spec/omniauth/strategies/cas_spec.rb
  56. +0 −41 oa-enterprise/spec/omniauth/strategies/ldap_spec.rb
  57. +0 −37 oa-enterprise/spec/omniauth/strategies/saml_spec.rb
  58. +0 −14 oa-enterprise/spec/spec_helper.rb
  59. +0 −2 oa-identity/.rspec
  60. +0 −90 oa-identity/README.markdown
  61. +0 −8 oa-identity/Rakefile
  62. +0 −1 oa-identity/lib/oa-identity.rb
  63. +0 −17 oa-identity/lib/omniauth/identity.rb
  64. +0 −119 oa-identity/lib/omniauth/identity/model.rb
  65. +0 −24 oa-identity/lib/omniauth/identity/models/active_record.rb
  66. +0 −78 oa-identity/lib/omniauth/identity/secure_password.rb
  67. +0 −96 oa-identity/lib/omniauth/strategies/identity.rb
  68. +0 −27 oa-identity/oa-identity.gemspec
  69. +0 −123 oa-identity/spec/omniauth/identity/model_spec.rb
  70. +0 −16 oa-identity/spec/omniauth/identity/models/active_record_spec.rb
  71. +0 −27 oa-identity/spec/omniauth/identity/secure_password_spec.rb
  72. +0 −130 oa-identity/spec/omniauth/strategies/identity_spec.rb
  73. +0 −14 oa-identity/spec/spec_helper.rb
  74. 0 oa-more/.gemtest
  75. +0 −3 oa-more/.rspec
  76. +0 −4 oa-more/.yardopts
  77. +0 −11 oa-more/Gemfile
  78. +0 −19 oa-more/LICENSE
  79. +0 −22 oa-more/README.rdoc
  80. +0 −6 oa-more/Rakefile
  81. +0 −1 oa-more/lib/oa-more.rb
  82. +0 −12 oa-more/lib/omniauth/more.rb
  83. +0 −104 oa-more/lib/omniauth/strategies/draugiem.rb
  84. +0 −56 oa-more/lib/omniauth/strategies/http_basic.rb
  85. +0 −93 oa-more/lib/omniauth/strategies/ign.rb
  86. +0 −93 oa-more/lib/omniauth/strategies/last_fm.rb
  87. +0 −39 oa-more/lib/omniauth/strategies/windows_live.rb
  88. +0 −1,143 oa-more/lib/omniauth/strategies/windows_live/windowslivelogin.rb
  89. +0 −67 oa-more/lib/omniauth/strategies/yupoo.rb
  90. +0 −19 oa-more/lib/omniauth/version.rb
  91. +0 −27 oa-more/oa-more.gemspec
  92. +0 −51 oa-more/spec/omniauth/strategies/draugiem_spec.rb
  93. +0 −7 oa-more/spec/omniauth/strategies/http_basic_spec.rb
  94. +0 −7 oa-more/spec/omniauth/strategies/last_fm_spec.rb
  95. +0 −11 oa-more/spec/spec_helper.rb
  96. 0 oa-oauth/.gemtest
  97. +0 −3 oa-oauth/.rspec
  98. +0 −4 oa-oauth/.yardopts
  99. +0 −11 oa-oauth/Gemfile
  100. +0 −19 oa-oauth/LICENSE
  101. +0 −35 oa-oauth/README.rdoc
  102. +0 −6 oa-oauth/Rakefile
  103. +0 −1 oa-oauth/autotest/discover.rb
  104. +0 −1 oa-oauth/lib/oa-oauth.rb
  105. +0 −74 oa-oauth/lib/omniauth/oauth.rb
  106. +0 −59 oa-oauth/lib/omniauth/strategies/google_oauth2.rb
  107. +0 −89 oa-oauth/lib/omniauth/strategies/oauth.rb
  108. +0 −58 oa-oauth/lib/omniauth/strategies/oauth/blogger.rb
  109. +0 −51 oa-oauth/lib/omniauth/strategies/oauth/dopplr.rb
  110. +0 −60 oa-oauth/lib/omniauth/strategies/oauth/douban.rb
  111. +0 −40 oa-oauth/lib/omniauth/strategies/oauth/dropbox.rb
  112. +0 −52 oa-oauth/lib/omniauth/strategies/oauth/evernote.rb
  113. +0 −47 oa-oauth/lib/omniauth/strategies/oauth/flattr.rb
  114. +0 −39 oa-oauth/lib/omniauth/strategies/oauth/flickr.rb
  115. +0 −44 oa-oauth/lib/omniauth/strategies/oauth/goodreads.rb
  116. +0 −79 oa-oauth/lib/omniauth/strategies/oauth/google.rb
  117. +0 −71 oa-oauth/lib/omniauth/strategies/oauth/google_health.rb
  118. +0 −74 oa-oauth/lib/omniauth/strategies/oauth/google_health_sandbox.rb
  119. +0 −69 oa-oauth/lib/omniauth/strategies/oauth/hyves.rb
  120. +0 −53 oa-oauth/lib/omniauth/strategies/oauth/identica.rb
  121. +0 −56 oa-oauth/lib/omniauth/strategies/oauth/linked_in.rb
  122. +0 −58 oa-oauth/lib/omniauth/strategies/oauth/meetup.rb
  123. +0 −48 oa-oauth/lib/omniauth/strategies/oauth/miso.rb
  124. +0 −67 oa-oauth/lib/omniauth/strategies/oauth/netflix.rb
  125. +0 −63 oa-oauth/lib/omniauth/strategies/oauth/orkut.rb
  126. +0 −57 oa-oauth/lib/omniauth/strategies/oauth/plurk.rb
  127. +0 −72 oa-oauth/lib/omniauth/strategies/oauth/qzone.rb
  128. +0 −48 oa-oauth/lib/omniauth/strategies/oauth/rdio.rb
  129. +0 −47 oa-oauth/lib/omniauth/strategies/oauth/smug_mug.rb
  130. +0 −57 oa-oauth/lib/omniauth/strategies/oauth/t163.rb
  131. +0 −63 oa-oauth/lib/omniauth/strategies/oauth/tqq.rb
  132. +0 −50 oa-oauth/lib/omniauth/strategies/oauth/trade_me.rb
  133. +0 −24 oa-oauth/lib/omniauth/strategies/oauth/trip_it.rb
  134. +0 −85 oa-oauth/lib/omniauth/strategies/oauth/tsina.rb
  135. +0 −55 oa-oauth/lib/omniauth/strategies/oauth/tsohu.rb
  136. +0 −58 oa-oauth/lib/omniauth/strategies/oauth/tumblr.rb
  137. +0 −58 oa-oauth/lib/omniauth/strategies/oauth/twitter.rb
  138. +0 −67 oa-oauth/lib/omniauth/strategies/oauth/type_pad.rb
  139. +0 −58 oa-oauth/lib/omniauth/strategies/oauth/vimeo.rb
  140. +0 −60 oa-oauth/lib/omniauth/strategies/oauth/yahoo.rb
  141. +0 −48 oa-oauth/lib/omniauth/strategies/oauth/yammer.rb
  142. +0 −75 oa-oauth/lib/omniauth/strategies/oauth/you_tube.rb
  143. +0 −93 oa-oauth/lib/omniauth/strategies/oauth2.rb
  144. +0 −57 oa-oauth/lib/omniauth/strategies/oauth2/angellist.rb
  145. +0 −43 oa-oauth/lib/omniauth/strategies/oauth2/bitly.rb
  146. +0 −54 oa-oauth/lib/omniauth/strategies/oauth2/cobot.rb
  147. +0 −63 oa-oauth/lib/omniauth/strategies/oauth2/dailymile.rb
  148. +0 −60 oa-oauth/lib/omniauth/strategies/oauth2/doit.rb
  149. +0 −87 oa-oauth/lib/omniauth/strategies/oauth2/facebook.rb
  150. +0 −63 oa-oauth/lib/omniauth/strategies/oauth2/foursquare.rb
  151. +0 −52 oa-oauth/lib/omniauth/strategies/oauth2/github.rb
  152. +0 −45 oa-oauth/lib/omniauth/strategies/oauth2/glitch.rb
  153. +0 −72 oa-oauth/lib/omniauth/strategies/oauth2/gowalla.rb
  154. +0 −58 oa-oauth/lib/omniauth/strategies/oauth2/instagram.rb
  155. +0 −67 oa-oauth/lib/omniauth/strategies/oauth2/liveid.rb
  156. +0 −39 oa-oauth/lib/omniauth/strategies/oauth2/mailchimp.rb
  157. +0 −75 oa-oauth/lib/omniauth/strategies/oauth2/mailru.rb
  158. +0 −64 oa-oauth/lib/omniauth/strategies/oauth2/mixi.rb
  159. +0 −89 oa-oauth/lib/omniauth/strategies/oauth2/renren.rb
  160. +0 −48 oa-oauth/lib/omniauth/strategies/oauth2/salesforce.rb
  161. +0 −60 oa-oauth/lib/omniauth/strategies/oauth2/sound_cloud.rb
  162. +0 −81 oa-oauth/lib/omniauth/strategies/oauth2/taobao.rb
  163. +0 −51 oa-oauth/lib/omniauth/strategies/oauth2/teambox.rb
  164. +0 −41 oa-oauth/lib/omniauth/strategies/oauth2/thirty_seven_signals.rb
  165. +0 −72 oa-oauth/lib/omniauth/strategies/oauth2/viadeo.rb
  166. +0 −104 oa-oauth/lib/omniauth/strategies/oauth2/vkontakte.rb
  167. +0 −48 oa-oauth/lib/omniauth/strategies/oauth2/we_pay.rb
  168. +0 −67 oa-oauth/lib/omniauth/strategies/xauth.rb
  169. +0 −37 oa-oauth/lib/omniauth/strategies/xauth/instapaper.rb
  170. +0 −19 oa-oauth/lib/omniauth/version.rb
  171. +0 −31 oa-oauth/oa-oauth.gemspec
  172. +0 −24 oa-oauth/spec/fixtures/basecamp_200.xml
  173. +0 −10 oa-oauth/spec/fixtures/campfire_200.json
  174. +0 −5 oa-oauth/spec/omniauth/strategies/google_oauth2_spec.rb
  175. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/dopplr_spec.rb
  176. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/douban_spec.rb
  177. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/dropbox_spec.rb
  178. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/evernote_spec.rb
  179. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/flattr_spec.rb
  180. +0 −6 oa-oauth/spec/omniauth/strategies/oauth/flickr_spec.rb
  181. +0 −6 oa-oauth/spec/omniauth/strategies/oauth/goodreads_spec.rb
  182. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/google_health_sandbox_spec.rb
  183. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/google_health_spec.rb
  184. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/google_spec.rb
  185. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/hyves_spec.rb
  186. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/identica_spec.rb
  187. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/linked_in_spec.rb
  188. +0 −14 oa-oauth/spec/omniauth/strategies/oauth/meetup_spec.rb
  189. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/miso_spec.rb
  190. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/netflix_spec.rb
  191. +0 −131 oa-oauth/spec/omniauth/strategies/oauth/oauth_spec.rb
  192. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/orkut_spec.rb
  193. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/plurk_spec.rb
  194. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/rdio_spec.rb
  195. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/smug_mug_spec.rb
  196. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/t163_spec.rb
  197. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/trade_me_spec.rb
  198. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/trip_it_spec.rb
  199. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/tsina_spec.rb
  200. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/tumblr_spec.rb
  201. +0 −43 oa-oauth/spec/omniauth/strategies/oauth/twitter_spec.rb
  202. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/type_pad_spec.rb
  203. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/vimeo_spec.rb
  204. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/yahoo_spec.rb
  205. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/yammer_spec.rb
  206. +0 −5 oa-oauth/spec/omniauth/strategies/oauth/you_tube_spec.rb
  207. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/angellist_spec.rb
  208. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/bitly_spec.rb
  209. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/cobot_spec.rb
  210. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/dailymile_spec.rb
  211. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/doit_spec.rb
  212. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/facebook_spec.rb
  213. +0 −18 oa-oauth/spec/omniauth/strategies/oauth2/foursquare_spec.rb
  214. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/github_spec.rb
  215. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/glitch_spec.rb
  216. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/gowalla_spec.rb
  217. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/instagram_spec.rb
  218. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/liveid_spec.rb
  219. +0 −6 oa-oauth/spec/omniauth/strategies/oauth2/mailchimp_spec.rb
  220. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/mailru_spec.rb
  221. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/salesforce_spec.rb
  222. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/sound_cloud_spec.rb
  223. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/taobao_spec.rb
  224. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/teambox_spec.rb
  225. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/thirty_seven_signals_spec.rb
  226. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/viadeo_spec.rb
  227. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/vkontakte_spec.rb
  228. +0 −5 oa-oauth/spec/omniauth/strategies/oauth2/we_pay_spec.rb
  229. +0 −31 oa-oauth/spec/spec_helper.rb
  230. +0 −29 oa-oauth/spec/support/shared_examples.rb
  231. 0 oa-openid/.gemtest
  232. +0 −3 oa-openid/.rspec
  233. +0 −4 oa-openid/.yardopts
  234. +0 −12 oa-openid/Gemfile
  235. +0 −19 oa-openid/LICENSE
  236. +0 −51 oa-openid/README.rdoc
  237. +0 −6 oa-openid/Rakefile
  238. +0 −1 oa-openid/lib/oa-openid.rb
  239. +0 −61 oa-openid/lib/omniauth/openid.rb
  240. +0 −32 oa-openid/lib/omniauth/openid/gapps.rb
  241. +0 −23 oa-openid/lib/omniauth/strategies/google_apps.rb
  242. +0 −55 oa-openid/lib/omniauth/strategies/google_hybrid.rb
  243. +0 −134 oa-openid/lib/omniauth/strategies/open_id.rb
  244. +0 −55 oa-openid/lib/omniauth/strategies/steam.rb
  245. +0 −19 oa-openid/lib/omniauth/version.rb
  246. +0 −26 oa-openid/oa-openid.gemspec
  247. +0 −63 oa-openid/spec/omniauth/strategies/google_hybrid_spec.rb
  248. +0 −87 oa-openid/spec/omniauth/strategies/open_id_spec.rb
  249. +0 −14 oa-openid/spec/spec_helper.rb
  250. +0 −18 omniauth.gemspec
  251. 0 {oa-core → }/spec/omniauth/auth_hash_spec.rb
  252. +29 −0 spec/omniauth/strategy_spec.rb
  253. +0 −134 tasks/all.rb
View
13 Gemfile
@@ -1,14 +1,3 @@
source 'http://rubygems.org'
-platforms :jruby do
- gem 'jruby-openssl', '~> 0.7'
-end
-
-gemspec :path => 'oa-core'
-gemspec :path => 'oa-enterprise'
-gemspec :path => 'oa-more'
-gemspec :path => 'oa-oauth'
-gemspec :path => 'oa-openid'
-
-gem 'activerecord', '3.1.0.rc1'
-
+gemspec
View
@@ -1,27 +0,0 @@
-# A sample Guardfile
-# More info at https://github.com/guard/guard#readme
-
-guard 'rspec', :version => 2 do
- watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
- watch('spec/spec_helper.rb') { "spec/" }
-
- # Rails example
- watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
- watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
- watch(%r{^spec/support/(.+)\.rb$}) { "spec/" }
- watch('spec/spec_helper.rb') { "spec/" }
- watch('config/routes.rb') { "spec/routing" }
- watch('app/controllers/application_controller.rb') { "spec/controllers" }
- # Capybara request specs
- watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
-end
-
-
-guard 'bundler' do
- watch('Gemfile')
- # Uncomment next line if Gemfile contain `gemspec' command
- # watch(/^.+\.gemspec/)
-end
View
@@ -1,19 +0,0 @@
-Copyright (c) 2010-2011 Michael Bleigh, Erik Michaels-Ober, and Intridea, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
View
55 Rakefile 100755 → 100644
@@ -1,51 +1,6 @@
-#!/usr/bin/env rake
-
-$:.unshift File.expand_path('..', __FILE__)
-require 'tasks/all'
-
-desc 'Clean up temporary files'
-task :clean => 'all:clean'
-
-desc 'Build gem files for all projects into the package directory'
-task :build => 'all:build'
-
-desc 'Build and install gems for all projects'
-task :install => 'all:install'
-
-desc 'Write version with MAJOR, MINOR, PATCH, and PRE environment variables'
-task 'version:write' => 'all:version:write'
-
-desc 'Display the current version for all projects'
-task :version => 'all:version'
-desc 'Increment the major version for all projects'
-task 'version:bump:major' => 'all:version:bump:major'
-desc 'Increment the minor version for all projects'
-task 'version:bump:minor' => 'all:version:bump:minor'
-desc 'Increment the patch version for all projects'
-task 'version:bump:patch' => 'all:version:bump:patch'
-
-desc 'Run specs for all projects'
-task :spec => 'all:spec'
+require 'bundler'
+Bundler::GemHelper.install_tasks
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
+task :default => :spec
task :test => :spec
-task :default => :test
-
-desc 'Generate docs for all projects'
-task 'doc:yard' => 'all:doc:yard'
-
-task :tag do
- sh "git tag -a -m \"Version #{version}\" v#{version}"
- sh "git push"
- sh "git push --tags"
-end
-
-task :push => 'all:push'
-
-desc 'Build, tag, and push gems for all projects to Rubygems'
-task :release => [:build, :tag, :push]
-
-namespace :doc do
- require 'yard'
- YARD::Rake::YardocTask.new do |task|
- task.files = PROJECTS.map{|project| "#{root}/#{project}/lib/**/*.rb"} + ['README.markdown', 'LICENSE']
- end
-end
View
@@ -1,6 +0,0 @@
-require 'omniauth/core'
-require 'omniauth/oauth'
-require 'omniauth/openid'
-require 'omniauth/enterprise'
-require 'omniauth/more'
-require 'omniauth/identity'
File renamed without changes.
View
@@ -8,6 +8,7 @@ module Strategies; end
autoload :Strategy, 'omniauth/strategy'
autoload :Test, 'omniauth/test'
autoload :Form, 'omniauth/form'
+ autoload :AuthHash, 'omniauth/auth_hash'
def self.strategies
@@strategies ||= []
View
@@ -99,7 +99,12 @@ def initialize(options = {})
def self.build(title=nil,&block)
form = OmniAuth::Form.new(title)
- form.instance_eval(&block)
+ if block.arity > 0
+ yield form
+ else
+ form.instance_eval(&block)
+ end
+ form
end
def label_field(text, target)
View
@@ -38,12 +38,19 @@ def call!(env)
return mock_call!(env) if OmniAuth.config.test_mode
+ return options_call if on_auth_path? && options_request?
return request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
return callback_call if on_callback_path?
return other_phase if respond_to?(:other_phase)
@app.call(env)
end
+ # Responds to an OPTIONS request.
+ def options_call
+ verbs = OmniAuth.config.allowed_request_methods.map(&:to_s).map(&:upcase).join(', ')
+ return [ 200, { 'Allow' => verbs }, [] ]
+ end
+
# Performs the steps necessary to run the request phase of a strategy.
def request_call
setup_phase
@@ -73,11 +80,19 @@ def on_auth_path?
end
def on_request_path?
- current_path.casecmp(request_path) == 0
+ on_path?(request_path)
end
def on_callback_path?
- current_path.casecmp(callback_path) == 0
+ on_path?(callback_path)
+ end
+
+ def on_path?(path)
+ current_path.casecmp(path) == 0
+ end
+
+ def options_request?
+ request.request_method == 'OPTIONS'
end
def mock_call!(env)
@@ -168,10 +183,7 @@ def call_app!(env = @env)
end
def auth_hash
- {
- 'provider' => name.to_s,
- 'uid' => nil
- }
+ AuthHash.new(:provider => name.to_s)
end
def full_host
File renamed without changes.
View
No changes.
View
@@ -1,3 +0,0 @@
---color
---format=nested
---backtrace
View
@@ -1,4 +0,0 @@
---markup markdown
---markup-provider maruku
--
-LICENSE
View
@@ -1,3 +0,0 @@
-source 'http://rubygems.org'
-
-gemspec
View
@@ -1,19 +0,0 @@
-Copyright (c) 2010-2011 Michael Bleigh and Intridea, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
View
@@ -1,6 +0,0 @@
-require 'bundler'
-Bundler::GemHelper.install_tasks
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec)
-task :default => :spec
-task :test => :spec
@@ -1 +0,0 @@
-Autotest.add_discovery { "rspec2" }
View
@@ -1 +0,0 @@
-require 'omniauth/core'
@@ -1,33 +0,0 @@
-require 'omniauth/core'
-
-module OmniAuth
- class Builder < ::Rack::Builder
- def initialize(app, &block)
- @app = app
- super(&block)
- end
-
- def on_failure(&block)
- OmniAuth.config.on_failure = block
- end
-
- def configure(&block)
- OmniAuth.configure(&block)
- end
-
- def provider(klass, *args, &block)
- if klass.is_a?(Class)
- middleware = klass
- else
- middleware = OmniAuth::Strategies.const_get("#{OmniAuth::Utils.camelize(klass.to_s)}")
- end
-
- use middleware, *args, &block
- end
-
- def call(env)
- @ins << @app unless @ins.include?(@app)
- to_app.call(env)
- end
- end
-end
Oops, something went wrong.

0 comments on commit cc73281

Please sign in to comment.