roda-component 0.1.71 → 0.1.72
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/component/version.rb +1 -1
- data/lib/roda/plugins/component.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1912dc9423f4da0853de10b4949d33cf4160c7bc
|
4
|
+
data.tar.gz: bf02a830c0dc045f7dde330819fab2cde879557b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6afc21304eb9a578906a7879443407711df6104c81619073b9fe08fa63ba871082bea59d02937e6c81ae3e908061c2ce2df5b2abe0801e4be12029f4be9dd5bc
|
7
|
+
data.tar.gz: 2e11ed46ca9e5031521024f9bacb9047acbd2083f98a8838f1c61d9cf2baab56397cb325bf711dbb5f44c80276ca750c434c662038efac6a84d761c00f31472f
|
@@ -263,7 +263,10 @@ class Roda
|
|
263
263
|
path = scope.request.env['REQUEST_PATH']
|
264
264
|
|
265
265
|
if path[/\.js\Z/]
|
266
|
-
|
266
|
+
scope.response.headers["Content-Type"] = 'application/javascript; charset=UTF-8'
|
267
|
+
p = path.sub('/assets/components/', '')
|
268
|
+
$compiled_opal ||= {}
|
269
|
+
$compiled_opal[p] ||= opal.sprockets[p].to_s
|
267
270
|
elsif scope.component_opts[:debug]
|
268
271
|
if path[/\.rb\Z/] && js_file = scope.request.env['PATH_INFO'].scan(/(.*\.map)/)
|
269
272
|
scope.request.env['PATH_INFO'] = path.gsub(js_file.last.first, '').gsub("/#{scope.component_opts[:assets_route]}", '')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|