xaiml 0.1.4 → 0.1.6
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 +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/.github/workflows/release.yml +24 -0
- data/.rubocop.ruby.yml +5 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +99 -65
- data/README.md +19 -7
- data/lib/xaiml/element.rb +3 -0
- data/lib/xaiml/version.rb +1 -1
- data/xaiml.gemspec +3 -2
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57171647b340da0103aed0c2b0a35d3b53a690ce1bd0d71f529f0fa215fd3eb7
|
4
|
+
data.tar.gz: f93d5bf95339c0a7570704f53d593cc77c79bebb102b15bcbe68791f3c9981aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20a4186424ba6113b8af002963161f76b6b750fcd392a73fd6ea59946201704b2ec37b09ab923b2bd495a6de385ad810b84ad96f704800950234625cc9cbbf30
|
7
|
+
data.tar.gz: 7c48007b52b40d4fce6f71d3d8a9ba53b7d0dc103e310c2dc1a36e4306d1c7164b632cd1f66082b85fa8c4dbd5df2d94cda2b63476350c69ea9a99d0f6ca557d
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Ruby CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main, release/* ]
|
6
|
+
pull_request:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: [ '3.2', '3.3', '3.4' ]
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v3
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
- name: Install dependencies
|
21
|
+
run: bundle install
|
22
|
+
- name: Run tests
|
23
|
+
run: bundle exec rspec
|
@@ -0,0 +1,24 @@
|
|
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
|
data/.rubocop.ruby.yml
CHANGED
@@ -29,12 +29,12 @@ Layout/ExtraSpacing:
|
|
29
29
|
# special_inside_parentheses (default) と比べて
|
30
30
|
# * 横に長くなりづらい
|
31
31
|
# * メソッド名の長さが変わったときに diff が少ない
|
32
|
-
Layout/
|
32
|
+
Layout/FirstArrayElementIndentation:
|
33
33
|
EnforcedStyle: consistent
|
34
34
|
|
35
35
|
# ({ と hash を開始した場合に ( の位置にインデントさせる
|
36
36
|
# そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
|
37
|
-
Layout/
|
37
|
+
Layout/FirstHashElementIndentation:
|
38
38
|
EnforcedStyle: consistent
|
39
39
|
|
40
40
|
# private/protected は一段深くインデントする
|
@@ -129,7 +129,7 @@ Metrics/CyclomaticComplexity:
|
|
129
129
|
# * 警告 120文字
|
130
130
|
# * 禁止 160文字
|
131
131
|
# のイメージ
|
132
|
-
|
132
|
+
Layout/LineLength:
|
133
133
|
Max: 160
|
134
134
|
Exclude:
|
135
135
|
- "db/migrate/*.rb"
|
@@ -149,7 +149,7 @@ Metrics/PerceivedComplexity:
|
|
149
149
|
|
150
150
|
# has_ から始まるメソッドは許可する
|
151
151
|
Naming/PredicateName:
|
152
|
-
|
152
|
+
ForbiddenPrefixes:
|
153
153
|
- "is_"
|
154
154
|
- "have_"
|
155
155
|
NamePrefix:
|
@@ -160,7 +160,7 @@ Naming/PredicateName:
|
|
160
160
|
# n(umber) といった 1 文字変数は頻出するし、前置詞(by, to, ...)や
|
161
161
|
# よく知られた省略語 (op: operator とか pk: primary key とか) も妥当。
|
162
162
|
# 変数 s にどんな文字列かを形容したい場合と、不要な場合とがある=無効
|
163
|
-
Naming/
|
163
|
+
Naming/MethodParameterName:
|
164
164
|
Enabled: false
|
165
165
|
|
166
166
|
#################### Performance ###########################
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.4.4
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## [0.1.6] - 2024-06-10
|
4
|
+
### Added / Changed
|
5
|
+
- Support for Ruby 3.4.4
|
6
|
+
- Updated ox dependency to support the latest version
|
7
|
+
- Improved and updated README
|
8
|
+
- Bumped version to 0.1.6
|
9
|
+
|
10
|
+
## Previous releases
|
11
|
+
- Previous versions omitted
|
data/Gemfile.lock
CHANGED
@@ -1,88 +1,122 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
xaiml (0.1.
|
5
|
-
ox (
|
4
|
+
xaiml (0.1.6)
|
5
|
+
ox (>= 2.10.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
10
|
+
ast (2.4.3)
|
11
|
+
bigdecimal (3.2.2)
|
12
|
+
coderay (1.1.3)
|
13
|
+
concurrent-ruby (1.3.5)
|
14
|
+
diff-lcs (1.6.2)
|
15
|
+
dry-configurable (1.3.0)
|
16
|
+
dry-core (~> 1.1)
|
17
|
+
zeitwerk (~> 2.6)
|
18
|
+
dry-core (1.1.0)
|
19
|
+
concurrent-ruby (~> 1.0)
|
20
|
+
logger
|
21
|
+
zeitwerk (~> 2.6)
|
22
|
+
dry-inflector (1.2.0)
|
23
|
+
dry-initializer (3.2.0)
|
24
|
+
dry-logic (1.6.0)
|
25
|
+
bigdecimal
|
26
|
+
concurrent-ruby (~> 1.0)
|
27
|
+
dry-core (~> 1.1)
|
28
|
+
zeitwerk (~> 2.6)
|
29
|
+
dry-schema (1.14.1)
|
30
|
+
concurrent-ruby (~> 1.0)
|
31
|
+
dry-configurable (~> 1.0, >= 1.0.1)
|
32
|
+
dry-core (~> 1.1)
|
33
|
+
dry-initializer (~> 3.2)
|
34
|
+
dry-logic (~> 1.5)
|
35
|
+
dry-types (~> 1.8)
|
36
|
+
zeitwerk (~> 2.6)
|
37
|
+
dry-types (1.8.3)
|
38
|
+
bigdecimal (~> 3.0)
|
39
|
+
concurrent-ruby (~> 1.0)
|
40
|
+
dry-core (~> 1.0)
|
41
|
+
dry-inflector (~> 1.0)
|
42
|
+
dry-logic (~> 1.4)
|
43
|
+
zeitwerk (~> 2.6)
|
44
|
+
json (2.12.2)
|
45
|
+
language_server-protocol (3.17.0.5)
|
46
|
+
lint_roller (1.1.0)
|
47
|
+
logger (1.7.0)
|
48
|
+
method_source (1.1.0)
|
49
|
+
ox (2.14.23)
|
50
|
+
bigdecimal (>= 3.0)
|
51
|
+
parallel (1.27.0)
|
52
|
+
parser (3.3.8.0)
|
53
|
+
ast (~> 2.4.1)
|
54
|
+
racc
|
55
|
+
prism (1.4.0)
|
56
|
+
pry (0.15.2)
|
57
|
+
coderay (~> 1.1)
|
58
|
+
method_source (~> 1.0)
|
59
|
+
racc (1.8.1)
|
60
|
+
rainbow (3.1.1)
|
61
|
+
rake (13.3.0)
|
62
|
+
reek (6.5.0)
|
63
|
+
dry-schema (~> 1.13)
|
64
|
+
logger (~> 1.6)
|
65
|
+
parser (~> 3.3.0)
|
43
66
|
rainbow (>= 2.0, < 4.0)
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
rspec-
|
50
|
-
|
67
|
+
rexml (~> 3.1)
|
68
|
+
regexp_parser (2.10.0)
|
69
|
+
rexml (3.4.1)
|
70
|
+
rspec (3.13.1)
|
71
|
+
rspec-core (~> 3.13.0)
|
72
|
+
rspec-expectations (~> 3.13.0)
|
73
|
+
rspec-mocks (~> 3.13.0)
|
74
|
+
rspec-core (3.13.4)
|
75
|
+
rspec-support (~> 3.13.0)
|
76
|
+
rspec-expectations (3.13.5)
|
51
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
78
|
+
rspec-support (~> 3.13.0)
|
79
|
+
rspec-mocks (3.13.5)
|
54
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-support (3.
|
57
|
-
rspec_junit_formatter (0.
|
81
|
+
rspec-support (~> 3.13.0)
|
82
|
+
rspec-support (3.13.4)
|
83
|
+
rspec_junit_formatter (0.6.0)
|
58
84
|
rspec-core (>= 2, < 4, != 2.12.0)
|
59
|
-
rubocop (
|
60
|
-
|
85
|
+
rubocop (1.76.1)
|
86
|
+
json (~> 2.3)
|
87
|
+
language_server-protocol (~> 3.17.0.2)
|
88
|
+
lint_roller (~> 1.1.0)
|
61
89
|
parallel (~> 1.10)
|
62
|
-
parser (>= 2
|
90
|
+
parser (>= 3.3.0.2)
|
63
91
|
rainbow (>= 2.2.2, < 4.0)
|
92
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
93
|
+
rubocop-ast (>= 1.45.0, < 2.0)
|
64
94
|
ruby-progressbar (~> 1.7)
|
65
|
-
unicode-display_width (>=
|
66
|
-
rubocop-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
95
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
96
|
+
rubocop-ast (1.45.1)
|
97
|
+
parser (>= 3.3.7.2)
|
98
|
+
prism (~> 1.4)
|
99
|
+
rubocop-performance (1.25.0)
|
100
|
+
lint_roller (~> 1.1)
|
101
|
+
rubocop (>= 1.75.0, < 2.0)
|
102
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
103
|
+
rubocop-rspec (3.6.0)
|
104
|
+
lint_roller (~> 1.1)
|
105
|
+
rubocop (~> 1.72, >= 1.72.1)
|
106
|
+
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)
|
78
111
|
|
79
112
|
PLATFORMS
|
113
|
+
arm64-darwin-23
|
80
114
|
ruby
|
81
115
|
|
82
116
|
DEPENDENCIES
|
83
117
|
bundler
|
84
118
|
pry
|
85
|
-
rake (~>
|
119
|
+
rake (~> 13.0)
|
86
120
|
reek
|
87
121
|
rspec
|
88
122
|
rspec_junit_formatter
|
@@ -92,4 +126,4 @@ DEPENDENCIES
|
|
92
126
|
xaiml!
|
93
127
|
|
94
128
|
BUNDLED WITH
|
95
|
-
2.
|
129
|
+
2.4.19
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# xAIML-ruby
|
2
2
|
|
3
|
-
|
3
|
+
xAIML is a parser library for xAIML written in Ruby.
|
4
4
|
|
5
|
-
|
5
|
+
## Supported Ruby Versions
|
6
|
+
|
7
|
+
- Ruby >= 3.2
|
8
|
+
- Tested with Ruby 3.2, 3.3, 3.4
|
6
9
|
|
7
10
|
## Installation
|
8
11
|
|
@@ -14,7 +17,7 @@ gem 'xaiml'
|
|
14
17
|
|
15
18
|
And then execute:
|
16
19
|
|
17
|
-
$ bundle
|
20
|
+
$ bundle install
|
18
21
|
|
19
22
|
Or install it yourself as:
|
20
23
|
|
@@ -22,14 +25,23 @@ Or install it yourself as:
|
|
22
25
|
|
23
26
|
## Usage
|
24
27
|
|
25
|
-
|
28
|
+
```ruby
|
29
|
+
require 'xaiml'
|
30
|
+
# Add usage examples here as needed
|
31
|
+
```
|
26
32
|
|
27
33
|
## Development
|
28
34
|
|
29
|
-
|
35
|
+
1. Clone the repository
|
36
|
+
2. Install dependencies: `bin/setup`
|
37
|
+
3. Run tests: `bundle exec rspec`
|
38
|
+
4. Recommended to use Ruby 3.4.4 for development
|
39
|
+
|
40
|
+
## Release Procedure
|
30
41
|
|
31
|
-
|
42
|
+
1. Update the version number in `lib/xaiml/version.rb`
|
43
|
+
2. Run `bundle exec rake release` to release the gem
|
32
44
|
|
33
45
|
## Contributing
|
34
46
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub
|
47
|
+
Bug reports and pull requests are welcome on GitHub. See [CONTRIBUTING.md] for details.
|
data/lib/xaiml/element.rb
CHANGED
@@ -4,6 +4,7 @@ module XAIML
|
|
4
4
|
module Element
|
5
5
|
autoload :Base, "xaiml/element/base"
|
6
6
|
class Arg < Base; end
|
7
|
+
class Bot < Base; end
|
7
8
|
class BotId < Base; end
|
8
9
|
class Calc < Base; end
|
9
10
|
class Command < Base; end
|
@@ -16,7 +17,9 @@ module XAIML
|
|
16
17
|
class Name < Base; end
|
17
18
|
class Pattern < Base; end
|
18
19
|
class Predstore < Base; end
|
20
|
+
class Random < Base; end
|
19
21
|
class Set < Base; end
|
22
|
+
class Sr < Base; end
|
20
23
|
class Srai < Base; end
|
21
24
|
class Sraix < Base; end
|
22
25
|
class SraixTopic < Base; end
|
data/lib/xaiml/version.rb
CHANGED
data/xaiml.gemspec
CHANGED
@@ -19,14 +19,15 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "ox", "
|
22
|
+
spec.add_dependency "ox", ">= 2.10.0"
|
23
23
|
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "pry"
|
25
|
-
spec.add_development_dependency "rake", "~>
|
25
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
26
26
|
spec.add_development_dependency "reek"
|
27
27
|
spec.add_development_dependency "rspec"
|
28
28
|
spec.add_development_dependency "rspec_junit_formatter"
|
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
33
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xaiml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jagrament
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ox
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.10.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.10.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: reek
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,6 +159,8 @@ extra_rdoc_files: []
|
|
159
159
|
files:
|
160
160
|
- ".circleci/config-2.0.yml"
|
161
161
|
- ".circleci/config.yml"
|
162
|
+
- ".github/workflows/ci.yml"
|
163
|
+
- ".github/workflows/release.yml"
|
162
164
|
- ".gitignore"
|
163
165
|
- ".reek.yml"
|
164
166
|
- ".rspec"
|
@@ -167,6 +169,7 @@ files:
|
|
167
169
|
- ".rubocop.yml"
|
168
170
|
- ".ruby-version"
|
169
171
|
- ".travis.yml"
|
172
|
+
- CHANGELOG.md
|
170
173
|
- CODE_OF_CONDUCT.md
|
171
174
|
- Gemfile
|
172
175
|
- Gemfile.lock
|
@@ -189,7 +192,7 @@ files:
|
|
189
192
|
homepage: https://docs.xaiml.docomo-dialog.com/
|
190
193
|
licenses: []
|
191
194
|
metadata: {}
|
192
|
-
post_install_message:
|
195
|
+
post_install_message:
|
193
196
|
rdoc_options: []
|
194
197
|
require_paths:
|
195
198
|
- lib
|
@@ -197,15 +200,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
200
|
requirements:
|
198
201
|
- - ">="
|
199
202
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
203
|
+
version: '3.2'
|
201
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
205
|
requirements:
|
203
206
|
- - ">="
|
204
207
|
- !ruby/object:Gem::Version
|
205
208
|
version: '0'
|
206
209
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
210
|
+
rubygems_version: 3.4.19
|
211
|
+
signing_key:
|
209
212
|
specification_version: 4
|
210
213
|
summary: xAIML parser library for ruby.
|
211
214
|
test_files: []
|