docomo-nlu 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -60
- data/docomo-nlu.gemspec +1 -1
- data/lib/docomo_nlu/management/multipart_base.rb +1 -1
- data/lib/docomo_nlu/management/ok_ng_base.rb +1 -1
- data/lib/docomo_nlu/spontaneous.rb +2 -2
- data/lib/docomo_nlu/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b8be4d441eb05dc82ec2d8055752ce0f1d13ca6bfc561ffb3377b1c2e72b839
|
4
|
+
data.tar.gz: ef4b3d0b4ead8af82f02acf2038c7acf145a4296899d17e41aae8339aa6314cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f91ab268d4dda942121bc3487bdca95c110f703b6f030f099947b40136a9b2e395b026c73bf59fc169b2ffe786d6058d6651b4e8344f6b514c4948c2f031689
|
7
|
+
data.tar.gz: 7dbfd55ec853ffdba9f1feb8a71e996805a9c3d07ee7f4daf3552690f40bc707fd5100bba9e9327522f26f48745a5965938dd857065c0d8814a5612843aa2fd2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
docomo-nlu (0.3.
|
4
|
+
docomo-nlu (0.3.6)
|
5
5
|
activeresource (>= 5.0, < 5.2)
|
6
6
|
bundler
|
7
7
|
faraday
|
@@ -11,51 +11,51 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actioncable (5.2.
|
15
|
-
actionpack (= 5.2.
|
14
|
+
actioncable (5.2.6)
|
15
|
+
actionpack (= 5.2.6)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
|
-
actionmailer (5.2.
|
19
|
-
actionpack (= 5.2.
|
20
|
-
actionview (= 5.2.
|
21
|
-
activejob (= 5.2.
|
18
|
+
actionmailer (5.2.6)
|
19
|
+
actionpack (= 5.2.6)
|
20
|
+
actionview (= 5.2.6)
|
21
|
+
activejob (= 5.2.6)
|
22
22
|
mail (~> 2.5, >= 2.5.4)
|
23
23
|
rails-dom-testing (~> 2.0)
|
24
|
-
actionpack (5.2.
|
25
|
-
actionview (= 5.2.
|
26
|
-
activesupport (= 5.2.
|
24
|
+
actionpack (5.2.6)
|
25
|
+
actionview (= 5.2.6)
|
26
|
+
activesupport (= 5.2.6)
|
27
27
|
rack (~> 2.0, >= 2.0.8)
|
28
28
|
rack-test (>= 0.6.3)
|
29
29
|
rails-dom-testing (~> 2.0)
|
30
30
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
31
|
-
actionview (5.2.
|
32
|
-
activesupport (= 5.2.
|
31
|
+
actionview (5.2.6)
|
32
|
+
activesupport (= 5.2.6)
|
33
33
|
builder (~> 3.1)
|
34
34
|
erubi (~> 1.4)
|
35
35
|
rails-dom-testing (~> 2.0)
|
36
36
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
37
|
-
activejob (5.2.
|
38
|
-
activesupport (= 5.2.
|
37
|
+
activejob (5.2.6)
|
38
|
+
activesupport (= 5.2.6)
|
39
39
|
globalid (>= 0.3.6)
|
40
|
-
activemodel (5.2.
|
41
|
-
activesupport (= 5.2.
|
40
|
+
activemodel (5.2.6)
|
41
|
+
activesupport (= 5.2.6)
|
42
42
|
activemodel-serializers-xml (1.0.2)
|
43
43
|
activemodel (> 5.x)
|
44
44
|
activesupport (> 5.x)
|
45
45
|
builder (~> 3.1)
|
46
|
-
activerecord (5.2.
|
47
|
-
activemodel (= 5.2.
|
48
|
-
activesupport (= 5.2.
|
46
|
+
activerecord (5.2.6)
|
47
|
+
activemodel (= 5.2.6)
|
48
|
+
activesupport (= 5.2.6)
|
49
49
|
arel (>= 9.0)
|
50
50
|
activeresource (5.1.1)
|
51
51
|
activemodel (>= 5.0, < 7)
|
52
52
|
activemodel-serializers-xml (~> 1.0)
|
53
53
|
activesupport (>= 5.0, < 7)
|
54
|
-
activestorage (5.2.
|
55
|
-
actionpack (= 5.2.
|
56
|
-
activerecord (= 5.2.
|
57
|
-
marcel (~> 0.
|
58
|
-
activesupport (5.2.
|
54
|
+
activestorage (5.2.6)
|
55
|
+
actionpack (= 5.2.6)
|
56
|
+
activerecord (= 5.2.6)
|
57
|
+
marcel (~> 1.0.0)
|
58
|
+
activesupport (5.2.6)
|
59
59
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
60
60
|
i18n (>= 0.7, < 2)
|
61
61
|
minitest (~> 5.1)
|
@@ -66,36 +66,42 @@ GEM
|
|
66
66
|
ast (2.4.0)
|
67
67
|
builder (3.2.4)
|
68
68
|
coderay (1.1.2)
|
69
|
-
concurrent-ruby (1.1.
|
69
|
+
concurrent-ruby (1.1.8)
|
70
70
|
crack (0.4.3)
|
71
71
|
safe_yaml (~> 1.0.0)
|
72
72
|
crass (1.0.6)
|
73
73
|
diff-lcs (1.3)
|
74
|
-
erubi (1.
|
75
|
-
faraday (1.
|
74
|
+
erubi (1.10.0)
|
75
|
+
faraday (1.4.1)
|
76
|
+
faraday-excon (~> 1.1)
|
77
|
+
faraday-net_http (~> 1.0)
|
78
|
+
faraday-net_http_persistent (~> 1.1)
|
76
79
|
multipart-post (>= 1.2, < 3)
|
80
|
+
ruby2_keywords (>= 0.0.4)
|
81
|
+
faraday-excon (1.1.0)
|
82
|
+
faraday-net_http (1.0.1)
|
83
|
+
faraday-net_http_persistent (1.1.0)
|
77
84
|
globalid (0.4.2)
|
78
85
|
activesupport (>= 4.2.0)
|
79
86
|
hashdiff (1.0.1)
|
80
|
-
i18n (1.8.
|
87
|
+
i18n (1.8.10)
|
81
88
|
concurrent-ruby (~> 1.0)
|
82
89
|
kwalify (0.7.2)
|
83
|
-
loofah (2.
|
90
|
+
loofah (2.9.1)
|
84
91
|
crass (~> 1.0.2)
|
85
92
|
nokogiri (>= 1.5.9)
|
86
93
|
mail (2.7.1)
|
87
94
|
mini_mime (>= 0.1.1)
|
88
|
-
marcel (0.
|
89
|
-
mimemagic (~> 0.3.2)
|
95
|
+
marcel (1.0.1)
|
90
96
|
method_source (0.9.2)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
minitest (5.14.1)
|
97
|
+
mini_mime (1.1.0)
|
98
|
+
mini_portile2 (2.5.1)
|
99
|
+
minitest (5.14.4)
|
95
100
|
multipart-post (2.1.1)
|
96
|
-
nio4r (2.5.
|
97
|
-
nokogiri (1.
|
98
|
-
mini_portile2 (~> 2.
|
101
|
+
nio4r (2.5.7)
|
102
|
+
nokogiri (1.11.4)
|
103
|
+
mini_portile2 (~> 2.5.0)
|
104
|
+
racc (~> 1.4)
|
99
105
|
parallel (1.19.1)
|
100
106
|
parser (2.7.1.2)
|
101
107
|
ast (~> 2.4.0)
|
@@ -104,41 +110,42 @@ GEM
|
|
104
110
|
method_source (~> 0.9.0)
|
105
111
|
psych (3.1.0)
|
106
112
|
public_suffix (4.0.5)
|
113
|
+
racc (1.5.2)
|
107
114
|
rack (2.2.3)
|
108
115
|
rack-test (1.1.0)
|
109
116
|
rack (>= 1.0, < 3)
|
110
|
-
rails (5.2.
|
111
|
-
actioncable (= 5.2.
|
112
|
-
actionmailer (= 5.2.
|
113
|
-
actionpack (= 5.2.
|
114
|
-
actionview (= 5.2.
|
115
|
-
activejob (= 5.2.
|
116
|
-
activemodel (= 5.2.
|
117
|
-
activerecord (= 5.2.
|
118
|
-
activestorage (= 5.2.
|
119
|
-
activesupport (= 5.2.
|
117
|
+
rails (5.2.6)
|
118
|
+
actioncable (= 5.2.6)
|
119
|
+
actionmailer (= 5.2.6)
|
120
|
+
actionpack (= 5.2.6)
|
121
|
+
actionview (= 5.2.6)
|
122
|
+
activejob (= 5.2.6)
|
123
|
+
activemodel (= 5.2.6)
|
124
|
+
activerecord (= 5.2.6)
|
125
|
+
activestorage (= 5.2.6)
|
126
|
+
activesupport (= 5.2.6)
|
120
127
|
bundler (>= 1.3.0)
|
121
|
-
railties (= 5.2.
|
128
|
+
railties (= 5.2.6)
|
122
129
|
sprockets-rails (>= 2.0.0)
|
123
130
|
rails-dom-testing (2.0.3)
|
124
131
|
activesupport (>= 4.2.0)
|
125
132
|
nokogiri (>= 1.6)
|
126
133
|
rails-html-sanitizer (1.3.0)
|
127
134
|
loofah (~> 2.3)
|
128
|
-
railties (5.2.
|
129
|
-
actionpack (= 5.2.
|
130
|
-
activesupport (= 5.2.
|
135
|
+
railties (5.2.6)
|
136
|
+
actionpack (= 5.2.6)
|
137
|
+
activesupport (= 5.2.6)
|
131
138
|
method_source
|
132
139
|
rake (>= 0.8.7)
|
133
140
|
thor (>= 0.19.0, < 2.0)
|
134
141
|
rainbow (3.0.0)
|
135
|
-
rake (13.0.
|
142
|
+
rake (13.0.3)
|
136
143
|
reek (6.0.0)
|
137
144
|
kwalify (~> 0.7.0)
|
138
145
|
parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
|
139
146
|
psych (~> 3.1.0)
|
140
147
|
rainbow (>= 2.0, < 4.0)
|
141
|
-
rexml (3.2.
|
148
|
+
rexml (3.2.5)
|
142
149
|
rspec (3.9.0)
|
143
150
|
rspec-core (~> 3.9.0)
|
144
151
|
rspec-expectations (~> 3.9.0)
|
@@ -166,18 +173,19 @@ GEM
|
|
166
173
|
rubocop-rspec (1.35.0)
|
167
174
|
rubocop (>= 0.60.0)
|
168
175
|
ruby-progressbar (1.10.1)
|
176
|
+
ruby2_keywords (0.0.4)
|
169
177
|
rubyzip (2.3.0)
|
170
178
|
safe_yaml (1.0.5)
|
171
|
-
sprockets (4.0.
|
179
|
+
sprockets (4.0.2)
|
172
180
|
concurrent-ruby (~> 1.0)
|
173
181
|
rack (> 1, < 3)
|
174
|
-
sprockets-rails (3.2.
|
182
|
+
sprockets-rails (3.2.2)
|
175
183
|
actionpack (>= 4.0)
|
176
184
|
activesupport (>= 4.0)
|
177
185
|
sprockets (>= 3.0.0)
|
178
|
-
thor (1.0
|
186
|
+
thor (1.1.0)
|
179
187
|
thread_safe (0.3.6)
|
180
|
-
tzinfo (1.2.
|
188
|
+
tzinfo (1.2.9)
|
181
189
|
thread_safe (~> 0.1)
|
182
190
|
unicode-display_width (1.7.0)
|
183
191
|
vcr (5.1.0)
|
@@ -185,7 +193,7 @@ GEM
|
|
185
193
|
addressable (>= 2.3.6)
|
186
194
|
crack (>= 0.3.2)
|
187
195
|
hashdiff
|
188
|
-
websocket-driver (0.7.
|
196
|
+
websocket-driver (0.7.3)
|
189
197
|
websocket-extensions (>= 0.1.0)
|
190
198
|
websocket-extensions (0.1.5)
|
191
199
|
|
@@ -195,7 +203,7 @@ PLATFORMS
|
|
195
203
|
DEPENDENCIES
|
196
204
|
docomo-nlu!
|
197
205
|
pry (~> 0.11.3)
|
198
|
-
rails
|
206
|
+
rails (~> 5.2.5)
|
199
207
|
reek
|
200
208
|
rspec
|
201
209
|
rspec_junit_formatter
|
data/docomo-nlu.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency "rake"
|
30
30
|
spec.add_dependency "rubyzip"
|
31
31
|
spec.add_development_dependency "pry", "~> 0.11.3"
|
32
|
-
spec.add_development_dependency "rails"
|
32
|
+
spec.add_development_dependency "rails", "~> 5.2.5"
|
33
33
|
spec.add_development_dependency "reek"
|
34
34
|
spec.add_development_dependency "rspec"
|
35
35
|
spec.add_development_dependency "rspec_junit_formatter"
|
@@ -16,7 +16,7 @@ module DocomoNlu
|
|
16
16
|
class << self
|
17
17
|
def create(file, prefix_options)
|
18
18
|
check_prefix_options(prefix_options)
|
19
|
-
raise ActiveResource::BadRequest, ""
|
19
|
+
raise ActiveResource::BadRequest, "" unless file.instance_of?(File)
|
20
20
|
|
21
21
|
upload(file, prefix_options)
|
22
22
|
end
|
@@ -21,7 +21,7 @@ module DocomoNlu
|
|
21
21
|
class << self
|
22
22
|
def create(file, prefix_options)
|
23
23
|
check_prefix_options(prefix_options)
|
24
|
-
raise ActiveResource::BadRequest, ""
|
24
|
+
raise ActiveResource::BadRequest, "" unless file.instance_of?(File)
|
25
25
|
|
26
26
|
upload(file, prefix_options)
|
27
27
|
end
|
@@ -19,8 +19,8 @@ module DocomoNlu
|
|
19
19
|
clientVer: "1.0.4",
|
20
20
|
language: "ja-JP",
|
21
21
|
location: { lat: "0", lon: "0" },
|
22
|
-
appRecvTime: Time.
|
23
|
-
appSendTime: Time.
|
22
|
+
appRecvTime: Time.now.strftime("%Y-%m-%d %H:%M:%S"),
|
23
|
+
appSendTime: Time.now.strftime("%Y-%m-%d %H:%M:%S"),
|
24
24
|
}.each do |k, v|
|
25
25
|
@attributes.store(k, v)
|
26
26
|
end
|
data/lib/docomo_nlu/version.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koji Yamazaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -104,16 +104,16 @@ dependencies:
|
|
104
104
|
name: rails
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 5.2.5
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 5.2.5
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: reek
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|