lib/gemspec.rb in refinerycms-testing-1.0.0 vs lib/gemspec.rb in refinerycms-testing-1.0.1

- old
+ new

@@ -1,10 +1,12 @@ +# Encoding: UTF-8 require 'pathname' gempath = Pathname.new(File.expand_path('../../', __FILE__)) require gempath.join('..', 'base', 'lib', 'base', 'refinery') gemspec = <<EOF +# Encoding: UTF-8 # DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it. Gem::Specification.new do |s| s.name = %q{#{gemname = 'refinerycms-testing'}} s.version = %q{#{::Refinery.version}} @@ -40,10 +42,14 @@ s.add_dependency 'autotest' s.add_dependency 'autotest-rails' s.add_dependency 'autotest-notification' # RCov - s.add_dependency 'rcov' + if RUBY_VERSION < '1.9' + s.add_dependency 'rcov' + else + s.add_dependency 'simplecov' + end s.files = [ '#{%w( **/{*,.rspec,.gitignore,.yardopts} ).map { |file| Pathname.glob(gempath.join(file)) }.flatten.reject{|f| !f.exist? or f.to_s =~ /\.gem$/ or (f.directory? and f.children.empty?) }.map{|d| d.relative_path_from(gempath)}.uniq.sort.join("',\n '")}'