Rakefile in opal-0.6.1 vs Rakefile in opal-0.6.2
- old
+ new
@@ -8,21 +8,26 @@
RSpec::Core::RakeTask.new(:rspec) do |t|
t.pattern = 'spec/cli/**/*_spec.rb'
end
require 'mspec/opal/rake_task'
-MSpec::Opal::RakeTask.new(:mspec)
+MSpec::Opal::RakeTask.new(:mspec) do |config|
+ config.pattern = ENV['MSPEC_PATTERN'] if ENV['MSPEC_PATTERN']
+ config.basedir = ENV['MSPEC_BASEDIR'] if ENV['MSPEC_BASEDIR']
+end
task :default => [:rspec, :mspec]
+require 'opal/version'
desc <<-DESC
Build *corelib* and *stdlib* to "build/"
You can restrict the file list with the FILES env var (comma separated)
and the destination dir with the DIR env var.
Example: rake dist DIR=/tmp/foo FILES='opal.rb,base64.rb'
+Example: rake dist DIR=cdn/opal/#{Opal::VERSION}
DESC
task :dist do
require 'opal/util'
Opal::Processor.arity_check_enabled = false