print_r 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16300545aa465f262eba5f80362a9d74bfb945ca
4
- data.tar.gz: 8e378b04f0326156fcfec29b841013f82fa554ad
3
+ metadata.gz: 76610a2d06952b85841bb2a3172aba1b5f0567ac
4
+ data.tar.gz: 9e25635a3c5683fcd01c2aa891e474bd4e425d8d
5
5
  SHA512:
6
- metadata.gz: 32cb608e88cbb8194cf11a6050209843e65df362685180eb3764d3afefaf01813e612b9e4e1ca487e4148f4341d14c2a3b14b05f3e01ab56103e290877b7f15c
7
- data.tar.gz: f226e04ba2e34687460dd9401f316cfa84f939cecc1e8690bfb647fd94b96f145862343ee08f1b54d995a41f5f5ffa6915752fe6d95992c33bb92dcafe7a5b9c
6
+ metadata.gz: 451e8040bc5ae8ccb8fae7fc9cdbbbe3ea3b864310ebd9191c64ad77d060388690357a9f8c68a334a96f76b148d47e749ee0cb07532171d2269a8eb33855ba4a
7
+ data.tar.gz: e7502e711af48a1d5be9cfffab74fef3a11ec3c6562efcf9598f8141eaafd3808e532b1ff463e0ee1d2192350c339653e29ebcda8c7eafa35854310ed5802f88
@@ -16,7 +16,7 @@ module PrintR
16
16
  def _to_object(str, indent)
17
17
  str = str.strip
18
18
  tab = " " * indent
19
- md = str.match(/^(?:Array|.*? Object)\n#{tab}\(\n(.+)#{tab}\)$/m)
19
+ md = str.match(/^(?:Array|.*? Object)\n#{tab}\(\n(.*)#{tab}\)$/m)
20
20
  if md
21
21
  obj = _to_key_values(md[1].split(/(\r\n|\r|\n)/), indent+1)
22
22
 
@@ -1,3 +1,3 @@
1
1
  module PrintR
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: print_r
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya