docomo-nlu 0.4.0 → 0.6.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: e332860bae64ceefbe1f43290ce1fd1a575d4363bf706ee4c3091c73b9af6b9b
4
- data.tar.gz: 19aedba92e1a97fba562e1219f6726a00ee88ed17e1cee1ed9ea74970de1fb93
3
+ metadata.gz: 326bf052ad8ebd5af93f8a736619c01e81605b3983b60729794471d57acfb507
4
+ data.tar.gz: 69a0b4dd4ebce44a2d4ace65751f2953ef5293c7e9f0eb0e165dc1e239d3d53e
5
5
  SHA512:
6
- metadata.gz: 0f8aaf6638e669baf03a8ec4fffa3387dcda53d9dcfcddd57076c7c4f191cf3a8ce3cbb01f1c4be1b9a6d32031437ebdcd9d3af43d01497e7dd8682ecfb31b6c
7
- data.tar.gz: 9734f94be0936028821b6bcb18738e794fc6bcfd80784abb83767268ff9763c791c395709f8857f85602fca2fcabcf4c0f5a88188e65d35d4e86f8000f131fb4
6
+ metadata.gz: eca95a08771983c00183434116837a4f8bb5952fb4e3562501663acf468aa3a0ad6bfe9da2325b581179b770b097c71038074ef10f1d2c304d63e6993c2ef619
7
+ data.tar.gz: f0abd8c6cbd17cf1138570bc07ff303387ca053b0ab735a41f17a3c1fcd49a2bb0859a3b408cb9518a5fec7f2f103a5358efb973b16ef48788d8f6f9812e4358
data/.gitignore CHANGED
@@ -9,3 +9,9 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ # Built gems
14
+ *.gem
15
+
16
+ # Cursor
17
+ .cursorindexingignore
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_"
data/.rubocop.yml CHANGED
@@ -1,17 +1,16 @@
1
- # Modify the version if you don't use MRI 2.1.
2
- inherit_from:
1
+ inherit_from:
3
2
  - .rubocop.ruby.yml
4
3
  - .rubocop.rspec.yml
5
4
 
6
- require:
5
+ plugins:
7
6
  - rubocop-performance
8
7
  - rubocop-rspec
9
8
 
10
9
  AllCops:
11
- TargetRubyVersion: 2.5
10
+ TargetRubyVersion: 3.3
11
+ NewCops: disable
12
+ SuggestExtensions: false
12
13
 
13
- Rails:
14
- Enabled: true
15
14
  Naming/FileName:
16
15
  Exclude:
17
16
  - "Gemfile"
@@ -19,7 +18,7 @@ Naming/FileName:
19
18
  - "lib/docomo-nlu.rb"
20
19
  RSpec/EmptyExampleGroup:
21
20
  Enabled: false
22
- RSpec/FilePath:
21
+ RSpec/SpecFilePathFormat:
23
22
  CustomTransform:
24
23
  DocomoNlu: docomo_nlu
25
24
  RSpec/MultipleExpectations:
@@ -28,3 +27,9 @@ RSpec/LeakyConstantDeclaration:
28
27
  Enabled: false
29
28
  RSpec/DescribedClass:
30
29
  EnforcedStyle: described_class
30
+ # Specs share fixture IDs across examples via block-scoped constants (see RSpec/LeakyConstantDeclaration above).
31
+ Lint/ConstantDefinitionInBlock:
32
+ Enabled: false
33
+ # These specs only assert on side effects (file upload/download), not return values.
34
+ RSpec/NoExpectationExample:
35
+ Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.5
1
+ 3.3.8
data/CHANGELOG.md CHANGED
@@ -6,7 +6,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
  ### Changed
9
- - No planned changes.
9
+ - No planned changes.
10
+
11
+ ## [0.6.0] - 2026-07-21
12
+ ### Changed
13
+ - **BREAKING**: Require Ruby >= 3.3.0 (3.1/3.2 are EOL)
14
+ - Upgrade to Rails/ActiveSupport 8.1 (dev dependency); Rails 7.2 security support ends 2026-08-09
15
+ - Update transitive dependencies to close Dependabot security alerts (rack, rack-session, nokogiri, net-imap, addressable, concurrent-ruby, faraday, websocket-driver, json, erb, activestorage, activesupport)
16
+ - Update development dependencies (RuboCop 1.88, rubocop-rspec 3.10, WebMock 3.26)
17
+
18
+ ### Fixed
19
+ - `DocomoNlu.configure`/`.config` no longer depend on `ActiveSupport::Configurable`, which Rails 8.1 deprecates for removal in 8.2
20
+
21
+ ## [0.5.0] - 2024-12-09
22
+ ### Changed
23
+ - **BREAKING**: Drop Ruby 2.7 support, require Ruby >= 3.1.0
24
+ - Upgrade to Ruby 3.3.8
25
+ - Upgrade to Rails 7.2.3
26
+ - Upgrade ActiveResource from 6.0.0 to 6.2.0
27
+ - Update development dependencies (RSpec 3.13, RuboCop 1.69, VCR 6.3, WebMock 3.24)
28
+
29
+ ### Removed
30
+ - Remove reek dependency (compatibility issues with Ruby 3)
10
31
 
11
32
  ## [0.4.0] - 2022-04-15
12
33
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docomo-nlu (0.4.0)
5
- activeresource (>= 6.0)
4
+ docomo-nlu (0.6.0)
5
+ activeresource (>= 6.1)
6
6
  bundler
7
- faraday
7
+ faraday (>= 2.0)
8
8
  faraday-multipart
9
9
  rake
