xaiml 0.1.6 → 0.2.0

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: 57171647b340da0103aed0c2b0a35d3b53a690ce1bd0d71f529f0fa215fd3eb7
4
- data.tar.gz: f93d5bf95339c0a7570704f53d593cc77c79bebb102b15bcbe68791f3c9981aa
3
+ metadata.gz: 2da598e90963473fa45fed38528aff3d8ca439b04485bc377fec3a33925bbeca
4
+ data.tar.gz: 352ef28122931cb3e901af96f39873246c5dec55cf0610bbcbf0bdef9f81f489
5
5
  SHA512:
6
- metadata.gz: 20a4186424ba6113b8af002963161f76b6b750fcd392a73fd6ea59946201704b2ec37b09ab923b2bd495a6de385ad810b84ad96f704800950234625cc9cbbf30
7
- data.tar.gz: 7c48007b52b40d4fce6f71d3d8a9ba53b7d0dc103e310c2dc1a36e4306d1c7164b632cd1f66082b85fa8c4dbd5df2d94cda2b63476350c69ea9a99d0f6ca557d
6
+ metadata.gz: c32dcb3876bcb8a511f54e6092319aca0c2d7c9c30a676e8b7294e593ac253f521ed830c4f063dfb8db312edd3882492efac76e01c7d6be0c774ce2c924fe72b
7
+ data.tar.gz: c4973e135ce1af02fb9a4ca7c532b4b5896f4634295c77c1185d3c6e5c3e837af8c446f18b4c39aa73df2ecdc118023ff7df3789e8c8f385b1f515d063fd0689
data/.rubocop.rspec.yml CHANGED
@@ -1,5 +1,3 @@
1
- require: "rubocop-rspec"
2
-
3
1
  # 日本語だと「〜の場合」になるので suffix でないと対応できない
4
2
  RSpec/ContextWording:
5
3
  Enabled: false
data/.rubocop.ruby.yml CHANGED
@@ -148,7 +148,7 @@ Metrics/PerceivedComplexity:
148
148
  #################### Naming ################################
149
149
 
150
150
  # has_ から始まるメソッドは許可する
151
- Naming/PredicateName:
151
+ Naming/PredicatePrefix:
152
152
  ForbiddenPrefixes:
153
153
  - "is_"
154
154
  - "have_"
@@ -202,10 +202,6 @@ Style/BlockDelimiters:
202
202
  Exclude:
203
203
  - "spec/**/*_spec.rb"
204
204
 
205
- # option 等、明示的にハッシュにした方が分かりやすい場合もある
206
- Style/BracesAroundHashParameters:
207
- Enabled: false
208
-
209
205
  # scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
210
206
  # namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
211
207
  Style/ClassAndModuleChildren:
data/.rubocop.yml CHANGED
@@ -2,22 +2,24 @@ inherit_from:
2
2
  - .rubocop.ruby.yml
3
3
  - .rubocop.rspec.yml
4
4
 
5
- require:
5
+ plugins:
6
6
  - rubocop-performance
7
7
  - rubocop-rspec
8
8
  AllCops:
9
- TargetRubyVersion: 2.6
9
+ TargetRubyVersion: 3.3
10
+ NewCops: disable
11
+ SuggestExtensions: false
10
12
  Naming/FileName:
11
13
  Exclude:
12
14
  - "Gemfile"
13
15
  - "Rakefile"
14
16
  - "bin/*"
15
- StringLiterals:
16
- EnforcedStyle: double_quotes
17
17
  Style/Documentation:
18
18
  Enabled: false
19
19
  RSpec/MultipleExpectations:
20
20
  Max: 5
21
+ RSpec/MultipleMemoizedHelpers:
22
+ Max: 6
21
23
  RSpec/LeakyConstantDeclaration:
22
24
  Enabled: false
23
25
  RSpec/DescribedClass:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.2.0] - 2026-07-21
4
+ ### Changed
5
+ - **BREAKING**: Require Ruby >= 3.3 (3.2 is EOL as of 2026-04-01)
6
+ - Update transitive dev dependencies to close Dependabot security alerts (concurrent-ruby, rexml)
7
+ - Update development dependencies (RuboCop 1.88, rubocop-rspec 3.10)
8
+
3
9
  ## [0.1.6] - 2024-06-10
4
10
  ### Added / Changed
5
11
  - Support for Ruby 3.4.4
data/Gemfile.lock CHANGED
@@ -1,113 +1,118 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xaiml (0.1.6)
4
+ xaiml (0.2.0)
5
5
  ox (>= 2.10.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.3)
11
- bigdecimal (3.2.2)
11
+ bigdecimal (4.1.2)
12
12
  coderay (1.1.3)
13
- concurrent-ruby (1.3.5)
13
+ concurrent-ruby (1.3.8)
14
14
  diff-lcs (1.6.2)
15
- dry-configurable (1.3.0)
16
- dry-core (~> 1.1)
15
+ dry-configurable (1.4.0)
16
+ dry-core (~> 1.0)
17
17
  zeitwerk (~> 2.6)
18
- dry-core (1.1.0)
18
+ dry-core (1.2.0)
19
19
  concurrent-ruby (~> 1.0)
