wunderbar 0.16.3 → 0.16.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wunderbar/builder.rb +8 -0
- data/lib/wunderbar/cssproxy.rb +2 -5
- data/lib/wunderbar/html-methods.rb +2 -2
- data/lib/wunderbar/version.rb +1 -1
- data/wunderbar.gemspec +3 -3
- metadata +39 -62
data/lib/wunderbar/builder.rb
CHANGED
@@ -169,6 +169,14 @@ module Wunderbar
|
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
172
|
+
def proxiable_tag!(sym, *args, &block)
|
173
|
+
if block
|
174
|
+
tag!(sym, *args, &block)
|
175
|
+
else
|
176
|
+
CssProxy.new(@_builder, @_builder.target!, sym, args)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
172
180
|
def pdf=(value)
|
173
181
|
@_pdf = value
|
174
182
|
end
|
data/lib/wunderbar/cssproxy.rb
CHANGED
@@ -36,11 +36,8 @@ module Wunderbar
|
|
36
36
|
@attrs[:class] = @attrs[:class] ? "#{@attrs[:class]} #{id}".strip : id
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
@attrs.merge! args.pop.to_hash
|
42
|
-
end
|
43
|
-
end
|
39
|
+
@attrs.merge! args.pop.to_hash if args.last.respond_to? :to_hash
|
40
|
+
@attrs.merge! @args.pop.to_hash if @args.last.respond_to? :to_hash
|
44
41
|
|
45
42
|
args.push(@attrs)
|
46
43
|
args = @args + args unless block or String === args.first
|
@@ -175,7 +175,7 @@ module Wunderbar
|
|
175
175
|
def _svg(*args, &block)
|
176
176
|
args << {} if args.empty?
|
177
177
|
args.first['xmlns'] = 'http://www.w3.org/2000/svg' if Hash === args.first
|
178
|
-
@x.
|
178
|
+
@x.proxiable_tag! :svg, *args, &block
|
179
179
|
end
|
180
180
|
|
181
181
|
def _math(*args, &block)
|
@@ -183,7 +183,7 @@ module Wunderbar
|
|
183
183
|
if Hash === args.first
|
184
184
|
args.first['xmlns'] = 'http://www.w3.org/1998/Math/MathML'
|
185
185
|
end
|
186
|
-
@x.
|
186
|
+
@x.proxiable_tag! :math, *args, &block
|
187
187
|
end
|
188
188
|
|
189
189
|
def _pre(*args, &block)
|
data/lib/wunderbar/version.rb
CHANGED
data/wunderbar.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "wunderbar"
|
5
|
-
s.version = "0.16.
|
5
|
+
s.version = "0.16.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Sam Ruby"]
|
9
|
-
s.date = "2012-05-
|
9
|
+
s.date = "2012-05-24"
|
10
10
|
s.description = " Wunderbar makes it easy to produce valid HTML5, wellformed XHTML, Unicode\n (utf-8), consistently indented, readable applications. This includes\n output that conforms to the Polyglot specification and the emerging\n results from the XML Error Recovery Community Group.\n"
|
11
11
|
s.email = "rubys@intertwingly.net"
|
12
12
|
s.files = ["wunderbar.gemspec", "README.md", "COPYING", "lib/wunderbar.rb", "lib/wunderbar", "lib/wunderbar/installation.rb", "lib/wunderbar/html-methods.rb", "lib/wunderbar/job-control.rb", "lib/wunderbar/server.rb", "lib/wunderbar/logger.rb", "lib/wunderbar/rack.rb", "lib/wunderbar/builder.rb", "lib/wunderbar/websocket.rb", "lib/wunderbar/sinatra.rb", "lib/wunderbar/environment.rb", "lib/wunderbar/rails.rb", "lib/wunderbar/cgi-methods.rb", "lib/wunderbar/cssproxy.rb", "lib/wunderbar/version.rb"]
|
13
13
|
s.homepage = "http://github.com/rubys/wunderbar"
|
14
14
|
s.require_paths = ["lib"]
|
15
|
-
s.rubygems_version = "1.8.
|
15
|
+
s.rubygems_version = "1.8.15"
|
16
16
|
s.summary = "HTML Generator and CGI application support"
|
17
17
|
|
18
18
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,60 +1,47 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: wunderbar
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.16.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 16
|
9
|
-
- 3
|
10
|
-
version: 0.16.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Sam Ruby
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-24 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: builder
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &19386820 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 0
|
32
|
-
version: "3.0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: json
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *19386820
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: json
|
27
|
+
requirement: &19386280 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
47
33
|
type: :runtime
|
48
|
-
|
49
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *19386280
|
36
|
+
description: ! " Wunderbar makes it easy to produce valid HTML5, wellformed XHTML,
|
37
|
+
Unicode\n (utf-8), consistently indented, readable applications. This includes\n
|
38
|
+
\ output that conforms to the Polyglot specification and the emerging\n results
|
39
|
+
from the XML Error Recovery Community Group.\n"
|
50
40
|
email: rubys@intertwingly.net
|
51
41
|
executables: []
|
52
|
-
|
53
42
|
extensions: []
|
54
|
-
|
55
43
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
44
|
+
files:
|
58
45
|
- wunderbar.gemspec
|
59
46
|
- README.md
|
60
47
|
- COPYING
|
@@ -75,36 +62,26 @@ files:
|
|
75
62
|
- lib/wunderbar/version.rb
|
76
63
|
homepage: http://github.com/rubys/wunderbar
|
77
64
|
licenses: []
|
78
|
-
|
79
65
|
post_install_message:
|
80
66
|
rdoc_options: []
|
81
|
-
|
82
|
-
require_paths:
|
67
|
+
require_paths:
|
83
68
|
- lib
|
84
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
70
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
|
91
|
-
- 0
|
92
|
-
version: "0"
|
93
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
76
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
version: "0"
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
102
81
|
requirements: []
|
103
|
-
|
104
82
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.15
|
106
84
|
signing_key:
|
107
85
|
specification_version: 3
|
108
86
|
summary: HTML Generator and CGI application support
|
109
87
|
test_files: []
|
110
|
-
|