Skip to content

Commit

Permalink
removed curb as a deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed Jan 18, 2009
1 parent a33978f commit d777f7e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -24,7 +24,7 @@ spec = Gem::Specification.new do |s|
s.homepage = HOMEPAGE

# Uncomment this to add a dependency
s.add_dependency "curb"
# s.add_dependency "curb"
s.add_dependency "json"

s.require_path = 'lib'
Expand Down
10 changes: 5 additions & 5 deletions lib/ruby-web-search.rb
Expand Up @@ -2,12 +2,12 @@
require 'CGI'
require 'JSON'

begin
gem 'curb'
require 'curb'
rescue LoadError
# begin
# gem 'curb'
# require 'curb'
# rescue LoadError
require File.join(File.dirname(__FILE__), 'curbemu')
end
# end


$RUBY_WEB_SEARCH_DEBUG = false
Expand Down
26 changes: 26 additions & 0 deletions ruby-search.gemspec
@@ -0,0 +1,26 @@
GEM = "ruby-web-search"
GEM_VERSION = "0.0.2"
AUTHOR = "Matt Aimonetti"
EMAIL = "mattaimonetti@gmail.com"
HOMEPAGE = "http://merbist.com"
SUMMARY = "A Ruby gem that provides a way to retrieve search results via the main search engines using Ruby"

spec = Gem::Specification.new do |s|
s.name = GEM
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["LICENSE"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE

# s.add_dependency "curb"
s.add_dependency "json"

s.require_path = 'lib'
s.autorequire = GEM
s.files = %w(LICENSE README.markdown Rakefile) + ["lib/curbemu.rb", "lib/ruby-web-search.rb", "spec/ruby-web-search-unthreaded.rb", "spec/ruby-web-search_spec.rb", "spec/spec_helper.rb"]
end

0 comments on commit d777f7e

Please sign in to comment.