Permalink
Browse files

First steps toward 1.0-ification. Not working yet.

  • Loading branch information...
1 parent 0e5996d commit d4dcade36c0d8f06c5695963d947550d6833e071 Michael Bleigh committed Oct 20, 2011
Showing with 2,977 additions and 229 deletions.
  1. +0 −1 .rspec
  2. +11 −3 Gemfile
  3. +76 −0 Gemfile.lock
  4. +9 −0 Guardfile
  5. 0 README.rdoc → README.md
  6. +133 −0 coverage/.resultset.json
  7. +88 −0 coverage/assets/0.5.3/app.js
  8. BIN coverage/assets/0.5.3/fancybox/blank.gif
  9. BIN coverage/assets/0.5.3/fancybox/fancy_close.png
  10. BIN coverage/assets/0.5.3/fancybox/fancy_loading.png
  11. BIN coverage/assets/0.5.3/fancybox/fancy_nav_left.png
  12. BIN coverage/assets/0.5.3/fancybox/fancy_nav_right.png
  13. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_e.png
  14. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_n.png
  15. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png
  16. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png
  17. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_s.png
  18. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_se.png
  19. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png
  20. BIN coverage/assets/0.5.3/fancybox/fancy_shadow_w.png
  21. BIN coverage/assets/0.5.3/fancybox/fancy_title_left.png
  22. BIN coverage/assets/0.5.3/fancybox/fancy_title_main.png
  23. BIN coverage/assets/0.5.3/fancybox/fancy_title_over.png
  24. BIN coverage/assets/0.5.3/fancybox/fancy_title_right.png
  25. BIN coverage/assets/0.5.3/fancybox/fancybox-x.png
  26. BIN coverage/assets/0.5.3/fancybox/fancybox-y.png
  27. BIN coverage/assets/0.5.3/fancybox/fancybox.png
  28. +363 −0 coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css
  29. +44 −0 coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js
  30. BIN coverage/assets/0.5.3/favicon_green.png
  31. BIN coverage/assets/0.5.3/favicon_red.png
  32. BIN coverage/assets/0.5.3/favicon_yellow.png
  33. +129 −0 coverage/assets/0.5.3/highlight.css
  34. +1 −0 coverage/assets/0.5.3/highlight.pack.js
  35. +18 −0 coverage/assets/0.5.3/jquery-1.6.2.min.js
  36. +152 −0 coverage/assets/0.5.3/jquery.dataTables.min.js
  37. +141 −0 coverage/assets/0.5.3/jquery.timeago.js
  38. +174 −0 coverage/assets/0.5.3/jquery.url.js
  39. BIN coverage/assets/0.5.3/loading.gif
  40. BIN coverage/assets/0.5.3/magnify.png
  41. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  42. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  43. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  44. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  45. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  46. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  47. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  48. BIN coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  49. BIN coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png
  50. BIN coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png
  51. BIN coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png
  52. BIN coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png
  53. BIN coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png
  54. +295 −0 coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css
  55. +383 −0 coverage/assets/0.5.3/stylesheet.css
  56. +869 −0 coverage/index.html
  57. +25 −0 examples/sinatra.rb
  58. +2 −0 lib/omniauth-openid.rb
  59. +5 −0 lib/omniauth-openid/version.rb
  60. +0 −61 lib/omniauth/openid.rb
  61. +0 −32 lib/omniauth/openid/gapps.rb
  62. +34 −48 lib/omniauth/strategies/open_id.rb
  63. +8 −7 oa-openid.gemspec → omniauth-openid.gemspec
  64. +0 −63 spec/omniauth/strategies/google_hybrid_spec.rb
  65. +14 −10 spec/omniauth/strategies/open_id_spec.rb
  66. +3 −4 spec/spec_helper.rb
