wunderbar 1.2.3 → 1.2.4

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: c3d163fab63c4428a0c7fb0f1bc1efdfe086530e
4
- data.tar.gz: 01d95d82395df615802b917ef4bcdcbb81c3b926
3
+ metadata.gz: eabde70a11ed4620143385f3ae2b5a3e63d50431
4
+ data.tar.gz: 117628a1e82d8d9fb9066fcc71353c71b0fe9155
5
5
  SHA512:
6
- metadata.gz: 3fb5a48d52b871d4d34793dc964386d6cca719f5ff104c08f8f35dad58a349294856449eaa4b99f6da11c3ed9a4f38e283b90408eacaf3c328b161f3145b74e0
7
- data.tar.gz: 8f4e82fc3c1e6c7708af9aa01c467e214076e5d787f135d6c7789724958d65e4c6a9eb102610debd7373fdda82e98b41ff22ea1a2b8f42a87e0f59b54c8a8bd7
6
+ metadata.gz: 14f36dd535e4b2a256c2031e0193cda524d17292e1db236ddcf8e88b62d55a9c0229775952660bdcdfd4f68936fdadbdaa9746debb70e617e0dc89f1a788ca3f
7
+ data.tar.gz: 41fb15d4cec8c2e0a89da200d2df79389a5e0538cd6708e12f47c3382756d737f5704973c2b4f185c53898723dd1e68336870c939533f70b62ff018c4b78e123
@@ -130,18 +130,25 @@ class Wunderbar::XmlMarkup
130
130
  nodes = builder._ { html }
131
131
 
132
132
  begin
133
- nodes.each {|node| node.parent = target}
134
- target.children += nodes
133
+ if nodes.length == 1
134
+ nodes.each {|node| node.parent = target}
135
+ target.children += nodes
136
+ else
137
+ span = Wunderbar::Node.new('span')
138
+ nodes.each {|node| node.parent = span}
139
+ span.children += nodes
140
+ target.children << span
141
+ end
135
142
  rescue => e
136
- div = Wunderbar::Node.new('span',
143
+ span = Wunderbar::Node.new('span',
137
144
  style: 'background-color:#ff0; margin: 1em 0; padding: 1em; ' +
138
145
  'border: 4px solid red; border-radius: 1em')
139
- div.children << Wunderbar::Node.new('pre', e.to_s)
140
- div.children << Wunderbar::Node.new('pre', e.backtrace.join("\n"))
141
- div.children << Wunderbar::Node.new('pre', html)
142
- div.children << Wunderbar::Node.new('pre', nodes.inspect)
143
- div.children.each {|node| node.parent = div}
144
- target.children << div
146
+ span.children << Wunderbar::Node.new('pre', e.to_s)
147
+ span.children << Wunderbar::Node.new('pre', e.backtrace.join("\n"))
148
+ span.children << Wunderbar::Node.new('pre', html)
149
+ span.children << Wunderbar::Node.new('pre', nodes.inspect)
150
+ span.children.each {|node| node.parent = span}
151
+ target.children << span
145
152
  end
146
153
 
147
154
  # add client side script
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/wunderbar/vue.rb CHANGED
@@ -24,7 +24,7 @@ class Wunderbar::Render
24
24
  def self.client(common, element, target)
25
25
  wrap = "$h(#{target.name.inspect}, " +
26
26
  "{attrs: {#{target.attrs.map {|name, value|
27
- "#{name}: #{value.inspect}"}.join(' ')}}}, [#{common}])"
27
+ "#{name}: #{value.inspect}"}.join(', ')}}}, [#{common}])"
28
28
  "new Vue({el: #{element}, render: function($h) {return #{wrap}}})"
29
29
  end
30
30
 
data/wunderbar.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: wunderbar 1.2.3 ruby lib
2
+ # stub: wunderbar 1.2.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "wunderbar".freeze
6
- s.version = "1.2.3"
6
+ s.version = "1.2.4"
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-05"
11
+ s.date = "2017-09-13"
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.3
4
+ version: 1.2.4
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-05 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json