grntest 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 482d04165fd7dc5994528ae65d9c869440e45e6bad2c1851a96288f4a65c08a6
4
- data.tar.gz: 479ba023a7ed7f2ccb9554160a102ed73fe4de173e7b225f63af6f72c9990750
3
+ metadata.gz: f74f96285e7ff0f9537ae2165f7fba29a9fb705a686e98f1281f7203b46521c5
4
+ data.tar.gz: 89d86885e7b67cb0f98312856be0ed6cbb2f0264a4ba281fe8ca542f06e39dad
5
5
  SHA512:
6
- metadata.gz: 8e4f5687fbf84811d5ca93193407f00041fe5549a685e0181c1cde62564898c168386b94ce9c5882762309f0b6b91d30c18a25e09db3e4bb3fe76aa0d2e651a8
7
- data.tar.gz: 05ccec382c7f186b3dad5fe75a10b50e10b3bf213e8021c4d22d288dcaffd94c7f79f03c625f718f593bcbea8d140937b10c8937de2962b426dfec6d38870682
6
+ metadata.gz: a6964575dd5fd1e3ec6160416795e10f6ac720f7bedee4413167196b055278f0196dac8dc017f620843c485cb4277ee20dbebddc0ab5ce3a242577d0008214f3
7
+ data.tar.gz: 4ab4f3f9925b14ef915eb781e0a02e53d1039549b035b830f51a0016f421fb31372631d8398824bb41563bc50b966eca7ad67916e2ef660123e0672235de9080
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.5.1: 2021-07-16
4
+
5
+ ### Improvements
6
+
7
+ * `http`: Improved response check.
8
+
3
9
  ## 1.5.0: 2021-07-16
4
10
 
5
11
  ### Improvements
@@ -79,7 +79,15 @@ module Grntest
79
79
  LOAD_DEBUG = (DEBUG or (ENV["GRNTEST_HTTP_LOAD_DEBUG"] == "yes"))
80
80
 
81
81
  def check_response(response)
82
- response.value
82
+ case response
83
+ when Net::HTTPBadRequest,
84
+ Net::HTTPNotFound
85
+ # Groonga returns them for an invalid request.
86
+ when Net::HTTPInternalServerError
87
+ # Groonga returns this for an internal error.
88
+ else
89
+ response.value
90
+ end
83
91
  end
84
92
 
85
93
  MAX_URI_SIZE = 4096
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.5.0"
17
+ VERSION = "1.5.1"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou