Skip to content

Commit

Permalink
Upgrading Rakefile, Specfile "au goût du jour"
Browse files Browse the repository at this point in the history
  • Loading branch information
francois committed Oct 12, 2014
1 parent d6e179d commit 0029eb2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'
require "rake/testtask"
Expand Down Expand Up @@ -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}}
Expand Down
13 changes: 2 additions & 11 deletions quicken_parser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ Gem::Specification.new do |s|
s.specification_version = 3

s.add_development_dependency(%q<rake>)

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<FooBarWidget-money>, ["~> 2"])
s.add_development_dependency(%q<francois-shoulda>, ["~> 2.0"])
else
s.add_dependency(%q<FooBarWidget-money>, ["~> 2"])
s.add_dependency(%q<francois-shoulda>, ["~> 2.0"])
end
else
s.add_dependency(%q<FooBarWidget-money>, ["~> 2"])
s.add_dependency(%q<francois-shoulda>, ["~> 2.0"])
s.add_development_dependency(%q<thoughtbot-shoulda>)
s.add_runtime_dependency(%q<FooBarWidget-money>, ["~> 2"])
end
end
1 change: 0 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "rubygems"
require "test/unit"

gem "thoughtbot-shoulda", "~> 2.0.5"
require "shoulda"

$:.unshift File.dirname(__FILE__) + "/../lib"
Expand Down

0 comments on commit 0029eb2

Please sign in to comment.