10
10
  rubyzip
@@ -12,222 +12,436 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- actioncable (6.1.5)
16
- actionpack (= 6.1.5)
17
- activesupport (= 6.1.5)
15
+ action_text-trix (2.1.19)
16
+ railties
17
+ actioncable (8.1.3)
18
+ actionpack (= 8.1.3)
19
+ activesupport (= 8.1.3)
18
20
  nio4r (~> 2.0)
19
21
  websocket-driver (>= 0.6.1)
20
- actionmailbox (6.1.5)
21
- actionpack (= 6.1.5)
22
- activejob (= 6.1.5)
23
- activerecord (= 6.1.5)
24
- activestorage (= 6.1.5)
25
- activesupport (= 6.1.5)
26
- mail (>= 2.7.1)
27
- actionmailer (6.1.5)
28
- actionpack (= 6.1.5)
29
- actionview (= 6.1.5)
30
- activejob (= 6.1.5)
31
- activesupport (= 6.1.5)
32
- mail (~> 2.5, >= 2.5.4)
33
- rails-dom-testing (~> 2.0)
34
- actionpack (6.1.5)
35
- actionview (= 6.1.5)
36
- activesupport (= 6.1.5)
37
- rack (~> 2.0, >= 2.0.9)
22
+ zeitwerk (~> 2.6)
23
+ actionmailbox (8.1.3)
24
+ actionpack (= 8.1.3)
25
+ activejob (= 8.1.3)
26
+ activerecord (= 8.1.3)
27
+ activestorage (= 8.1.3)
28
+ activesupport (= 8.1.3)
29
+ mail (>= 2.8.0)
30
+ actionmailer (8.1.3)
31
+ actionpack (= 8.1.3)
32
+ actionview (= 8.1.3)
33
+ activejob (= 8.1.3)
34
+ activesupport (= 8.1.3)
35
+ mail (>= 2.8.0)
36
+ rails-dom-testing (~> 2.2)
37
+ actionpack (8.1.3)
38
+ actionview (= 8.1.3)
39
+ activesupport (= 8.1.3)
40
+ nokogiri (>= 1.8.5)
41
+ rack (>= 2.2.4)
42
+ rack-session (>= 1.0.1)
38
43
  rack-test (>= 0.6.3)
39
- rails-dom-testing (~> 2.0)
40
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
41
- actiontext (6.1.5)
42
- actionpack (= 6.1.5)
43
- activerecord (= 6.1.5)
44
- activestorage (= 6.1.5)
45
- activesupport (= 6.1.5)
44
+ rails-dom-testing (~> 2.2)
45
+ rails-html-sanitizer (~> 1.6)
46
+ useragent (~> 0.16)
47
+ actiontext (8.1.3)
48
+ action_text-trix (~> 2.1.15)
49
+ actionpack (= 8.1.3)
50
+ activerecord (= 8.1.3)
51
+ activestorage (= 8.1.3)
52
+ activesupport (= 8.1.3)
53
+ globalid (>= 0.6.0)
46
54
  nokogiri (>= 1.8.5)
47
- actionview (6.1.5)
48
- activesupport (= 6.1.5)
55
+ actionview (8.1.3)
56
+ activesupport (= 8.1.3)
49
57
  builder (~> 3.1)
50
- erubi (~> 1.4)
51
- rails-dom-testing (~> 2.0)
52
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
53
- activejob (6.1.5)
54
- activesupport (= 6.1.5)
58
+ erubi (~> 1.11)
59
+ rails-dom-testing (~> 2.2)
60
+ rails-html-sanitizer (~> 1.6)
61
+ activejob (8.1.3)
62
+ activesupport (= 8.1.3)
55
63
  globalid (>= 0.3.6)
56
- activemodel (6.1.5)
57
- activesupport (= 6.1.5)
58
- activemodel-serializers-xml (1.0.2)
59
- activemodel (> 5.x)
60
- activesupport (> 5.x)
64
+ activemodel (8.1.3)
65
+ activesupport (= 8.1.3)
66
+ activemodel-serializers-xml (1.0.3)
67
+ activemodel (>= 5.0.0.a)
68
+ activesupport (>= 5.0.0.a)
61
69
  builder (~> 3.1)
62
- activerecord (6.1.5)
63
- activemodel (= 6.1.5)
64
- activesupport (= 6.1.5)
65
- activeresource (6.0.0)
66
- activemodel (>= 6.0)
70
+ activerecord (8.1.3)
71
+ activemodel (= 8.1.3)
72
+ activesupport (= 8.1.3)
73
+ timeout (>= 0.4.0)
74
+ activeresource (6.2.0)
75
+ activemodel (>= 7.0)
67
76
  activemodel-serializers-xml (~> 1.0)
68
- activesupport (>= 6.0)
69
- activestorage (6.1.5)
70
- actionpack (= 6.1.5)
71
- activejob (= 6.1.5)
72
- activerecord (= 6.1.5)
73
- activesupport (= 6.1.5)
77
+ activesupport (>= 7.0)
78
+ activestorage (8.1.3)
79
+ actionpack (= 8.1.3)
80
+ activejob (= 8.1.3)
81
+ activerecord (= 8.1.3)
82
+ activesupport (= 8.1.3)
74
83
  marcel (~> 1.0)
75
- mini_mime (>= 1.1.0)
76
- activesupport (6.1.5)
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
84
+ activesupport (8.1.3)
85
+ base64
86
+ bigdecimal
87
+ concurrent-ruby (~> 1.0, >= 1.3.1)
88
+ connection_pool (>= 2.2.5)
89
+ drb
78
90
  i18n (>= 1.6, < 2)
