vitrine 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asset_compiler.rb +1 -1
- data/lib/version.rb +1 -1
- data/test/test_vitrine_asset_compiler.rb +2 -0
- data/vitrine.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f43d48a50f634873d3fc8ac0d3e871aa7ace6ce
|
4
|
+
data.tar.gz: a3773daf43afe32bf7760e674f76f793dad56445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc1afd55e950806ca858a8c797b1f75b326758433ba395bb5a2a02847ec377d0682b582f616169d6544069f58aaae3575706ae03f044fb8aeaf7c7fbcc0f5e1
|
7
|
+
data.tar.gz: ee31d50efa5d357d672e3e24f8f8664312602cfa21107f7b10beadd78f0eade7f6ffbd376bfc4f2395c9266de0336c03a745ac676a80b7b6fb8a20acef5d91a7
|
data/lib/asset_compiler.rb
CHANGED
@@ -86,7 +86,7 @@ class Vitrine::AssetCompiler < Sinatra::Base
|
|
86
86
|
content_type 'text/javascript'
|
87
87
|
source_body = File.read(coffee_source)
|
88
88
|
|
89
|
-
built = Vitrine.compile_coffeescript(source_body)
|
89
|
+
built = Vitrine.compile_coffeescript(source_body)
|
90
90
|
response.headers['X-SourceMap'] = "#{basename}.js.map"
|
91
91
|
response.headers['SourceMap'] = "#{basename}.js.map"
|
92
92
|
built
|
data/lib/version.rb
CHANGED
@@ -21,6 +21,8 @@ class TestVitrineAssetCompiler < Test::Unit::TestCase
|
|
21
21
|
assert_equal '/nice.js.map', last_response.headers['X-SourceMap']
|
22
22
|
assert_equal '/nice.js.map', last_response.headers['SourceMap']
|
23
23
|
|
24
|
+
assert_equal "(function() {\n alert(\"rockage!\");\n\n}).call(this);\n", last_response.body
|
25
|
+
|
24
26
|
assert_include last_response.body, 'alert("rockage!")', 'Should include the compiled function'
|
25
27
|
end
|
26
28
|
|
data/vitrine.gemspec
CHANGED