qiita_org 0.1.32 → 0.1.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (416) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -2
  3. data/Gemfile.lock +15 -15
  4. data/lib/qiita_org.rb +18 -36
  5. data/lib/qiita_org/access_qiita.rb +0 -2
  6. data/lib/qiita_org/all.rb +4 -4
  7. data/lib/qiita_org/base.rb +20 -0
  8. data/lib/qiita_org/config.rb +0 -2
  9. data/lib/qiita_org/error_message.rb +15 -10
  10. data/lib/qiita_org/get.rb +0 -4
  11. data/lib/qiita_org/get_multiple_files.rb +1 -4
  12. data/lib/qiita_org/get_template.rb +0 -33
  13. data/lib/qiita_org/list.rb +0 -5
  14. data/lib/qiita_org/md_converter_for_image.rb +1 -1
  15. data/lib/qiita_org/{file_open.rb → old_programs/file_open.rb} +0 -0
  16. data/lib/qiita_org/post.rb +12 -21
  17. data/lib/qiita_org/template.org +1 -1
  18. data/lib/qiita_org/upload.rb +13 -30
  19. data/lib/qiita_org/version.rb +1 -1
  20. data/tests/test.org +2 -1
  21. metadata +3 -2436
  22. data/.bandle/ruby/2.7.0/bin/htmldiff +0 -29
  23. data/.bandle/ruby/2.7.0/bin/ldiff +0 -29
  24. data/.bandle/ruby/2.7.0/bin/qiita_org +0 -27
  25. data/.bandle/ruby/2.7.0/bin/rake +0 -27
  26. data/.bandle/ruby/2.7.0/bin/rspec +0 -27
  27. data/.bandle/ruby/2.7.0/bin/thor +0 -27
  28. data/.bandle/ruby/2.7.0/cache/diff-lcs-1.4.4.gem +0 -0
  29. data/.bandle/ruby/2.7.0/cache/rake-12.3.3.gem +0 -0
  30. data/.bandle/ruby/2.7.0/cache/rspec-3.9.0.gem +0 -0
  31. data/.bandle/ruby/2.7.0/cache/rspec-core-3.9.2.gem +0 -0
  32. data/.bandle/ruby/2.7.0/cache/rspec-expectations-3.9.2.gem +0 -0
  33. data/.bandle/ruby/2.7.0/cache/rspec-mocks-3.9.1.gem +0 -0
  34. data/.bandle/ruby/2.7.0/cache/rspec-support-3.9.3.gem +0 -0
  35. data/.bandle/ruby/2.7.0/cache/thor-1.0.1.gem +0 -0
  36. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/.rspec +0 -1
  37. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Code-of-Conduct.md +0 -74
  38. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Contributing.md +0 -118
  39. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/History.md +0 -319
  40. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/License.md +0 -39
  41. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Manifest.txt +0 -45
  42. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/README.rdoc +0 -84
  43. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Rakefile +0 -74
  44. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/autotest/discover.rb +0 -3
  45. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/htmldiff +0 -35
  46. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/ldiff +0 -9
  47. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/COPYING.txt +0 -339
  48. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/artistic.txt +0 -127
  49. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff-lcs.rb +0 -3
  50. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs.rb +0 -739
  51. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/array.rb +0 -7
  52. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/backports.rb +0 -9
  53. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/block.rb +0 -37
  54. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/callbacks.rb +0 -325
  55. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/change.rb +0 -174
  56. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/htmldiff.rb +0 -150
  57. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/hunk.rb +0 -358
  58. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/internals.rb +0 -304
  59. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/ldiff.rb +0 -171
  60. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/string.rb +0 -5
  61. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/change_spec.rb +0 -89
  62. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/diff_spec.rb +0 -51
  63. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/aX +0 -1
  64. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/bXaX +0 -1
  65. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds1.csv +0 -50
  66. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds2.csv +0 -51
  67. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff +0 -4
  68. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-c +0 -7
  69. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-e +0 -3
  70. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-f +0 -3
  71. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-u +0 -5
  72. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/hunk_spec.rb +0 -83
  73. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/issues_spec.rb +0 -154
  74. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/lcs_spec.rb +0 -56
  75. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/ldiff_spec.rb +0 -87
  76. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/patch_spec.rb +0 -416
  77. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/sdiff_spec.rb +0 -214
  78. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/spec_helper.rb +0 -375
  79. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb +0 -310
  80. data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_sequences_spec.rb +0 -139
  81. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +0 -43
  82. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Gemfile +0 -3
  83. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/History.rdoc +0 -2344
  84. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/MIT-LICENSE +0 -21
  85. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/README.rdoc +0 -156
  86. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Rakefile +0 -41
  87. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/azure-pipelines.yml +0 -11
  88. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/bundle +0 -105
  89. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/console +0 -7
  90. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rake +0 -29
  91. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rdoc +0 -29
  92. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rubocop +0 -29
  93. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/setup +0 -6
  94. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +0 -158
  95. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile1 +0 -38
  96. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile2 +0 -35
  97. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/a.c +0 -6
  98. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/b.c +0 -6
  99. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/main.c +0 -11
  100. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/glossary.rdoc +0 -42
  101. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/jamis.rb +0 -592
  102. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/proto_rake.rdoc +0 -127
  103. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rake.1 +0 -156
  104. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rakefile.rdoc +0 -622
  105. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rational.rdoc +0 -151
  106. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/exe/rake +0 -27
  107. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake.rb +0 -71
  108. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/application.rb +0 -824
  109. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/backtrace.rb +0 -24
  110. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb +0 -78
  111. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cloneable.rb +0 -17
  112. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +0 -107
  113. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/default_loader.rb +0 -15
  114. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +0 -195
  115. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/early_time.rb +0 -22
  116. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/core.rb +0 -26
  117. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/string.rb +0 -176
  118. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +0 -25
  119. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_list.rb +0 -435
  120. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_task.rb +0 -54
  121. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils.rb +0 -137
  122. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +0 -145
  123. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +0 -57
  124. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +0 -17
  125. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/late_time.rb +0 -18
  126. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/linked_list.rb +0 -112
  127. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +0 -54
  128. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/multi_task.rb +0 -14
  129. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/name_space.rb +0 -38
  130. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/packagetask.rb +0 -207
  131. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/phony.rb +0 -16
  132. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/private_reader.rb +0 -21
  133. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/promise.rb +0 -100
  134. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +0 -30
  135. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_module.rb +0 -67
  136. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +0 -27
  137. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +0 -20
  138. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/scope.rb +0 -43
  139. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task.rb +0 -413
  140. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +0 -8
  141. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +0 -109
  142. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_manager.rb +0 -324
  143. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/tasklib.rb +0 -12
  144. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/testtask.rb +0 -224
  145. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +0 -49
  146. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +0 -163
  147. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb +0 -23
  148. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/version.rb +0 -10
  149. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/win32.rb +0 -51
  150. data/.bandle/ruby/2.7.0/gems/rake-12.3.3/rake.gemspec +0 -42
  151. data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/LICENSE.md +0 -27
  152. data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/README.md +0 -43
  153. data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec.rb +0 -3
  154. data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec/version.rb +0 -5
  155. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.document +0 -5
  156. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.yardopts +0 -8
  157. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/Changelog.md +0 -2291
  158. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/LICENSE.md +0 -26
  159. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/README.md +0 -384
  160. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/exe/rspec +0 -4
  161. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +0 -3
  162. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +0 -186
  163. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +0 -65
  164. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +0 -62
  165. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +0 -173
  166. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +0 -135
  167. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +0 -61
  168. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +0 -126
  169. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +0 -73
  170. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +0 -58
  171. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +0 -2363
  172. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +0 -233
  173. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +0 -46
  174. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +0 -113
  175. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +0 -98
  176. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +0 -656
  177. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +0 -900
  178. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +0 -235
  179. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +0 -231
  180. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +0 -20
  181. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +0 -273
  182. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -45
  183. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +0 -70
  184. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +0 -75
  185. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -29
  186. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -157
  187. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +0 -68
  188. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
  189. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +0 -102
  190. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +0 -511
  191. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +0 -23
  192. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
  193. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +0 -110
  194. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +0 -153
  195. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +0 -414
  196. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -120
  197. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +0 -102
  198. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +0 -68
  199. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +0 -29
  200. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +0 -182
  201. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +0 -134
  202. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +0 -91
  203. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +0 -641
  204. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +0 -87
  205. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +0 -554
  206. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +0 -498
  207. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +0 -255
  208. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
  209. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
  210. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
  211. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +0 -14
  212. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +0 -31
  213. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
  214. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +0 -521
  215. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +0 -316
  216. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +0 -158
  217. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +0 -29
  218. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +0 -165
  219. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +0 -34
  220. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +0 -48
  221. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/.rspec +0 -1
  222. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -100
  223. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +0 -188
  224. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +0 -265
  225. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +0 -53
  226. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +0 -204
  227. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +0 -37
  228. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +0 -54
  229. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +0 -55
  230. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +0 -271
  231. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +0 -49
  232. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
  233. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +0 -9
  234. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +0 -40
  235. data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +0 -276
  236. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.document +0 -5
  237. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.yardopts +0 -6
  238. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/Changelog.md +0 -1191
  239. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/LICENSE.md +0 -25
  240. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/README.md +0 -320
  241. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +0 -82
  242. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +0 -253
  243. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +0 -215
  244. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +0 -127
  245. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +0 -39
  246. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +0 -194
  247. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +0 -170
  248. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +0 -58
  249. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +0 -132
  250. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +0 -8
  251. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +0 -1038
  252. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +0 -116
  253. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +0 -52
  254. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +0 -86
  255. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
  256. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +0 -288
  257. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +0 -77
  258. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +0 -26
  259. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +0 -20
  260. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +0 -72
  261. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +0 -428
  262. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +0 -276
  263. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
  264. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +0 -24
  265. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +0 -40
  266. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +0 -34
  267. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +0 -81
  268. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +0 -90
  269. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +0 -103
  270. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
  271. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +0 -149
  272. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +0 -106
  273. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +0 -128
  274. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +0 -200
  275. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +0 -230
  276. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +0 -199
  277. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +0 -60
  278. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
  279. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
  280. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +0 -441
  281. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +0 -171
  282. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +0 -540
  283. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +0 -58
  284. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -82
  285. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +0 -42
  286. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +0 -41
  287. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +0 -35
  288. data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +0 -99
  289. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.document +0 -5
  290. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.yardopts +0 -6
  291. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/Changelog.md +0 -1133
  292. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/LICENSE.md +0 -25
  293. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/README.md +0 -463
  294. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +0 -130
  295. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +0 -11
  296. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +0 -111
  297. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
  298. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -31
  299. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -50
  300. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
  301. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +0 -116
  302. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +0 -294
  303. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +0 -51
  304. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
  305. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +0 -100
  306. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +0 -322
  307. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +0 -212
  308. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +0 -369
  309. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +0 -434
  310. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +0 -146
  311. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +0 -41
  312. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
  313. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +0 -134
  314. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +0 -132
  315. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
  316. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
  317. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +0 -87
  318. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +0 -751
  319. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +0 -287
  320. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +0 -202
  321. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +0 -68
  322. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +0 -339
  323. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +0 -149
  324. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +0 -81
  325. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +0 -503
  326. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +0 -238
  327. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +0 -3
  328. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +0 -325
  329. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +0 -124
  330. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +0 -171
  331. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +0 -129
  332. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
  333. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +0 -220
  334. data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +0 -9
  335. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/Changelog.md +0 -302
  336. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/LICENSE.md +0 -23
  337. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/README.md +0 -40
  338. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +0 -149
  339. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +0 -83
  340. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +0 -46
  341. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +0 -215
  342. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +0 -63
  343. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +0 -161
  344. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +0 -48
  345. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +0 -47
  346. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +0 -42
  347. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +0 -438
  348. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +0 -73
  349. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +0 -275
  350. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +0 -76
  351. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +0 -61
  352. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +0 -190
  353. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +0 -75
  354. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +0 -21
  355. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +0 -110
  356. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +0 -87
  357. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +0 -81
  358. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
  359. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +0 -9
  360. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +0 -69
  361. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +0 -150
  362. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +0 -89
  363. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +0 -75
  364. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +0 -46
  365. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +0 -13
  366. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
  367. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +0 -7
  368. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +0 -39
  369. data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +0 -33
  370. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/.document +0 -5
  371. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CHANGELOG.md +0 -220
  372. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CONTRIBUTING.md +0 -15
  373. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/LICENSE.md +0 -20
  374. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/README.md +0 -51
  375. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/bin/thor +0 -6
  376. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb +0 -517
  377. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions.rb +0 -336
  378. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_file.rb +0 -104
  379. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_link.rb +0 -61
  380. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/directory.rb +0 -108
  381. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb +0 -143
  382. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/file_manipulation.rb +0 -373
  383. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/inject_into_file.rb +0 -120
  384. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/base.rb +0 -699
  385. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb +0 -142
  386. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -97
  387. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/error.rb +0 -110
  388. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/group.rb +0 -281
  389. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb +0 -178
  390. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor.rb +0 -17
  391. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/basic.rb +0 -37
  392. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/readline.rb +0 -88
  393. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/nested_context.rb +0 -29
  394. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser.rb +0 -4
  395. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/argument.rb +0 -70
  396. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/arguments.rb +0 -175
  397. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/option.rb +0 -159
  398. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/options.rb +0 -236
  399. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/rake_compat.rb +0 -72
  400. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/runner.rb +0 -325
  401. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell.rb +0 -81
  402. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/basic.rb +0 -491
  403. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/color.rb +0 -153
  404. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/html.rb +0 -126
  405. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/util.rb +0 -284
  406. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/version.rb +0 -3
  407. data/.bandle/ruby/2.7.0/gems/thor-1.0.1/thor.gemspec +0 -28
  408. data/.bandle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +0 -50
  409. data/.bandle/ruby/2.7.0/specifications/rake-12.3.3.gemspec +0 -43
  410. data/.bandle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +0 -39
  411. data/.bandle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +0 -53
  412. data/.bandle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +0 -44
  413. data/.bandle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +0 -44
  414. data/.bandle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +0 -36
  415. data/.bandle/ruby/2.7.0/specifications/thor-1.0.1.gemspec +0 -34
  416. data/lib/qiita_org/hoge.txt +0 -3
