jsonpretty 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 6775c26c6b8185ac435b1b62bc5433eeec5a226ed96a13c45309a19202d85d03
4
- data.tar.gz: 9fadc1f02b65c3a748c6c4c82c9f1d9e2f790d9223af9e46a03a429e2f960040
3
+ metadata.gz: 3455de5bf8ae23a61024c472d6299f87e7ff5a0fe11fd7e4ac29d9b182a343fe
4
+ data.tar.gz: 9bb180a3b61581d468280650f186849199c32018fb048ee9081a00a381a5c5e9
5
5
  SHA512:
6
- metadata.gz: 2ec75e36203be4d6e373a5fbec2802d2281dc622403339810c5fd7841c0080c138de6c393e0d9683534ce7f7e47f902fc881b56e09e0fce23358920831ac693d
7
- data.tar.gz: f8fc3084248da34422d4312ec7b21a781632be9ebc701d89fa862680c8537bac5948f29f77d317d5341affdd584e281db1595840eaa8a978809ed02e5439ec13
6
+ metadata.gz: 6d8780f2c5b04c888a883b02b31805ba15624ae501b00758d880b96f0918df2faa4c72a42684aa9f6133aad7387de740b3a46c472da8bbe6a320811614b7725e
7
+ data.tar.gz: befc010615d96350c633547943379330c27daf66dde2343a71eeeab746fa4369f35aec91cc5504bf69e87787e70395a63fb1093462df72c4db4e1af402da1a4d
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.2 / 2021-12-27
2
+
3
+ * Fix regex typo, thanks Sami Samhuri
4
+
1
5
  === 1.1.1 / 2021-12-17
2
6
 
3
7
  * Handles any HTTP version
@@ -1,3 +1,3 @@
1
1
  class Jsonpretty
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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)/ # looks like an HTTP response; we just want the body
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.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-17 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler