wunderbar 0.16.7 → 0.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/wunderbar/builder.rb +4 -3
- data/lib/wunderbar/cssproxy.rb +4 -0
- data/lib/wunderbar/html-methods.rb +1 -0
- data/lib/wunderbar/version.rb +1 -1
- data/wunderbar.gemspec +2 -2
- metadata +4 -4
data/lib/wunderbar/builder.rb
CHANGED
@@ -194,15 +194,15 @@ module Wunderbar
|
|
194
194
|
# if available, use escape as it does prettier quoting
|
195
195
|
require 'escape'
|
196
196
|
echo = Escape.shell_command(command.compact - secret)
|
197
|
-
command = Escape.shell_command(flat.compact).untaint
|
198
197
|
rescue LoadError
|
199
198
|
# std-lib function that gets the job done
|
200
199
|
require 'shellwords'
|
201
200
|
echo = Shellwords.join(command.compact - secret)
|
202
|
-
command = Shellwords.join(flat.compact).untaint
|
203
201
|
end
|
202
|
+
command = flat.compact.map(&:untaint)
|
204
203
|
else
|
205
204
|
echo = command
|
205
|
+
command = [command]
|
206
206
|
end
|
207
207
|
|
208
208
|
patterns = opts[:hilite] || []
|
@@ -223,7 +223,7 @@ module Wunderbar
|
|
223
223
|
|
224
224
|
require 'thread'
|
225
225
|
semaphore = Mutex.new
|
226
|
-
Open3.popen3(command) do |pin, pout, perr|
|
226
|
+
Open3.popen3(*command) do |pin, pout, perr, wait|
|
227
227
|
[
|
228
228
|
Thread.new do
|
229
229
|
until pout.eof?
|
@@ -257,6 +257,7 @@ module Wunderbar
|
|
257
257
|
pin.close
|
258
258
|
end
|
259
259
|
].each {|thread| thread.join}
|
260
|
+
wait and wait.value.exitstatus
|
260
261
|
end
|
261
262
|
end
|
262
263
|
|
data/lib/wunderbar/cssproxy.rb
CHANGED
@@ -46,6 +46,10 @@ module Wunderbar
|
|
46
46
|
args.push(@attrs)
|
47
47
|
args = @args + args unless block or String === args.first
|
48
48
|
|
49
|
+
if @sym == :pre
|
50
|
+
args.first.chomp! if String === args.first and args.first.end_with? "\n"
|
51
|
+
end
|
52
|
+
|
49
53
|
while @stream.length > @original_stream_length
|
50
54
|
@stream.pop
|
51
55
|
end
|
data/lib/wunderbar/version.rb
CHANGED
data/wunderbar.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "wunderbar"
|
5
|
-
s.version = "0.16.
|
5
|
+
s.version = "0.16.8"
|
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-06-
|
9
|
+
s.date = "2012-06-11"
|
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"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wunderbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 79
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 16
|
9
|
-
-
|
10
|
-
version: 0.16.
|
9
|
+
- 8
|
10
|
+
version: 0.16.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Ruby
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: builder
|