docomo-nlu 0.2.5 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +48 -0
  3. data/.reek.yml +98 -0
  4. data/.rubocop.rspec.yml +67 -0
  5. data/.rubocop.ruby.yml +419 -0
  6. data/.rubocop.yml +20 -11
  7. data/.ruby-version +1 -1
  8. data/Gemfile.lock +115 -131
  9. data/docomo-nlu.gemspec +8 -7
  10. data/lib/docomo-nlu.rb +4 -4
  11. data/lib/{docomo-nlu → docomo_nlu}/config.rb +3 -3
  12. data/lib/docomo_nlu/management.rb +31 -0
  13. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/account.rb +1 -1
  14. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/aiml_base.rb +14 -8
  15. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/base.rb +4 -4
  16. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/bot.rb +1 -1
  17. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/bot_log.rb +13 -9
  18. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/config.rb +1 -1
  19. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/default_predicate.rb +1 -1
  20. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/entry.rb +1 -2
  21. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/log.rb +8 -8
  22. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/map.rb +1 -1
  23. data/lib/docomo_nlu/management/multipart_base.rb +85 -0
  24. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/ng_word.rb +1 -1
  25. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/ok_word.rb +1 -1
  26. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/organization.rb +1 -1
  27. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/organization_member.rb +1 -1
  28. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/predicate_name.rb +1 -1
  29. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/project.rb +1 -1
  30. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/project_member.rb +1 -1
  31. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/property.rb +1 -1
  32. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/provider.rb +1 -1
  33. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/scenario.rb +2 -2
  34. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/scenario_project.rb +1 -1
  35. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/scenario_util.rb +4 -4
  36. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/set.rb +1 -1
  37. data/lib/{docomo-nlu/management/V26 → docomo_nlu/management}/task_project.rb +1 -1
  38. data/lib/{docomo-nlu → docomo_nlu}/spontaneous.rb +8 -8
  39. data/lib/{docomo-nlu → docomo_nlu}/version.rb +1 -1
  40. data/vcr/vcr_cassettes/{V26 → management}/account/count.yml +0 -0
  41. data/vcr/vcr_cassettes/{V26 → management}/account/create.yml +0 -0
  42. data/vcr/vcr_cassettes/{V26 → management}/account/delete.yml +0 -0
  43. data/vcr/vcr_cassettes/{V26 → management}/account/index.yml +0 -0
  44. data/vcr/vcr_cassettes/{V26 → management}/account/show.yml +0 -0
  45. data/vcr/vcr_cassettes/{V26 → management}/account/update.yml +0 -0
  46. data/vcr/vcr_cassettes/{V26 → management}/base/login.yml +0 -0
  47. data/vcr/vcr_cassettes/{V26 → management}/base/login_400.yml +0 -0
  48. data/vcr/vcr_cassettes/{V26 → management}/base/logout.yml +0 -0
  49. data/vcr/vcr_cassettes/{V26 → management}/base/logout_400.yml +0 -0
  50. data/vcr/vcr_cassettes/{V26 → management}/bot/create.yml +0 -0
  51. data/vcr/vcr_cassettes/{V26 → management}/bot/create_conflict.yml +0 -0
  52. data/vcr/vcr_cassettes/{V26 → management}/bot/delete.yml +0 -0
  53. data/vcr/vcr_cassettes/{V26 → management}/bot/deploy.yml +0 -0
  54. data/vcr/vcr_cassettes/{V26 → management}/bot/download_aiml.yml +0 -0
  55. data/vcr/vcr_cassettes/{V26 → management}/bot/download_archive.yml +0 -0
  56. data/vcr/vcr_cassettes/{V26 → management}/bot/download_dat.yml +0 -0
  57. data/vcr/vcr_cassettes/{V26 → management}/bot/index.yml +0 -0
  58. data/vcr/vcr_cassettes/{V26 → management}/bot/index_not_found.yml +0 -0
  59. data/vcr/vcr_cassettes/{V26 → management}/bot/show.yml +0 -0
  60. data/vcr/vcr_cassettes/{V26 → management}/bot/upload_aiml.yml +0 -0
  61. data/vcr/vcr_cassettes/{V26 → management}/bot/upload_archive.yml +0 -0
  62. data/vcr/vcr_cassettes/{V26 → management}/bot/upload_dat.yml +0 -0
  63. data/vcr/vcr_cassettes/{V26 → management}/bot_log/all.yml +1 -1
  64. data/vcr/vcr_cassettes/{V26 → management}/bot_log/query.yml +1 -1
  65. data/vcr/vcr_cassettes/{V26 → management}/config/delete.yml +0 -0
  66. data/vcr/vcr_cassettes/{V26 → management}/config/index.yml +0 -0
  67. data/vcr/vcr_cassettes/{V26 → management}/config/show.yml +0 -0
  68. data/vcr/vcr_cassettes/{V26 → management}/config/update.yml +0 -0
  69. data/vcr/vcr_cassettes/{V26 → management}/default_predicate/create.yml +0 -0
  70. data/vcr/vcr_cassettes/{V26 → management}/default_predicate/delete.yml +0 -0
  71. data/vcr/vcr_cassettes/{V26 → management}/default_predicate/index.yml +0 -0
  72. data/vcr/vcr_cassettes/{V26 → management}/default_predicate/index_not_found.yml +0 -0
  73. data/vcr/vcr_cassettes/{V26 → management}/default_predicate/update.yml +0 -0
  74. data/vcr/vcr_cassettes/{V26 → management}/entry/delete.yml +0 -0
  75. data/vcr/vcr_cassettes/{V26 → management}/entry/save.yml +0 -0
  76. data/vcr/vcr_cassettes/{V26 → management}/log/all.yml +1 -1
  77. data/vcr/vcr_cassettes/{V26 → management}/log/count.yml +1 -1
  78. data/vcr/vcr_cassettes/{V26 → management}/log/count/all.yml +1 -1
  79. data/vcr/vcr_cassettes/{V26 → management}/log/count/query.yml +1 -1
  80. data/vcr/vcr_cassettes/{V26 → management}/log/query.yml +1 -1
  81. data/vcr/vcr_cassettes/{V26 → management}/map/create.yml +6 -6
  82. data/vcr/vcr_cassettes/{V26 → management}/map/create_400.yml +0 -0
  83. data/vcr/vcr_cassettes/{V26 → management}/map/delete.yml +2 -2
  84. data/vcr/vcr_cassettes/{V26 → management}/map/index_all.yml +0 -0
  85. data/vcr/vcr_cassettes/{V26 → management}/map/index_find.yml +0 -0
  86. data/vcr/vcr_cassettes/{V26 → management}/map/index_where.yml +0 -0
  87. data/vcr/vcr_cassettes/{V26 → management}/map/save.yml +0 -0
  88. data/vcr/vcr_cassettes/{V26 → management}/map/save_400.yml +0 -0
  89. data/vcr/vcr_cassettes/{V26 → management}/map/show_find.yml +3 -3
  90. data/vcr/vcr_cassettes/{V26 → management}/map/show_where.yml +0 -0
  91. data/vcr/vcr_cassettes/{V26 → management}/organization/create.yml +0 -0
  92. data/vcr/vcr_cassettes/{V26 → management}/organization/delete.yml +0 -0
  93. data/vcr/vcr_cassettes/{V26 → management}/organization/index.yml +0 -0
  94. data/vcr/vcr_cassettes/{V26 → management}/organization/show.yml +0 -0
  95. data/vcr/vcr_cassettes/{V26 → management}/organization/update.yml +0 -0
  96. data/vcr/vcr_cassettes/{V26 → management}/organization_member/create.yml +0 -0
  97. data/vcr/vcr_cassettes/{V26 → management}/organization_member/delete.yml +0 -0
  98. data/vcr/vcr_cassettes/{V26 → management}/organization_member/index.yml +0 -0
  99. data/vcr/vcr_cassettes/{V26 → management}/organization_member/index_404.yml +0 -0
  100. data/vcr/vcr_cassettes/{V26 → management}/organization_member/index_not_found.yml +0 -0
  101. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/create.yml +0 -0
  102. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/delete.yml +0 -0
  103. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/index.yml +0 -0
  104. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/index_all.yml +0 -0
  105. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/index_find.yml +0 -0
  106. data/vcr/vcr_cassettes/{V26 → management}/predicate_name/index_where.yml +0 -0
  107. data/vcr/vcr_cassettes/{V26 → management}/project/create.yml +0 -0
  108. data/vcr/vcr_cassettes/{V26 → management}/project/create_conflict.yml +0 -0
  109. data/vcr/vcr_cassettes/{V26 → management}/project/delete.yml +0 -0
  110. data/vcr/vcr_cassettes/{V26 → management}/project/index.yml +0 -0
  111. data/vcr/vcr_cassettes/{V26 → management}/project/show.yml +0 -0
  112. data/vcr/vcr_cassettes/{V26 → management}/project_member/create.yml +0 -0
  113. data/vcr/vcr_cassettes/{V26 → management}/project_member/delete.yml +0 -0
  114. data/vcr/vcr_cassettes/{V26 → management}/project_member/index.yml +0 -0
  115. data/vcr/vcr_cassettes/{V26 → management}/project_member/index_403.yml +0 -0
  116. data/vcr/vcr_cassettes/{V26 → management}/project_member/index_not_found.yml +0 -0
  117. data/vcr/vcr_cassettes/{V26 → management}/provider/create.yml +0 -0
  118. data/vcr/vcr_cassettes/{V26 → management}/provider/delete.yml +0 -0
  119. data/vcr/vcr_cassettes/{V26 → management}/provider/index.yml +0 -0
  120. data/vcr/vcr_cassettes/{V26 → management}/provider/show.yml +0 -0
  121. data/vcr/vcr_cassettes/{V26 → management}/scenario/create.yml +0 -0
  122. data/vcr/vcr_cassettes/{V26 → management}/scenario/create_conflict.yml +0 -0
  123. data/vcr/vcr_cassettes/{V26 → management}/scenario/delete.yml +0 -0
  124. data/vcr/vcr_cassettes/{V26 → management}/scenario/deploy.yml +0 -0
  125. data/vcr/vcr_cassettes/{V26 → management}/scenario/download_aiml.yml +0 -0
  126. data/vcr/vcr_cassettes/{V26 → management}/scenario/index.yml +0 -0
  127. data/vcr/vcr_cassettes/{V26 → management}/scenario/show.yml +0 -0
  128. data/vcr/vcr_cassettes/{V26 → management}/scenario/update.yml +0 -0
  129. data/vcr/vcr_cassettes/{V26 → management}/scenario/upload_aiml.yml +0 -0
  130. data/vcr/vcr_cassettes/{V26 → management}/scenario/upload_archive.yml +0 -0
  131. data/vcr/vcr_cassettes/{V26 → management}/scenario/upload_dat.yml +0 -0
  132. data/vcr/vcr_cassettes/{V26 → management}/set/create.yml +0 -0
  133. data/vcr/vcr_cassettes/{V26 → management}/set/create_400.yml +0 -0
  134. data/vcr/vcr_cassettes/{V26 → management}/set/delete.yml +0 -0
  135. data/vcr/vcr_cassettes/{V26 → management}/set/index_all.yml +0 -0
  136. data/vcr/vcr_cassettes/{V26 → management}/set/index_find.yml +0 -0
  137. data/vcr/vcr_cassettes/{V26 → management}/set/index_where.yml +0 -0
  138. data/vcr/vcr_cassettes/{V26 → management}/set/save.yml +0 -0
  139. data/vcr/vcr_cassettes/{V26 → management}/set/save_400.yml +0 -0
  140. data/vcr/vcr_cassettes/{V26 → management}/set/show_find.yml +0 -0
  141. data/vcr/vcr_cassettes/{V26 → management}/set/show_where.yml +0 -0
  142. metadata +184 -278
  143. data/lib/docomo-nlu/management.rb +0 -88
  144. data/lib/docomo-nlu/management/V23/account.rb +0 -30
  145. data/lib/docomo-nlu/management/V23/aiml_base.rb +0 -204
  146. data/lib/docomo-nlu/management/V23/base.rb +0 -88
  147. data/lib/docomo-nlu/management/V23/bot.rb +0 -18
  148. data/lib/docomo-nlu/management/V23/bot_log.rb +0 -8
  149. data/lib/docomo-nlu/management/V23/config.rb +0 -25
  150. data/lib/docomo-nlu/management/V23/default_predicate.rb +0 -15
  151. data/lib/docomo-nlu/management/V23/entry.rb +0 -8
  152. data/lib/docomo-nlu/management/V23/log.rb +0 -8
  153. data/lib/docomo-nlu/management/V23/map.rb +0 -10
  154. data/lib/docomo-nlu/management/V23/multipart_base.rb +0 -83
  155. data/lib/docomo-nlu/management/V23/ng_word.rb +0 -10
  156. data/lib/docomo-nlu/management/V23/ok_word.rb +0 -10
  157. data/lib/docomo-nlu/management/V23/organization.rb +0 -23
  158. data/lib/docomo-nlu/management/V23/organization_member.rb +0 -15
  159. data/lib/docomo-nlu/management/V23/predicate_name.rb +0 -15
  160. data/lib/docomo-nlu/management/V23/project.rb +0 -16
  161. data/lib/docomo-nlu/management/V23/project_member.rb +0 -15
  162. data/lib/docomo-nlu/management/V23/property.rb +0 -10
  163. data/lib/docomo-nlu/management/V23/provider.rb +0 -17
  164. data/lib/docomo-nlu/management/V23/scenario.rb +0 -29
  165. data/lib/docomo-nlu/management/V23/scenario_project.rb +0 -10
  166. data/lib/docomo-nlu/management/V23/scenario_util.rb +0 -30
  167. data/lib/docomo-nlu/management/V23/set.rb +0 -10
  168. data/lib/docomo-nlu/management/V23/task_project.rb +0 -20
  169. data/lib/docomo-nlu/management/V26/multipart_base.rb +0 -83
  170. data/vcr/vcr_cassettes/V23/account/count.yml +0 -42
  171. data/vcr/vcr_cassettes/V23/account/create.yml +0 -44
  172. data/vcr/vcr_cassettes/V23/account/delete.yml +0 -38
  173. data/vcr/vcr_cassettes/V23/account/index.yml +0 -43
  174. data/vcr/vcr_cassettes/V23/account/show.yml +0 -43
  175. data/vcr/vcr_cassettes/V23/account/update.yml +0 -41
  176. data/vcr/vcr_cassettes/V23/base/login.yml +0 -44
  177. data/vcr/vcr_cassettes/V23/base/login_400.yml +0 -42
  178. data/vcr/vcr_cassettes/V23/base/logout.yml +0 -40
  179. data/vcr/vcr_cassettes/V23/base/logout_400.yml +0 -40
  180. data/vcr/vcr_cassettes/V23/bot/create.yml +0 -43
  181. data/vcr/vcr_cassettes/V23/bot/create_conflict.yml +0 -45
  182. data/vcr/vcr_cassettes/V23/bot/delete.yml +0 -38
  183. data/vcr/vcr_cassettes/V23/bot/deploy.yml +0 -164
  184. data/vcr/vcr_cassettes/V23/bot/download_aiml.yml +0 -43
  185. data/vcr/vcr_cassettes/V23/bot/download_archive.yml +0 -43
  186. data/vcr/vcr_cassettes/V23/bot/download_dat.yml +0 -43
  187. data/vcr/vcr_cassettes/V23/bot/index.yml +0 -44
  188. data/vcr/vcr_cassettes/V23/bot/index_not_found.yml +0 -42
  189. data/vcr/vcr_cassettes/V23/bot/show.yml +0 -43
  190. data/vcr/vcr_cassettes/V23/bot/upload_aiml.yml +0 -45
  191. data/vcr/vcr_cassettes/V23/bot/upload_archive.yml +0 -46
  192. data/vcr/vcr_cassettes/V23/bot/upload_dat.yml +0 -46
  193. data/vcr/vcr_cassettes/V23/config/delete.yml +0 -38
  194. data/vcr/vcr_cassettes/V23/config/index.yml +0 -120
  195. data/vcr/vcr_cassettes/V23/config/update.yml +0 -42
  196. data/vcr/vcr_cassettes/V23/default_predicate/create.yml +0 -42
  197. data/vcr/vcr_cassettes/V23/default_predicate/delete.yml +0 -38
  198. data/vcr/vcr_cassettes/V23/default_predicate/index.yml +0 -120
  199. data/vcr/vcr_cassettes/V23/default_predicate/index_not_found.yml +0 -120
  200. data/vcr/vcr_cassettes/V23/default_predicate/update.yml +0 -40
  201. data/vcr/vcr_cassettes/V23/map/create.yml +0 -45
  202. data/vcr/vcr_cassettes/V23/map/create_400.yml +0 -48
  203. data/vcr/vcr_cassettes/V23/map/delete.yml +0 -38
  204. data/vcr/vcr_cassettes/V23/map/index_all.yml +0 -43
  205. data/vcr/vcr_cassettes/V23/map/index_find.yml +0 -43
  206. data/vcr/vcr_cassettes/V23/map/index_where.yml +0 -43
  207. data/vcr/vcr_cassettes/V23/map/save.yml +0 -45
  208. data/vcr/vcr_cassettes/V23/map/save_400.yml +0 -48
  209. data/vcr/vcr_cassettes/V23/map/show_find.yml +0 -43
  210. data/vcr/vcr_cassettes/V23/map/show_where.yml +0 -43
  211. data/vcr/vcr_cassettes/V23/organization/create.yml +0 -44
  212. data/vcr/vcr_cassettes/V23/organization/delete.yml +0 -38
  213. data/vcr/vcr_cassettes/V23/organization/index.yml +0 -138
  214. data/vcr/vcr_cassettes/V23/organization/show.yml +0 -42
  215. data/vcr/vcr_cassettes/V23/organization/update.yml +0 -40
  216. data/vcr/vcr_cassettes/V23/organization_member/create.yml +0 -42
  217. data/vcr/vcr_cassettes/V23/organization_member/delete.yml +0 -38
  218. data/vcr/vcr_cassettes/V23/organization_member/index.yml +0 -42
  219. data/vcr/vcr_cassettes/V23/organization_member/index_404.yml +0 -42
  220. data/vcr/vcr_cassettes/V23/organization_member/index_not_found.yml +0 -42
  221. data/vcr/vcr_cassettes/V23/predicate_name/create.yml +0 -42
  222. data/vcr/vcr_cassettes/V23/predicate_name/delete.yml +0 -38
  223. data/vcr/vcr_cassettes/V23/predicate_name/index.yml +0 -42
  224. data/vcr/vcr_cassettes/V23/predicate_name/index_all.yml +0 -42
  225. data/vcr/vcr_cassettes/V23/predicate_name/index_find.yml +0 -42
  226. data/vcr/vcr_cassettes/V23/predicate_name/index_where.yml +0 -42
  227. data/vcr/vcr_cassettes/V23/project/create.yml +0 -44
  228. data/vcr/vcr_cassettes/V23/project/create_conflict.yml +0 -44
  229. data/vcr/vcr_cassettes/V23/project/delete.yml +0 -38
  230. data/vcr/vcr_cassettes/V23/project/index.yml +0 -474
  231. data/vcr/vcr_cassettes/V23/project/show.yml +0 -43
  232. data/vcr/vcr_cassettes/V23/project_member/create.yml +0 -42
  233. data/vcr/vcr_cassettes/V23/project_member/delete.yml +0 -38
  234. data/vcr/vcr_cassettes/V23/project_member/index.yml +0 -42
  235. data/vcr/vcr_cassettes/V23/project_member/index_403.yml +0 -40
  236. data/vcr/vcr_cassettes/V23/project_member/index_not_found.yml +0 -42
  237. data/vcr/vcr_cassettes/V23/provider/create.yml +0 -44
  238. data/vcr/vcr_cassettes/V23/provider/delete.yml +0 -38
  239. data/vcr/vcr_cassettes/V23/provider/index.yml +0 -42
  240. data/vcr/vcr_cassettes/V23/provider/show.yml +0 -42
  241. data/vcr/vcr_cassettes/V23/scenario/create.yml +0 -42
  242. data/vcr/vcr_cassettes/V23/scenario/create_conflict.yml +0 -44
  243. data/vcr/vcr_cassettes/V23/scenario/delete.yml +0 -38
  244. data/vcr/vcr_cassettes/V23/scenario/deploy.yml +0 -164
  245. data/vcr/vcr_cassettes/V23/scenario/download_aiml.yml +0 -43
  246. data/vcr/vcr_cassettes/V23/scenario/index.yml +0 -43
  247. data/vcr/vcr_cassettes/V23/scenario/show.yml +0 -42
  248. data/vcr/vcr_cassettes/V23/scenario/update.yml +0 -40
  249. data/vcr/vcr_cassettes/V23/scenario/upload_aiml.yml +0 -45
  250. data/vcr/vcr_cassettes/V23/scenario/upload_archive.yml +0 -46
  251. data/vcr/vcr_cassettes/V23/scenario/upload_dat.yml +0 -46
  252. data/vcr/vcr_cassettes/V23/set/create.yml +0 -45
  253. data/vcr/vcr_cassettes/V23/set/create_400.yml +0 -48
  254. data/vcr/vcr_cassettes/V23/set/delete.yml +0 -38
  255. data/vcr/vcr_cassettes/V23/set/index_all.yml +0 -43
  256. data/vcr/vcr_cassettes/V23/set/index_find.yml +0 -43
  257. data/vcr/vcr_cassettes/V23/set/index_where.yml +0 -43
  258. data/vcr/vcr_cassettes/V23/set/save.yml +0 -45
  259. data/vcr/vcr_cassettes/V23/set/save_400.yml +0 -48
  260. data/vcr/vcr_cassettes/V23/set/show_find.yml +0 -43
  261. data/vcr/vcr_cassettes/V23/set/show_where.yml +0 -43