@@ -1,369 +0,0 @@
1
- RSpec::Support.require_rspec_support "object_formatter"
2
-
3
- module RSpec
4
- module Mocks
5
- # Raised when a message expectation is not satisfied.
6
- MockExpectationError = Class.new(Exception)
7
-
8
- # Raised when a test double is used after it has been torn
9
- # down (typically at the end of an rspec-core example).
10
- ExpiredTestDoubleError = Class.new(MockExpectationError)
11
-
12
- # Raised when doubles or partial doubles are used outside of the per-test lifecycle.
13
- OutsideOfExampleError = Class.new(StandardError)
14
-
15
- # Raised when an expectation customization method (e.g. `with`,
16
- # `and_return`) is called on a message expectation which has already been
17
- # invoked.
18
- MockExpectationAlreadyInvokedError = Class.new(Exception)
19
-
20
- # Raised for situations that RSpec cannot support due to mutations made
21
- # externally on arguments that RSpec is holding onto to use for later
22
- # comparisons.
23
- #
24
- # @deprecated We no longer raise this error but the constant remains until
25
- # RSpec 4 for SemVer reasons.
26
- CannotSupportArgMutationsError = Class.new(StandardError)
27
-
28
- # @private
29
- UnsupportedMatcherError = Class.new(StandardError)
30
- # @private
31
- NegationUnsupportedError = Class.new(StandardError)
32
- # @private
33
- VerifyingDoubleNotDefinedError = Class.new(StandardError)
34
-
35
- # @private
36
- class ErrorGenerator
37
- attr_writer :opts
38
-
39
- def initialize(target=nil)
40
- @target = target
41
- end
42
-
43
- # @private
44
- def opts
45
- @opts ||= {}
46
- end
47
-
48
- # @private
49
- def raise_unexpected_message_error(message, args)
50
- __raise "#{intro} received unexpected message :#{message} with #{format_args(args)}"
51
- end
52
-
53
- # @private
54
- def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id=nil)
55
- __raise error_message(expectation, args_for_multiple_calls), nil, source_id
56
- end
57
-
58
- # @private
59
- def raise_missing_default_stub_error(expectation, args_for_multiple_calls)
60
- __raise(
61
- error_message(expectation, args_for_multiple_calls) +
62
- "\n Please stub a default value first if message might be received with other args as well. \n"
63
- )
64
- end
65
-
66
- # @private
67
- def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line=nil)
68
- __raise error_message(expectation, args_for_multiple_calls), backtrace_line
69
- end
70
-
71
- def default_error_message(expectation, expected_args, actual_args)
72
- "#{intro} received #{expectation.message.inspect} #{unexpected_arguments_message(expected_args, actual_args)}".dup
73
- end
74
-
75
- # rubocop:disable Metrics/ParameterLists
76
- # @private
77
- def raise_expectation_error(message, expected_received_count, argument_list_matcher,
78
- actual_received_count, expectation_count_type, args,
79
- backtrace_line=nil, source_id=nil)
80
- expected_part = expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher)
81
- received_part = received_part_of_expectation_error(actual_received_count, args)
82
- __raise "(#{intro(:unwrapped)}).#{message}#{format_args(args)}\n #{expected_part}\n #{received_part}", backtrace_line, source_id
83
- end
84
- # rubocop:enable Metrics/ParameterLists
85
-
86
- # @private
87
- def raise_unimplemented_error(doubled_module, method_name, object)
88
- message = case object
89
- when InstanceVerifyingDouble
90
- "the %s class does not implement the instance method: %s".dup <<
91
- if ObjectMethodReference.for(doubled_module, method_name).implemented?
92
- ". Perhaps you meant to use `class_double` instead?"
93
- else
94
- ""
95
- end
96
- when ClassVerifyingDouble
97
- "the %s class does not implement the class method: %s".dup <<
98
- if InstanceMethodReference.for(doubled_module, method_name).implemented?
99
- ". Perhaps you meant to use `instance_double` instead?"
100
- else
101
- ""
102
- end
103
- else
104
- "%s does not implement: %s"
105
- end
106
-
107
- __raise message % [doubled_module.description, method_name]
108
- end
109
-
110
- # @private
111
- def raise_non_public_error(method_name, visibility)
112
- raise NoMethodError, "%s method `%s' called on %s" % [
113
- visibility, method_name, intro
114
- ]
115
- end
116
-
117
- # @private
118
- def raise_invalid_arguments_error(verifier)
119
- __raise verifier.error_message
120
- end
121
-
122
- # @private
123
- def raise_expired_test_double_error
124
- raise ExpiredTestDoubleError,
125
- "#{intro} was originally created in one example but has leaked into " \
126
- "another example and can no longer be used. rspec-mocks' doubles are " \
127
- "designed to only last for one example, and you need to create a new " \
128
- "one in each example you wish to use it for."
129
- end
130
-
131
- # @private
132
- def describe_expectation(verb, message, expected_received_count, _actual_received_count, args)
133
- "#{verb} #{message}#{format_args(args)} #{count_message(expected_received_count)}"
134
- end
135
-
136
- # @private
137
- def raise_out_of_order_error(message)
138
- __raise "#{intro} received :#{message} out of order"
139
- end
140
-
141
- # @private
142
- def raise_missing_block_error(args_to_yield)
143
- __raise "#{intro} asked to yield |#{arg_list(args_to_yield)}| but no block was passed"
144
- end
145
-
146
- # @private
147
- def raise_wrong_arity_error(args_to_yield, signature)
148
- __raise "#{intro} yielded |#{arg_list(args_to_yield)}| to block with #{signature.description}"
149
- end
150
-
151
- # @private
152
- def raise_only_valid_on_a_partial_double(method)
153
- __raise "#{intro} is a pure test double. `#{method}` is only " \
154
- "available on a partial double."
155
- end
156
-
157
- # @private
158
- def raise_expectation_on_unstubbed_method(method)
159
- __raise "#{intro} expected to have received #{method}, but that " \
160
- "object is not a spy or method has not been stubbed."
161
- end
162
-
163
- # @private
164
- def raise_expectation_on_mocked_method(method)
165
- __raise "#{intro} expected to have received #{method}, but that " \
166
- "method has been mocked instead of stubbed or spied."
167
- end
168
-
169
- # @private
170
- def raise_double_negation_error(wrapped_expression)
171
- __raise "Isn't life confusing enough? You've already set a " \
172
- "negative message expectation and now you are trying to " \
173
- "negate it again with `never`. What does an expression like " \
174
- "`#{wrapped_expression}.not_to receive(:msg).never` even mean?"
175
- end
176
-
177
- # @private
178
- def raise_verifying_double_not_defined_error(ref)
179
- notify(VerifyingDoubleNotDefinedError.new(
180
- "#{ref.description.inspect} is not a defined constant. " \
181
- "Perhaps you misspelt it? " \
182
- "Disable check with `verify_doubled_constant_names` configuration option."
183
- ))
184
- end
185
-
186
- # @private
187
- def raise_have_received_disallowed(type, reason)
188
- __raise "Using #{type}(...) with the `have_received` " \
189
- "matcher is not supported#{reason}."
190
- end
191
-
192
- # @private
193
- def raise_cant_constrain_count_for_negated_have_received_error(count_constraint)
194
- __raise "can't use #{count_constraint} when negative"
195
- end
196
-
197
- # @private
198
- def raise_method_not_stubbed_error(method_name)
199
- __raise "The method `#{method_name}` was not stubbed or was already unstubbed"
200
- end
201
-
202
- # @private
203
- def raise_already_invoked_error(message, calling_customization)
204
- error_message = "The message expectation for #{intro}.#{message} has already been invoked " \
205
- "and cannot be modified further (e.g. using `#{calling_customization}`). All message expectation " \
206
- "customizations must be applied before it is used for the first time."
207
-
208
- notify MockExpectationAlreadyInvokedError.new(error_message)
209
- end
210
-
211
- def raise_expectation_on_nil_error(method_name)
212
- __raise expectation_on_nil_message(method_name)
213
- end
214
-
215
- def expectation_on_nil_message(method_name)
216
- "An expectation of `:#{method_name}` was set on `nil`. " \
217
- "To allow expectations on `nil` and suppress this message, set `RSpec::Mocks.configuration.allow_message_expectations_on_nil` to `true`. " \
218
- "To disallow expectations on `nil`, set `RSpec::Mocks.configuration.allow_message_expectations_on_nil` to `false`"
219
- end
220
-
221
- # @private
222
- def intro(unwrapped=false)
223
- case @target
224
- when TestDouble then TestDoubleFormatter.format(@target, unwrapped)
225
- when Class then
226
- formatted = "#{@target.inspect} (class)"
227
- return formatted if unwrapped
228
- "#<#{formatted}>"
229
- when NilClass then "nil"
230
- else @target.inspect
231
- end
232
- end
233
-
234
- # @private
235
- def method_call_args_description(args, generic_prefix=" with arguments: ", matcher_prefix=" with ")
236
- case args.first
237
- when ArgumentMatchers::AnyArgsMatcher then "#{matcher_prefix}any arguments"
238
- when ArgumentMatchers::NoArgsMatcher then "#{matcher_prefix}no arguments"
239
- else
240
- if yield
241
- "#{generic_prefix}#{format_args(args)}"
242
- else
243
- ""
244
- end
245
- end
246
- end
247
-
248
- private
249
-
250
- def received_part_of_expectation_error(actual_received_count, args)
251
- "received: #{count_message(actual_received_count)}" +
252
- method_call_args_description(args) do
253
- actual_received_count > 0 && args.length > 0
254
- end
255
- end
256
-
257
- def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher)
258
- "expected: #{count_message(expected_received_count, expectation_count_type)}" +
259
- method_call_args_description(argument_list_matcher.expected_args) do
260
- argument_list_matcher.expected_args.length > 0
261
- end
262
- end
263
-
264
- def unexpected_arguments_message(expected_args_string, actual_args_string)
265
- "with unexpected arguments\n expected: #{expected_args_string}\n got: #{actual_args_string}"
266
- end
267
-
268
- def error_message(expectation, args_for_multiple_calls)
269
- expected_args = format_args(expectation.expected_args)
270
- actual_args = format_received_args(args_for_multiple_calls)
271
- message = default_error_message(expectation, expected_args, actual_args)
272
-
273
- if args_for_multiple_calls.one?
274
- diff = diff_message(expectation.expected_args, args_for_multiple_calls.first)
275
- message << "\nDiff:#{diff}" unless diff.strip.empty?
276
- end
277
-
278
- message
279
- end
280
-
281
- def diff_message(expected_args, actual_args)
282
- formatted_expected_args = expected_args.map do |x|
283
- RSpec::Support.rspec_description_for_object(x)
284
- end
285
-
286
- formatted_expected_args, actual_args = unpack_string_args(formatted_expected_args, actual_args)
287
-
288
- differ.diff(actual_args, formatted_expected_args)
289
- end
290
-
291
- def unpack_string_args(formatted_expected_args, actual_args)
292
- if [formatted_expected_args, actual_args].all? { |x| list_of_exactly_one_string?(x) }
293
- [formatted_expected_args.first, actual_args.first]
294
- else
295
- [formatted_expected_args, actual_args]
296
- end
297
- end
298
-
299
- def list_of_exactly_one_string?(args)
300
- Array === args && args.count == 1 && String === args.first
301
- end
302
-
303
- def differ
304
- RSpec::Support::Differ.new(:color => RSpec::Mocks.configuration.color?)
305
- end
306
-
307
- def __raise(message, backtrace_line=nil, source_id=nil)
308
- message = opts[:message] unless opts[:message].nil?
309
- exception = RSpec::Mocks::MockExpectationError.new(message)
310
- prepend_to_backtrace(exception, backtrace_line) if backtrace_line
311
- notify exception, :source_id => source_id
312
- end
313
-
314
- if RSpec::Support::Ruby.jruby?
315
- def prepend_to_backtrace(exception, line)
316
- raise exception
317
- rescue RSpec::Mocks::MockExpectationError => with_backtrace
318
- with_backtrace.backtrace.unshift(line)
319
- end
320
- else
321
- def prepend_to_backtrace(exception, line)
322
- exception.set_backtrace(caller.unshift line)
323
- end
324
- end
325
-
326
- def notify(*args)
327
- RSpec::Support.notify_failure(*args)
328
- end
329
-
330
- def format_args(args)
331
- return "(no args)" if args.empty?
332
- "(#{arg_list(args)})"
333
- end
334
-
335
- def arg_list(args)
336
- args.map { |arg| RSpec::Support::ObjectFormatter.format(arg) }.join(", ")
337
- end
338
-
339
- def format_received_args(args_for_multiple_calls)
340
- grouped_args(args_for_multiple_calls).map do |args_for_one_call, index|
341
- "#{format_args(args_for_one_call)}#{group_count(index, args_for_multiple_calls)}"
342
- end.join("\n ")
343
- end
344
-
345
- def count_message(count, expectation_count_type=nil)
346
- return "at least #{times(count.abs)}" if count < 0 || expectation_count_type == :at_least
347
- return "at most #{times(count)}" if expectation_count_type == :at_most
348
- times(count)
349
- end
350
-
351
- def times(count)
352
- "#{count} time#{count == 1 ? '' : 's'}"
353
- end
354
-
355
- def grouped_args(args)
356
- Hash[args.group_by { |x| x }.map { |k, v| [k, v.count] }]
357
- end
358
-
359
- def group_count(index, args)
360
- " (#{times(index)})" if args.size > 1 || index > 1
361
- end
362
- end
363
-
364
- # @private
365
- def self.error_generator
366
- @error_generator ||= ErrorGenerator.new
367
- end
368
- end
369
- end
@@ -1,434 +0,0 @@
1
- RSpec::Support.require_rspec_mocks 'object_reference'
2
-
3
- module RSpec
4
- module Mocks
5
- # Contains methods intended to be used from within code examples.
6
- # Mix this in to your test context (such as a test framework base class)
7
- # to use rspec-mocks with your test framework. If you're using rspec-core,
8
- # it'll take care of doing this for you.
9
- module ExampleMethods
10
- include RSpec::Mocks::ArgumentMatchers
11
-
12
- # @overload double()
13
- # @overload double(name)
14
- # @param name [String/Symbol] name or description to be used in failure messages
15
- # @overload double(stubs)
16
- # @param stubs (Hash) hash of message/return-value pairs
17
- # @overload double(name, stubs)
18
- # @param name [String/Symbol] name or description to be used in failure messages
19
- # @param stubs (Hash) hash of message/return-value pairs
20
- # @return (Double)
21
- #
22
- # Constructs an instance of [RSpec::Mocks::Double](RSpec::Mocks::Double) configured
23
- # with an optional name, used for reporting in failure messages, and an optional
24
- # hash of message/return-value pairs.
25
- #
26
- # @example
27
- # book = double("book", :title => "The RSpec Book")
28
- # book.title #=> "The RSpec Book"
29
- #
30
- # card = double("card", :suit => "Spades", :rank => "A")
31
- # card.suit #=> "Spades"
32
- # card.rank #=> "A"
33
- #
34
- def double(*args)
35
- ExampleMethods.declare_double(Double, *args)
36
- end
37
-
38
- # @overload instance_double(doubled_class)
39
- # @param doubled_class [String, Class]
40
- # @overload instance_double(doubled_class, name)
41
- # @param doubled_class [String, Class]
42
- # @param name [String/Symbol] name or description to be used in failure messages
43
- # @overload instance_double(doubled_class, stubs)
44
- # @param doubled_class [String, Class]
45
- # @param stubs [Hash] hash of message/return-value pairs
46
- # @overload instance_double(doubled_class, name, stubs)
47
- # @param doubled_class [String, Class]
48
- # @param name [String/Symbol] name or description to be used in failure messages
49
- # @param stubs [Hash] hash of message/return-value pairs
50
- # @return InstanceVerifyingDouble
51
- #
52
- # Constructs a test double against a specific class. If the given class
53
- # name has been loaded, only instance methods defined on the class are
54
- # allowed to be stubbed. In all other ways it behaves like a
55
- # [double](double).
56
- def instance_double(doubled_class, *args)
57
- ref = ObjectReference.for(doubled_class)
58
- ExampleMethods.declare_verifying_double(InstanceVerifyingDouble, ref, *args)
59
- end
60
-
61
- # @overload class_double(doubled_class)
62
- # @param doubled_class [String, Module]
63
- # @overload class_double(doubled_class, name)
64
- # @param doubled_class [String, Module]
65
- # @param name [String/Symbol] name or description to be used in failure messages
66
- # @overload class_double(doubled_class, stubs)
67
- # @param doubled_class [String, Module]
68
- # @param stubs [Hash] hash of message/return-value pairs
69
- # @overload class_double(doubled_class, name, stubs)
70
- # @param doubled_class [String, Module]
71
- # @param name [String/Symbol] name or description to be used in failure messages
72
- # @param stubs [Hash] hash of message/return-value pairs
73
- # @return ClassVerifyingDouble
74
- #
75
- # Constructs a test double against a specific class. If the given class
76
- # name has been loaded, only class methods defined on the class are
77
- # allowed to be stubbed. In all other ways it behaves like a
78
- # [double](double).
79
- def class_double(doubled_class, *args)
80
- ref = ObjectReference.for(doubled_class)
81
- ExampleMethods.declare_verifying_double(ClassVerifyingDouble, ref, *args)
82
- end
83
-
84
- # @overload object_double(object_or_name)
85
- # @param object_or_name [String, Object]
86
- # @overload object_double(object_or_name, name)
87
- # @param object_or_name [String, Object]
88
- # @param name [String/Symbol] name or description to be used in failure messages
89
- # @overload object_double(object_or_name, stubs)
90
- # @param object_or_name [String, Object]
91
- # @param stubs [Hash] hash of message/return-value pairs
92
- # @overload object_double(object_or_name, name, stubs)
93
- # @param object_or_name [String, Object]
94
- # @param name [String/Symbol] name or description to be used in failure messages
95
- # @param stubs [Hash] hash of message/return-value pairs
96
- # @return ObjectVerifyingDouble
97
- #
98
- # Constructs a test double against a specific object. Only the methods
99
- # the object responds to are allowed to be stubbed. If a String argument
100
- # is provided, it is assumed to reference a constant object which is used
101
- # for verification. In all other ways it behaves like a [double](double).
102
- def object_double(object_or_name, *args)
103
- ref = ObjectReference.for(object_or_name, :allow_direct_object_refs)
104
- ExampleMethods.declare_verifying_double(ObjectVerifyingDouble, ref, *args)
105
- end
106
-
107
- # @overload spy()
108
- # @overload spy(name)
109
- # @param name [String/Symbol] name or description to be used in failure messages
110
- # @overload spy(stubs)
111
- # @param stubs (Hash) hash of message/return-value pairs
112
- # @overload spy(name, stubs)
113
- # @param name [String/Symbol] name or description to be used in failure messages
114
- # @param stubs (Hash) hash of message/return-value pairs
115
- # @return (Double)
116
- #
117
- # Constructs a test double that is optimized for use with
118
- # `have_received`. With a normal double one has to stub methods in order
119
- # to be able to spy them. A spy automatically spies on all methods.
120
- def spy(*args)
121
- double(*args).as_null_object
122
- end
123
-
124
- # @overload instance_spy(doubled_class)
125
- # @param doubled_class [String, Class]
126
- # @overload instance_spy(doubled_class, name)
127
- # @param doubled_class [String, Class]
128
- # @param name [String/Symbol] name or description to be used in failure messages
129
- # @overload instance_spy(doubled_class, stubs)
130
- # @param doubled_class [String, Class]
131
- # @param stubs [Hash] hash of message/return-value pairs
132
- # @overload instance_spy(doubled_class, name, stubs)
133
- # @param doubled_class [String, Class]
134
- # @param name [String/Symbol] name or description to be used in failure messages
135
- # @param stubs [Hash] hash of message/return-value pairs
136
- # @return InstanceVerifyingDouble
137
- #
138
- # Constructs a test double that is optimized for use with `have_received`
139
- # against a specific class. If the given class name has been loaded, only
140
- # instance methods defined on the class are allowed to be stubbed. With
141
- # a normal double one has to stub methods in order to be able to spy
142
- # them. An instance_spy automatically spies on all instance methods to
143
- # which the class responds.
144
- def instance_spy(*args)
145
- instance_double(*args).as_null_object
146
- end
147
-
148
- # @overload object_spy(object_or_name)
149
- # @param object_or_name [String, Object]
150
- # @overload object_spy(object_or_name, name)
151
- # @param object_or_name [String, Class]
152
- # @param name [String/Symbol] name or description to be used in failure messages
153
- # @overload object_spy(object_or_name, stubs)
154
- # @param object_or_name [String, Object]
155
- # @param stubs [Hash] hash of message/return-value pairs
156
- # @overload object_spy(object_or_name, name, stubs)
157
- # @param object_or_name [String, Class]
158
- # @param name [String/Symbol] name or description to be used in failure messages
159
- # @param stubs [Hash] hash of message/return-value pairs
160
- # @return ObjectVerifyingDouble
161
- #
162
- # Constructs a test double that is optimized for use with `have_received`
163
- # against a specific object. Only instance methods defined on the object
164
- # are allowed to be stubbed. With a normal double one has to stub
165
- # methods in order to be able to spy them. An object_spy automatically
166
- # spies on all methods to which the object responds.
167
- def object_spy(*args)
168
- object_double(*args).as_null_object
169
- end
170
-
171
- # @overload class_spy(doubled_class)
172
- # @param doubled_class [String, Module]
173
- # @overload class_spy(doubled_class, name)
174
- # @param doubled_class [String, Class]
175
- # @param name [String/Symbol] name or description to be used in failure messages
176
- # @overload class_spy(doubled_class, stubs)
177
- # @param doubled_class [String, Module]
178
- # @param stubs [Hash] hash of message/return-value pairs
179
- # @overload class_spy(doubled_class, name, stubs)
180
- # @param doubled_class [String, Class]
181
- # @param name [String/Symbol] name or description to be used in failure messages
182
- # @param stubs [Hash] hash of message/return-value pairs
183
- # @return ClassVerifyingDouble
184
- #
185
- # Constructs a test double that is optimized for use with `have_received`
186
- # against a specific class. If the given class name has been loaded,
187
- # only class methods defined on the class are allowed to be stubbed.
188
- # With a normal double one has to stub methods in order to be able to spy
189
- # them. An class_spy automatically spies on all class methods to which the
190
- # class responds.
191
- def class_spy(*args)
192
- class_double(*args).as_null_object
193
- end
194
-
195
- # Disables warning messages about expectations being set on nil.
196
- #
197
- # By default warning messages are issued when expectations are set on
198
- # nil. This is to prevent false-positives and to catch potential bugs
199
- # early on.
200
- # @deprecated Use {RSpec::Mocks::Configuration#allow_message_expectations_on_nil} instead.
201
- def allow_message_expectations_on_nil
202
- RSpec::Mocks.space.proxy_for(nil).warn_about_expectations = false
203
- end
204
-
205
- # Stubs the named constant with the given value.
206
- # Like method stubs, the constant will be restored
207
- # to its original value (or lack of one, if it was
208
- # undefined) when the example completes.
209
- #
210
- # @param constant_name [String] The fully qualified name of the constant. The current
211
- # constant scoping at the point of call is not considered.
212
- # @param value [Object] The value to make the constant refer to. When the
213
- # example completes, the constant will be restored to its prior state.
214
- # @param options [Hash] Stubbing options.
215
- # @option options :transfer_nested_constants [Boolean, Array<Symbol>] Determines
216
- # what nested constants, if any, will be transferred from the original value
217
- # of the constant to the new value of the constant. This only works if both
218
- # the original and new values are modules (or classes).
219
- # @return [Object] the stubbed value of the constant
220
- #
221
- # @example
222
- # stub_const("MyClass", Class.new) # => Replaces (or defines) MyClass with a new class object.
223
- # stub_const("SomeModel::PER_PAGE", 5) # => Sets SomeModel::PER_PAGE to 5.
224
- #
225
- # class CardDeck
226
- # SUITS = [:Spades, :Diamonds, :Clubs, :Hearts]
227
- # NUM_CARDS = 52
228
- # end
229
- #
230
- # stub_const("CardDeck", Class.new)
231
- # CardDeck::SUITS # => uninitialized constant error
232
- # CardDeck::NUM_CARDS # => uninitialized constant error
233
- #
234
- # stub_const("CardDeck", Class.new, :transfer_nested_constants => true)
235
- # CardDeck::SUITS # => our suits array
236
- # CardDeck::NUM_CARDS # => 52
237
- #
238
- # stub_const("CardDeck", Class.new, :transfer_nested_constants => [:SUITS])
239
- # CardDeck::SUITS # => our suits array
240
- # CardDeck::NUM_CARDS # => uninitialized constant error
241
- def stub_const(constant_name, value, options={})
242
- ConstantMutator.stub(constant_name, value, options)
243
- end
244
-
245
- # Hides the named constant with the given value. The constant will be
246
- # undefined for the duration of the test.
247
- #
248
- # Like method stubs, the constant will be restored to its original value
249
- # when the example completes.
250
- #
251
- # @param constant_name [String] The fully qualified name of the constant.
252
- # The current constant scoping at the point of call is not considered.
253
- #
254
- # @example
255
- # hide_const("MyClass") # => MyClass is now an undefined constant
256
- def hide_const(constant_name)
257
- ConstantMutator.hide(constant_name)
258
- end
259
-
260
- # Verifies that the given object received the expected message during the
261
- # course of the test. On a spy objects or as null object doubles this
262
- # works for any method, on other objects the method must have
263
- # been stubbed beforehand in order for messages to be verified.
264
- #
265
- # Stubbing and verifying messages received in this way implements the
266
- # Test Spy pattern.
267
- #
268
- # @param method_name [Symbol] name of the method expected to have been
269
- # called.
270
- #
271
- # @example
272
- # invitation = double('invitation', accept: true)
273
- # user.accept_invitation(invitation)
274
- # expect(invitation).to have_received(:accept)
275
- #
276
- # # You can also use most message expectations:
277
- # expect(invitation).to have_received(:accept).with(mailer).once
278
- #
279
- # @note `have_received(...).with(...)` is unable to work properly when
280
- # passed arguments are mutated after the spy records the received message.
281
- def have_received(method_name, &block)
282
- Matchers::HaveReceived.new(method_name, &block)
283
- end
284
-
285
- # Turns off the verifying of partial doubles for the duration of the
286
- # block, this is useful in situations where methods are defined at run
287
- # time and you wish to define stubs for them but not turn off partial
288
- # doubles for the entire run suite. (e.g. view specs in rspec-rails).
289
- def without_partial_double_verification
290
- original_state = Mocks.configuration.temporarily_suppress_partial_double_verification
291
- Mocks.configuration.temporarily_suppress_partial_double_verification = true
292
- yield
293
- ensure
294
- Mocks.configuration.temporarily_suppress_partial_double_verification = original_state
295
- end
296
-
297
- # @method expect
298
- # Used to wrap an object in preparation for setting a mock expectation
299
- # on it.
300
- #
301
- # @example
302
- # expect(obj).to receive(:foo).with(5).and_return(:return_value)
303
- #
304
- # @note This method is usually provided by rspec-expectations. However,
305
- # if you use rspec-mocks without rspec-expectations, there's a definition
306
- # of it that is made available here. If you disable the `:expect` syntax
307
- # this method will be undefined.
308
-
309
- # @method allow
310
- # Used to wrap an object in preparation for stubbing a method
311
- # on it.
312
- #
313
- # @example
314
- # allow(dbl).to receive(:foo).with(5).and_return(:return_value)
315
- #
316
- # @note If you disable the `:expect` syntax this method will be undefined.
317
-
318
- # @method expect_any_instance_of
319
- # Used to wrap a class in preparation for setting a mock expectation
320
- # on instances of it.
321
- #
322
- # @example
323
- # expect_any_instance_of(MyClass).to receive(:foo)
324
- #
325
- # @note If you disable the `:expect` syntax this method will be undefined.
326
-
327
- # @method allow_any_instance_of
328
- # Used to wrap a class in preparation for stubbing a method
329
- # on instances of it.
330
- #
331
- # @example
332
- # allow_any_instance_of(MyClass).to receive(:foo)
333
- #
334
- # @note This is only available when you have enabled the `expect` syntax.
335
-
336
- # @method receive
337
- # Used to specify a message that you expect or allow an object
338
- # to receive. The object returned by `receive` supports the same
339
- # fluent interface that `should_receive` and `stub` have always
340
- # supported, allowing you to constrain the arguments or number of
341
- # times, and configure how the object should respond to the message.
342
- #
343
- # @example
344
- # expect(obj).to receive(:hello).with("world").exactly(3).times
345
- #
346
- # @note If you disable the `:expect` syntax this method will be undefined.
347
-
348
- # @method receive_messages
349
- # Shorthand syntax used to setup message(s), and their return value(s),
350
- # that you expect or allow an object to receive. The method takes a hash
351
- # of messages and their respective return values. Unlike with `receive`,
352
- # you cannot apply further customizations using a block or the fluent
353
- # interface.
354
- #
355
- # @example
356
- # allow(obj).to receive_messages(:speak => "Hello World")
357
- # allow(obj).to receive_messages(:speak => "Hello", :meow => "Meow")
358
- #
359
- # @note If you disable the `:expect` syntax this method will be undefined.
360
-
361
- # @method receive_message_chain
362
- # @overload receive_message_chain(method1, method2)
363
- # @overload receive_message_chain("method1.method2")
364
- # @overload receive_message_chain(method1, method_to_value_hash)
365
- #
366
- # stubs/mocks a chain of messages on an object or test double.
367
- #
368
- # ## Warning:
369
- #
370
- # Chains can be arbitrarily long, which makes it quite painless to
371
- # violate the Law of Demeter in violent ways, so you should consider any
372
- # use of `receive_message_chain` a code smell. Even though not all code smells
373
- # indicate real problems (think fluent interfaces), `receive_message_chain` still
374
- # results in brittle examples. For example, if you write
375
- # `allow(foo).to receive_message_chain(:bar, :baz => 37)` in a spec and then the
376
- # implementation calls `foo.baz.bar`, the stub will not work.
377
- #
378
- # @example
379
- # allow(double).to receive_message_chain("foo.bar") { :baz }
380
- # allow(double).to receive_message_chain(:foo, :bar => :baz)
381
- # allow(double).to receive_message_chain(:foo, :bar) { :baz }
382
- #
383
- # # Given any of ^^ these three forms ^^:
384
- # double.foo.bar # => :baz
385
- #
386
- # # Common use in Rails/ActiveRecord:
387
- # allow(Article).to receive_message_chain("recent.published") { [Article.new] }
388
- #
389
- # @note If you disable the `:expect` syntax this method will be undefined.
390
-
391
- # @private
392
- def self.included(klass)
393
- klass.class_exec do
394
- # This gets mixed in so that if `RSpec::Matchers` is included in
395
- # `klass` later, its definition of `expect` will take precedence.
396
- include ExpectHost unless method_defined?(:expect)
397
- end
398
- end
399
-
400
- # @private
401
- def self.extended(object)
402
- # This gets extended in so that if `RSpec::Matchers` is included in
403
- # `klass` later, its definition of `expect` will take precedence.
404
- object.extend ExpectHost unless object.respond_to?(:expect)
405
- end
406
-
407
- # @private
408
- def self.declare_verifying_double(type, ref, *args)
409
- if RSpec::Mocks.configuration.verify_doubled_constant_names? &&
410
- !ref.defined?
411
-
412
- RSpec::Mocks.error_generator.raise_verifying_double_not_defined_error(ref)
413
- end
414
-
415
- RSpec::Mocks.configuration.verifying_double_callbacks.each do |block|
416
- block.call(ref)
417
- end
418
-
419
- declare_double(type, ref, *args)
420
- end
421
-
422
- # @private
423
- def self.declare_double(type, *args)
424
- args << {} unless Hash === args.last
425
- type.new(*args)
426
- end
427
-
428
- # This module exists to host the `expect` method for cases where
429
- # rspec-mocks is used w/o rspec-expectations.
430
- module ExpectHost
431
- end
432
- end
433
- end
434
- end