From 0029eb2b532bee5b2cc56091b496367ed6ba0bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beausoleil?= Date: Sun, 12 Oct 2014 03:54:55 +0000 Subject: [PATCH] =?UTF-8?q?Upgrading=20Rakefile,=20Specfile=20"au=20go?= =?UTF-8?q?=C3=BBt=20du=20jour"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rakefile | 5 ----- quicken_parser.gemspec | 13 ++----------- test/test_helper.rb | 1 - 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Rakefile b/Rakefile index 15d687a..8e77874 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,4 @@ require 'rubygems' -require 'rake/gempackagetask' require 'rubygems/specification' require 'date' require "rake/testtask" @@ -30,10 +29,6 @@ spec = Gem::Specification.new do |s| s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,test}/**/*") end -Rake::GemPackageTask.new(spec) do |pkg| - pkg.gem_spec = spec -end - desc "install the gem locally" task :install => [:package] do sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}} diff --git a/quicken_parser.gemspec b/quicken_parser.gemspec index 1607bc4..c81f088 100644 --- a/quicken_parser.gemspec +++ b/quicken_parser.gemspec @@ -22,16 +22,7 @@ Gem::Specification.new do |s| s.specification_version = 3 s.add_development_dependency(%q) - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, ["~> 2"]) - s.add_development_dependency(%q, ["~> 2.0"]) - else - s.add_dependency(%q, ["~> 2"]) - s.add_dependency(%q, ["~> 2.0"]) - end - else - s.add_dependency(%q, ["~> 2"]) - s.add_dependency(%q, ["~> 2.0"]) + s.add_development_dependency(%q) + s.add_runtime_dependency(%q, ["~> 2"]) end end diff --git a/test/test_helper.rb b/test/test_helper.rb index 9498de4..0fa8421 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,7 +1,6 @@ require "rubygems" require "test/unit" -gem "thoughtbot-shoulda", "~> 2.0.5" require "shoulda" $:.unshift File.dirname(__FILE__) + "/../lib"