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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54985154bc3122cf70bfd4e36e7353d13d4d4977a7ee9434c85f4d2da3c02f70
4
- data.tar.gz: 228b7ef5f1725248d6955aed6772885cfa45ef8a85623da1fc843d10dff6eaa4
3
+ metadata.gz: 57171647b340da0103aed0c2b0a35d3b53a690ce1bd0d71f529f0fa215fd3eb7
4
+ data.tar.gz: f93d5bf95339c0a7570704f53d593cc77c79bebb102b15bcbe68791f3c9981aa
5
5
  SHA512:
6
- metadata.gz: df694be652ca9f1fc0c130ffab0645a169103f832a4e0cf9dd2ff60cc9fbe89022c9d4563526bc1228692799770e9712c759aa961e8f04adc4c13e3f41ef4b09
7
- data.tar.gz: e6042416fcedd86e4011c5020e9954b6919d042d44bf129a6ab1034d1dddf57bb59f63878fed36a1ff11931716dcd505d11ecb5c761474676e7c42c228a1b197
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/IndentFirstArrayElement:
32
+ Layout/FirstArrayElementIndentation:
33
33
  EnforcedStyle: consistent
34
34
 
35
35
  # ({ と hash を開始した場合に ( の位置にインデントさせる
36
36
  # そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
37
- Layout/IndentFirstHashElement:
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
- Metrics/LineLength:
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
- NamePrefixBlacklist:
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/UncommunicativeMethodParamName:
163
+ Naming/MethodParameterName:
164
164
  Enabled: false
165
165
 
166
166
  #################### Performance ###########################
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
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.4)
5
- ox (~> 2.10.0)
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.0)
11
- axiom-types (0.1.1)
12
- descendants_tracker (~> 0.0.4)
13
- ice_nine (~> 0.11.0)
14
- thread_safe (~> 0.3, >= 0.3.1)
15
- codeclimate-engine-rb (0.4.1)
16
- virtus (~> 1.0)
17
- coderay (1.1.2)
18
- coercible (1.0.0)
19
- descendants_tracker (~> 0.0.1)
20
- descendants_tracker (0.0.4)
21
- thread_safe (~> 0.3, >= 0.3.1)
22
- diff-lcs (1.3)
23
- equalizer (0.0.11)
24
- ice_nine (0.11.2)
25
- jaro_winkler (1.5.3)
26
- kwalify (0.7.2)
27
- method_source (0.9.2)
28
- ox (2.10.1)
29
- parallel (1.17.0)
30
- parser (2.6.4.1)
31
- ast (~> 2.4.0)
32
- pry (0.12.2)
33
- coderay (~> 1.1.0)
34
- method_source (~> 0.9.0)
35
- psych (3.1.0)
36
- rainbow (3.0.0)
37
- rake (10.5.0)
38
- reek (5.4.0)
39
- codeclimate-engine-rb (~> 0.4.0)
40
- kwalify (~> 0.7.0)
41
- parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
42
- psych (~> 3.1.0)
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
- rspec (3.8.0)
45
- rspec-core (~> 3.8.0)
46
- rspec-expectations (~> 3.8.0)
47
- rspec-mocks (~> 3.8.0)
48
- rspec-core (3.8.2)
49
- rspec-support (~> 3.8.0)
50
- rspec-expectations (3.8.4)
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.8.0)
53
- rspec-mocks (3.8.1)
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.8.0)
56
- rspec-support (3.8.2)
57
- rspec_junit_formatter (0.4.1)
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 (0.74.0)
60
- jaro_winkler (~> 1.5.1)
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.6)
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 (>= 1.4.0, < 1.7)
66
- rubocop-performance (1.4.0)
67
- rubocop (>= 0.71.0)
68
- rubocop-rspec (1.35.0)
69
- rubocop (>= 0.60.0)
70
- ruby-progressbar (1.10.1)
71
- thread_safe (0.3.6)
72
- unicode-display_width (1.6.0)
73
- virtus (1.0.5)
74
- axiom-types (~> 0.1)
75
- coercible (~> 1.0)
76
- descendants_tracker (~> 0.0, >= 0.0.3)
77
- equalizer (~> 0.0, >= 0.0.9)
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 (~> 10.0)
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.0.2
129
+ 2.4.19
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # xAIML-ruby
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/xaiml`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ xAIML is a parser library for xAIML written in Ruby.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
28
+ ```ruby
29
+ require 'xaiml'
30
+ # Add usage examples here as needed
31
+ ```
26
32
 
27
33
  ## Development
28
34
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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 at https://github.com/[USERNAME]/aiml. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XAIML
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
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", "~> 2.10.0"
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", "~> 10.0"
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
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: 2019-10-27 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '0'
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.0.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: []