gqtp 1.0.7 → 1.0.8

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: 3ba8e20fcb3f77df785a6c699395d01d49d4767f3a3a3894fe50860486694421
4
- data.tar.gz: 4f15bcae25e718c7d32101c413b4e1ddee4a5065e94953431178af031fbb50ae
3
+ metadata.gz: a2ed7df5da90302f31df8d57aa551ff14e4ad39d14e34337bb5ed1146abc14b7
4
+ data.tar.gz: 9ed015ce5b70ba6089fd63d4d20245ccadb10efb1b6b95c3c89efff5df3ba379
5
5
  SHA512:
6
- metadata.gz: d346db4216e041d24bce8151638be7d87374fc8372f3ee4708d588a755d423c481af2a5e76e1eba21964b9968839ca35137fc5b8e29d440acd23d4077a698c7a
7
- data.tar.gz: 111c68b192add263c89a62e2c72ef90728a975ab0e0be8eb9e63250779c6384dc4bb2a940da42639c9837ca390f79ef44c636bc92370d59799b368b1c2c8d96d
6
+ metadata.gz: 30478c3cb97510c383a46275b2d9d8f91154bdcb8984f24439c47417a6f6556c1a67f5785c3e000f65e4c0b22a9fa22dc1c060ab4436592b3bbce4181a68c532
7
+ data.tar.gz: b398200c9c7741612c5ddb8fc91b31cda70e14fe979d31bde05c18d4ed63a46f6484a0bd2264202e38746468a086ad6a4770529c9f0b3ff650e8cc63d95ea3d9
data/Rakefile CHANGED
@@ -44,3 +44,13 @@ desc "Run tests"
44
44
  task :test do
45
45
  ruby("test/run-test.rb")
46
46
  end
47
+
48
+ release_task = Rake.application["release"]
49
+ # We use Trusting Publishing
50
+ release_task.prerequisites.delete("build")
51
+ release_task.prerequisites.delete("release:rubygem_push")
52
+ release_task_comment = release_task.comment
53
+ if release_task_comment
54
+ release_task.clear_comments
55
+ release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
56
+ end
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.0.8: 2024-12-24
4
+
5
+ ### Improvements
6
+
7
+ * Suppressed warnings with Ruby 3.4.
8
+
3
9
  ## 1.0.7: 2019-05-11
4
10
 
5
11
  ### Improvements
data/gqtp.gemspec CHANGED
@@ -1,6 +1,6 @@
1
- # -*- mode: ruby; coding: utf-8 -*-
1
+ # -*- mode: ruby -*-
2
2
  #
3
- # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -47,7 +47,6 @@ Gem::Specification.new do |spec|
47
47
  spec.add_development_dependency("bundler")
48
48
  spec.add_development_dependency("rake")
49
49
  spec.add_development_dependency("test-unit")
50
- spec.add_development_dependency("test-unit-notify")
51
50
  spec.add_development_dependency("packnga")
52
51
  spec.add_development_dependency("redcarpet")
53
52
  end
data/lib/gqtp/parser.rb CHANGED
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
4
2
  #
5
3
  # This library is free software; you can redistribute it and/or
6
4
  # modify it under the terms of the GNU Lesser General Public
@@ -52,7 +50,8 @@ module GQTP
52
50
 
53
51
  def stand_alone_parse(data)
54
52
  received_header = nil
55
- body = "".force_encoding("ASCII-8BIT")
53
+ body = +""
54
+ body.force_encoding("ASCII-8BIT")
56
55
  completed = false
57
56
 
58
57
  parser = new
@@ -130,7 +129,8 @@ module GQTP
130
129
 
131
130
  private
132
131
  def reset
133
- @buffer = "".force_encoding("ASCII-8BIT")
132
+ @buffer = +""
133
+ @buffer.force_encoding("ASCII-8BIT")
134
134
  @header = nil
135
135
  @body_size = 0
136
136
  end
data/lib/gqtp/version.rb CHANGED
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2019 Kouhei Sutou <kou@clear-code.com>
4
2
  #
5
3
  # This library is free software; you can redistribute it and/or
6
4
  # modify it under the terms of the GNU Lesser General Public
@@ -17,5 +15,5 @@
17
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
16
 
19
17
  module GQTP
20
- VERSION = "1.0.7"
18
+ VERSION = "1.0.8"
21
19
  end
data/test/run-test.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- # -*- coding: utf-8 -*-
3
2
  #
4
- # Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
5
4
  #
6
5
  # This library is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU Lesser General Public
@@ -26,7 +25,6 @@ test_dir = File.join(base_dir, "test")
26
25
  $LOAD_PATH.unshift(lib_dir)
27
26
 
28
27
  require "test-unit"
29
- require "test/unit/notify"
30
28
 
31
29
  Thread.abort_on_exception = true
32
30
 
data/test/test-parser.rb CHANGED
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
4
2
  #
5
3
  # This library is free software; you can redistribute it and/or
6
4
  # modify it under the terms of the GNU Lesser General Public
@@ -38,7 +36,7 @@ class ParserTest < Test::Unit::TestCase
38
36
  end
39
37
 
40
38
  def test_on_body
41
- received_data = ""
39
+ received_data = +""
42
40
  @parser.on_body do |chunk|
43
41
  received_data << chunk
44
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gqtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-11 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: test-unit-notify
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: packnga
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -150,15 +136,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
136
  - !ruby/object:Gem::Version
151
137
  version: '0'
152
138
  requirements: []
153
- rubyforge_project:
154
- rubygems_version: 2.7.6.2
139
+ rubygems_version: 3.5.22
155
140
  signing_key:
156
141
  specification_version: 4
157
142
  summary: Gqtp gem is a [GQTP (Groonga Query Transfer Protocol)](http://groonga.org/docs/spec/gqtp.html)
158
143
  Ruby implementation.
159
144
  test_files:
160
- - test/test-proxy.rb
161
- - test/test-parser.rb
162
145
  - test/run-test.rb
163
- - test/test-header.rb
164
146
  - test/test-client.rb
147
+ - test/test-header.rb
148
+ - test/test-parser.rb
149
+ - test/test-proxy.rb