Skip to content
Browse files

Removed Jeweler dependency

  • Loading branch information...
1 parent 5920e11 commit 60f74c341e81c8c2e20ba3397f2dc9423b0d8b66 @fnando committed Nov 12, 2010
Showing with 23 additions and 92 deletions.
  1. +3 −30 Rakefile
  2. +20 −62 test_notifier.gemspec
View
33 Rakefile
@@ -1,37 +1,10 @@
-require "rake/testtask"
-require File.dirname(__FILE__) + "/lib/test_notifier/version"
+require "bundler"
+Bundler::GemHelper.install_tasks
+require "rake/testtask"
Rake::TestTask.new do |t|
t.libs += %w[test lib]
t.ruby_opts = %w[-rubygems]
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end
-
-begin
- require "jeweler"
-
- JEWEL = Jeweler::Tasks.new do |gem|
- gem.name = "test_notifier"
- gem.email = "fnando.vieira@gmail.com"
- gem.homepage = "http://github.com/fnando/test_notifier"
- gem.authors = ["Nando Vieira"]
- gem.version = "#{TestNotifier::Version::STRING}.rc.1"
- gem.summary = "Display system notifications (dbus, growl and snarl) after running tests."
- gem.description = <<-TEXT
- Display system notifications (dbus, growl and snarl) after
- running tests. It works on Mac OS X, Linux and Windows. Powerful when used
- with Autotest ZenTest gem for Rails apps.
- TEXT
-
- gem.files = FileList["{README}.rdoc", "{lib,resources}/**/*"]
- gem.requirements << "You'll need Growl (Mac OS X), Libnotify, OSD or KDE (Linux) or Snarl (Windows)"
-
- gem.add_development_dependency "test-unit"
- gem.add_development_dependency "mocha"
- end
-
- Jeweler::GemcutterTasks.new
-rescue LoadError => e
- puts "You don't Jeweler installed, so you won't be able to build this gem."
-end
View
82 test_notifier.gemspec
@@ -1,70 +1,28 @@
-# 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__)
+require "test_notifier/version"
Gem::Specification.new do |s|
- s.name = %q{test_notifier}
- s.version = "0.3.5.rc.1"
+ s.name = "test_notifier"
+ s.version = "#{TestNotifier::Version::STRING}.rc.1"
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Nando Vieira"]
+ s.email = ["fnando.vieira@gmail.com"]
+ s.homepage = "http://rubygems.org/gems/test_notifier"
+ s.summary = "Display system notifications (dbus, growl and snarl) after running tests."
+ s.description = <<-DESC
+Display system notifications (dbus, growl and snarl) after
+running tests. It works on Mac OS X, Linux and Windows. Powerful when used
+with Autotest ZenTest gem for Rails apps.
+DESC
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
- s.authors = ["Nando Vieira"]
- s.date = %q{2010-10-28}
- s.description = %q{ Display system notifications (dbus, growl and snarl) after
- running tests. It works on Mac OS X, Linux and Windows. Powerful when used
- with Autotest ZenTest gem for Rails apps.
-}
- s.email = %q{fnando.vieira@gmail.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "README.rdoc",
- "lib/test_notifier.rb",
- "lib/test_notifier/autotest.rb",
- "lib/test_notifier/notifier.rb",
- "lib/test_notifier/notifier/growl.rb",
- "lib/test_notifier/notifier/kdialog.rb",
- "lib/test_notifier/notifier/knotify.rb",
- "lib/test_notifier/notifier/notify_send.rb",
- "lib/test_notifier/notifier/osd_cat.rb",
- "lib/test_notifier/notifier/placebo.rb",
- "lib/test_notifier/notifier/snarl.rb",
- "lib/test_notifier/rspec.rb",
- "lib/test_notifier/runner.rb",
- "lib/test_notifier/runner/autotest.rb",
- "lib/test_notifier/runner/rspec.rb",
- "lib/test_notifier/runner/spec.rb",
- "lib/test_notifier/runner/test_unit.rb",
- "lib/test_notifier/stats.rb",
- "lib/test_notifier/test_unit.rb",
- "lib/test_notifier/version.rb",
- "resources/error.png",
- "resources/fail.png",
- "resources/register-growl.scpt",
- "resources/success.png"
- ]
- s.homepage = %q{http://github.com/fnando/test_notifier}
- s.rdoc_options = ["--charset=UTF-8"]
+ 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"]
- s.requirements = ["You'll need Growl (Mac OS X), Libnotify, OSD or KDE (Linux) or Snarl (Windows)"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Display system notifications (dbus, growl and snarl) after running tests.}
- s.test_files = [
- "test/notifier_test.rb",
- "test/stats_test.rb",
- "test/test_helper.rb",
- "test/test_notifier_test.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.requirements << "You'll need Growl (Mac OS X), Libnotify, OSD or KDE (Linux) or Snarl (Windows)"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ s.add_development_dependency "test-unit"
+ s.add_development_dependency "mocha"
end
-

0 comments on commit 60f74c3

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