@@ -1,21 +1,30 @@
1
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"
2
+ inherit_from:
3
+ - .rubocop.ruby.yml
4
+ - .rubocop.rspec.yml
5
+
6
+ require:
7
+ - rubocop-performance
8
+ - rubocop-rspec
9
+
7
10
  AllCops:
8
11
  TargetRubyVersion: 2.5
9
- # If you use RuboCop with Ruby on Rails, specify TargetRailsVersion(default: 5.0).
10
- TargetRailsVersion: 5.1
12
+
11
13
  Rails:
12
- # If you use RuboCop with Ruby on Rails, turn on this option.
13
14
  Enabled: true
14
15
  Naming/FileName:
15
16
  Exclude:
16
17
  - "Gemfile"
17
18
  - "Rakefile"
18
- Rails/HasManyOrHasOneDependent:
19
+ - "lib/docomo-nlu.rb"
20
+ RSpec/EmptyExampleGroup:
19
21
  Enabled: false
20
- Rails/SaveBang:
21
- Enabled: false
22
+ RSpec/FilePath:
23
+ CustomTransform:
24
+ DocomoNlu: docomo_nlu
25
+ RSpec/MultipleExpectations:
26
+ Max: 5
27
+ RSpec/LeakyConstantDeclaration:
28
+ Enabled: false
29
+ RSpec/DescribedClass:
30
+ EnforcedStyle: described_class
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.3
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docomo-nlu (0.2.5)
5
- activeresource (~> 5.0.0)
4
+ docomo-nlu (0.3.2)
5
+ activeresource (>= 5.0, < 5.2)
6
6
  bundler
