Rakefile in opal-0.3.40 vs Rakefile in opal-0.3.41

- old
+ new

@@ -1,24 +1,22 @@ require 'bundler' Bundler.require +Opal::Processor.arity_check_enabled = true + require 'opal/spec/rake_task' Opal::Spec::RakeTask.new(:default) -desc "Run tests with method_missing turned off" -task :test_no_method_missing do - # some specs will fail (namely method_missing based specs) - Opal::Processor.method_missing_enabled = false - Rake::Task[:default].invoke -end - desc "Check file sizes for opal.js runtime" task :sizes do - o = Opal::Environment.new['opal'].to_s - m = uglify o - g = gzip m + env = Sprockets::Environment.new + Opal.paths.each { |p| env.append_path p } - puts "development: #{o.size}, minified: #{m.size}, gzipped: #{g.size}" + src = env['opal'].to_s + min = uglify src + gzp = gzip min + + puts "development: #{src.size}, minified: #{min.size}, gzipped: #{gzp.size}" end desc "Rebuild grammar.rb for opal parser" task :racc do %x(racc -l lib/opal/grammar.y -o lib/opal/grammar.rb)