To do this I needed to: * clarify wording in String#squeeze spec description * clarify wording in String#squeeze! spec * add spec for String#squeeze! for 1.9 * add spec for String#squeeze! in 1.8
Fixed library/socket/socket/connect_nonblock_spec.rb to make it passing in FreeBSD
… is not defined.
Array#pack: format 'p'
In regards to rubinius/rubinius#1194
The expected size was generated by the following Ruby program running under Ruby 1.8.7-p352: require 'stringio' require 'zlib' io = StringIO.new input = '.' * (2 ** 23) Zlib::GzipWriter.wrap(io) do |gzio| gzio.write(input) end print io.string This program was then run: $ ruby gen.rb | wc -c 8176 References #1185.
Add a test for format 'p' (which looks just like the test for format 'P'). There's no real reason to trust that an implementation that implements 'P' correctly will implement 'p' correctly.
Add yield spec when an explicit block arg is passed and assigned to.