7
7
  faraday
8
8
  rake
@@ -11,215 +11,199 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actioncable (5.2.1)
15
- actionpack (= 5.2.1)
14
+ actioncable (5.2.4.3)
15
+ actionpack (= 5.2.4.3)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailer (5.2.1)
19
- actionpack (= 5.2.1)
20
- actionview (= 5.2.1)
21
- activejob (= 5.2.1)
18
+ actionmailer (5.2.4.3)
19
+ actionpack (= 5.2.4.3)
20
+ actionview (= 5.2.4.3)
21
+ activejob (= 5.2.4.3)
22
22
  mail (~> 2.5, >= 2.5.4)
23
23
  rails-dom-testing (~> 2.0)
24
- actionpack (5.2.1)
25
- actionview (= 5.2.1)
26
- activesupport (= 5.2.1)
27
- rack (~> 2.0)
24
+ actionpack (5.2.4.3)
25
+ actionview (= 5.2.4.3)
26
+ activesupport (= 5.2.4.3)
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.1)
32
- activesupport (= 5.2.1)
31
+ actionview (5.2.4.3)
32
+ activesupport (= 5.2.4.3)
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.1)
38
- activesupport (= 5.2.1)
37
+ activejob (5.2.4.3)
38
+ activesupport (= 5.2.4.3)
39
39
  globalid (>= 0.3.6)
