Permalink
Browse files

rakefile + gemspec tweaks

  • Loading branch information...
1 parent d4069d6 commit 5aa29a80116c909907f65eb94141d23713b5b8a6 @cldwalker committed Jul 15, 2010
Showing with 5 additions and 59 deletions.
  1. +2 −1 .gemspec
  2. +3 −3 Rakefile
  3. +0 −55 core.gemspec
View
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'bacon'
s.add_development_dependency 'mocha'
s.add_development_dependency 'mocha-on-bacon'
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile gemspec}
+ s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile .gemspec}
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
+ s.license = 'MIT'
end
View
@@ -2,12 +2,12 @@ require 'rake'
require 'fileutils'
def gemspec
- @gemspec ||= eval(File.read('gemspec'), binding, 'gemspec')
+ @gemspec ||= eval(File.read('.gemspec'), binding, '.gemspec')
end
desc "Build the gem"
task :gem=>:gemspec do
- sh "gem build gemspec"
+ sh "gem build .gemspec"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
end
@@ -32,4 +32,4 @@ task :test do |t|
sh 'bacon -q -Ilib -I. test/*_test.rb'
end
-task :default => :test
+task :default => :test
View
@@ -1,55 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{core}
- s.version = "0.1.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Gabriel Horner"]
- s.date = %q{2009-05-03}
- s.description = %q{Provides an easy way of using/sharing Ruby extension libraries (think activesupport) with a bias to monkeypatch-agnostic extensions.}
- s.email = %q{gabriel.horner@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.rdoc"
- ]
- s.files = [
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION.yml",
- "lib/core.rb",
- "lib/core/interface.rb",
- "lib/core/loader.rb",
- "lib/core/manager.rb",
- "lib/core/util.rb",
- "test/core_test.rb",
- "test/loader_test.rb",
- "test/manager_test.rb",
- "test/test_helper.rb",
- "test/util_test.rb"
- ]
- s.has_rdoc = true
- s.homepage = %q{http://github.com/cldwalker/core}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.2}
- s.summary = %q{Provides an easy way of using/sharing Ruby extension libraries (think activesupport) with a bias to monkeypatch-agnostic extensions.}
- s.test_files = [
- "test/core_test.rb",
- "test/loader_test.rb",
- "test/manager_test.rb",
- "test/test_helper.rb",
- "test/util_test.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end

0 comments on commit 5aa29a8

Please sign in to comment.