grntest 1.7.6 → 1.7.8

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: 06a66bab760554a0f1a4ba6698d87c9702ed6abd0fa0d0301634eabd28668c0f
4
- data.tar.gz: 5ed8466037e39813ffe988dff011cefca9ce3abf688e2f63fd99c2e111daa257
3
+ metadata.gz: 752069b1fbd54477134ea42d54fea3097660e6189b6cb93d5934830bc9c8d0ca
4
+ data.tar.gz: a1003ddfd8e94e76fbe216ecb7b66a85988aee59e55a440640f99cf20d3e6e29
5
5
  SHA512:
6
- metadata.gz: 92e1bcf1a86c228069020bd5453f8ff90e79f7103b83950ca6eeaa8d4b6f7609430a549bf2dd4e224ae474a2e25c4765ce859a0ae74d60fe3c08cfd54f2a1095
7
- data.tar.gz: ede6349f7555fd317abebf1d5ae7c513a62b12a121f118288d23c62a5564d6b2a18e1f2cbadf478e4516f3130e931196e2b7b1bd51f1a80fb671cf501a8467f1
6
+ metadata.gz: 1a29d70d424e56e5b3eb042cbe6aa6b007bf59a0f7188197a9b9213e4fc2262ef8ebe5cff0f7c293223efdc6c1af3109b9f7b7af91ec57a314d3c984f53da283
7
+ data.tar.gz: 2fdd8a5056c20e100710799e3c5ceeae7f51763cb2fad786c7867bd928c6dd6871b102f44cbdf928ff2a2a813475e8d6694cdbec4ebfe6c2f841f1c4531e7395
data/Rakefile CHANGED
@@ -43,3 +43,13 @@ desc "Run tests"
43
43
  task :test do
44
44
  ruby("test/run-test.rb")
45
45
  end
46
+
47
+ release_task = Rake.application["release"]
48
+ # We use Trusted Publishing.
49
+ release_task.prerequisites.delete("build")
50
+ release_task.prerequisites.delete("release:rubygem_push")
51
+ release_task_comment = release_task.comment
52
+ if release_task_comment
53
+ release_task.clear_comments
54
+ release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
55
+ end
data/doc/text/news.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # News
2
2
 
3
+ ## 1.7.8: 2025-01-15
4
+
5
+ ### Improvements
6
+
7
+ * `@add-substitution`: Added support for `"` in substituted and
8
+ normalized templates.
9
+
10
+ ## 1.7.7: 2024-11-12
11
+
12
+ ### Improvements
13
+
14
+ * Required json 2.8.1 or later. Because json 2.8.0 changed
15
+ `JSON.pretty_generate` result.
16
+ * Note that this broke existing tests. We need to update
17
+ `.expected` contents with new output.
18
+
3
19
  ## 1.7.6: 2024-09-25
4
20
 
5
21
  ### Improvements
data/grntest.gemspec CHANGED
@@ -49,7 +49,7 @@ Gem::Specification.new do |spec|
49
49
  spec.add_runtime_dependency("groonga-log")
50
50
  spec.add_runtime_dependency("groonga-query-log", ">= 1.4.1")
51
51
  spec.add_runtime_dependency("groonga-synonym")
52
- spec.add_runtime_dependency("json")
52
+ spec.add_runtime_dependency("json", ">= 2.8.1")
53
53
  spec.add_runtime_dependency("msgpack")
54
54
  spec.add_runtime_dependency("rexml")
55
55
 
@@ -523,8 +523,10 @@ module Grntest
523
523
  substituted, normalized = Shellwords.shellsplit(rest)
524
524
  substituted.force_encoding("UTF-8")
525
525
  normalized.force_encoding("UTF-8")
526
- substituted_evaluator = TemplateEvaluator.new("\"#{substituted}\"")
527
- normalized_evaluator = TemplateEvaluator.new("\"#{normalized}\"")
526
+ substituted_evaluator =
527
+ TemplateEvaluator.new("<<STRING.chomp\n#{substituted}\nSTRING")
528
+ normalized_evaluator =
529
+ TemplateEvaluator.new("<<STRING.chomp\n#{normalized}\nSTRING")
528
530
  @substitutions[pattern] = [
529
531
  compile_pattern(pattern),
530
532
  substituted_evaluator,
@@ -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.7.6"
17
+ VERSION = "1.7.8"
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  - Haruka Yoshihara
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-25 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 2.8.1
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 2.8.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: msgpack
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  - !ruby/object:Gem::Version
284
284
  version: '0'
285
285
  requirements: []
286
- rubygems_version: 3.6.0.dev
286
+ rubygems_version: 3.6.2
287
287
  specification_version: 4
288
288
  summary: Grntest is a testing framework for Groonga. You can write a test for Groonga
289
289
  by writing Groonga commands and expected result.