Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

first commit

  • Loading branch information...
commit 489c1d6c1e54e21b21dd854b575fd5d113763d6c 0 parents
Matt Aimonetti authored January 03, 2009
20  LICENSE
... ...
@@ -0,0 +1,20 @@
  1
+Copyright (c) 2009 Matt Aimonetti
  2
+
  3
+Permission is hereby granted, free of charge, to any person obtaining
  4
+a copy of this software and associated documentation files (the
  5
+"Software"), to deal in the Software without restriction, including
  6
+without limitation the rights to use, copy, modify, merge, publish,
  7
+distribute, sublicense, and/or sell copies of the Software, and to
  8
+permit persons to whom the Software is furnished to do so, subject to
  9
+the following conditions:
  10
+
  11
+The above copyright notice and this permission notice shall be
  12
+included in all copies or substantial portions of the Software.
  13
+
  14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0  README.markdown
Source Rendered
No changes.
57  Rakefile
... ...
@@ -0,0 +1,57 @@
  1
+require 'rubygems'
  2
+require 'rake/gempackagetask'
  3
+require 'rubygems/specification'
  4
+require 'date'
  5
+require 'spec/rake/spectask'
  6
+
  7
+GEM = "ruby-web-search"
  8
+GEM_VERSION = "0.0.1"
  9
+AUTHOR = "Matt Aimonetti"
  10
+EMAIL = "mattaimonetti@gmail.com"
  11
+HOMEPAGE = "http://merbist.com"
  12
+SUMMARY = "A Ruby gem that provides a way to retrieve search results via the main search engines using Ruby"
  13
+
  14
+spec = Gem::Specification.new do |s|
  15
+  s.name = GEM
  16
+  s.version = GEM_VERSION
  17
+  s.platform = Gem::Platform::RUBY
  18
+  s.has_rdoc = true
  19
+  s.extra_rdoc_files = ["LICENSE"]
  20
+  s.summary = SUMMARY
  21
+  s.description = s.summary
  22
+  s.author = AUTHOR
  23
+  s.email = EMAIL
  24
+  s.homepage = HOMEPAGE
  25
+  
  26
+  # Uncomment this to add a dependency
  27
+  # s.add_dependency "foo"
  28
+  
  29
+  s.require_path = 'lib'
  30
+  s.autorequire = GEM
  31
+  s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
  32
+end
  33
+
  34
+task :default => :spec
  35
+
  36
+desc "Run specs"
  37
+Spec::Rake::SpecTask.new do |t|
  38
+  t.spec_files = FileList['spec/**/*_spec.rb']
  39
+  t.spec_opts = %w(-fs --color)
  40
+end
  41
+
  42
+
  43
+Rake::GemPackageTask.new(spec) do |pkg|
  44
+  pkg.gem_spec = spec
  45
+end
  46
+
  47
+desc "install the gem locally"
  48
+task :install => [:package] do
  49
+  sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
  50
+end
  51
+
  52
+desc "create a gemspec file"
  53
+task :make_spec do
  54
+  File.open("#{GEM}.gemspec", "w") do |file|
  55
+    file.puts spec.to_ruby
  56
+  end
  57
+end
4  lib/ruby-web-search.rb
... ...
@@ -0,0 +1,4 @@
  1
+module RubyWebSearch
  2
+  
  3
+  
  4
+end
14  script/destroy
... ...
@@ -0,0 +1,14 @@
  1
+#!/usr/bin/env ruby
  2
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  3
+
  4
+begin
  5
+  require 'rubigen'
  6
+rescue LoadError
  7
+  require 'rubygems'
  8
+  require 'rubigen'
  9
+end
  10
+require 'rubigen/scripts/destroy'
  11
+
  12
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
  13
+RubiGen::Base.use_component_sources! [:newgem_simple, :test_unit]
  14
+RubiGen::Scripts::Destroy.new.run(ARGV)
14  script/generate
... ...
@@ -0,0 +1,14 @@
  1
+#!/usr/bin/env ruby
  2
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  3
+
  4
+begin
  5
+  require 'rubigen'
  6
+rescue LoadError
  7
+  require 'rubygems'
  8
+  require 'rubigen'
  9
+end
  10
+require 'rubigen/scripts/generate'
  11
+
  12
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
  13
+RubiGen::Base.use_component_sources! [:newgem_simple, :test_unit]
  14
+RubiGen::Scripts::Generate.new.run(ARGV)
7  spec/ruby-search_spec.rb
... ...
@@ -0,0 +1,7 @@
  1
+require File.dirname(__FILE__) + '/spec_helper'
  2
+
  3
+describe "ruby-web-search" do
  4
+  it "should do nothing" do
  5
+    true.should == true
  6
+  end
  7
+end
2  spec/spec_helper.rb
... ...
@@ -0,0 +1,2 @@
  1
+$TESTING=true
  2
+$:.push File.join(File.dirname(__FILE__), '..', 'lib')

0 notes on commit 489c1d6

Please sign in to comment.
Something went wrong with that request. Please try again.