Sha256: 5a866b08a1de62e23c194002b486ac1c6bd73b3abf4eb3ebf0359e0b3396bb51
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
require 'rake' require 'jeweler' require 'rake/gem_ghost_task' 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 'ffi-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-1.2.0-darwin | Rakefile |
fspath-1.2.0 | Rakefile |