Sha256: d3a232345ac098506a423aebe45a8e16df9f813640b19e12cfee602927be7f5f
Contents?: true
Size: 747 Bytes
Versions: 6
Compression:
Stored size: 747 Bytes
Contents
require "bundler" Bundler.require Bundler::GemHelper.install_tasks require "opal/rspec/rake_task" Opal::RSpec::RakeTask.new(:test) do |server, task| ENV["SPEC_OPTS"] = "--color --require spec_helper" server.index_path = "spec/html/index.html.erb" server.append_path "lib" end desc "Create static snapshot of the demo page" task :snapshot do dir = Pathname("snapshot") system "trash", dir.to_s if dir.exist? dir.mkpath Dir.chdir(dir) do system "wget --mirror -np http://localhost:9292/" end end desc "Build gem" task "gem:build" do system "gem build opal-d3.gemspec" end desc "Upload gem" task "gem:push" => "gem:build" do gem_file = Dir["opal-d3-*.gem"][-1] or raise "No gem found" system "gem", "push", gem_file end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
hyper-d3-1.0.0.lap28 | Rakefile |
hyper-d3-1.0.0.lap27 | Rakefile |
hyper-d3-1.0.0.lap26 | Rakefile |
hyper-d3-1.0.0.lap25 | Rakefile |
hyper-d3-1.0.0.lap24 | Rakefile |
hyper-d3-1.0.0.lap23 | Rakefile |