Sha256: 25a84e121c4544b7e70c5a50f812d88b2583d048184cd0bbd0d2ace3b26538e7
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require 'rubygems' require 'rake' require 'jeweler' require 'rake/gem_ghost_task' require 'rspec/core' require 'rspec/core/rake_task' name = 'fspath' [nil, 'darwin'].each do |platform| spec = Gem::Specification.new do |gem| gem.name = name gem.summary = %Q{Better than Pathname} gem.homepage = "http://github.com/toy/#{name}" gem.license = 'MIT' gem.authors = ['Ivan Kuchin'] gem.platform = platform gem.add_dependency 'xattr' if platform == 'darwin' gem.add_dependency 'rb-appscript' end gem.add_development_dependency 'jeweler', '~> 1.5.1' gem.add_development_dependency 'rake-gem-ghost' gem.add_development_dependency 'rspec' end Jeweler::RubygemsDotOrgTasks.new do |rubygems_tasks| rubygems_tasks.jeweler = Jeweler::Tasks.new(spec).jeweler end Rake::GemGhostTask.new end RSpec::Core::RakeTask.new(:spec) do |spec| spec.rspec_opts = ['--colour --format progress'] spec.pattern = 'spec/**/*_spec.rb' end RSpec::Core::RakeTask.new(:rcov) do |spec| spec.rspec_opts = ['--colour --format progress'] spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end task :spec_with_rcov_and_open => :rcov do `open coverage/index.html` end desc 'Default: run specs.' task :default => :spec_with_rcov_and_open
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fspath-0.1.1.1-darwin | Rakefile |
fspath-0.1.1.1 | Rakefile |