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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1912dc9423f4da0853de10b4949d33cf4160c7bc
4
- data.tar.gz: bf02a830c0dc045f7dde330819fab2cde879557b
3
+ metadata.gz: 8219555a00e716327a0eddb32250a162d0c4449d
4
+ data.tar.gz: 04c9ffe35044aa1718c7bda8cd20c66503374b13
5
5
  SHA512:
6
- metadata.gz: 6afc21304eb9a578906a7879443407711df6104c81619073b9fe08fa63ba871082bea59d02937e6c81ae3e908061c2ce2df5b2abe0801e4be12029f4be9dd5bc
7
- data.tar.gz: 2e11ed46ca9e5031521024f9bacb9047acbd2083f98a8838f1c61d9cf2baab56397cb325bf711dbb5f44c80276ca750c434c662038efac6a84d761c00f31472f
6
+ metadata.gz: fabca1c6b1e05cb6953749b390e618fbe4354423f2e39d7267d355d7d4c2ee60ebafddc63b81d525a7a38de52fc7e507bfe043826395a9a2a1042c578756dfbd
7
+ data.tar.gz: fc0c2f21a0459a8cf30e96ecb9fb6765e235be6364cb6d5572cace9b09e8f9ed50c6d0acd1f217fe2504e1f047f13612a6adcd29bbcaa95ae05ea0df20b957e2
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.72"
3
+ VERSION = "0.1.73"
4
4
  end
5
5
  end
@@ -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.72
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-20 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal