Sha256: 1df48a1d93a08c7bb0ffc0c20cb7df867a26189e82678437acc20006c473b70a

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "erb"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

desc "Build maril.user.js"
task "build_userscript" do
  gemspec = Gem::Specification::load("maril.gemspec")
  src_path = "userscript/maril.user.js.erb"
  dis_path = "userscript/maril.user.js"
  content = ERB.new(File.read(src_path)).result(binding)
  File.write(dis_path, content)
  puts "Compiled #{src_path} => #{dis_path}"
end

task "build" => "build_userscript"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maril-0.1.2 Rakefile
maril-0.1.1 Rakefile