diff --git a/lib/gollum/gitcode.rb b/lib/gollum/gitcode.rb index 9c2576d3..550e388c 100644 --- a/lib/gollum/gitcode.rb +++ b/lib/gollum/gitcode.rb @@ -1,4 +1,5 @@ require 'net/http' +require 'net/https' # ruby 1.8.7 fix, remove at upgrade require 'uri' require 'open-uri' diff --git a/test/test_gitcode.rb b/test/test_gitcode.rb index 14546c06..d0599d6d 100644 --- a/test/test_gitcode.rb +++ b/test/test_gitcode.rb @@ -47,6 +47,6 @@ context "gitcode" do end teardown do - @cleanup.() + @cleanup.call end end diff --git a/test/test_markup.rb b/test/test_markup.rb index 6e7b6a0d..411fef34 100644 --- a/test/test_markup.rb +++ b/test/test_markup.rb @@ -8,7 +8,7 @@ context "Markup" do end teardown do - @teardown.() + @teardown.call end test "formats page from Wiki#pages" do diff --git a/test/wiki_factory.rb b/test/wiki_factory.rb index aade4432..e6536f28 100644 --- a/test/wiki_factory.rb +++ b/test/wiki_factory.rb @@ -3,7 +3,7 @@ class WikiFactory path = testpath "examples/test.git" Grit::Repo.init_bare(path) Gollum::Wiki.default_options = {:universal_toc => false} - cleanup = lambda { FileUtils.rm_r File.join(File.dirname(__FILE__), *%w[examples test.git]) } + cleanup = Proc.new { FileUtils.rm_r File.join(File.dirname(__FILE__), *%w[examples test.git]) } wiki = Gollum::Wiki.new(path) return wiki, path, cleanup end