whiplash-app 0.9.0 → 0.9.1

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: 38965dd5a29730aa36f70c5b685aa575aef968b6b6fb8f81efd4e4defb6c8b56
4
- data.tar.gz: 0d42efa6c4d541f49d8fcc0b67d09e06ab25dc585fe4abf9c0ac8058c1ddf24c
3
+ metadata.gz: dccfbc052c641052a83cdaeeda9231a5303c96041f9755187cf59a0b5f48b7a8
4
+ data.tar.gz: 3dfb8c5cd0ac077c817a628bed55323907484ac32ccf566f1e7f778071942cc8
5
5
  SHA512:
6
- metadata.gz: e2a65da32cf144d8e5c22f6c4efce8f9b3109cb484398bdb65ad4a17fb3a3b4ae85b9a29d28919055e0a597d16fd907dea9847ff8054e5bb5c353c9877f1433a
7
- data.tar.gz: 3b7c40b3da5a6bb4dd3e7bf4e4fd9e1c29587f870853c3c8df3f706d2aa35e030151de3759abc1c6170deb7af92e443a4377e4761f9a4851f7b607259c64fbbd
6
+ metadata.gz: dc050d5563f89987d926714a04806f473f1df4f4943efbce813b61e22400061f620b95e3ec27396497e051d1267d3abd230252c402ca36fc579cb7cfcf9b592a
7
+ data.tar.gz: 53345d8bc82e9a3e8ac09e91cab22a7db12b0cc1c8e0bc1eaf80caf330384d08974d8b622cba21790bd1f4456a3a6607ccc27da216983c82b4ccb2f60570b6d2
@@ -1,5 +1,5 @@
1
1
  module Whiplash
2
2
  class App
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
data/lib/whiplash/app.rb CHANGED
@@ -78,3 +78,24 @@ module Whiplash
78
78
 
79
79
  end
80
80
  end
81
+
82
+ module Net
83
+ class HTTPResponse
84
+ class << self
85
+ private
86
+
87
+ def read_status_line(sock)
88
+ str = sock.readline
89
+ og = str.dup
90
+ str.gsub!(/.*?(?=HTTP)/im, "")
91
+ if og.size > str.size
92
+ Rails.logger.warn "[WhiplashApp] Failed to read header status for #{og.inspect}"
93
+ end
94
+ m = /\AHTTP(?:\/(\d+\.\d+))?\s+(\d\d\d)(?:\s+(.*))?\z/in.match(str) or
95
+ raise Net::HTTPBadResponse, "wrong status line: #{str.dump}"
96
+ m.captures
97
+ end
98
+
99
+ end
100
+ end
101
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiplash-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Sullivan, Mark Dickson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-19 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2