91
+ json
92
+ logger (>= 1.4.2)
79
93
  minitest (>= 5.1)
80
- tzinfo (~> 2.0)
81
- zeitwerk (~> 2.3)
82
- addressable (2.8.0)
83
- public_suffix (>= 2.0.2, < 5.0)
84
- ast (2.4.0)
85
- builder (3.2.4)
94
+ securerandom (>= 0.3)
95
+ tzinfo (~> 2.0, >= 2.0.5)
96
+ uri (>= 0.13.1)
97
+ addressable (2.9.0)
98
+ public_suffix (>= 2.0.2, < 8.0)
99
+ ast (2.4.3)
100
+ base64 (0.3.0)
101
+ bigdecimal (4.1.2)
102
+ builder (3.3.0)
86
103
  coderay (1.1.3)
87
- concurrent-ruby (1.1.10)
88
- crack (0.4.5)
104
+ concurrent-ruby (1.3.8)
105
+ connection_pool (3.0.2)
106
+ crack (1.0.1)
107
+ bigdecimal
89
108
  rexml
90
- crass (1.0.6)
91
- diff-lcs (1.3)
92
- erubi (1.10.0)
93
- faraday (2.2.0)
94
- faraday-net_http (~> 2.0)
95
- ruby2_keywords (>= 0.0.4)
96
- faraday-multipart (1.0.3)
97
- multipart-post (>= 1.2, < 3)
98
- faraday-net_http (2.0.2)
99
- globalid (1.0.0)
100
- activesupport (>= 5.0)
101
- hashdiff (1.0.1)
102
- i18n (1.10.0)
109
+ crass (1.0.7)
110
+ date (3.5.1)
111
+ diff-lcs (1.6.2)
112
+ drb (2.2.3)
113
+ erb (6.0.6)
114
+ erubi (1.13.1)
115
+ faraday (2.14.3)
116
+ faraday-net_http (>= 2.0, < 3.5)
117
+ json
118
+ logger
119
+ faraday-multipart (1.2.0)
120
+ multipart-post (~> 2.0)
121
+ faraday-net_http (3.4.4)
122
+ net-http (~> 0.5)
123
+ globalid (1.4.0)
124
+ activesupport (>= 6.1)
125
+ hashdiff (1.2.1)
126
+ i18n (1.15.2)
103
127
  concurrent-ruby (~> 1.0)
104
- kwalify (0.7.2)
105
- loofah (2.16.0)
128
+ io-console (0.8.2)
129
+ irb (1.18.0)
130
+ pp (>= 0.6.0)
131
+ prism (>= 1.3.0)
132
+ rdoc (>= 4.0.0)
133
+ reline (>= 0.4.2)
134
+ json (2.21.1)
135
+ language_server-protocol (3.17.0.6)
136
+ lint_roller (1.1.0)
137
+ logger (1.7.0)
138
+ loofah (2.25.2)
106
139
  crass (~> 1.0.2)
107
- nokogiri (>= 1.5.9)
108
- mail (2.7.1)
140
+ nokogiri (>= 1.12.0)
141
+ mail (2.9.1)
142
+ logger
109
143
  mini_mime (>= 0.1.1)
110
- marcel (1.0.2)
111
- method_source (1.0.0)
112
- mini_mime (1.1.2)
113
- mini_portile2 (2.8.0)
114
- minitest (5.15.0)
115
- multipart-post (2.1.1)
116
- nio4r (2.5.8)
117
- nokogiri (1.13.4)
118
- mini_portile2 (~> 2.8.0)
144
+ net-imap
145
+ net-pop
146
+ net-smtp
147
+ marcel (1.2.1)
148
+ method_source (1.1.0)
149
+ mini_mime (1.1.5)
150
+ minitest (6.0.6)
151
+ drb (~> 2.0)
152
+ prism (~> 1.5)
153
+ multipart-post (2.4.1)
154
+ net-http (0.9.1)
155
+ uri (>= 0.11.1)
156
+ net-imap (0.6.4.1)
157
+ date
158
+ net-protocol
159
+ net-pop (0.1.2)
160
+ net-protocol
161
+ net-protocol (0.2.2)
162
+ timeout
163
+ net-smtp (0.5.1)
164
+ net-protocol
165
+ nio4r (2.7.5)
166
+ nokogiri (1.19.4-aarch64-linux-gnu)
167
+ racc (~> 1.4)
168
+ nokogiri (1.19.4-aarch64-linux-musl)
169
+ racc (~> 1.4)
170
+ nokogiri (1.19.4-arm-linux-gnu)
171
+ racc (~> 1.4)
172
+ nokogiri (1.19.4-arm-linux-musl)
173
+ racc (~> 1.4)
174
+ nokogiri (1.19.4-arm64-darwin)
175
+ racc (~> 1.4)
176
+ nokogiri (1.19.4-x86_64-darwin)
119
177
  racc (~> 1.4)
120
- parallel (1.19.1)
121
- parser (2.7.1.2)
122
- ast (~> 2.4.0)
123
- pry (0.14.1)
178
+ nokogiri (1.19.4-x86_64-linux-gnu)
179
+ racc (~> 1.4)
180
+ nokogiri (1.19.4-x86_64-linux-musl)
181
+ racc (~> 1.4)
182
+ parallel (2.1.0)
183
+ parser (3.3.12.0)
184
+ ast (~> 2.4.1)
185
+ racc
186
+ pp (0.6.4)
187
+ prettyprint
188
+ prettyprint (0.2.0)
189
+ prism (1.9.0)
190
+ pry (0.16.0)
124
191
  coderay (~> 1.1)
125
192
  method_source (~> 1.0)
126
- psych (3.1.0)
127
- public_suffix (4.0.7)
128
- racc (1.6.0)
129
- rack (2.2.3)
130
- rack-test (1.1.0)
131
- rack (>= 1.0, < 3)
132
- rails (6.1.5)
133
- actioncable (= 6.1.5)
134
- actionmailbox (= 6.1.5)
135
- actionmailer (= 6.1.5)
136
- actionpack (= 6.1.5)
137
- actiontext (= 6.1.5)
138
- actionview (= 6.1.5)
139
- activejob (= 6.1.5)
140
- activemodel (= 6.1.5)
141
- activerecord (= 6.1.5)
142
- activestorage (= 6.1.5)
143
- activesupport (= 6.1.5)
193
+ reline (>= 0.6.0)
194
+ public_suffix (7.0.5)
195
+ racc (1.8.1)
196
+ rack (3.2.6)
197
+ rack-session (2.1.2)
198
+ base64 (>= 0.1.0)
199
+ rack (>= 3.0.0)
200
+ rack-test (2.2.0)
201
+ rack (>= 1.3)
202
+ rackup (2.3.1)
203
+ rack (>= 3)
204
+ rails (8.1.3)
205
+ actioncable (= 8.1.3)
206
+ actionmailbox (= 8.1.3)
207
+ actionmailer (= 8.1.3)
208
+ actionpack (= 8.1.3)
209
+ actiontext (= 8.1.3)
210
+ actionview (= 8.1.3)
211
+ activejob (= 8.1.3)
212
+ activemodel (= 8.1.3)
213
+ activerecord (= 8.1.3)
214
+ activestorage (= 8.1.3)
215
+ activesupport (= 8.1.3)
144
216
  bundler (>= 1.15.0)
145
- railties (= 6.1.5)
146
- sprockets-rails (>= 2.0.0)
147
- rails-dom-testing (2.0.3)
148
- activesupport (>= 4.2.0)
217
+ railties (= 8.1.3)
218
+ rails-dom-testing (2.3.0)
219
+ activesupport (>= 5.0.0)
220
+ minitest
149
221
  nokogiri (>= 1.6)
150
- rails-html-sanitizer (1.4.2)
151
- loofah (~> 2.3)
152
- railties (6.1.5)
153
- actionpack (= 6.1.5)
154
- activesupport (= 6.1.5)
155
- method_source
222
+ rails-html-sanitizer (1.7.1)
223
+ loofah (~> 2.25, >= 2.25.2)
224
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
225
+ railties (8.1.3)
226
+ actionpack (= 8.1.3)
227
+ activesupport (= 8.1.3)
228
+ irb (~> 1.13)
229
+ rackup (>= 1.0.0)
156
230
  rake (>= 12.2)
157
- thor (~> 1.0)
158
- rainbow (3.0.0)
159
- rake (13.0.6)
160
- reek (6.0.0)
161
- kwalify (~> 0.7.0)
162
- parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
163
- psych (~> 3.1.0)
164
- rainbow (>= 2.0, < 4.0)
165
- rexml (3.2.5)
166
- rspec (3.9.0)
167
- rspec-core (~> 3.9.0)
168
- rspec-expectations (~> 3.9.0)
169
- rspec-mocks (~> 3.9.0)
170
- rspec-core (3.9.2)
171
- rspec-support (~> 3.9.3)
172
- rspec-expectations (3.9.2)
231
+ thor (~> 1.0, >= 1.2.2)
232
+ tsort (>= 0.2)
233
+ zeitwerk (~> 2.6)
234
+ rainbow (3.1.1)
235
+ rake (13.4.2)
236
+ rbs (4.0.3)
237
+ logger
238
+ prism (>= 1.6.0)
239
+ tsort
240
+ rdoc (8.0.0)
241
+ erb
242
+ prism (>= 1.6.0)
243
+ rbs (>= 4.0.0)
244
+ tsort
245
+ regexp_parser (2.12.0)
246
+ reline (0.6.3)
247
+ io-console (~> 0.5)
248
+ rexml (3.4.4)
249
+ rspec (3.13.2)
250
+ rspec-core (~> 3.13.0)
251
+ rspec-expectations (~> 3.13.0)
252
+ rspec-mocks (~> 3.13.0)
253
+ rspec-core (3.13.6)
254
+ rspec-support (~> 3.13.0)
255
+ rspec-expectations (3.13.5)
173
256
  diff-lcs (>= 1.2.0, < 2.0)
174
- rspec-support (~> 3.9.0)
175
- rspec-mocks (3.9.1)
257
+ rspec-support (~> 3.13.0)
258
+ rspec-mocks (3.13.8)
176
259
  diff-lcs (>= 1.2.0, < 2.0)
177
- rspec-support (~> 3.9.0)
178
- rspec-support (3.9.3)
179
- rspec_junit_formatter (0.4.1)
260
+ rspec-support (~> 3.13.0)
261
+ rspec-support (3.13.7)
262
+ rspec_junit_formatter (0.6.0)
180
263
  rspec-core (>= 2, < 4, != 2.12.0)
181
- rubocop (0.83.0)
182
- parallel (~> 1.10)
183
- parser (>= 2.7.0.1)
264
+ rubocop (1.88.2)
265
+ json (~> 2.3)
266
+ language_server-protocol (~> 3.17.0.2)
267
+ lint_roller (~> 1.1.0)
268
+ parallel (>= 1.10)
269
+ parser (>= 3.3.0.2)
184
270
  rainbow (>= 2.2.2, < 4.0)