20
20
  logger
21
21
  zeitwerk (~> 2.6)
22
- dry-inflector (1.2.0)
22
+ dry-inflector (1.3.1)
23
23
  dry-initializer (3.2.0)
24
24
  dry-logic (1.6.0)
25
25
  bigdecimal
26
26
  concurrent-ruby (~> 1.0)
27
27
  dry-core (~> 1.1)
28
28
  zeitwerk (~> 2.6)
29
- dry-schema (1.14.1)
29
+ dry-schema (1.16.0)
30
30
  concurrent-ruby (~> 1.0)
31
31
  dry-configurable (~> 1.0, >= 1.0.1)
32
32
  dry-core (~> 1.1)
33
33
  dry-initializer (~> 3.2)
34
- dry-logic (~> 1.5)
35
- dry-types (~> 1.8)
34
+ dry-logic (~> 1.6)
35
+ dry-types (~> 1.9, >= 1.9.1)
36
36
  zeitwerk (~> 2.6)
37
- dry-types (1.8.3)
38
- bigdecimal (~> 3.0)
37
+ dry-types (1.9.1)
38
+ bigdecimal (>= 3.0)
39
39
  concurrent-ruby (~> 1.0)
40
40
  dry-core (~> 1.0)
41
41
  dry-inflector (~> 1.0)
42
42
  dry-logic (~> 1.4)
43
43
  zeitwerk (~> 2.6)
44
- json (2.12.2)
45
- language_server-protocol (3.17.0.5)
44
+ io-console (0.8.2)
45
+ json (2.21.1)
46
+ language_server-protocol (3.17.0.6)
46
47
  lint_roller (1.1.0)
47
48
  logger (1.7.0)
48
49
  method_source (1.1.0)
49
- ox (2.14.23)
50
+ ox (2.14.28)
50
51
  bigdecimal (>= 3.0)
51
- parallel (1.27.0)
52
- parser (3.3.8.0)
52
+ parallel (2.1.0)
53
+ parser (3.3.12.0)
53
54
  ast (~> 2.4.1)
54
55
  racc
55
- prism (1.4.0)
56
- pry (0.15.2)
56
+ prism (1.9.0)
57
+ pry (0.16.0)
57
58
  coderay (~> 1.1)
58
59
  method_source (~> 1.0)
60
+ reline (>= 0.6.0)
59
61
  racc (1.8.1)
60
62
  rainbow (3.1.1)
61
- rake (13.3.0)
63
+ rake (13.4.2)
62
64
  reek (6.5.0)
63
65
  dry-schema (~> 1.13)
64
66
  logger (~> 1.6)
65
67
  parser (~> 3.3.0)
66
68
  rainbow (>= 2.0, < 4.0)
67
69
  rexml (~> 3.1)
68
- regexp_parser (2.10.0)
69
- rexml (3.4.1)
70
- rspec (3.13.1)
70
+ regexp_parser (2.12.0)
71
+ reline (0.6.3)
72
+ io-console (~> 0.5)
73
+ rexml (3.4.4)
74
+ rspec (3.13.2)
71
75
  rspec-core (~> 3.13.0)
72
76
  rspec-expectations (~> 3.13.0)
73
77
  rspec-mocks (~> 3.13.0)
74
- rspec-core (3.13.4)
78
+ rspec-core (3.13.6)
75
79
  rspec-support (~> 3.13.0)
76
80
  rspec-expectations (3.13.5)
77
81
  diff-lcs (>= 1.2.0, < 2.0)
78
82
  rspec-support (~> 3.13.0)
79
- rspec-mocks (3.13.5)
83
+ rspec-mocks (3.13.8)
80
84
  diff-lcs (>= 1.2.0, < 2.0)
81
85
  rspec-support (~> 3.13.0)
82
- rspec-support (3.13.4)
86
+ rspec-support (3.13.7)
83
87
  rspec_junit_formatter (0.6.0)
84
88
  rspec-core (>= 2, < 4, != 2.12.0)
85
- rubocop (1.76.1)
89
+ rubocop (1.88.2)
86
90
  json (~> 2.3)
87
91
  language_server-protocol (~> 3.17.0.2)
88
92
  lint_roller (~> 1.1.0)
89
- parallel (~> 1.10)
93
+ parallel (>= 1.10)
90
94
  parser (>= 3.3.0.2)
91
95
  rainbow (>= 2.2.2, < 4.0)
92
96
  regexp_parser (>= 2.9.3, < 3.0)
93
- rubocop-ast (>= 1.45.0, < 2.0)
97
+ rubocop-ast (>= 1.49.0, < 2.0)
94
98
  ruby-progressbar (~> 1.7)
95
99
  unicode-display_width (>= 2.4.0, < 4.0)
96
- rubocop-ast (1.45.1)
100
+ rubocop-ast (1.50.0)
97
101
  parser (>= 3.3.7.2)
98
- prism (~> 1.4)
99
- rubocop-performance (1.25.0)
102
+ prism (~> 1.7)
103
+ rubocop-performance (1.26.1)
100
104
  lint_roller (~> 1.1)
