Skip to content

Commit 3bd16f7

Browse files
committedMay 7, 2015
[snapshot]
1 parent 96d0e92 commit 3bd16f7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

Diff for: ‎Gemfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ end
2626

2727
gem 'mspec', github: 'rubyspec/mspec'
2828

29-
sprockets_version = ENV['SPROCKETS_VERSION']
30-
gem 'sprockets', sprockets_version if sprockets_version
29+
# sprockets_version = ENV['SPROCKETS_VERSION']
30+
# gem 'sprockets', sprockets_version if sprockets_version
31+
gem 'sprockets', github: 'rails/sprockets'

Diff for: ‎lib/opal/sprockets/processor.rb

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def evaluate(context, locals, &block)
2828
# thus we need to bake our own logical_path
2929
filename = context.respond_to?(:filename) ? context.filename : context.pathname.to_s
3030
logical_path = filename.sub(%r{^#{context.root_path}/?(.*?)#{sprockets_extnames_regexp}}, '\1')
31+
p [logical_path, context.logical_path] if logical_path != context.logical_path
32+
logical_path = context.logical_path
3133

3234
compiler_options = self.compiler_options.merge(file: logical_path)
3335

Diff for: ‎test/cruby-test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cruby/test

0 commit comments

Comments
 (0)