roda-component 0.1.71 → 0.1.72

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6fb9a39108018748f98ad1a2959a9032227e67e
4
- data.tar.gz: ff6fa473302db00691a09a685f3dfc0d59e1111e
3
+ metadata.gz: 1912dc9423f4da0853de10b4949d33cf4160c7bc
4
+ data.tar.gz: bf02a830c0dc045f7dde330819fab2cde879557b
5
5
  SHA512:
6
- metadata.gz: bca040b8972bb59f40d5d457285137245bd457c442f0a42cfba9410148e9125c65a43fe8036858d33e9017eb14d37bdaf721b2b2e0d578f234e59074852d6756
7
- data.tar.gz: 8293fb0c9ed200a9a47c09e479b6ad3b72ef8e8ca69513571bb0c56c0a1eef01e61f3149648bcce28bde0d4276ba53d10f305a93a1a511a9c204a5754145e2f6
6
+ metadata.gz: 6afc21304eb9a578906a7879443407711df6104c81619073b9fe08fa63ba871082bea59d02937e6c81ae3e908061c2ce2df5b2abe0801e4be12029f4be9dd5bc
7
+ data.tar.gz: 2e11ed46ca9e5031521024f9bacb9047acbd2083f98a8838f1c61d9cf2baab56397cb325bf711dbb5f44c80276ca750c434c662038efac6a84d761c00f31472f
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.71"
3
+ VERSION = "0.1.72"
4
4
  end
5
5
  end
@@ -263,7 +263,10 @@ class Roda
263
263
  path = scope.request.env['REQUEST_PATH']
264
264
 
265
265
  if path[/\.js\Z/]
266
- run opal.sprockets
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.71
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-15 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal