Unified · Split
| @@ -1,3 +1,8 @@ | ||
| 1 | +# Prevents this error: https://gist.github.com/nitay/0cbf5ccb2bc611f627e5 | |
| 2 | +# See also: http://stackoverflow.com/questions/694115/why-does-ruby-open-uris-open-return-a-stringio-in-my-unit-test-but-a-fileio-in | |
| 3 | +OpenURI::Buffer.send :remove_const, 'StringMax' if OpenURI::Buffer.const_defined?('StringMax') | |
| 4 | +OpenURI::Buffer.const_set 'StringMax', 0 | |
| 5 | + | |
| 1 | 6 | class DocsCLI < Thor |
| 2 | 7 | include Thor::Actions |
| 3 | 8 | |