40
- activemodel (5.2.1)
41
- activesupport (= 5.2.1)
40
+ activemodel (5.2.4.3)
41
+ activesupport (= 5.2.4.3)
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.1)
47
- activemodel (= 5.2.1)
48
- activesupport (= 5.2.1)
46
+ activerecord (5.2.4.3)
47
+ activemodel (= 5.2.4.3)
48
+ activesupport (= 5.2.4.3)
49
49
  arel (>= 9.0)
50
- activeresource (5.0.0)
51
- activemodel (>= 5.0, < 6)
50
+ activeresource (5.1.1)
51
+ activemodel (>= 5.0, < 7)
52
52
  activemodel-serializers-xml (~> 1.0)
53
- activesupport (>= 5.0, < 6)
54
- activestorage (5.2.1)
55
- actionpack (= 5.2.1)
56
- activerecord (= 5.2.1)
53
+ activesupport (>= 5.0, < 7)
54
+ activestorage (5.2.4.3)
55
+ actionpack (= 5.2.4.3)
56
+ activerecord (= 5.2.4.3)
57
57
  marcel (~> 0.3.1)
58
- activesupport (5.2.1)
58
+ activesupport (5.2.4.3)
59
59
  concurrent-ruby (~> 1.0, >= 1.0.2)
60
60
  i18n (>= 0.7, < 2)
