Permalink
Browse files

Move the Gem::Specification to bacon.gemspec

So the gem can be built and released using gem build and gem push and to allow
tools like Bundler to install Bacon from git or from the local filesystem.
  • Loading branch information...
1 parent b90543f commit fd16db89a4387da0836260b034363281d3a2cb52 @jeffkreeftmeijer jeffkreeftmeijer committed Jan 16, 2011
Showing with 26 additions and 47 deletions.
  1. +1 −0 .gitignore
  2. +0 −47 Rakefile
  3. +25 −0 bacon.gemspec
View
@@ -6,3 +6,4 @@ ann-*
*.tar.gz
doc
pkg
+*.gem
View
@@ -78,53 +78,6 @@ task :test do
end
-begin
- $" << "sources" if defined? FromSrc
- require 'rubygems'
-
- require 'rake'
- require 'rake/clean'
- require 'rake/packagetask'
- require 'rake/gempackagetask'
- 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]
-
- Rake::GemPackageTask.new(spec) do |p|
- p.gem_spec = spec
- 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' <<
View
@@ -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

0 comments on commit fd16db8

Please sign in to comment.