Permalink
Browse files

bundlerize

  • Loading branch information...
1 parent 0ba21d1 commit ae4bb26fa1651c3eabc2dc0525c16ef10592d347 @igrigorik committed May 8, 2011
Showing with 26 additions and 68 deletions.
  1. +8 −17 Rakefile
  2. +0 −1 VERSION
  3. +18 −50 textquery.gemspec
View
@@ -1,19 +1,10 @@
-require 'rake'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "textquery"
- gemspec.summary = "Evaluate any text against a collection of match rules"
- gemspec.description = gemspec.summary
- gemspec.email = "ilya@igvita.com"
- gemspec.homepage = "http://github.com/igrigorik/textquery"
- gemspec.authors = ["Ilya Grigorik"]
- gemspec.add_dependency("treetop")
- gemspec.rubyforge_project = "textquery"
- end
+require 'rspec/core/rake_task'
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
+desc "Run all RSpec tests"
+RSpec::Core::RakeTask.new(:spec)
+
+task :default => :spec
+task :test => [:spec]
View
@@ -1 +0,0 @@
-0.1.7
View
@@ -1,56 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
- s.name = %q{textquery}
- s.version = "0.1.7"
+ s.name = "textquery"
+ s.version = "0.1.7"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Ilya Grigorik"]
- s.date = %q{2010-09-04}
- s.description = %q{Evaluate any text against a collection of match rules}
- s.email = %q{ilya@igvita.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- ".gitignore",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "benchmark/benchmark.rb",
- "benchmark/sample.txt",
- "examples/web.rb",
- "lib/textquery.rb",
- "lib/textquery/textquery.rb",
- "lib/textquery/textquery_grammar.treetop",
- "spec/textquery_spec.rb",
- "textquery.gemspec"
- ]
- s.homepage = %q{http://github.com/igrigorik/textquery}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{textquery}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Evaluate any text against a collection of match rules}
- s.test_files = [
- "spec/textquery_spec.rb",
- "examples/web.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Ilya Grigorik"]
+ s.email = ["ilya@igvita.com"]
+ s.homepage = "http://github.com/igrigorik/textquery"
+ s.summary = "Evaluate any text against a collection of match rules"
+ s.description = s.summary
+ s.rubyforge_project = "textquery"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<treetop>, [">= 0"])
- else
- s.add_dependency(%q<treetop>, [">= 0"])
- end
- else
- s.add_dependency(%q<treetop>, [">= 0"])
- end
-end
+ s.add_dependency "treetop"
+ s.add_development_dependency "rspec"
+ s.add_development_dependency "rake"
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+end

0 comments on commit ae4bb26

Please sign in to comment.