61
61
  minitest (~> 5.1)
62
62
  tzinfo (~> 1.1)
63
- addressable (2.5.2)
64
- public_suffix (>= 2.0.2, < 4.0)
63
+ addressable (2.7.0)
64
+ public_suffix (>= 2.0.2, < 5.0)
65
65
  arel (9.0.0)
66
66
  ast (2.4.0)
67
- axiom-types (0.1.1)
68
- descendants_tracker (~> 0.0.4)
69
- ice_nine (~> 0.11.0)
70
- thread_safe (~> 0.3, >= 0.3.1)
71
- builder (3.2.3)
72
- codeclimate-engine-rb (0.4.1)
73
- virtus (~> 1.0)
67
+ builder (3.2.4)
74
68
  coderay (1.1.2)
75
- coercible (1.0.0)
76
- descendants_tracker (~> 0.0.1)
77
- concurrent-ruby (1.0.5)
69
+ concurrent-ruby (1.1.6)
78
70
  crack (0.4.3)
79
71
  safe_yaml (~> 1.0.0)
80
- crass (1.0.4)
81
- descendants_tracker (0.0.4)
82
- thread_safe (~> 0.3, >= 0.3.1)
72
+ crass (1.0.6)
83
73
  diff-lcs (1.3)
84
- equalizer (0.0.11)
85
- erubi (1.7.1)
86
- faraday (0.15.4)
74
+ erubi (1.9.0)
75
+ faraday (1.0.1)
87
76
  multipart-post (>= 1.2, < 3)
