opal-rails 0.5.0.pre → 0.5.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/lib/opal/rails.rb +0 -1
- data/lib/opal/rails/engine.rb +2 -2
- data/lib/opal/rails/version.rb +1 -1
- metadata +1 -2
- data/lib/opal/sprockets_source_map_header.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd6d0b4a0f3b1290520b5011856f7a44513b1ce2
|
4
|
+
data.tar.gz: 2ce094cf39af275af5860247f7e766a53323f863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c44bea6b79783246c7201490b7fe05205a4ce45ac5b33109c7ff06e506e4dee65a1ca3032fe45a725bc8ba64831316a2a4182effbde28a27a0169dded76f798
|
7
|
+
data.tar.gz: 30d57b755d32fe990e8b2eecd5d39254b76082bb7f33fa773f5c3c594418aad8a4eea88e874ed6f02aa6a4505acf8b158d0da1e8fa69330ed30ddd6ebe857025
|
data/Gemfile
CHANGED
data/lib/opal/rails.rb
CHANGED
data/lib/opal/rails/engine.rb
CHANGED
data/lib/opal/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.pre
|
4
|
+
version: 0.5.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elia Schito
|
@@ -181,7 +181,6 @@ files:
|
|
181
181
|
- lib/opal/rails/haml_filter.rb
|
182
182
|
- lib/opal/rails/template_handler.rb
|
183
183
|
- lib/opal/rails/version.rb
|
184
|
-
- lib/opal/sprockets_source_map_header.rb
|
185
184
|
- lib/tasks/opal-rails_tasks.rake
|
186
185
|
- opal-rails.gemspec
|
187
186
|
- script/rails
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'sprockets/server'
|
2
|
-
|
3
|
-
module Sprockets
|
4
|
-
module Server
|
5
|
-
|
6
|
-
# Adds the source map header to all sprocket responses for assets
|
7
|
-
# with a .rb or .opal extension in the extension chain.
|
8
|
-
def headers_with_opal_source_maps(env, asset, length)
|
9
|
-
headers_without_opal_source_maps(env, asset, length).tap do |headers|
|
10
|
-
if asset.pathname.to_s =~ /\.(rb|opal)\b/
|
11
|
-
headers['X-SourceMap'] = '/__opal_source_maps__/'+asset.logical_path + '.map'
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
# Poor man's alias_method_chain :)
|
17
|
-
alias headers_without_opal_source_maps headers
|
18
|
-
alias headers headers_with_opal_source_maps
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|