185
- rexml
271
+ regexp_parser (>= 2.9.3, < 3.0)
272
+ rubocop-ast (>= 1.49.0, < 2.0)
186
273
  ruby-progressbar (~> 1.7)
187
- unicode-display_width (>= 1.4.0, < 2.0)
188
- rubocop-performance (1.5.2)
189
- rubocop (>= 0.71.0)
190
- rubocop-rspec (1.35.0)
191
- rubocop (>= 0.60.0)
192
- ruby-progressbar (1.10.1)
193
- ruby2_keywords (0.0.5)
194
- rubyzip (2.3.2)
195
- sprockets (4.0.3)
274
+ unicode-display_width (>= 2.4.0, < 4.0)
275
+ rubocop-ast (1.50.0)
276
+ parser (>= 3.3.7.2)
277
+ prism (~> 1.7)
278
+ rubocop-performance (1.26.1)
279
+ lint_roller (~> 1.1)
280
+ rubocop (>= 1.75.0, < 2.0)
281
+ rubocop-ast (>= 1.47.1, < 2.0)
282
+ rubocop-rspec (3.10.2)
283
+ lint_roller (~> 1.1)
284
+ regexp_parser (>= 2.0)
285
+ rubocop (~> 1.86, >= 1.86.2)
286
+ ruby-progressbar (1.13.0)
287
+ rubyzip (3.4.1)
288
+ securerandom (0.4.1)
289
+ thor (1.5.0)
290
+ timeout (0.6.1)
291
+ tsort (0.2.0)
292
+ tzinfo (2.0.6)
196
293
  concurrent-ruby (~> 1.0)
197
- rack (> 1, < 3)
198
- sprockets-rails (3.4.2)
199
- actionpack (>= 5.2)
200
- activesupport (>= 5.2)
201
- sprockets (>= 3.0.0)
202
- thor (1.2.1)
203
- tzinfo (2.0.4)
204
- concurrent-ruby (~> 1.0)
205
- unicode-display_width (1.7.0)
206
- vcr (6.1.0)
207
- webmock (3.14.0)
294
+ unicode-display_width (3.2.0)
295
+ unicode-emoji (~> 4.1)
296
+ unicode-emoji (4.2.0)
297
+ uri (1.1.1)
298
+ useragent (0.16.11)
299
+ vcr (6.4.0)
300
+ webmock (3.26.2)
208
301
  addressable (>= 2.8.0)
209
302
  crack (>= 0.3.2)
210
303
  hashdiff (>= 0.4.0, < 2.0.0)
211
- websocket-driver (0.7.5)
304
+ websocket-driver (0.8.2)
305
+ base64
212
306
  websocket-extensions (>= 0.1.0)
213
307
  websocket-extensions (0.1.5)
214
- zeitwerk (2.5.4)
308
+ zeitwerk (2.8.2)
215
309
 
216
310
  PLATFORMS
217
- ruby
311
+ aarch64-linux-gnu
312
+ aarch64-linux-musl
313
+ arm-linux-gnu
314
+ arm-linux-musl
315
+ arm64-darwin
316
+ x86_64-darwin
317
+ x86_64-linux-gnu
318
+ x86_64-linux-musl
218
319
 
219
320
  DEPENDENCIES
220
321
  docomo-nlu!
221
322
  pry
222
- rails (~> 6.1.5)
223
- reek
224
- rspec
323
+ rails (~> 8.1)
324
+ rspec (~> 3.13)
225
325
  rspec_junit_formatter
226
- rubocop
326
+ rubocop (~> 1.69)
227
327
  rubocop-performance
