docomo-nlu 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +32 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +198 -0
- data/README.md +38 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/docomo-nlu.gemspec +37 -0
- data/lib/docomo-nlu.rb +11 -0
- data/lib/docomo-nlu/config.rb +25 -0
- data/lib/docomo-nlu/management.rb +28 -0
- data/lib/docomo-nlu/management/account.rb +32 -0
- data/lib/docomo-nlu/management/aiml_base.rb +126 -0
- data/lib/docomo-nlu/management/base.rb +87 -0
- data/lib/docomo-nlu/management/bot.rb +18 -0
- data/lib/docomo-nlu/management/config.rb +25 -0
- data/lib/docomo-nlu/management/default_predicate.rb +15 -0
- data/lib/docomo-nlu/management/map.rb +10 -0
- data/lib/docomo-nlu/management/multipart_base.rb +82 -0
- data/lib/docomo-nlu/management/ng_word.rb +10 -0
- data/lib/docomo-nlu/management/ok_word.rb +10 -0
- data/lib/docomo-nlu/management/organization.rb +23 -0
- data/lib/docomo-nlu/management/organization_member.rb +15 -0
- data/lib/docomo-nlu/management/predicate_name.rb +15 -0
- data/lib/docomo-nlu/management/project.rb +16 -0
- data/lib/docomo-nlu/management/project_member.rb +15 -0
- data/lib/docomo-nlu/management/property.rb +10 -0
- data/lib/docomo-nlu/management/provider.rb +17 -0
- data/lib/docomo-nlu/management/scenario.rb +18 -0
- data/lib/docomo-nlu/management/scenario_project.rb +10 -0
- data/lib/docomo-nlu/management/scenario_util.rb +30 -0
- data/lib/docomo-nlu/management/set.rb +10 -0
- data/lib/docomo-nlu/management/task_project.rb +20 -0
- data/lib/docomo-nlu/spontaneous.rb +8 -0
- data/lib/docomo-nlu/spontaneous/dialogue.rb +58 -0
- data/lib/docomo-nlu/spontaneous/registration.rb +58 -0
- data/lib/docomo-nlu/version.rb +5 -0
- data/lib/generators/docomo_nlu/install/install_generator.rb +11 -0
- data/lib/generators/templates/template.rb +7 -0
- data/vcr/vcr_cassettes/account/count.yml +42 -0
- data/vcr/vcr_cassettes/account/create.yml +44 -0
- data/vcr/vcr_cassettes/account/delete.yml +38 -0
- data/vcr/vcr_cassettes/account/index.yml +43 -0
- data/vcr/vcr_cassettes/account/show.yml +43 -0
- data/vcr/vcr_cassettes/account/update.yml +41 -0
- data/vcr/vcr_cassettes/baes/login.yml +44 -0
- data/vcr/vcr_cassettes/base/login.yml +44 -0
- data/vcr/vcr_cassettes/base/login_400.yml +42 -0
- data/vcr/vcr_cassettes/base/logout.yml +40 -0
- data/vcr/vcr_cassettes/base/logout_400.yml +40 -0
- data/vcr/vcr_cassettes/bot/create.yml +43 -0
- data/vcr/vcr_cassettes/bot/create_conflict.yml +45 -0
- data/vcr/vcr_cassettes/bot/delete.yml +38 -0
- data/vcr/vcr_cassettes/bot/deploy.yml +164 -0
- data/vcr/vcr_cassettes/bot/download_aiml.yml +51 -0
- data/vcr/vcr_cassettes/bot/download_archive.yml +43 -0
- data/vcr/vcr_cassettes/bot/download_dat.yml +43 -0
- data/vcr/vcr_cassettes/bot/index.yml +43 -0
- data/vcr/vcr_cassettes/bot/index_not_found.yml +42 -0
- data/vcr/vcr_cassettes/bot/show.yml +43 -0
- data/vcr/vcr_cassettes/bot/upload_aiml.yml +51 -0
- data/vcr/vcr_cassettes/bot/upload_archive.yml +46 -0
- data/vcr/vcr_cassettes/bot/upload_dat.yml +46 -0
- data/vcr/vcr_cassettes/config/delete.yml +38 -0
- data/vcr/vcr_cassettes/config/index.yml +120 -0
- data/vcr/vcr_cassettes/config/update.yml +42 -0
- data/vcr/vcr_cassettes/default_predicate/create.yml +42 -0
- data/vcr/vcr_cassettes/default_predicate/delete.yml +38 -0
- data/vcr/vcr_cassettes/default_predicate/index.yml +120 -0
- data/vcr/vcr_cassettes/default_predicate/index_not_found.yml +120 -0
- data/vcr/vcr_cassettes/default_predicate/update.yml +40 -0
- data/vcr/vcr_cassettes/map/create.yml +45 -0
- data/vcr/vcr_cassettes/map/create_400.yml +48 -0
- data/vcr/vcr_cassettes/map/delete.yml +38 -0
- data/vcr/vcr_cassettes/map/index_all.yml +43 -0
- data/vcr/vcr_cassettes/map/index_find.yml +43 -0
- data/vcr/vcr_cassettes/map/index_where.yml +43 -0
- data/vcr/vcr_cassettes/map/save.yml +45 -0
- data/vcr/vcr_cassettes/map/save_400.yml +48 -0
- data/vcr/vcr_cassettes/map/show_find.yml +43 -0
- data/vcr/vcr_cassettes/map/show_where.yml +43 -0
- data/vcr/vcr_cassettes/organization/create.yml +44 -0
- data/vcr/vcr_cassettes/organization/delete.yml +38 -0
- data/vcr/vcr_cassettes/organization/index.yml +42 -0
- data/vcr/vcr_cassettes/organization/show.yml +42 -0
- data/vcr/vcr_cassettes/organization/update.yml +40 -0
- data/vcr/vcr_cassettes/organization_member/create.yml +42 -0
- data/vcr/vcr_cassettes/organization_member/delete.yml +38 -0
- data/vcr/vcr_cassettes/organization_member/index.yml +42 -0
- data/vcr/vcr_cassettes/organization_member/index_404.yml +42 -0
- data/vcr/vcr_cassettes/organization_member/index_not_found.yml +42 -0
- data/vcr/vcr_cassettes/predicate_name/create.yml +42 -0
- data/vcr/vcr_cassettes/predicate_name/delete.yml +38 -0
- data/vcr/vcr_cassettes/predicate_name/index.yml +42 -0
- data/vcr/vcr_cassettes/predicate_name/index_all.yml +42 -0
- data/vcr/vcr_cassettes/predicate_name/index_find.yml +42 -0
- data/vcr/vcr_cassettes/predicate_name/index_where.yml +42 -0
- data/vcr/vcr_cassettes/project/create.yml +44 -0
- data/vcr/vcr_cassettes/project/create_conflict.yml +44 -0
- data/vcr/vcr_cassettes/project/delete.yml +38 -0
- data/vcr/vcr_cassettes/project/index.yml +227 -0
- data/vcr/vcr_cassettes/project/show.yml +43 -0
- data/vcr/vcr_cassettes/project_member/create.yml +42 -0
- data/vcr/vcr_cassettes/project_member/delete.yml +38 -0
- data/vcr/vcr_cassettes/project_member/index.yml +42 -0
- data/vcr/vcr_cassettes/project_member/index_403.yml +40 -0
- data/vcr/vcr_cassettes/project_member/index_not_found.yml +42 -0
- data/vcr/vcr_cassettes/provider/create.yml +44 -0
- data/vcr/vcr_cassettes/provider/delete.yml +38 -0
- data/vcr/vcr_cassettes/provider/index.yml +42 -0
- data/vcr/vcr_cassettes/provider/show.yml +42 -0
- data/vcr/vcr_cassettes/scenario/create.yml +42 -0
- data/vcr/vcr_cassettes/scenario/create_conflict.yml +44 -0
- data/vcr/vcr_cassettes/scenario/delete.yml +38 -0
- data/vcr/vcr_cassettes/scenario/deploy.yml +164 -0
- data/vcr/vcr_cassettes/scenario/download_aiml.yml +51 -0
- data/vcr/vcr_cassettes/scenario/index.yml +42 -0
- data/vcr/vcr_cassettes/scenario/index_not_found.yml +42 -0
- data/vcr/vcr_cassettes/scenario/show.yml +42 -0
- data/vcr/vcr_cassettes/scenario/update.yml +40 -0
- data/vcr/vcr_cassettes/scenario/upload.yml +51 -0
- data/vcr/vcr_cassettes/scenario/upload_aiml.yml +51 -0
- data/vcr/vcr_cassettes/scenario/upload_archive.yml +46 -0
- data/vcr/vcr_cassettes/scenario/upload_dat.yml +46 -0
- data/vcr/vcr_cassettes/set/create.yml +45 -0
- data/vcr/vcr_cassettes/set/create_400.yml +48 -0
- data/vcr/vcr_cassettes/set/delete.yml +38 -0
- data/vcr/vcr_cassettes/set/index_all.yml +42 -0
- data/vcr/vcr_cassettes/set/index_find.yml +42 -0
- data/vcr/vcr_cassettes/set/index_where.yml +42 -0
- data/vcr/vcr_cassettes/set/save.yml +45 -0
- data/vcr/vcr_cassettes/set/save_400.yml +48 -0
- data/vcr/vcr_cassettes/set/show_find.yml +43 -0
- data/vcr/vcr_cassettes/set/show_where.yml +43 -0
- metadata +336 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ac172fdbcc5a68b33228ce576ff488416a43f612955ed93d28a61f943a8d0eb4
|
4
|
+
data.tar.gz: f61d43d7ca626b0dbe5acc1bd0163541f42376ff7e34d95f0624dcf927b7fe66
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0c471bc12ee510abecb9c5db39d205aea6e8309d3215b7131563de908bfc14402228d1b7f735e674131d0e8c47b01708bb41ea9ec14b25980dfacc7a1f829750
|
7
|
+
data.tar.gz: e14975c34276d4b4efb8af8195eb8bf45c8c9fa0cdbf68ab5601025e8c115fd474a5b9c2fa08a453a1c74028633c73d1e14b56b2cce4536c951ab0a25398331f
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Modify the version if you don't use MRI 2.1.
|
2
|
+
inherit_gem:
|
3
|
+
onkcop:
|
4
|
+
- "config/rubocop.yml"
|
5
|
+
- "config/rails.yml"
|
6
|
+
- "config/rspec.yml"
|
7
|
+
AllCops:
|
8
|
+
TargetRubyVersion: 2.5
|
9
|
+
# If you use RuboCop with Ruby on Rails, specify TargetRailsVersion(default: 5.0).
|
10
|
+
TargetRailsVersion: 5.1
|
11
|
+
Include:
|
12
|
+
- rubocop-rspec
|
13
|
+
Rails:
|
14
|
+
# If you use RuboCop with Ruby on Rails, turn on this option.
|
15
|
+
Enabled: true
|
16
|
+
Naming/FileName:
|
17
|
+
Exclude:
|
18
|
+
- "Gemfile"
|
19
|
+
- "Rakefile"
|
20
|
+
- "Guardfile"
|
21
|
+
Rails/HasManyOrHasOneDependent:
|
22
|
+
Enabled: false
|
23
|
+
Rails/OutputSafety:
|
24
|
+
Exclude:
|
25
|
+
- "app/views/kaminari/**/*"
|
26
|
+
- "app/views/admin/kaminari/**/*"
|
27
|
+
Rails/SaveBang:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Rails/LexicallyScopedActionFilter:
|
31
|
+
Exclude:
|
32
|
+
- "app/controllers/concerns/main_agent_instance.rb"
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at kouji.yamazaki.cv@nttdocomo.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
docomo-nlu (0.1.1)
|
5
|
+
activeresource (~> 5.0.0)
|
6
|
+
bundler
|
7
|
+
faraday
|
8
|
+
rake
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
actioncable (5.2.1)
|
14
|
+
actionpack (= 5.2.1)
|
15
|
+
nio4r (~> 2.0)
|
16
|
+
websocket-driver (>= 0.6.1)
|
17
|
+
actionmailer (5.2.1)
|
18
|
+
actionpack (= 5.2.1)
|
19
|
+
actionview (= 5.2.1)
|
20
|
+
activejob (= 5.2.1)
|
21
|
+
mail (~> 2.5, >= 2.5.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
actionpack (5.2.1)
|
24
|
+
actionview (= 5.2.1)
|
25
|
+
activesupport (= 5.2.1)
|
26
|
+
rack (~> 2.0)
|
27
|
+
rack-test (>= 0.6.3)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
30
|
+
actionview (5.2.1)
|
31
|
+
activesupport (= 5.2.1)
|
32
|
+
builder (~> 3.1)
|
33
|
+
erubi (~> 1.4)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
36
|
+
activejob (5.2.1)
|
37
|
+
activesupport (= 5.2.1)
|
38
|
+
globalid (>= 0.3.6)
|
39
|
+
activemodel (5.2.1)
|
40
|
+
activesupport (= 5.2.1)
|
41
|
+
activemodel-serializers-xml (1.0.2)
|
42
|
+
activemodel (> 5.x)
|
43
|
+
activesupport (> 5.x)
|
44
|
+
builder (~> 3.1)
|
45
|
+
activerecord (5.2.1)
|
46
|
+
activemodel (= 5.2.1)
|
47
|
+
activesupport (= 5.2.1)
|
48
|
+
arel (>= 9.0)
|
49
|
+
activeresource (5.0.0)
|
50
|
+
activemodel (>= 5.0, < 6)
|
51
|
+
activemodel-serializers-xml (~> 1.0)
|
52
|
+
activesupport (>= 5.0, < 6)
|
53
|
+
activestorage (5.2.1)
|
54
|
+
actionpack (= 5.2.1)
|
55
|
+
activerecord (= 5.2.1)
|
56
|
+
marcel (~> 0.3.1)
|
57
|
+
activesupport (5.2.1)
|
58
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
59
|
+
i18n (>= 0.7, < 2)
|
60
|
+
minitest (~> 5.1)
|
61
|
+
tzinfo (~> 1.1)
|
62
|
+
addressable (2.5.2)
|
63
|
+
public_suffix (>= 2.0.2, < 4.0)
|
64
|
+
arel (9.0.0)
|
65
|
+
ast (2.4.0)
|
66
|
+
builder (3.2.3)
|
67
|
+
coderay (1.1.2)
|
68
|
+
concurrent-ruby (1.0.5)
|
69
|
+
crack (0.4.3)
|
70
|
+
safe_yaml (~> 1.0.0)
|
71
|
+
crass (1.0.4)
|
72
|
+
diff-lcs (1.3)
|
73
|
+
erubi (1.7.1)
|
74
|
+
faraday (0.15.2)
|
75
|
+
multipart-post (>= 1.2, < 3)
|
76
|
+
globalid (0.4.1)
|
77
|
+
activesupport (>= 4.2.0)
|
78
|
+
hashdiff (0.3.7)
|
79
|
+
i18n (1.1.0)
|
80
|
+
concurrent-ruby (~> 1.0)
|
81
|
+
jaro_winkler (1.5.1)
|
82
|
+
loofah (2.2.2)
|
83
|
+
crass (~> 1.0.2)
|
84
|
+
nokogiri (>= 1.5.9)
|
85
|
+
mail (2.7.0)
|
86
|
+
mini_mime (>= 0.1.1)
|
87
|
+
marcel (0.3.2)
|
88
|
+
mimemagic (~> 0.3.2)
|
89
|
+
method_source (0.9.0)
|
90
|
+
mimemagic (0.3.2)
|
91
|
+
mini_mime (1.0.1)
|
92
|
+
mini_portile2 (2.3.0)
|
93
|
+
minitest (5.11.3)
|
94
|
+
multipart-post (2.0.0)
|
95
|
+
nio4r (2.3.1)
|
96
|
+
nokogiri (1.8.4)
|
97
|
+
mini_portile2 (~> 2.3.0)
|
98
|
+
onkcop (0.53.0.1)
|
99
|
+
rubocop (>= 0.53.0)
|
100
|
+
rubocop-rspec (>= 1.24.0)
|
101
|
+
parallel (1.12.1)
|
102
|
+
parser (2.5.1.2)
|
103
|
+
ast (~> 2.4.0)
|
104
|
+
powerpack (0.1.2)
|
105
|
+
pry (0.11.3)
|
106
|
+
coderay (~> 1.1.0)
|
107
|
+
method_source (~> 0.9.0)
|
108
|
+
public_suffix (3.0.3)
|
109
|
+
rack (2.0.5)
|
110
|
+
rack-test (1.1.0)
|
111
|
+
rack (>= 1.0, < 3)
|
112
|
+
rails (5.2.1)
|
113
|
+
actioncable (= 5.2.1)
|
114
|
+
actionmailer (= 5.2.1)
|
115
|
+
actionpack (= 5.2.1)
|
116
|
+
actionview (= 5.2.1)
|
117
|
+
activejob (= 5.2.1)
|
118
|
+
activemodel (= 5.2.1)
|
119
|
+
activerecord (= 5.2.1)
|
120
|
+
activestorage (= 5.2.1)
|
121
|
+
activesupport (= 5.2.1)
|
122
|
+
bundler (>= 1.3.0)
|
123
|
+
railties (= 5.2.1)
|
124
|
+
sprockets-rails (>= 2.0.0)
|
125
|
+
rails-dom-testing (2.0.3)
|
126
|
+
activesupport (>= 4.2.0)
|
127
|
+
nokogiri (>= 1.6)
|
128
|
+
rails-html-sanitizer (1.0.4)
|
129
|
+
loofah (~> 2.2, >= 2.2.2)
|
130
|
+
railties (5.2.1)
|
131
|
+
actionpack (= 5.2.1)
|
132
|
+
activesupport (= 5.2.1)
|
133
|
+
method_source
|
134
|
+
rake (>= 0.8.7)
|
135
|
+
thor (>= 0.19.0, < 2.0)
|
136
|
+
rainbow (3.0.0)
|
137
|
+
rake (12.3.1)
|
138
|
+
rspec (3.8.0)
|
139
|
+
rspec-core (~> 3.8.0)
|
140
|
+
rspec-expectations (~> 3.8.0)
|
141
|
+
rspec-mocks (~> 3.8.0)
|
142
|
+
rspec-core (3.8.0)
|
143
|
+
rspec-support (~> 3.8.0)
|
144
|
+
rspec-expectations (3.8.1)
|
145
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
146
|
+
rspec-support (~> 3.8.0)
|
147
|
+
rspec-mocks (3.8.0)
|
148
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
149
|
+
rspec-support (~> 3.8.0)
|
150
|
+
rspec-support (3.8.0)
|
151
|
+
rubocop (0.58.2)
|
152
|
+
jaro_winkler (~> 1.5.1)
|
153
|
+
parallel (~> 1.10)
|
154
|
+
parser (>= 2.5, != 2.5.1.1)
|
155
|
+
powerpack (~> 0.1)
|
156
|
+
rainbow (>= 2.2.2, < 4.0)
|
157
|
+
ruby-progressbar (~> 1.7)
|
158
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
159
|
+
rubocop-rspec (1.29.1)
|
160
|
+
rubocop (>= 0.58.0)
|
161
|
+
ruby-progressbar (1.10.0)
|
162
|
+
safe_yaml (1.0.4)
|
163
|
+
sprockets (3.7.2)
|
164
|
+
concurrent-ruby (~> 1.0)
|
165
|
+
rack (> 1, < 3)
|
166
|
+
sprockets-rails (3.2.1)
|
167
|
+
actionpack (>= 4.0)
|
168
|
+
activesupport (>= 4.0)
|
169
|
+
sprockets (>= 3.0.0)
|
170
|
+
thor (0.20.0)
|
171
|
+
thread_safe (0.3.6)
|
172
|
+
tzinfo (1.2.5)
|
173
|
+
thread_safe (~> 0.1)
|
174
|
+
unicode-display_width (1.4.0)
|
175
|
+
vcr (4.0.0)
|
176
|
+
webmock (3.4.2)
|
177
|
+
addressable (>= 2.3.6)
|
178
|
+
crack (>= 0.3.2)
|
179
|
+
hashdiff
|
180
|
+
websocket-driver (0.7.0)
|
181
|
+
websocket-extensions (>= 0.1.0)
|
182
|
+
websocket-extensions (0.1.3)
|
183
|
+
|
184
|
+
PLATFORMS
|
185
|
+
ruby
|
186
|
+
|
187
|
+
DEPENDENCIES
|
188
|
+
docomo-nlu!
|
189
|
+
onkcop
|
190
|
+
pry (~> 0.11.3)
|
191
|
+
rails
|
192
|
+
rspec
|
193
|
+
rubocop (~> 0.58.2)
|
194
|
+
vcr (~> 4.0.0)
|
195
|
+
webmock (~> 3.4.2)
|
196
|
+
|
197
|
+
BUNDLED WITH
|
198
|
+
1.16.3
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# DocomoNlu
|
2
|
+
|
3
|
+
DocomoNlu is a HTTP Client library that provides simple way to access to NLPManagementAPI of docomo NLU.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'docomo-nlu'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute: `bundle install`
|
14
|
+
|
15
|
+
## Getting Started
|
16
|
+
|
17
|
+
You can use generator command to setup.
|
18
|
+
|
19
|
+
```
|
20
|
+
$ bundle exec rails generate docomo_nlu:install
|
21
|
+
```
|
22
|
+
|
23
|
+
The generator command will install an initializer to `config/initializer/docomo-nlu.rb`, which all docomo-nlu options.
|
24
|
+
|
25
|
+
|
26
|
+
## Development
|
27
|
+
|
28
|
+
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.
|
29
|
+
|
30
|
+
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).
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jagrament/docomo-nlu. 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.
|
35
|
+
|
36
|
+
## Code of Conduct
|
37
|
+
|
38
|
+
Everyone interacting in the DocomoNlu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jagrament/docomo-nlu/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "docomo-nlu"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
require "pry"
|
12
|
+
Pry.start
|
13
|
+
|
14
|
+
# require 'irb'
|
15
|
+
# IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/docomo-nlu.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'docomo-nlu/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'docomo-nlu'
|
9
|
+
spec.version = DocomoNlu::VERSION
|
10
|
+
spec.authors = ['Koji Yamazaki']
|
11
|
+
spec.email = ['kouji.yamazaki.cv@nttdocomo.com']
|
12
|
+
|
13
|
+
spec.summary = 'API Client of docomo NLPManagementAPI for ruby.'
|
14
|
+
spec.description = 'API Client of docomo NLPManagementAPI for ruby.'
|
15
|
+
spec.homepage = 'https://github.com/jagrament/docomo-nlu'
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = 'exe'
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.add_dependency 'activeresource', '~> 5.0.0'
|
27
|
+
spec.add_dependency 'bundler'
|
28
|
+
spec.add_dependency 'faraday'
|
29
|
+
spec.add_dependency 'rake'
|
30
|
+
spec.add_development_dependency 'rails'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'onkcop'
|
33
|
+
spec.add_development_dependency 'pry', '~> 0.11.3'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.58.2'
|
35
|
+
spec.add_development_dependency 'vcr', '~> 4.0.0'
|
36
|
+
spec.add_development_dependency 'webmock', '~> 3.4.2'
|
37
|
+
end
|