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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b4521b8d035a91e55ea1d662c92e728a0a26b40491a04eb4d0e6948b9792477
4
- data.tar.gz: b5675b88f029f2372633fb57a8f9da6e4084a9b5d9a224b9bea39af4bdb77b84
3
+ metadata.gz: faf3ed56159ea9aae14376907dd0c17efabb7560f08b886b1f4f781be5b630af
4
+ data.tar.gz: f0a40ec22da2f77faf6b97c6a156198430a4afe12d96baacd37c8c489bcc037b
5
5
  SHA512:
6
- metadata.gz: 91d502a3a2059028dd9104d8b4d5ba3f4d8bcd085ba0b850c42e3be9fd67e4ba4c27d366981ef3112afd40f87c870957b6532b26fcd611b76a76561be9e9a5b5
7
- data.tar.gz: b8304831865b948f9de3efe1ae81ab51c5de4c6318de95c857fa9ea73a411f78438965dd3b1daaad0b68f51dfe1003cc1cdd05b31e226d98e4b793227b5c89eb
6
+ metadata.gz: fba3b4c3676b35938fc132792a5fb8d73ea949fe3d76b9a4a05a2b83a2d24e3b933ce993b45e36717dc9877c8a2a429af80dceab4313dfaa3ef8eb63cdba4380
7
+ data.tar.gz: f9d3f47d1f81627649f98ebfeda570f84dadb9f33e9839a06584f31c52da587b98ca9be027f411a805f82c09979bb96e92882be0a8907dd743193fbf4c51f8ee
@@ -461,8 +461,14 @@ module Wunderbar
461
461
  output_prefix = opts[:prefix] || {}
462
462
  output_prefix[:stdin] ||= '$ '
463
463
 
464
- super do |kind, line|
465
- @_target.puts "#{output_prefix[kind]}#{line}"
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
- super do |kind, line|
591
- @_target[transcript] << "#{output_prefix[kind]}#{line}"
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 and not @@unsafe
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
@@ -1,5 +1,6 @@
1
1
  require 'wunderbar'
2
2
  require 'rack'
3
+ require 'rack/media_type'
3
4
 
4
5
  module Wunderbar
5
6
  class RackApp
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.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.0.6
108
+ rubygems_version: 3.1.2
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: HTML Generator and CGI application support