228
- rubocop-rspec (~> 1.35.0)
229
- vcr (~> 6.1.0)
230
- webmock (~> 3.14.0)
328
+ rubocop-rspec (~> 3.2)
329
+ vcr (~> 6.3)
330
+ webmock (~> 3.24)
331
+
332
+ CHECKSUMS
333
+ action_text-trix (2.1.19) sha256=7012f59421009cf284aa651294896414d653a61a2417c9b8714c8476d2f74009
334
+ actioncable (8.1.3) sha256=e5bc7f75e44e6a22de29c4f43176927c3a9ce4824464b74ed18d8226e75a80f0
335
+ actionmailbox (8.1.3) sha256=df7da474eaa0e70df4ed5a6fef66eb3b3b0f2dbf7f14518deee8d77f1b4aae59
336
+ actionmailer (8.1.3) sha256=831f724891bb70d0aaa4d76581a6321124b6a752cb655c9346aae5479318448d
337
+ actionpack (8.1.3) sha256=af998cae4d47c5d581a2cc363b5c77eb718b7c4b45748d81b1887b25621c29a3
338
+ actiontext (8.1.3) sha256=d291019c00e1ea9e6463011fa214f6081a56d7b9a1d224e7d3f6384c1dafc7d2
339
+ actionview (8.1.3) sha256=1347c88c7f3edb38100c5ce0e9fb5e62d7755f3edc1b61cce2eb0b2c6ea2fd5d
340
+ activejob (8.1.3) sha256=a149b1766aa8204c3c3da7309e4becd40fcd5529c348cffbf6c9b16b565fe8d3
341
+ activemodel (8.1.3) sha256=90c05cbe4cef3649b8f79f13016191ea94c4525ce4a5c0fb7ef909c4b91c8219
342
+ activemodel-serializers-xml (1.0.3) sha256=fa1b16305e7254cc58a59c68833e3c0a593a59c8ab95d3be5aaea7cd9416c397
343
+ activerecord (8.1.3) sha256=8003be7b2466ba0a2a670e603eeb0a61dd66058fccecfc49901e775260ac70ab
344
+ activeresource (6.2.0) sha256=818ca60d3cd1ff7bbb7277f41250ad4d61a7cdbe30fbf52b2145e1b66ed13900
345
+ activestorage (8.1.3) sha256=0564ce9309143951a67615e1bb4e090ee54b8befed417133cae614479b46384d
346
+ activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
347
+ addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
348
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
349
+ base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
350
+ bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
351
+ builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
352
+ coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
353
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
354
+ connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
355
+ crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
356
+ crass (1.0.7) sha256=94868719948664c89ddcaf0a37c65048413dfcb1c869470a5f7a7ceb5390b295
357
+ date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
358
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
359
+ docomo-nlu (0.6.0)
360
+ drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
361
+ erb (6.0.6) sha256=a9b24986700f5bf127c4f297c5403c3ca41b83b0a316c0cd09a096b56e644ae5
362
+ erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
363
+ faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278
364
+ faraday-multipart (1.2.0) sha256=7d89a949693714176f612323ca13746a2ded204031a6ba528adee788694ef757
365
+ faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588
366
+ globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
367
+ hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
368
+ i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
369
+ io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
370
+ irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
371
+ json (2.21.1) sha256=13a43df75d95641443f5702dff350f237164a9d811ff0f2c2800d4d980220583
372
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
373
+ lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
374
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
375
+ loofah (2.25.2) sha256=2007f746959ac65552456e04b433e83deb22759ab38c838b4445c70e43425918
376
+ mail (2.9.1) sha256=06574eca475253d6c18145dd70af80d0eb970182d55053497c5f4d797ea160e8
377
+ marcel (1.2.1) sha256=1678e9360e32f9eafa917c80029e2f6d10b2715c66a4b87b6d0da9b9cd1f859f
378
+ method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
379
+ mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
380
+ minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
381
+ multipart-post (2.4.1) sha256=9872d03a8e552020ca096adadbf5e3cb1cd1cdd6acd3c161136b8a5737cdb4a8
382
+ net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
383
+ net-imap (0.6.4.1) sha256=29f0360d75a7efd3539f16ac1957dea5c0a51ddeceb348db4553c3120914ea0d
384
+ net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
385
+ net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8
386
+ net-smtp (0.5.1) sha256=ed96a0af63c524fceb4b29b0d352195c30d82dd916a42f03c62a3a70e5b70736
387
+ nio4r (2.7.5) sha256=6c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
388
+ nokogiri (1.19.4-aarch64-linux-gnu) sha256=1269fb644a6de405057a53dd5c762b1209b43ca7424f839454d3dbc677c31a8f
389
+ nokogiri (1.19.4-aarch64-linux-musl) sha256=35c65b9ce72b3bb03207bdbe7067915019dc18c1b9b59139684bd6690fdd01af
390
+ nokogiri (1.19.4-arm-linux-gnu) sha256=a301313e38bb065d68239e79734bcd6f56fb6efaacebde29e9abf2a4735340ca
391
+ nokogiri (1.19.4-arm-linux-musl) sha256=588923c101bcfa78869734d247d25b598674323e7f22474fc468f6e5647311eb
392
+ nokogiri (1.19.4-arm64-darwin) sha256=a46db9853286e6597b36ebc6953817d15acf3a299583eb3f89fdc6f91dd63527
393
+ nokogiri (1.19.4-x86_64-darwin) sha256=7fd17057d3e1f00e9954a74b3cd76595d3d4a5ef233b7ed9599047c204f70551
394
+ nokogiri (1.19.4-x86_64-linux-gnu) sha256=379fae440b28915e3f19d752ce2dcf8465ed2b2fbefd2a7ca0dd497bc981a06a
395
+ nokogiri (1.19.4-x86_64-linux-musl) sha256=17dfb7c1fa194ae02fbf7c51a7afc8d278045ab3fdacfd86f91d02d7b274470b
396
+ parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
397
+ parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
398
+ pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
399
+ prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
400
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
401
+ pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
402
+ public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
403
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
404
+ rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
405
+ rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
406
+ rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
407
+ rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
408
+ rails (8.1.3) sha256=6d017ba5348c98fc909753a8169b21d44de14d2a0b92d140d1a966834c3c9cd3
409
+ rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
410
+ rails-html-sanitizer (1.7.1) sha256=e797a7c9b01e567307e317c576b49ab4168017e63eea4dba9ce3cb587e2f22c2
411
+ railties (8.1.3) sha256=913eb0e0cb520aac687ffd74916bd726d48fa21f47833c6292576ef6a286de22
412
+ rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
413
+ rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
414
+ rbs (4.0.3) sha256=5a7bf70e2628549d9a1f44eae447b2cfe55968a9c60cfff52693a4bdcc020e14
415
+ rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
416
+ regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
417
+ reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
418
+ rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
419
+ rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
420
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
421
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
422
+ rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
423
+ rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
424
+ rspec_junit_formatter (0.6.0) sha256=40dde674e6ae4e6cc0ff560da25497677e34fefd2338cc467a8972f602b62b15
425
+ rubocop (1.88.2) sha256=8def251c90cd955feb4daa3edc0ab56893250c4ce90ef81e6c80c03f9a939bbf
426
+ rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
427
+ rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
428
+ rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
429
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
430
+ rubyzip (3.4.1) sha256=0a79e745b5c25872ebd148457df5665da8530ed8626c993b01457128f173ca02
431
+ securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
432
+ thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
433
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
434
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
435
+ tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
436
+ unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
437
+ unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
438
+ uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
439
+ useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
440
+ vcr (6.4.0) sha256=077ac92cc16efc5904eb90492a18153b5e6ca5398046d8a249a7c96a9ea24ae6
441
+ webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
442
+ websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146
443
+ websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
444
+ zeitwerk (2.8.2) sha256=7212a61311083c604184b1ea2574b9aa05cd14f855a0841c06985cabe9181d12
231
445
 
