jsonpretty 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/jsonpretty/version.rb +1 -1
- data/lib/jsonpretty.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3455de5bf8ae23a61024c472d6299f87e7ff5a0fe11fd7e4ac29d9b182a343fe
|
4
|
+
data.tar.gz: 9bb180a3b61581d468280650f186849199c32018fb048ee9081a00a381a5c5e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d8780f2c5b04c888a883b02b31805ba15624ae501b00758d880b96f0918df2faa4c72a42684aa9f6133aad7387de740b3a46c472da8bbe6a320811614b7725e
|
7
|
+
data.tar.gz: befc010615d96350c633547943379330c27daf66dde2343a71eeeab746fa4369f35aec91cc5504bf69e87787e70395a63fb1093462df72c4db4e1af402da1a4d
|
data/History.txt
CHANGED
data/lib/jsonpretty/version.rb
CHANGED
data/lib/jsonpretty.rb
CHANGED
@@ -8,7 +8,7 @@ class Jsonpretty
|
|
8
8
|
File.open(filename)
|
9
9
|
end
|
10
10
|
lines = file.readlines
|
11
|
-
if lines.first =~ /^HTTP\/\d
|
11
|
+
if lines.first =~ /^HTTP\/\d/ # looks like an HTTP response; we just want the body
|
12
12
|
index = lines.index("\r\n") || lines.index("\n")
|
13
13
|
puts lines[0..index]
|
14
14
|
lines[(index+1)..-1].join('')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonpretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sieger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|