roda-component 0.1.72 → 0.1.73
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 +2 -0
- 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: 8219555a00e716327a0eddb32250a162d0c4449d
|
4
|
+
data.tar.gz: 04c9ffe35044aa1718c7bda8cd20c66503374b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabca1c6b1e05cb6953749b390e618fbe4354423f2e39d7267d355d7d4c2ee60ebafddc63b81d525a7a38de52fc7e507bfe043826395a9a2a1042c578756dfbd
|
7
|
+
data.tar.gz: fc0c2f21a0459a8cf30e96ecb9fb6765e235be6364cb6d5572cace9b09e8f9ed50c6d0acd1f217fe2504e1f047f13612a6adcd29bbcaa95ae05ea0df20b957e2
|
@@ -110,6 +110,7 @@ class Roda
|
|
110
110
|
if !$component_opts[:comp][:"#{comp_name}"]
|
111
111
|
$component_opts[:faye] ||= {}
|
112
112
|
$component_opts[:comp][:"#{comp_name}"] = {cache: {}}
|
113
|
+
`jQuery.ajaxSetup({ cache: true })`
|
113
114
|
`$.getScript("/#{component_opts[:assets_route]}#{file_path}").done(function(){`
|
114
115
|
if action != 'false'
|
115
116
|
c = $component_opts[:comp][:"#{comp_name}"][:class] = #{comp.class}.new
|
@@ -264,6 +265,7 @@ class Roda
|
|
264
265
|
|
265
266
|
if path[/\.js\Z/]
|
266
267
|
scope.response.headers["Content-Type"] = 'application/javascript; charset=UTF-8'
|
268
|
+
scope.response.headers["Expires"] = (Time.now + 1.hour).utc.rfc2822
|
267
269
|
p = path.sub('/assets/components/', '')
|
268
270
|
$compiled_opal ||= {}
|
269
271
|
$compiled_opal[p] ||= opal.sprockets[p].to_s
|
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.73
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|