Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bundlerize

  • Loading branch information...
commit ae4bb26fa1651c3eabc2dc0525c16ef10592d347 1 parent 0ba21d1
Ilya Grigorik authored May 08, 2011
25  Rakefile
... ...
@@ -1,19 +1,10 @@
1  
-require 'rake'
  1
+require 'bundler'
  2
+Bundler::GemHelper.install_tasks
2 3
 
3  
-begin
4  
-  require 'jeweler'
5  
-  Jeweler::Tasks.new do |gemspec|
6  
-    gemspec.name = "textquery"
7  
-    gemspec.summary = "Evaluate any text against a collection of match rules"
8  
-    gemspec.description = gemspec.summary
9  
-    gemspec.email = "ilya@igvita.com"
10  
-    gemspec.homepage = "http://github.com/igrigorik/textquery"
11  
-    gemspec.authors = ["Ilya Grigorik"]
12  
-    gemspec.add_dependency("treetop")
13  
-    gemspec.rubyforge_project = "textquery"
14  
-  end
  4
+require 'rspec/core/rake_task'
15 5
 
16  
-  Jeweler::GemcutterTasks.new
17  
-rescue LoadError
18  
-  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
19  
-end
  6
+desc "Run all RSpec tests"
  7
+RSpec::Core::RakeTask.new(:spec)
  8
+
  9
+task :default => :spec
  10
+task :test => [:spec]
1  VERSION
... ...
@@ -1 +0,0 @@
1  
-0.1.7
68  textquery.gemspec
... ...
@@ -1,56 +1,24 @@
1  
-# Generated by jeweler
2  
-# DO NOT EDIT THIS FILE DIRECTLY
3  
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4 1
 # -*- encoding: utf-8 -*-
  2
+$:.push File.expand_path("../lib", __FILE__)
5 3
 
6 4
 Gem::Specification.new do |s|
7  
-  s.name = %q{textquery}
8  
-  s.version = "0.1.7"
  5
+  s.name        = "textquery"
  6
+  s.version     = "0.1.7"
9 7
 
10  
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11  
-  s.authors = ["Ilya Grigorik"]
12  
-  s.date = %q{2010-09-04}
13  
-  s.description = %q{Evaluate any text against a collection of match rules}
14  
-  s.email = %q{ilya@igvita.com}
15  
-  s.extra_rdoc_files = [
16  
-    "README.rdoc"
17  
-  ]
18  
-  s.files = [
19  
-    ".gitignore",
20  
-     "README.rdoc",
21  
-     "Rakefile",
22  
-     "VERSION",
23  
-     "benchmark/benchmark.rb",
24  
-     "benchmark/sample.txt",
25  
-     "examples/web.rb",
26  
-     "lib/textquery.rb",
27  
-     "lib/textquery/textquery.rb",
28  
-     "lib/textquery/textquery_grammar.treetop",
29  
-     "spec/textquery_spec.rb",
30  
-     "textquery.gemspec"
31  
-  ]
32  
-  s.homepage = %q{http://github.com/igrigorik/textquery}
33  
-  s.rdoc_options = ["--charset=UTF-8"]
34  
-  s.require_paths = ["lib"]
35  
-  s.rubyforge_project = %q{textquery}
36  
-  s.rubygems_version = %q{1.3.7}
37  
-  s.summary = %q{Evaluate any text against a collection of match rules}
38  
-  s.test_files = [
39  
-    "spec/textquery_spec.rb",
40  
-     "examples/web.rb"
41  
-  ]
42  
-
43  
-  if s.respond_to? :specification_version then
44  
-    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45  
-    s.specification_version = 3
  8
+  s.platform    = Gem::Platform::RUBY
  9
+  s.authors     = ["Ilya Grigorik"]
  10
+  s.email       = ["ilya@igvita.com"]
  11
+  s.homepage    = "http://github.com/igrigorik/textquery"
  12
+  s.summary     = "Evaluate any text against a collection of match rules"
  13
+  s.description = s.summary
  14
+  s.rubyforge_project = "textquery"
46 15
 
47  
-    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48  
-      s.add_runtime_dependency(%q<treetop>, [">= 0"])
49  
-    else
50  
-      s.add_dependency(%q<treetop>, [">= 0"])
51  
-    end
52  
-  else
53  
-    s.add_dependency(%q<treetop>, [">= 0"])
54  
-  end
55  
-end
  16
+  s.add_dependency "treetop"
  17
+  s.add_development_dependency "rspec"
  18
+  s.add_development_dependency "rake"
56 19
 
  20
+  s.files         = `git ls-files`.split("\n")
  21
+  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  22
+  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  23
+  s.require_paths = ["lib"]
  24
+end

0 notes on commit ae4bb26

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