88
- globalid (0.4.1)
77
+ globalid (0.4.2)
89
78
  activesupport (>= 4.2.0)
90
- hashdiff (0.3.7)
91
- i18n (1.1.0)
79
+ hashdiff (1.0.1)
80
+ i18n (1.8.2)
92
81
  concurrent-ruby (~> 1.0)
93
- ice_nine (0.11.2)
94
- jaro_winkler (1.5.1)
95
82
  kwalify (0.7.2)
96
- loofah (2.2.2)
83
+ loofah (2.5.0)
97
84
  crass (~> 1.0.2)
98
85
  nokogiri (>= 1.5.9)
99
- mail (2.7.0)
86
+ mail (2.7.1)
100
87
  mini_mime (>= 0.1.1)
101
- marcel (0.3.2)
88
+ marcel (0.3.3)
102
89
  mimemagic (~> 0.3.2)
103
- method_source (0.9.0)
104
- mimemagic (0.3.2)
105
- mini_mime (1.0.1)
106
- mini_portile2 (2.3.0)
107
- minitest (5.11.3)
108
- multipart-post (2.0.0)
109
- nio4r (2.3.1)
110
- nokogiri (1.8.4)
111
- mini_portile2 (~> 2.3.0)
112
- onkcop (0.53.0.1)
113
- rubocop (>= 0.53.0)
114
- rubocop-rspec (>= 1.24.0)
115
- parallel (1.12.1)
116
- parser (2.5.1.2)
90
+ method_source (0.9.2)
91
+ mimemagic (0.3.5)
92
+ mini_mime (1.0.2)
93
+ mini_portile2 (2.4.0)
94
+ minitest (5.14.1)
95
+ multipart-post (2.1.1)
96
+ nio4r (2.5.2)
97
+ nokogiri (1.10.9)
98
+ mini_portile2 (~> 2.4.0)
99
+ parallel (1.19.1)
100
+ parser (2.7.1.2)
117
101
  ast (~> 2.4.0)
118
- powerpack (0.1.2)
119
102
  pry (0.11.3)
120
103
  coderay (~> 1.1.0)
121
104
  method_source (~> 0.9.0)
122
- public_suffix (3.0.3)
123
- rack (2.0.5)
105
+ psych (3.1.0)
106
+ public_suffix (4.0.5)
107
+ rack (2.2.2)
124
108
  rack-test (1.1.0)
125
109
  rack (>= 1.0, < 3)
126
- rails (5.2.1)
127
- actioncable (= 5.2.1)
128
- actionmailer (= 5.2.1)
129
- actionpack (= 5.2.1)
130
- actionview (= 5.2.1)
131
- activejob (= 5.2.1)
132
- activemodel (= 5.2.1)
133
- activerecord (= 5.2.1)
134
- activestorage (= 5.2.1)
135
- activesupport (= 5.2.1)
110
+ rails (5.2.4.3)
111
+ actioncable (= 5.2.4.3)
112
+ actionmailer (= 5.2.4.3)
113
+ actionpack (= 5.2.4.3)
114
+ actionview (= 5.2.4.3)
115
+ activejob (= 5.2.4.3)
116
+ activemodel (= 5.2.4.3)
117
+ activerecord (= 5.2.4.3)
118
+ activestorage (= 5.2.4.3)
119
+ activesupport (= 5.2.4.3)
136
120
  bundler (>= 1.3.0)
