wunderbar 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wunderbar/builder.rb +16 -4
- data/lib/wunderbar/environment.rb +1 -1
- data/lib/wunderbar/rack.rb +1 -0
- data/lib/wunderbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faf3ed56159ea9aae14376907dd0c17efabb7560f08b886b1f4f781be5b630af
|
4
|
+
data.tar.gz: f0a40ec22da2f77faf6b97c6a156198430a4afe12d96baacd37c8c489bcc037b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba3b4c3676b35938fc132792a5fb8d73ea949fe3d76b9a4a05a2b83a2d24e3b933ce993b45e36717dc9877c8a2a429af80dceab4313dfaa3ef8eb63cdba4380
|
7
|
+
data.tar.gz: f9d3f47d1f81627649f98ebfeda570f84dadb9f33e9839a06584f31c52da587b98ca9be027f411a805f82c09979bb96e92882be0a8907dd743193fbf4c51f8ee
|
data/lib/wunderbar/builder.rb
CHANGED
@@ -461,8 +461,14 @@ module Wunderbar
|
|
461
461
|
output_prefix = opts[:prefix] || {}
|
462
462
|
output_prefix[:stdin] ||= '$ '
|
463
463
|
|
464
|
-
|
465
|
-
|
464
|
+
if Hash === args.last # support original code which needed two hashes
|
465
|
+
super do |kind, line|
|
466
|
+
@_target.puts "#{output_prefix[kind]}#{line}"
|
467
|
+
end
|
468
|
+
else
|
469
|
+
super(*args, opts) do |kind, line|
|
470
|
+
@_target.puts "#{output_prefix[kind]}#{line}"
|
471
|
+
end
|
466
472
|
end
|
467
473
|
end
|
468
474
|
|
@@ -587,8 +593,14 @@ module Wunderbar
|
|
587
593
|
@_target[transcript] = []
|
588
594
|
end
|
589
595
|
|
590
|
-
|
591
|
-
|
596
|
+
if Hash === args.last # support original code which needed two hashes
|
597
|
+
super do |kind, line|
|
598
|
+
@_target[transcript] << "#{output_prefix[kind]}#{line}"
|
599
|
+
end
|
600
|
+
else
|
601
|
+
super(*args, opts) do |kind, line|
|
602
|
+
@_target[transcript] << "#{output_prefix[kind]}#{line}"
|
603
|
+
end
|
592
604
|
end
|
593
605
|
end
|
594
606
|
|
@@ -15,7 +15,7 @@ module Wunderbar
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.safe?
|
18
|
-
if $SAFE == 0
|
18
|
+
if not @@unsafe and $SAFE == 0
|
19
19
|
# some gems (e.g. em-websocket-0.3.6) insert unsafe entries into the
|
20
20
|
# path, and that prevents requires from succeeding. If it looks like
|
21
21
|
# we are about to make a transition to $SAFE=1, clean up that mess
|
data/lib/wunderbar/rack.rb
CHANGED
data/lib/wunderbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wunderbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.1.2
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: HTML Generator and CGI application support
|