101
105
  rubocop (>= 1.75.0, < 2.0)
102
- rubocop-ast (>= 1.38.0, < 2.0)
103
- rubocop-rspec (3.6.0)
106
+ rubocop-ast (>= 1.47.1, < 2.0)
107
+ rubocop-rspec (3.10.2)
104
108
  lint_roller (~> 1.1)
105
- rubocop (~> 1.72, >= 1.72.1)
109
+ regexp_parser (>= 2.0)
110
+ rubocop (~> 1.86, >= 1.86.2)
106
111
  ruby-progressbar (1.13.0)
107
- unicode-display_width (3.1.4)
108
- unicode-emoji (~> 4.0, >= 4.0.4)
109
- unicode-emoji (4.0.4)
110
- zeitwerk (2.7.3)
112
+ unicode-display_width (3.2.0)
113
+ unicode-emoji (~> 4.1)
114
+ unicode-emoji (4.2.0)
115
+ zeitwerk (2.8.2)
111
116
 
112
117
  PLATFORMS
113
118
  arm64-darwin-23
@@ -126,4 +131,4 @@ DEPENDENCIES
126
131
  xaiml!
127
132
 
128
133
  BUNDLED WITH
129
- 2.4.19
134
+ 2.6.9
data/README.md CHANGED
@@ -4,8 +4,8 @@ xAIML is a parser library for xAIML written in Ruby.
4
4
 
5
5
  ## Supported Ruby Versions
6
6
 
7
- - Ruby >= 3.2
8
- - Tested with Ruby 3.2, 3.3, 3.4
7
+ - Ruby >= 2.5, < 3.5
8
+ - Tested with Ruby 3.4.4
9
9
 
10
10
  ## Installation
11
11
 
@@ -2,8 +2,7 @@
2
2
 
3
3
  module XAIML
4
4
  class Document
5
- attr_accessor :document
6
- attr_accessor :element
5
+ attr_accessor :document, :element
7
6
 
8
7
  def self.allowed_object
9
8
  ["Element::Topic", "Element::Category"]
@@ -5,6 +5,10 @@ module XAIML
5
5
  class Base < XAIML::Document
6
6
  attr_accessor :element
7
7
 
8
+ def self.allowed_object
9
+ end
10
+
11
+ # rubocop:disable Lint/MissingSuper -- intentionally skips Document#initialize; elements build a standalone fragment, not a full @document tree
8
12
  def initialize(attributes = {}, object = nil)
9
13
  @element = Ox::Element.new(self.class.name.split("::").last.downcase)
10
14
  attributes.each do |k, v|
@@ -12,13 +16,11 @@ module XAIML
12
16
  end
13
17
  append_child(object) if object
14
18
  end
19
+ # rubocop:enable Lint/MissingSuper
15
20
 
16
21
  def write
17
22
  Ox.dump(@element)
18
23
  end
19
-
20
- def self.allowed_object
21
- end
22
24
  end
23
25
  end
24
26
  end
data/lib/xaiml/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XAIML
4
- VERSION = "0.1.6"
4
+ VERSION = "0.2.0"
5
5
  end
data/xaiml.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rubocop"
30
30
  spec.add_development_dependency "rubocop-performance"
31
31
  spec.add_development_dependency "rubocop-rspec"
32
- spec.required_ruby_version = ">= 3.2"
32
+ spec.required_ruby_version = ">= 3.3"
33
33
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xaiml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jagrament
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-06-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: ox
@@ -160,7 +159,6 @@ files:
160
159
  - ".circleci/config-2.0.yml"
161
160
  - ".circleci/config.yml"
162
161
  - ".github/workflows/ci.yml"
163
- - ".github/workflows/release.yml"
164
162
  - ".gitignore"
165
163
  - ".reek.yml"
166
164
  - ".rspec"
@@ -192,7 +190,6 @@ files:
192
190
  homepage: https://docs.xaiml.docomo-dialog.com/
193
191
  licenses: []
194
192
  metadata: {}
195
- post_install_message:
196
193
  rdoc_options: []
197
194
  require_paths:
198
195
  - lib
@@ -200,15 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
197
  requirements:
201
198
  - - ">="
202
199
  - !ruby/object:Gem::Version
203
- version: '3.2'
200
+ version: '3.3'
204
201
  required_rubygems_version: !ruby/object:Gem::Requirement
205
202
  requirements:
206
203
  - - ">="
207
204
  - !ruby/object:Gem::Version
208
205
  version: '0'
209
206
  requirements: []
210
- rubygems_version: 3.4.19
211
- signing_key:
207
+ rubygems_version: 3.6.7
212
208
  specification_version: 4
213
209
  summary: xAIML parser library for ruby.
214
210
  test_files: []
@@ -1,24 +0,0 @@
1
- name: Release Gem
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*.*.*'
7
-
8
- jobs:
9
- release:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v3
13
- - name: Set up Ruby
14
- uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: '3.2'
17
- - name: Install dependencies
18
- run: bundle install
19
- - name: Build gem
20
- run: gem build xaiml.gemspec
21
- - name: Push to RubyGems
22
- env:
23
- GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
24
- run: gem push xaiml-*.gem