137
- railties (= 5.2.1)
121
+ railties (= 5.2.4.3)
138
122
  sprockets-rails (>= 2.0.0)
139
123
  rails-dom-testing (2.0.3)
140
124
  activesupport (>= 4.2.0)
141
125
  nokogiri (>= 1.6)
142
- rails-html-sanitizer (1.0.4)
143
- loofah (~> 2.2, >= 2.2.2)
144
- railties (5.2.1)
145
- actionpack (= 5.2.1)
146
- activesupport (= 5.2.1)
126
+ rails-html-sanitizer (1.3.0)
127
+ loofah (~> 2.3)
128
+ railties (5.2.4.3)
129
+ actionpack (= 5.2.4.3)
130
+ activesupport (= 5.2.4.3)
147
131
  method_source
148
132
  rake (>= 0.8.7)
149
133
  thor (>= 0.19.0, < 2.0)
150
134
  rainbow (3.0.0)
151
- rake (12.3.1)
152
- reek (5.0.2)
153
- codeclimate-engine-rb (~> 0.4.0)
135
+ rake (13.0.1)
136
+ reek (6.0.0)
154
137
  kwalify (~> 0.7.0)
155
- parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
138
+ parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
139
+ psych (~> 3.1.0)
156
140
  rainbow (>= 2.0, < 4.0)
157
- rspec (3.8.0)
158
- rspec-core (~> 3.8.0)
159
- rspec-expectations (~> 3.8.0)
160
- rspec-mocks (~> 3.8.0)
161
- rspec-core (3.8.0)
162
- rspec-support (~> 3.8.0)
163
- rspec-expectations (3.8.1)
141
+ rexml (3.2.4)
142
+ rspec (3.9.0)
143
+ rspec-core (~> 3.9.0)
144
+ rspec-expectations (~> 3.9.0)
145
+ rspec-mocks (~> 3.9.0)
146
+ rspec-core (3.9.2)
147
+ rspec-support (~> 3.9.3)
148
+ rspec-expectations (3.9.2)
164
149
  diff-lcs (>= 1.2.0, < 2.0)
165
- rspec-support (~> 3.8.0)
166
- rspec-mocks (3.8.0)
150
+ rspec-support (~> 3.9.0)
151
+ rspec-mocks (3.9.1)
167
152
  diff-lcs (>= 1.2.0, < 2.0)
168
- rspec-support (~> 3.8.0)
169
- rspec-support (3.8.0)
170
- rubocop (0.58.2)
171
- jaro_winkler (~> 1.5.1)
153
+ rspec-support (~> 3.9.0)
154
+ rspec-support (3.9.3)
155
+ rspec_junit_formatter (0.4.1)
156
+ rspec-core (>= 2, < 4, != 2.12.0)
157
+ rubocop (0.83.0)
172
158
  parallel (~> 1.10)
173
- parser (>= 2.5, != 2.5.1.1)
174
- powerpack (~> 0.1)
159
+ parser (>= 2.7.0.1)
175
160
  rainbow (>= 2.2.2, < 4.0)
161
+ rexml
176
162
  ruby-progressbar (~> 1.7)
177
- unicode-display_width (~> 1.0, >= 1.0.1)
178
- rubocop-rspec (1.29.1)
179
- rubocop (>= 0.58.0)
180
- ruby-progressbar (1.10.0)
181
- rubyzip (1.2.2)
182
- safe_yaml (1.0.4)
183
- sprockets (3.7.2)
163
+ unicode-display_width (>= 1.4.0, < 2.0)
164
+ rubocop-performance (1.5.2)
165
+ rubocop (>= 0.71.0)
166
+ rubocop-rspec (1.35.0)
167
+ rubocop (>= 0.60.0)
168
+ ruby-progressbar (1.10.1)
169
+ rubyzip (2.3.0)
170
+ safe_yaml (1.0.5)
171
+ sprockets (4.0.0)
184
172
  concurrent-ruby (~> 1.0)
185
173
  rack (> 1, < 3)
186
174
  sprockets-rails (3.2.1)
187
175
  actionpack (>= 4.0)
188
176
  activesupport (>= 4.0)
189
177
  sprockets (>= 3.0.0)
190
- thor (0.20.0)
178
+ thor (1.0.1)
191
179
  thread_safe (0.3.6)
192
- tzinfo (1.2.5)
180
+ tzinfo (1.2.7)
193
181
  thread_safe (~> 0.1)
194
- unicode-display_width (1.4.0)
195
- vcr (4.0.0)
196
- virtus (1.0.5)
197
- axiom-types (~> 0.1)
198
- coercible (~> 1.0)
199
- descendants_tracker (~> 0.0, >= 0.0.3)
200
- equalizer (~> 0.0, >= 0.0.9)
201
- webmock (3.4.2)
182
+ unicode-display_width (1.7.0)
183
+ vcr (5.1.0)
184
+ webmock (3.5.1)
202
185
  addressable (>= 2.3.6)
203
186
  crack (>= 0.3.2)
204
187
  hashdiff
205
- websocket-driver (0.7.0)
188
+ websocket-driver (0.7.1)
206
189
  websocket-extensions (>= 0.1.0)
207
- websocket-extensions (0.1.3)
190
+ websocket-extensions (0.1.5)
208
191
 