232
446
  BUNDLED WITH
233
- 2.1.4
447
+ 4.0.0
data/docomo-nlu.gemspec CHANGED
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.description = "API Client of docomo NLPManagementAPI for ruby."
15
15
  spec.homepage = "https://github.com/jagrament/docomo-nlu"
16
16
 
17
+ spec.required_ruby_version = ">= 3.3.0"
18
+
17
19
  # Specify which files should be added to the gem when it is released.
18
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
21
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
@@ -23,20 +25,20 @@ Gem::Specification.new do |spec|
23
25
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
24
26
  spec.require_paths = ["lib"]
25
27
 
26
- spec.add_dependency "activeresource", ">= 6.0"
28
+ spec.add_dependency "activeresource", ">= 6.1"
27
29
  spec.add_dependency "bundler"
28
- spec.add_dependency "faraday"
30
+ spec.add_dependency "faraday", ">= 2.0"
29
31
  spec.add_dependency "faraday-multipart"
30
32
  spec.add_dependency "rake"
31
33
  spec.add_dependency "rubyzip"
34
+
32
35
  spec.add_development_dependency "pry"
33
- spec.add_development_dependency "rails", "~> 6.1.5"
34
- spec.add_development_dependency "reek"
35
- spec.add_development_dependency "rspec"
36
+ spec.add_development_dependency "rails", "~> 8.1"
37
+ spec.add_development_dependency "rspec", "~> 3.13"
36
38
  spec.add_development_dependency "rspec_junit_formatter"
37
- spec.add_development_dependency "rubocop"
39
+ spec.add_development_dependency "rubocop", "~> 1.69"
38
40
  spec.add_development_dependency "rubocop-performance"
39
- spec.add_development_dependency "rubocop-rspec", "~> 1.35.0"
40
- spec.add_development_dependency "vcr", "~> 6.1.0"
41
- spec.add_development_dependency "webmock", "~> 3.14.0"
41
+ spec.add_development_dependency "rubocop-rspec", "~> 3.2"
42
+ spec.add_development_dependency "vcr", "~> 6.3"
43
+ spec.add_development_dependency "webmock", "~> 3.24"
42
44
  end
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "active_support/configurable"
3
+ require "active_support"
4
+ require "active_support/core_ext/class/attribute"
4
5
  module DocomoNlu
5
6
  def self.configure
6
- yield @config ||= DocomoNlu::Configuration.new
7
+ # @config is shared with .config below, not scoped to this method
8
+ yield @config ||= DocomoNlu::Configuration.new # rubocop:disable Naming/MemoizedInstanceVariableName
7
9
  end
8
10
 
9
11
  def self.config
@@ -11,10 +13,9 @@ module DocomoNlu
11
13
  end
12
14
 
13
15
  class Configuration
14
- include ActiveSupport::Configurable
15
- config_accessor :nlu_host
16
- config_accessor :nlu_version
17
- config_accessor :admin_access_token
16
+ class_attribute :nlu_host
17
+ class_attribute :nlu_version
18
+ class_attribute :admin_access_token
18
19
  end
19
20
 
20
21
  configure do |config|
@@ -79,11 +79,11 @@ module DocomoNlu
79
79
  end
80
80
 
81
81
  def compile(prefix_options)
82
- return if deploy_request(:compile, prefix_options) != ""
82
+ nil if deploy_request(:compile, prefix_options) != ""
83
83
  end
84
84
 
85
85
  def transfer(prefix_options)
86
- return if deploy_request(:transfer, prefix_options) != ""
86
+ nil if deploy_request(:transfer, prefix_options) != ""
87
87
  end
88
88
 
89
89
  def deploy_request(method, prefix_options)
@@ -6,7 +6,7 @@ module DocomoNlu
6
6
  self.element_name = ""
7
7
  self.prefix = "/management/v2.6/projects/:project_id/bots/:bot_id/:method"
8
8
 
9
- def initialize(attributes = {}, persisted = false)
9
+ def initialize(attributes = {}, persisted = false) # rubocop:disable Style/OptionalBooleanParameter -- must match ActiveResource::Base#initialize signature
10
10
  super(attributes, persisted)
11
11
  prefix_options[:method] = "entry"
12
12
  end
@@ -43,6 +43,7 @@ module DocomoNlu
43
43
 
44
44
  private
45
45
 
46
+ # rubocop:disable Metrics/AbcSize
46
47
  def download(category = nil, prefix_options = {})
47
48
  extention = category.blank? ? ".zip" : ".map"
48
49
 
@@ -65,6 +66,7 @@ module DocomoNlu
65
66
  end
66
67
  nil
67
68
  end
69
+ # rubocop:enable Metrics/AbcSize
68
70
 
69
71
  def upload(file, prefix_options)
70
72
  conn = Faraday.new(url: site.to_s, ssl: { verify: false }) do |builder|
@@ -10,10 +10,6 @@ module DocomoNlu
10
10
  self.class.create(attributes[:file], prefix_options)
11
11
  end
12
12
 
