indented_io 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/indented_io/tempfile.rb +14 -0
- data/lib/indented_io/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfc1de7e7ffda4d1fa37cd2979367b91b105cc43bc83a18d67816d14c3abd334
|
4
|
+
data.tar.gz: b54b5d64a8af0ca25cb333a2aa94599fba21be53063bd8fe1953d48bb8e4e3c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b4b34e808dd75d2fbf8d6c2e581448352d0c4d1c0f4bcf363b43e4b3b550a7619d80418fde9a5e8968e97b8c973b73ec9bb391b25c7967454061c9b39e824a
|
7
|
+
data.tar.gz: f9041fd50c2f791c95b896e34b61b22050d792c938e83af9b89d48c81fb3e49b56d60b012d32c7cbdbc70a4e43d6e50ad651b7a12e13777da7178ab59cd01895
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'indented_io/indented_io_interface'
|
2
|
+
|
3
|
+
require "tempfile"
|
4
|
+
|
5
|
+
# Includes the IndentedIOInterface that define the #indent method
|
6
|
+
#
|
7
|
+
# Note that Tempfile used to be a (kind of) IO but that changed in ruby-2.7.
|
8
|
+
# The problem is that we now have to require both StringIO and Tempfile and
|
9
|
+
# possible other classes to inject the #indent method instead of just doing it
|
10
|
+
# once in the IO class itself. TODO: Find a better solution - probably by
|
11
|
+
# implementing a check in Kernel
|
12
|
+
class Tempfile
|
13
|
+
include IndentedIO::IndentedIOInterface
|
14
|
+
end
|
data/lib/indented_io/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indented_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/indented_io/io.rb
|
83
83
|
- lib/indented_io/kernel.rb
|
84
84
|
- lib/indented_io/stringio.rb
|
85
|
+
- lib/indented_io/tempfile.rb
|
85
86
|
- lib/indented_io/version.rb
|
86
87
|
- scripts/perf.rb
|
87
88
|
homepage: https://github.com/clrgit/indented_io
|