209
192
  PLATFORMS
210
193
  ruby
211
194
 
212
195
  DEPENDENCIES
213
196
  docomo-nlu!
214
- onkcop
215
197
  pry (~> 0.11.3)
216
198
  rails
217
199
  reek
218
200
  rspec
219
- rubocop (~> 0.58.2)
220
- rubocop-rspec
221
- vcr (~> 4.0.0)
222
- webmock (~> 3.4.2)
201
+ rspec_junit_formatter
202
+ rubocop
203
+ rubocop-performance
204
+ rubocop-rspec (~> 1.35.0)
205
+ vcr (~> 5.1.0)
206
+ webmock (~> 3.5.0)
223
207
 
224
208
  BUNDLED WITH
225
- 1.16.3
209
+ 2.1.4
@@ -2,7 +2,7 @@
2
2
 
3
3
  lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require "docomo-nlu/version"
5
+ require "docomo_nlu/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "docomo-nlu"
@@ -23,18 +23,19 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency "activeresource", "~> 5.0.0"
26
+ spec.add_dependency "activeresource", ">= 5.0", "< 5.2"
27
27
  spec.add_dependency "bundler"
28
28
  spec.add_dependency "faraday"
29
29
  spec.add_dependency "rake"
30
30
  spec.add_dependency "rubyzip"
31
- spec.add_development_dependency "onkcop"
32
31
  spec.add_development_dependency "pry", "~> 0.11.3"
33
32
  spec.add_development_dependency "rails"
34
33
  spec.add_development_dependency "reek"
35
34
  spec.add_development_dependency "rspec"
36
- spec.add_development_dependency "rubocop", "~> 0.58.2"
37
- spec.add_development_dependency "rubocop-rspec"
38
- spec.add_development_dependency "vcr", "~> 4.0.0"
39
- spec.add_development_dependency "webmock", "~> 3.4.2"
35
+ spec.add_development_dependency "rspec_junit_formatter"
36
+ spec.add_development_dependency "rubocop"
37
+ spec.add_development_dependency "rubocop-performance"
38
+ spec.add_development_dependency "rubocop-rspec", "~> 1.35.0"
39
+ spec.add_development_dependency "vcr", "~> 5.1.0"
40
+ spec.add_development_dependency "webmock", "~> 3.5.0"
40
41
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "docomo-nlu/version"
4
- require "docomo-nlu/config"
3
+ require "docomo_nlu/version"
4
+ require "docomo_nlu/config"
5
5
  require "activeresource"
6
6
  require "faraday"
7
7
 
8
8
  module DocomoNlu
9
- autoload :Spontaneous, "docomo-nlu/spontaneous"
10
- autoload :Management, "docomo-nlu/management"
9
+ autoload :Spontaneous, "docomo_nlu/spontaneous"
10
+ autoload :Management, "docomo_nlu/management"
11
11
  end
@@ -18,8 +18,8 @@ module DocomoNlu
18
18
  end
19
19
 
20
20
  configure do |config|
21
- config.nlu_host = ""
22
- config.nlu_version = ""
23
- config.admin_access_token = ""
21
+ config.nlu_host = ENV["NLU_HOST"]
22
+ config.nlu_version = ENV["NLU_VERSION"]
23
+ config.admin_access_token = ENV["NLU_ADMIN_ACCESS_TOKEN"]
24
24
  end
25
25
  end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DocomoNlu
4
+ module Management
5
+ autoload :Account, "docomo_nlu/management/account"
6
+ autoload :AIMLBase, "docomo_nlu/management/aiml_base"
7
+ autoload :Base, "docomo_nlu/management/base"
8
+ autoload :Bot, "docomo_nlu/management/bot"
9
+ autoload :BotLog, "docomo_nlu/management/bot_log"
10
+ autoload :Config, "docomo_nlu/management/config"
11
+ autoload :DefaultPredicate, "docomo_nlu/management/default_predicate"
12
+ autoload :Entry, "docomo_nlu/management/entry"
13
+ autoload :Log, "docomo_nlu/management/log"
14
+ autoload :MultipartBase, "docomo_nlu/management/multipart_base"
15
+ autoload :Map, "docomo_nlu/management/map"
16
+ autoload :NGWord, "docomo_nlu/management/ng_word"
17
+ autoload :OKWord, "docomo_nlu/management/ok_word"
18
+ autoload :OrganizationMember, "docomo_nlu/management/organization_member"
19
+ autoload :Organization, "docomo_nlu/management/organization"
20
+ autoload :PredicateName, "docomo_nlu/management/predicate_name"
21
+ autoload :ProjectMember, "docomo_nlu/management/project_member"
22
+ autoload :Project, "docomo_nlu/management/project"
23
+ autoload :Property, "docomo_nlu/management/property"
24
+ autoload :Provider, "docomo_nlu/management/provider"
25
+ autoload :ScenarioProject, "docomo_nlu/management/scenario_project"
26
+ autoload :ScenarioUtil, "docomo_nlu/management/scenario_util"
27
+ autoload :Scenario, "docomo_nlu/management/scenario"
28
+ autoload :Set, "docomo_nlu/management/set"
29
+ autoload :TaskProject, "docomo_nlu/management/task_project"
30
+ end
31
+ end