wunderbar 1.2.6 → 1.2.7

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: dfe3958b7046aeb9e14d90c2f2a80a8df0a20f2b
4
- data.tar.gz: 101c75e23faa665f26701d5e1a5a29477c082635
3
+ metadata.gz: 34567da697ef38c82df47f2f8de1d0683414d4e5
4
+ data.tar.gz: 97e019639998ce82db5601b222fac76c9c0617c4
5
5
  SHA512:
6
- metadata.gz: 118430718d3437a1d71355c8122a1296fb17f92fe1c4b529d271cf7c3198592451752039abe160578e8cc15607363cdc9929af46b1cb426b57434ee90679cd30
7
- data.tar.gz: b3ba7c5b49af0fccae38cbffb63339e9118735b597336f6b696eab364088f4055b9eacb10d5e00de84fa1fd871a3c3da47f7aaadd31e712b4150ce634642780e
6
+ metadata.gz: 28a7d93cb10d6b130a311eb5a4507307b02427c5071ff9b7cca95b1f096c47aad7a3f80aa13de6103e6eb28ffd524bbd4987b0f784687876e884e6c52a6ad6b4
7
+ data.tar.gz: b862f2be71cf1703b4009413abbd19994571aa44f27e2b5563eb716485ca0f7844b3310ceb76bd9b32b235acf5ed4dace0f667613128b0eff00df36aed22db60
@@ -11,10 +11,13 @@ require 'nokogumbo'
11
11
  class Wunderbar::Asset
12
12
  @@cached_scripts = {}
13
13
  def self.convert(file)
14
+ basename = file.sub(/-es5\.js\.rb$/, '.js.rb')
15
+ options = {file: basename}
16
+ options.merge!(eslevel: 5, strict: false) unless basename == file
14
17
  cached = @@cached_scripts[file]
15
18
  return cached if cached and cached.uptodate?
16
- return nil unless File.exist? file
17
- @@cached_scripts[file] = Ruby2JS.convert(File.read(file), file: file)
19
+ return nil unless File.exist? basename
20
+ @@cached_scripts[file] = Ruby2JS.convert(File.read(basename), options)
18
21
  end
19
22
  end
20
23
 
@@ -63,7 +66,8 @@ class Wunderbar::XmlMarkup
63
66
  end
64
67
 
65
68
  # build client and server scripts
66
- options = Wunderbar::Render::RUBY2JS_OPTIONS.merge(scope: @_scope)
69
+ options = Wunderbar::Render::RUBY2JS_OPTIONS.merge(scope: @_scope,
70
+ strict: false)
67
71
  common = Ruby2JS.convert(block, options)
68
72
  server = Wunderbar::Render.server(common)
69
73
  client = Wunderbar::Render.client(common, element, target)
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/wunderbar.gemspec CHANGED
@@ -1,21 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: wunderbar 1.2.6 ruby lib
2
+ # stub: wunderbar 1.2.7 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "wunderbar".freeze
6
- s.version = "1.2.6"
6
+ s.version = "1.2.7"
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 = "2018-01-16"
11
+ s.date = "2018-01-21"
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]
15
15
  s.homepage = "http://github.com/rubys/wunderbar".freeze
16
16
  s.licenses = ["MIT".freeze]
17
17
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.3".freeze)
18
- s.rubygems_version = "2.6.11".freeze
18
+ s.rubygems_version = "2.6.14".freeze
19
19
  s.summary = "HTML Generator and CGI application support".freeze
20
20
 
21
21
  if s.respond_to? :specification_version then
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.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.6.11
115
+ rubygems_version: 2.6.14
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: HTML Generator and CGI application support