summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2011-12-28 12:23:29 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2011-12-28 12:23:29 +0100
commitea50eeab9990ef5dc4e106cd5b4fe426fd287f7c (patch)
tree08d5b904ce11ba2934acdbfbfa4153562216308b
parente7714404837a3e0ef9802817304c91d28a6c8447 (diff)
parentfd16db89a4387da0836260b034363281d3a2cb52 (diff)
downloadbacon-ea50eeab9990ef5dc4e106cd5b4fe426fd287f7c.tar.gz
bacon-ea50eeab9990ef5dc4e106cd5b4fe426fd287f7c.tar.xz
bacon-ea50eeab9990ef5dc4e106cd5b4fe426fd287f7c.zip
Merge remote-tracking branch 'jeffkreeftmeijer/master'
-rw-r--r--.gitignore1
-rw-r--r--Rakefile46
-rw-r--r--bacon.gemspec25
3 files changed, 26 insertions, 46 deletions
diff --git a/.gitignore b/.gitignore
index ac3bca2..cbf7672 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ ann-*
 *.tar.gz
 doc
 pkg
+*.gem
diff --git a/Rakefile b/Rakefile
index 3d58cfa..f6ad05d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -78,52 +78,6 @@ task :test do
 end
 
 
-begin
-  $" << "sources"  if defined? FromSrc
-  require 'rubygems'
-
-  require 'rake'
-  require 'rake/clean'
-  require 'rake/packagetask'
-  require 'rubygems/package_task'
-  require 'fileutils'
-rescue LoadError
-  # Too bad.
-else
-  spec = Gem::Specification.new do |s|
-    s.name            = "bacon"
-    s.version         = gem_version
-    s.platform        = Gem::Platform::RUBY
-    s.summary         = "a small RSpec clone"
-
-    s.description = <<-EOF
-Bacon is a small RSpec clone weighing less than 350 LoC but
-nevertheless providing all essential features.
-
-http://github.com/chneukirchen/bacon
-    EOF
-
-    s.files           = manifest + %w(RDOX ChangeLog)
-    s.bindir          = 'bin'
-    s.executables     << 'bacon'
-    s.require_path    = 'lib'
-    s.has_rdoc        = true
-    s.extra_rdoc_files = ['README', 'RDOX']
-    s.test_files      = []
-
-    s.author          = 'Christian Neukirchen'
-    s.email           = 'chneukirchen@gmail.com'
-    s.homepage        = 'http://github.com/chneukirchen/bacon'
-  end
-
-  task :gem => [:chmod, :changelog]
-
-  Gem::PackageTask.new(spec) do |p|
-    p.need_tar = false
-    p.need_zip = false
-  end
-end
-
 desc "Generate RDoc documentation"
 Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.options << '--line-numbers' << '--inline-source' <<
diff --git a/bacon.gemspec b/bacon.gemspec
new file mode 100644
index 0000000..1494ea0
--- /dev/null
+++ b/bacon.gemspec
@@ -0,0 +1,25 @@
+Gem::Specification.new do |s|
+  s.name            = "bacon"
+  s.version         = '1.1.11'
+  s.platform        = Gem::Platform::RUBY
+  s.summary         = "a small RSpec clone"
+
+  s.description = <<-EOF
+Bacon is a small RSpec clone weighing less than 350 LoC but
+nevertheless providing all essential features.
+
+http://github.com/chneukirchen/bacon
+  EOF
+
+  s.files           = `git ls-files`.split("\n") - [".gitignore"] + %w(RDOX ChangeLog)
+  s.bindir          = 'bin'
+  s.executables     << 'bacon'
+  s.require_path    = 'lib'
+  s.has_rdoc        = true
+  s.extra_rdoc_files = ['README', 'RDOX']
+  s.test_files      = []
+
+  s.author          = 'Christian Neukirchen'
+  s.email           = 'chneukirchen@gmail.com'
+  s.homepage        = 'http://github.com/chneukirchen/bacon'
+end