Navigation Menu

Skip to content

Commit

Permalink
Remove needless explicit "rubygems" requires
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 15, 2015
1 parent 672536c commit b367187
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
7 changes: 1 addition & 6 deletions example/bookmark.rb
Expand Up @@ -7,12 +7,7 @@
$LOAD_PATH.unshift(groonga_ext_dir)
$LOAD_PATH.unshift(groonga_lib_dir)

begin
require "groonga"
rescue LoadError
require "rubygems"
require "groonga"
end
require "groonga"

require "time"

Expand Down
1 change: 0 additions & 1 deletion example/index-html.rb
Expand Up @@ -11,7 +11,6 @@
$LOAD_PATH.unshift((base_directory + "ext").to_s)
$LOAD_PATH.unshift((base_directory + "lib").to_s)

require "rubygems"
require "groonga"
require "nokogiri"

Expand Down
1 change: 0 additions & 1 deletion example/search/config.ru
Expand Up @@ -4,7 +4,6 @@ base_dir = File.join(File.dirname(__FILE__), "..", "..")
$LOAD_PATH.unshift(File.join(base_dir, "ext"))
$LOAD_PATH.unshift(File.join(base_dir, "lib"))

require "rubygems"
require "rack"
require "groonga"

Expand Down
7 changes: 1 addition & 6 deletions ext/groonga/extconf.rb
Expand Up @@ -95,12 +95,7 @@ def download(url)
end

def extract_zip(filename, destrination_dir)
begin
require "archive/zip"
rescue LoadError
require "rubygems"
require "archive/zip"
end
require "archive/zip"

Archive::Zip.extract(filename, destrination_dir)
rescue LoadError
Expand Down

0 comments on commit b367187

Please sign in to comment.