View
1 .rspec
@@ -1,3 +1,2 @@
--color
--format=nested
---backtrace
View
14 Gemfile
@@ -2,11 +2,19 @@ require File.expand_path('../lib/omniauth/version', __FILE__)
source 'http://rubygems.org'
-gem 'oa-core', OmniAuth::Version::STRING, :path => '../oa-core'
-gem 'oa-oauth', OmniAuth::Version::STRING, :path => '../oa-oauth'
-
platforms :jruby do
gem 'jruby-openssl', '~> 0.7'
end
gemspec
+
+group :development, :test do
+ gem 'guard'
+ gem 'guard-rspec'
+ gem 'growl'
+ gem 'rb-fsevent'
+end
+
+group :example do
+ gem 'sinatra'
+end
View
@@ -0,0 +1,76 @@
+PATH
+ remote: .
+ specs:
+ omniauth-openid (1.0.0.beta1)
+ omniauth (~> 1.0.0.beta1)
+ rack-openid (~> 1.3.1)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.6)
+ crack (0.3.1)
+ diff-lcs (1.1.3)
+ growl (1.0.3)
+ guard (0.8.7)
+ thor (~> 0.14.6)
+ guard-rspec (0.5.0)
+ guard (>= 0.8.4)
+ hashie (1.2.0)
+ multi_json (1.0.3)
+ omniauth (1.0.0.pr2)
+ hashie
+ rack
+ rack (1.3.5)
+ rack-openid (1.3.1)
+ rack (>= 1.1.0)
+ ruby-openid (>= 2.1.8)
+ rack-protection (1.1.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rake (0.9.2)
+ rb-fsevent (0.4.3.1)
+ rdiscount (1.6.8)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.0)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ ruby-openid (2.1.8)
+ simplecov (0.5.4)
+ multi_json (~> 1.0.3)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
+ sinatra (1.3.0)
+ rack (~> 1.3)
+ rack-protection (~> 1.1)
+ tilt (~> 1.3)
+ thor (0.14.6)
+ tilt (1.3.3)
+ webmock (1.7.7)
+ addressable (> 2.2.5, ~> 2.2)
+ crack (>= 0.1.7)
+ yard (0.7.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ growl
+ guard
+ guard-rspec
+ jruby-openssl (~> 0.7)
+ omniauth-openid!
+ rack-test (~> 0.5)
+ rake (~> 0.8)
+ rb-fsevent
+ rdiscount (~> 1.6)
+ rspec (~> 2.5)
+ simplecov (~> 0.4)
+ sinatra
+ webmock (~> 1.7)
+ yard (~> 0.7)
View
@@ -0,0 +1,9 @@
+# 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/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+
File renamed without changes.
View
@@ -0,0 +1,133 @@
+{
+ "RSpec": {
+ "coverage": {
+ "/Users/mbleigh/code/gems/omniauth-openid/lib/omniauth-openid.rb": [
+ 1,
+ 1
+ ],
+ "/Users/mbleigh/code/gems/omniauth-openid/lib/omniauth/strategies/open_id.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 3,
+ 3,
+ 3,
+ null,
+ null,
+ 1,
+ 3,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 3,
+ 3,
+ 3,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1
+ ]
+ },
+ "timestamp": 1319075513
+ }
+}
@@ -0,0 +1,88 @@
+$(document).ready(function() {
+ // Configuration for fancy sortable tables for source file groups
+ $('.file_list').dataTable({
+ "aaSorting": [[ 1, "asc" ]],
+ "bPaginate": false,
+ "bJQueryUI": true,
+ "aoColumns": [
+ null,
+ { "sType": "percent" },
+ null,
+ null,
+ null,
+ null,
+ null
+ ]
+ });
+
+ // Syntax highlight all files up front - deactivated
+ // $('.source_table pre code').each(function(i, e) {hljs.highlightBlock(e, ' ')});
+
+ // Syntax highlight source files on first toggle of the file view popup
+ $("a.src_link").click(function() {
+ // Get the source file element that corresponds to the clicked element
+ var source_table = $($(this).attr('href'));
+
+ // If not highlighted yet, do it!
+ if (!source_table.hasClass('highlighted')) {
+ source_table.find('pre code').each(function(i, e) {hljs.highlightBlock(e, ' ')});
+ source_table.addClass('highlighted');
+ };
+ });
+
+ // Set-up of popup for source file views
+ $("a.src_link").fancybox({
+ 'hideOnContentClick': true,
+ 'centerOnScroll': true,
+ 'width': '90%',
+ 'padding': 0,
+ 'transitionIn': 'elastic'
+ });
+
+ // Hide src files and file list container after load
+ $('.source_files').hide();
+ $('.file_list_container').hide();
+
+ // Add tabs based upon existing file_list_containers
+ $('.file_list_container h2').each(function(){
+ var container_id = $(this).parent().attr('id');
+ var group_name = $(this).find('.group_name').first().html();
+ var covered_percent = $(this).find('.covered_percent').first().html();
+
+ $('.group_tabs').append('<li><a href="#' + container_id + '">' + group_name + ' ('+ covered_percent +')</a></li>');
+ });
+
+ $('.group_tabs a').each( function() {
+ $(this).addClass($(this).attr('href').replace('#', ''));
+ });
+
+ // Make sure tabs don't get ugly focus borders when active
+ $('.group_tabs a').live('focus', function() { $(this).blur(); });
+
+ var favicon_path = $('link[rel="shortcut icon"]').attr('href');
+ $('.group_tabs a').live('click', function(){
+ if (!$(this).parent().hasClass('active')) {
+ $('.group_tabs a').parent().removeClass('active');
+ $(this).parent().addClass('active');
+ $('.file_list_container').hide();
+ $(".file_list_container" + $(this).attr('href')).show();
+ window.location.href = window.location.href.split('#')[0] + $(this).attr('href').replace('#', '#_');
+
+ // Force favicon reload - otherwise the location change containing anchor would drop the favicon...
+ // Works only on firefox, but still... - Anyone know a better solution to force favicon on local file?
+ $('link[rel="shortcut icon"]').remove();
+ $('head').append('<link rel="shortcut icon" type="image/png" href="'+ favicon_path +'" />');
+ };
+ return false;
+ });
+
+ if (jQuery.url.attr('anchor')) {
+ $('.group_tabs a.'+jQuery.url.attr('anchor').replace('_', '')).click();
+ } else {
+ $('.group_tabs a:first').click();
+ };
+
+ $("abbr.timeago").timeago();
+ $('#loading').fadeOut();
+ $('#wrapper').show();
+});
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit d4dcade

Please sign in to comment.