13
- def destroy
14
- super
15
- end
16
-
17
13
  def download
18
14
  self.file = self.class.download(prefix_options).file
19
15
  end
@@ -26,6 +26,7 @@ module DocomoNlu
26
26
  end
27
27
  end
28
28
 
29
+ # rubocop:disable Metrics/ParameterLists, Style/OptionalBooleanParameter -- public API; changing to keyword args would break existing callers
29
30
  def registration(app_id = "", registration_id = "docomo-nlu", app_kind = "docomo-nlu", notification = false)
30
31
  body = {
31
32
  bot_id: @attributes[:botId],
@@ -37,6 +38,7 @@ module DocomoNlu
37
38
  res = connection.post("/UserRegistrationServer/users/applications", body.to_json, self.class.headers)
38
39
  @attributes.store(:appId, JSON.parse(res.body)["app_id"])
39
40
  end
41
+ # rubocop:enable Metrics/ParameterLists, Style/OptionalBooleanParameter
40
42
 
41
43
  def dialogue(voice_text, params = {})
42
44
  @attributes[:voiceText] = voice_text
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DocomoNlu
4
- VERSION = "0.4.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docomo-nlu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Yamazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-15 00:00:00.000000000 Z
11
+ date: 2026-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '6.1'
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
- version: '6.0'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday-multipart
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,42 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 6.1.5
117
+ version: '8.1'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 6.1.5
125
- - !ruby/object:Gem::Dependency
126
- name: reek
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: '8.1'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rspec
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ">="
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0'
131
+ version: '3.13'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ">="
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0'
138
+ version: '3.13'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rspec_junit_formatter
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -168,16 +154,16 @@ dependencies:
168
154
  name: rubocop
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ">="
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '0'
159
+ version: '1.69'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ">="
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '0'
166
+ version: '1.69'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: rubocop-performance
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -198,42 +184,42 @@ dependencies:
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 1.35.0
187
+ version: '3.2'
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: 1.35.0
194
+ version: '3.2'
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: vcr
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
199
  - - "~>"
214
200
  - !ruby/object:Gem::Version
215
- version: 6.1.0
201
+ version: '6.3'
216
202
  type: :development
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
206
  - - "~>"
221
207
  - !ruby/object:Gem::Version
222
- version: 6.1.0
208
+ version: '6.3'
223
209
  - !ruby/object:Gem::Dependency
224
210
  name: webmock
225
211
  requirement: !ruby/object:Gem::Requirement
226
212
  requirements:
227
213
  - - "~>"
228
214
  - !ruby/object:Gem::Version
229
- version: 3.14.0
215
+ version: '3.24'
230
216
  type: :development
231
217
  prerelease: false
232
218
  version_requirements: !ruby/object:Gem::Requirement
233
219
  requirements:
234
220
  - - "~>"
235
221
  - !ruby/object:Gem::Version
236
- version: 3.14.0
222
+ version: '3.24'
237
223
  description: API Client of docomo NLPManagementAPI for ruby.
238
224
  email:
239
225
  - kouji.yamazaki.cv@nttdocomo.com
@@ -241,7 +227,6 @@ executables: []
241
227
  extensions: []
242
228
  extra_rdoc_files: []
243
229
  files:
244
- - ".circleci/config.yml"
245
230
  - ".gitignore"
246
231
  - ".reek"
247
232
  - ".reek.yml"
@@ -434,14 +419,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
434
419
  requirements:
435
420
  - - ">="
436
421
  - !ruby/object:Gem::Version
437
- version: '0'
422
+ version: 3.3.0
438
423
  required_rubygems_version: !ruby/object:Gem::Requirement
439
424
  requirements:
440
425
  - - ">="
441
426
  - !ruby/object:Gem::Version
442
427
  version: '0'
443
428
  requirements: []
444
- rubygems_version: 3.1.6
429
+ rubygems_version: 3.5.22
445
430
  signing_key:
446
431
  specification_version: 4
447
432
  summary: API Client of docomo NLPManagementAPI for ruby.
data/.circleci/config.yml DELETED
@@ -1,48 +0,0 @@
1
- # Ruby CircleCI 2.1 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
- version: 2.1
6
- orbs:
7
- ruby: circleci/ruby@0.1.0
8
- ruby-orbs: sue445/ruby-orbs@volatile
9
- ruby-linter: amyroi/ruby-linter@volatile
10
-
11
- executors:
12
- default:
13
- working_directory: ~/docomo-nlu
14
- docker:
15
- - image: circleci/ruby:2.6.3
16
- commands:
17
- setup_bundler:
18
- steps:
19
- - run:
20
- name: Install bundler
21
- command: gem install bundler -v $BUNDLER_VERSION
22
- jobs:
23
- build:
24
- executor: default
25
- environment:
26
- RAILS_ENV: test
27
- CIRCLE_TEST_REPORTS: /tmp/docomo-nlu-test-results
28
- steps:
29
- - checkout
30
- - setup_bundler
31
- - ruby/load-cache:
32
- key: docomo-nlu-bundle
33
- - ruby-orbs/bundle-install:
34
- bundle_jobs: 4
35
- bundle_retry: 3
36
- bundle_clean: true
37
- - ruby/save-cache:
38
- key: docomo-nlu-bundle
39
- - ruby/test
40
- - ruby-linter/rubocop:
41
- files: "lib/**/*.rb spec/**/*.rb"
42
- report_dir: $CIRCLE_TEST_REPORTS
43
- - ruby-linter/reek
44
- workflows:
45
- version: 2
46
- build:
47
- jobs:
48
- - build