wunderbar 1.2.4 → 1.2.5

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: eabde70a11ed4620143385f3ae2b5a3e63d50431
4
- data.tar.gz: 117628a1e82d8d9fb9066fcc71353c71b0fe9155
3
+ metadata.gz: b1e8e369f171eca4c54aa58486f39e9694196bc7
4
+ data.tar.gz: 9840eb90665deae64bca18213f366f003d70f5c7
5
5
  SHA512:
6
- metadata.gz: 14f36dd535e4b2a256c2031e0193cda524d17292e1db236ddcf8e88b62d55a9c0229775952660bdcdfd4f68936fdadbdaa9746debb70e617e0dc89f1a788ca3f
7
- data.tar.gz: 41fb15d4cec8c2e0a89da200d2df79389a5e0538cd6708e12f47c3382756d737f5704973c2b4f185c53898723dd1e68336870c939533f70b62ff018c4b78e123
6
+ metadata.gz: 5d99d80b120916c8361a778dc656e5b9e1ae6193988d4cda105bc428f1ca4f9f5bb9112ef25e53726a946094feeba2ed4fee9c0c6c5daa99b203943e82086878
7
+ data.tar.gz: 3ec2d0f42a8fcae8b94da33829b3eede0dd4bc162fef05e519ad2a86e2b70e8ffc918e1f46026968d2367c3b632577ef571ad902eb49b6e095beec27c39d4b3c
@@ -176,9 +176,15 @@ get %r{/([-\w]+)\.js} do |script|
176
176
  return [500, {'Content-type' => 'text/plain'}, "*** ERROR ***\n\n#{e}"]
177
177
  end
178
178
 
179
+ etag js.etag
180
+
179
181
  response.headers['SourceMap'] = "#{script}.js.map"
180
182
 
181
- etag js.etag
183
+ # if query string is passed, mark as immutable and expiring in a year
184
+ if env['QUERY_STRING']
185
+ expires 31536000
186
+ cache_control :public, :immutable, max_age: 31536000
187
+ end
182
188
 
183
189
  content_type 'application/javascript; charset=utf-8'
184
190
 
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/wunderbar/vue.rb CHANGED
@@ -11,10 +11,10 @@ class Wunderbar::Render
11
11
 
12
12
  def self.nodejs
13
13
  return @nodejs if @nodejs
14
- @nodejs = `which nodejs`.chomp
15
- @nodejs = `which node`.chomp if @nodejs.empty?
16
- raise RuntimeError.new('Unable to locate nodejs') if @nodejs.empty?
17
- @nodejs.untaint
14
+ path = `which nodejs`.chomp
15
+ path = `which node`.chomp if path.empty?
16
+ raise RuntimeError.new('Unable to locate nodejs') if path.empty?
17
+ @nodejs = path.untaint
18
18
  end
19
19
 
20
20
  def self.server(common)
data/wunderbar.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: wunderbar 1.2.4 ruby lib
2
+ # stub: wunderbar 1.2.5 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "wunderbar".freeze
6
- s.version = "1.2.4"
6
+ s.version = "1.2.5"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Sam Ruby".freeze]
11
- s.date = "2017-09-13"
11
+ s.date = "2017-11-22"
12
12
  s.description = " Wunderbar makes it easy to produce valid HTML5, wellformed XHTML, Unicode\n (utf-8), consistently indented, readable applications.'\n".freeze
13
13
  s.email = "rubys@intertwingly.net".freeze
14
14
  s.files = ["COPYING".freeze, "README.md".freeze, "lib/wunderbar".freeze, "lib/wunderbar.rb".freeze, "lib/wunderbar/angularjs".freeze, "lib/wunderbar/angularjs.rb".freeze, "lib/wunderbar/angularjs/resource.rb".freeze, "lib/wunderbar/angularjs/route.rb".freeze, "lib/wunderbar/asset.rb".freeze, "lib/wunderbar/backtick.rb".freeze, "lib/wunderbar/bootstrap".freeze, "lib/wunderbar/bootstrap.rb".freeze, "lib/wunderbar/bootstrap/theme.rb".freeze, "lib/wunderbar/builder.rb".freeze, "lib/wunderbar/cgi-methods.rb".freeze, "lib/wunderbar/coderay.rb".freeze, "lib/wunderbar/coffeescript.rb".freeze, "lib/wunderbar/cssproxy.rb".freeze, "lib/wunderbar/environment.rb".freeze, "lib/wunderbar/eventsource.rb".freeze, "lib/wunderbar/html-methods.rb".freeze, "lib/wunderbar/installation.rb".freeze, "lib/wunderbar/job-control.rb".freeze, "lib/wunderbar/jquery".freeze, "lib/wunderbar/jquery.rb".freeze, "lib/wunderbar/jquery/filter.rb".freeze, "lib/wunderbar/jquery/stupidtable.rb".freeze, "lib/wunderbar/listen.rb".freeze, "lib/wunderbar/logger.rb".freeze, "lib/wunderbar/markdown.rb".freeze, "lib/wunderbar/marked.rb".freeze, "lib/wunderbar/node.rb".freeze, "lib/wunderbar/pagedown.rb".freeze, "lib/wunderbar/polymer.rb".freeze, "lib/wunderbar/rack.rb".freeze, "lib/wunderbar/rails.rb".freeze, "lib/wunderbar/react.rb".freeze, "lib/wunderbar/render.rb".freeze, "lib/wunderbar/script.rb".freeze, "lib/wunderbar/server.rb".freeze, "lib/wunderbar/sinatra.rb".freeze, "lib/wunderbar/underscore.rb".freeze, "lib/wunderbar/vendor".freeze, "lib/wunderbar/vendor/Markdown.Converter.js".freeze, "lib/wunderbar/vendor/angular-resource.min.js".freeze, "lib/wunderbar/vendor/angular-route.min.js".freeze, "lib/wunderbar/vendor/angular.min.js".freeze, "lib/wunderbar/vendor/bootstrap-theme.min.css".freeze, "lib/wunderbar/vendor/bootstrap.min.css".freeze, "lib/wunderbar/vendor/bootstrap.min.js".freeze, "lib/wunderbar/vendor/eventsource.min.js".freeze, "lib/wunderbar/vendor/jquery-3.2.1.min.js".freeze, "lib/wunderbar/vendor/marked.min.js".freeze, "lib/wunderbar/vendor/polymer-v0.0.20131003.min.js".freeze, "lib/wunderbar/vendor/react-dom-server.min.js".freeze, "lib/wunderbar/vendor/react-dom.min.js".freeze, "lib/wunderbar/vendor/react-with-addons.min.js".freeze, "lib/wunderbar/vendor/stupidtable.min.js".freeze, "lib/wunderbar/vendor/underscore-min.js".freeze, "lib/wunderbar/vendor/vue-server.min.js".freeze, "lib/wunderbar/vendor/vue.min.js".freeze, "lib/wunderbar/version.rb".freeze, "lib/wunderbar/vue.rb".freeze, "lib/wunderbar/websocket.rb".freeze, "wunderbar.gemspec".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wunderbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-13 00:00:00.000000000 Z
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json