D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
sass-rails-4.0.5
/
Filename :
Rakefile
back
Copy
require 'bundler' Bundler::GemHelper.install_tasks require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end desc 'Default: run unit tests.' task default: :test specname = "sass-rails.gemspec" deps = `git ls-files`.split("\n") - [specname] file specname => deps do files = `git ls-files`.split("\n") executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } require 'erb' File.open specname, 'w:utf-8' do |f| f.write ERB.new(File.read("#{specname}.erb")).result(binding) end end