Sha256: 8892c2f2eec2f72d57d074ea3792b294f7964cd38441889a9f79a4cc63d80650
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
require 'bundler' Bundler.require Bundler::GemHelper.install_tasks require 'opal/rspec/rake_task' Opal::RSpec::RakeTask.new(:default) require 'fileutils' desc "Copy RSpec sources" task :copy_rspec do gems = %w(rspec rspec-core rspec-expectations rspec-mocks rspec-support) gems.each do |gem| spec = Gem::Specification.find_by_name gem lib = File.join spec.gem_dir, 'lib' Dir["#{lib}/**/*.rb"].each do |file| out = file.sub(/^#{lib}\//, 'opal/') FileUtils.mkdir_p File.dirname(out) FileUtils.cp file, out end end end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
opal-rspec-cj-0.4.4 | Rakefile |
opal-rspec-0.4.3 | Rakefile |
opal-rspec-0.4.2 | Rakefile |
opal-rspec-0.4.1 | Rakefile |
opal-rspec-0.4.0 | Rakefile |
opal-rspec-0.4.0.beta4 | Rakefile |