spec_fill 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (498) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +39 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/exe/spec_fill +4 -0
  12. data/lib/spec_fill/cli.rb +62 -0
  13. data/lib/spec_fill/version.rb +3 -0
  14. data/lib/spec_fill.rb +51 -0
  15. data/spec_fill.gemspec +39 -0
  16. data/vendor/bundle/ruby/2.6.0/bin/factory_fill +27 -0
  17. data/vendor/bundle/ruby/2.6.0/bin/htmldiff +29 -0
  18. data/vendor/bundle/ruby/2.6.0/bin/ldiff +29 -0
  19. data/vendor/bundle/ruby/2.6.0/bin/rake +27 -0
  20. data/vendor/bundle/ruby/2.6.0/bin/rspec +27 -0
  21. data/vendor/bundle/ruby/2.6.0/bin/thor +27 -0
  22. data/vendor/bundle/ruby/2.6.0/cache/diff-lcs-1.3.gem +0 -0
  23. data/vendor/bundle/ruby/2.6.0/cache/rake-10.5.0.gem +0 -0
  24. data/vendor/bundle/ruby/2.6.0/cache/rspec-3.9.0.gem +0 -0
  25. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.0.gem +0 -0
  26. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.9.0.gem +0 -0
  27. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.9.0.gem +0 -0
  28. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.9.0.gem +0 -0
  29. data/vendor/bundle/ruby/2.6.0/cache/thor-0.20.3.gem +0 -0
  30. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/.rspec +1 -0
  31. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
  32. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Contributing.md +83 -0
  33. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/History.md +220 -0
  34. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/License.md +39 -0
  35. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
  36. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/README.rdoc +84 -0
  37. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Rakefile +57 -0
  38. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
  39. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
  40. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
  41. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
  42. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
  43. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
  44. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
  45. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
  46. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
  47. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
  48. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
  49. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
  50. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
  51. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
  52. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
  53. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
  54. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
  55. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
  56. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
  57. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
  58. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
  59. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
  60. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
  61. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
  62. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
  63. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
  64. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
  65. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
  66. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
  67. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.autotest +7 -0
  68. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.rubocop.yml +27 -0
  69. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.togglerc +7 -0
  70. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
  71. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/History.rdoc +659 -0
  72. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
  73. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/Manifest.txt +166 -0
  74. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/README.rdoc +139 -0
  75. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/Rakefile +81 -0
  76. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/bin/rake +33 -0
  77. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
  78. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
  79. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
  80. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/a.c +6 -0
  81. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/b.c +6 -0
  82. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/main.c +11 -0
  83. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
  84. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/jamis.rb +591 -0
  85. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
  86. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rake.1 +141 -0
  87. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
  88. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rational.rdoc +151 -0
  89. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
  90. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
  91. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
  92. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
  93. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
  94. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
  95. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
  96. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
  97. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
  98. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
  99. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
  100. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
  101. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
  102. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
  103. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
  104. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
  105. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
  106. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
  107. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
  108. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
  109. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
  110. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
  111. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
  112. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
  113. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
  114. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
  115. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
  116. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
  117. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
  118. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
  119. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
  120. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
  121. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
  122. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
  123. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
  124. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
  125. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
  126. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
  127. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
  128. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  129. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
  130. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
  131. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
  132. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
  133. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
  134. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
  135. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
  136. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
  138. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
  139. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
  142. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
  143. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
  144. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
  145. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
  146. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
  147. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
  148. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
  149. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
  150. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
  151. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
  152. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
  154. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
  155. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
  156. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
  157. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
  158. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
  159. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
  160. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
  161. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
  162. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
  165. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
  169. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
  170. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
  171. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
  172. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
  173. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
  174. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
  175. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
  176. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
  177. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake.rb +79 -0
  178. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
  179. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
  180. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
  181. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/helper.rb +129 -0
  182. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
  183. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
  184. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
  185. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
  186. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
  187. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
  188. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
  189. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
  190. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
  191. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
  192. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
  195. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
  196. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
  197. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
  198. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
  199. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
  200. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
  201. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
  202. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
  203. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
  204. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
  205. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
  206. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
  207. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
  208. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
  209. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
  210. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
  211. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
  212. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
  213. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
  214. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
  215. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
  216. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
  217. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
  218. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
  219. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
  220. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
  221. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
  224. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
  225. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
  227. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
  228. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
  229. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
  230. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
  231. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
  232. data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
  233. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/LICENSE.md +27 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/README.md +43 -0
  235. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/lib/rspec/version.rb +5 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/lib/rspec.rb +3 -0
  237. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/.document +5 -0
  238. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/.yardopts +8 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/Changelog.md +2265 -0
  240. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/LICENSE.md +26 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/README.md +384 -0
  242. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/exe/rspec +4 -0
  243. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/autorun.rb +3 -0
  244. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/backtrace_formatter.rb +65 -0
  245. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/coordinator.rb +62 -0
  246. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
  247. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/fork_runner.rb +134 -0
  248. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/server.rb +61 -0
  249. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_command.rb +126 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
  251. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/utilities.rb +58 -0
  252. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration.rb +2336 -0
  253. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration_options.rb +233 -0
  254. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/did_you_mean.rb +46 -0
  255. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/drb.rb +113 -0
  256. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/dsl.rb +98 -0
  257. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example.rb +656 -0
  258. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb +889 -0
  259. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example_status_persister.rb +235 -0
  260. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/filter_manager.rb +231 -0
  261. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/flat_map.rb +20 -0
  262. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
  263. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
  264. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  265. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
  266. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
  267. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/console_codes.rb +68 -0
  268. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  269. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
  270. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/exception_presenter.rb +508 -0
  271. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
  272. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  273. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/helpers.rb +110 -0
  274. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
  275. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_printer.rb +414 -0
  276. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  277. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
  278. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  279. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  280. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/protocol.rb +182 -0
  281. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  282. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  283. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters.rb +272 -0
  284. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb +632 -0
  285. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/invocations.rb +87 -0
  286. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb +554 -0
  287. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata.rb +498 -0
  288. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata_filter.rb +255 -0
  289. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  290. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  291. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  292. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  294. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  295. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/notifications.rb +521 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/option_parser.rb +317 -0
  297. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/ordering.rb +158 -0
  298. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb +29 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/pending.rb +165 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/profiler.rb +34 -0
  301. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/.rspec +1 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer.rb +48 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/rake_task.rb +188 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/reporter.rb +265 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/ruby_project.rb +53 -0
  307. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb +204 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/sandbox.rb +37 -0
  309. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/set.rb +54 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_context.rb +55 -0
  311. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_example_group.rb +269 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shell_escape.rb +49 -0
  313. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/version.rb +9 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/warnings.rb +40 -0
  316. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/world.rb +275 -0
  317. data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core.rb +186 -0
  318. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/.document +5 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/.yardopts +6 -0
  320. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/Changelog.md +1170 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/LICENSE.md +25 -0
  322. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/README.md +320 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/configuration.rb +215 -0
  325. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/expectation_target.rb +127 -0
  326. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/fail_with.rb +39 -0
  327. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
  328. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/handler.rb +170 -0
  329. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/minitest_integration.rb +58 -0
  330. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/syntax.rb +132 -0
  331. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/version.rb +8 -0
  332. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations.rb +82 -0
  333. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
  334. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/all.rb +86 -0
  335. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
  336. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be.rb +288 -0
  337. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
  338. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
  339. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
  340. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
  341. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/change.rb +428 -0
  342. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/compound.rb +276 -0
  343. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
  344. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/cover.rb +24 -0
  345. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eq.rb +40 -0
  346. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eql.rb +34 -0
  347. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/equal.rb +81 -0
  348. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/exist.rb +90 -0
  349. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/has.rb +103 -0
  350. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  351. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/include.rb +149 -0
  352. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/match.rb +106 -0
  353. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/operators.rb +128 -0
  354. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/output.rb +200 -0
  355. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
  356. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/respond_to.rb +174 -0
  357. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/satisfy.rb +60 -0
  358. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  359. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
  360. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/yield.rb +432 -0
  361. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in.rb +52 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/composable.rb +171 -0
  363. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/dsl.rb +534 -0
  364. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/english_phrasing.rb +58 -0
  365. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
  366. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/fail_matchers.rb +42 -0
  367. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/generated_descriptions.rb +41 -0
  368. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
  369. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
  370. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers.rb +1038 -0
  371. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/.document +5 -0
  372. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/.yardopts +6 -0
  373. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/Changelog.md +1125 -0
  374. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/LICENSE.md +25 -0
  375. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/README.md +463 -0
  376. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/chain.rb +111 -0
  377. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  378. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
  379. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
  380. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  381. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  382. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
  383. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
  384. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  385. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance.rb +11 -0
  386. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
  387. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_matchers.rb +322 -0
  388. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/configuration.rb +212 -0
  389. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/error_generator.rb +369 -0
  390. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/example_methods.rb +434 -0
  391. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
  392. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/marshal_extension.rb +41 -0
  393. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  394. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/have_received.rb +134 -0
  395. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive.rb +132 -0
  396. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  397. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  398. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_chain.rb +87 -0
  399. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_expectation.rb +751 -0
  400. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_double.rb +287 -0
  401. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_reference.rb +202 -0
  402. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/minitest_integration.rb +68 -0
  403. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/mutate_const.rb +339 -0
  404. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/object_reference.rb +149 -0
  405. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/order_group.rb +81 -0
  406. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/proxy.rb +503 -0
  407. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/space.rb +238 -0
  408. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/standalone.rb +3 -0
  409. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/syntax.rb +325 -0
  410. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/targets.rb +124 -0
  411. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/test_double.rb +171 -0
  412. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_double.rb +129 -0
  413. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
  414. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
  415. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/version.rb +9 -0
  416. data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks.rb +130 -0
  417. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/Changelog.md +275 -0
  418. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/LICENSE.md +23 -0
  419. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/README.md +40 -0
  420. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/caller_filter.rb +83 -0
  421. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/comparable_version.rb +46 -0
  422. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/differ.rb +215 -0
  423. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/directory_maker.rb +63 -0
  424. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/encoded_string.rb +165 -0
  425. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
  426. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/hunk_generator.rb +47 -0
  427. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/matcher_definition.rb +42 -0
  428. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/method_signature_verifier.rb +438 -0
  429. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/mutex.rb +73 -0
  430. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/object_formatter.rb +275 -0
  431. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/recursive_const_methods.rb +76 -0
  432. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/reentrant_mutex.rb +53 -0
  433. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/ruby_features.rb +176 -0
  434. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/location.rb +21 -0
  435. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/node.rb +110 -0
  436. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/token.rb +87 -0
  437. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source.rb +75 -0
  438. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
  439. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/formatting_support.rb +9 -0
  440. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
  441. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
  442. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/shell_out.rb +89 -0
  443. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
  444. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/string_matcher.rb +46 -0
  445. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
  446. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  447. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec.rb +81 -0
  448. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/version.rb +7 -0
  449. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/warnings.rb +39 -0
  450. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support.rb +149 -0
  451. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/.document +5 -0
  452. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/CHANGELOG.md +204 -0
  453. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/CONTRIBUTING.md +15 -0
  454. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/LICENSE.md +20 -0
  455. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/README.md +51 -0
  456. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/bin/thor +6 -0
  457. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb +104 -0
  458. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/create_link.rb +60 -0
  459. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/directory.rb +118 -0
  460. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/empty_directory.rb +143 -0
  461. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/file_manipulation.rb +373 -0
  462. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/inject_into_file.rb +109 -0
  463. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions.rb +331 -0
  464. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/base.rb +678 -0
  465. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb +135 -0
  466. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/hash_with_indifferent_access.rb +97 -0
  467. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb +12 -0
  468. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/ordered_hash.rb +129 -0
  469. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/error.rb +114 -0
  470. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/group.rb +281 -0
  471. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb +177 -0
  472. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor/basic.rb +37 -0
  473. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor/readline.rb +88 -0
  474. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor.rb +17 -0
  475. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/argument.rb +70 -0
  476. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/arguments.rb +175 -0
  477. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/option.rb +146 -0
  478. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/options.rb +226 -0
  479. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser.rb +4 -0
  480. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/rake_compat.rb +71 -0
  481. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/runner.rb +324 -0
  482. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/basic.rb +482 -0
  483. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/color.rb +149 -0
  484. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/html.rb +126 -0
  485. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell.rb +81 -0
  486. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/util.rb +268 -0
  487. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/version.rb +3 -0
  488. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb +509 -0
  489. data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/thor.gemspec +21 -0
  490. data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.3.gemspec +61 -0
  491. data/vendor/bundle/ruby/2.6.0/specifications/rake-10.5.0.gemspec +43 -0
  492. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.9.0.gemspec +43 -0
  493. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.9.0.gemspec +63 -0
  494. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.9.0.gemspec +51 -0
  495. data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.9.0.gemspec +51 -0
  496. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.9.0.gemspec +39 -0
  497. data/vendor/bundle/ruby/2.6.0/specifications/thor-0.20.3.gemspec +35 -0
  498. metadata +600 -0
@@ -0,0 +1,60 @@
1
+ require "thor/actions/create_file"
2
+
3
+ class Thor
4
+ module Actions
5
+ # Create a new file relative to the destination root from the given source.
6
+ #
7
+ # ==== Parameters
8
+ # destination<String>:: the relative path to the destination root.
9
+ # source<String|NilClass>:: the relative path to the source root.
10
+ # config<Hash>:: give :verbose => false to not log the status.
11
+ # :: give :symbolic => false for hard link.
12
+ #
13
+ # ==== Examples
14
+ #
15
+ # create_link "config/apache.conf", "/etc/apache.conf"
16
+ #
17
+ def create_link(destination, *args)
18
+ config = args.last.is_a?(Hash) ? args.pop : {}
19
+ source = args.first
20
+ action CreateLink.new(self, destination, source, config)
21
+ end
22
+ alias_method :add_link, :create_link
23
+
24
+ # CreateLink is a subset of CreateFile, which instead of taking a block of
25
+ # data, just takes a source string from the user.
26
+ #
27
+ class CreateLink < CreateFile #:nodoc:
28
+ attr_reader :data
29
+
30
+ # Checks if the content of the file at the destination is identical to the rendered result.
31
+ #
32
+ # ==== Returns
33
+ # Boolean:: true if it is identical, false otherwise.
34
+ #
35
+ def identical?
36
+ exists? && File.identical?(render, destination)
37
+ end
38
+
39
+ def invoke!
40
+ invoke_with_conflict_check do
41
+ require "fileutils"
42
+ FileUtils.mkdir_p(File.dirname(destination))
43
+ # Create a symlink by default
44
+ config[:symbolic] = true if config[:symbolic].nil?
45
+ File.unlink(destination) if exists?
46
+ if config[:symbolic]
47
+ File.symlink(render, destination)
48
+ else
49
+ File.link(render, destination)
50
+ end
51
+ end
52
+ given_destination
53
+ end
54
+
55
+ def exists?
56
+ super || File.symlink?(destination)
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,118 @@
1
+ require "thor/actions/empty_directory"
2
+
3
+ class Thor
4
+ module Actions
5
+ # Copies recursively the files from source directory to root directory.
6
+ # If any of the files finishes with .tt, it's considered to be a template
7
+ # and is placed in the destination without the extension .tt. If any
8
+ # empty directory is found, it's copied and all .empty_directory files are
9
+ # ignored. If any file name is wrapped within % signs, the text within
10
+ # the % signs will be executed as a method and replaced with the returned
11
+ # value. Let's suppose a doc directory with the following files:
12
+ #
13
+ # doc/
14
+ # components/.empty_directory
15
+ # README
16
+ # rdoc.rb.tt
17
+ # %app_name%.rb
18
+ #
19
+ # When invoked as:
20
+ #
21
+ # directory "doc"
22
+ #
23
+ # It will create a doc directory in the destination with the following
24
+ # files (assuming that the `app_name` method returns the value "blog"):
25
+ #
26
+ # doc/
27
+ # components/
28
+ # README
29
+ # rdoc.rb
30
+ # blog.rb
31
+ #
32
+ # <b>Encoded path note:</b> Since Thor internals use Object#respond_to? to check if it can
33
+ # expand %something%, this `something` should be a public method in the class calling
34
+ # #directory. If a method is private, Thor stack raises PrivateMethodEncodedError.
35
+ #
36
+ # ==== Parameters
37
+ # source<String>:: the relative path to the source root.
38
+ # destination<String>:: the relative path to the destination root.
39
+ # config<Hash>:: give :verbose => false to not log the status.
40
+ # If :recursive => false, does not look for paths recursively.
41
+ # If :mode => :preserve, preserve the file mode from the source.
42
+ # If :exclude_pattern => /regexp/, prevents copying files that match that regexp.
43
+ #
44
+ # ==== Examples
45
+ #
46
+ # directory "doc"
47
+ # directory "doc", "docs", :recursive => false
48
+ #
49
+ def directory(source, *args, &block)
50
+ config = args.last.is_a?(Hash) ? args.pop : {}
51
+ destination = args.first || source
52
+ action Directory.new(self, source, destination || source, config, &block)
53
+ end
54
+
55
+ class Directory < EmptyDirectory #:nodoc:
56
+ attr_reader :source
57
+
58
+ def initialize(base, source, destination = nil, config = {}, &block)
59
+ @source = File.expand_path(base.find_in_source_paths(source.to_s))
60
+ @block = block
61
+ super(base, destination, {:recursive => true}.merge(config))
62
+ end
63
+
64
+ def invoke!
65
+ base.empty_directory given_destination, config
66
+ execute!
67
+ end
68
+
69
+ def revoke!
70
+ execute!
71
+ end
72
+
73
+ protected
74
+
75
+ def execute!
76
+ lookup = Util.escape_globs(source)
77
+ lookup = config[:recursive] ? File.join(lookup, "**") : lookup
78
+ lookup = file_level_lookup(lookup)
79
+
80
+ files(lookup).sort.each do |file_source|
81
+ next if File.directory?(file_source)
82
+ next if config[:exclude_pattern] && file_source.match(config[:exclude_pattern])
83
+ file_destination = File.join(given_destination, file_source.gsub(source, "."))
84
+ file_destination.gsub!("/./", "/")
85
+
86
+ case file_source
87
+ when /\.empty_directory$/
88
+ dirname = File.dirname(file_destination).gsub(%r{/\.$}, "")
89
+ next if dirname == given_destination
90
+ base.empty_directory(dirname, config)
91
+ when /#{TEMPLATE_EXTNAME}$/
92
+ base.template(file_source, file_destination[0..-4], config, &@block)
93
+ else
94
+ base.copy_file(file_source, file_destination, config, &@block)
95
+ end
96
+ end
97
+ end
98
+
99
+ if RUBY_VERSION < "2.0"
100
+ def file_level_lookup(previous_lookup)
101
+ File.join(previous_lookup, "{*,.[a-z]*}")
102
+ end
103
+
104
+ def files(lookup)
105
+ Dir[lookup]
106
+ end
107
+ else
108
+ def file_level_lookup(previous_lookup)
109
+ File.join(previous_lookup, "*")
110
+ end
111
+
112
+ def files(lookup)
113
+ Dir.glob(lookup, File::FNM_DOTMATCH)
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,143 @@
1
+ class Thor
2
+ module Actions
3
+ # Creates an empty directory.
4
+ #
5
+ # ==== Parameters
6
+ # destination<String>:: the relative path to the destination root.
7
+ # config<Hash>:: give :verbose => false to not log the status.
8
+ #
9
+ # ==== Examples
10
+ #
11
+ # empty_directory "doc"
12
+ #
13
+ def empty_directory(destination, config = {})
14
+ action EmptyDirectory.new(self, destination, config)
15
+ end
16
+
17
+ # Class which holds create directory logic. This is the base class for
18
+ # other actions like create_file and directory.
19
+ #
20
+ # This implementation is based in Templater actions, created by Jonas Nicklas
21
+ # and Michael S. Klishin under MIT LICENSE.
22
+ #
23
+ class EmptyDirectory #:nodoc:
24
+ attr_reader :base, :destination, :given_destination, :relative_destination, :config
25
+
26
+ # Initializes given the source and destination.
27
+ #
28
+ # ==== Parameters
29
+ # base<Thor::Base>:: A Thor::Base instance
30
+ # source<String>:: Relative path to the source of this file
31
+ # destination<String>:: Relative path to the destination of this file
32
+ # config<Hash>:: give :verbose => false to not log the status.
33
+ #
34
+ def initialize(base, destination, config = {})
35
+ @base = base
36
+ @config = {:verbose => true}.merge(config)
37
+ self.destination = destination
38
+ end
39
+
40
+ # Checks if the destination file already exists.
41
+ #
42
+ # ==== Returns
43
+ # Boolean:: true if the file exists, false otherwise.
44
+ #
45
+ def exists?
46
+ ::File.exist?(destination)
47
+ end
48
+
49
+ def invoke!
50
+ invoke_with_conflict_check do
51
+ require "fileutils"
52
+ ::FileUtils.mkdir_p(destination)
53
+ end
54
+ end
55
+
56
+ def revoke!
57
+ say_status :remove, :red
58
+ require "fileutils"
59
+ ::FileUtils.rm_rf(destination) if !pretend? && exists?
60
+ given_destination
61
+ end
62
+
63
+ protected
64
+
65
+ # Shortcut for pretend.
66
+ #
67
+ def pretend?
68
+ base.options[:pretend]
69
+ end
70
+
71
+ # Sets the absolute destination value from a relative destination value.
72
+ # It also stores the given and relative destination. Let's suppose our
73
+ # script is being executed on "dest", it sets the destination root to
74
+ # "dest". The destination, given_destination and relative_destination
75
+ # are related in the following way:
76
+ #
77
+ # inside "bar" do
78
+ # empty_directory "baz"
79
+ # end
80
+ #
81
+ # destination #=> dest/bar/baz
82
+ # relative_destination #=> bar/baz
83
+ # given_destination #=> baz
84
+ #
85
+ def destination=(destination)
86
+ return unless destination
87
+ @given_destination = convert_encoded_instructions(destination.to_s)
88
+ @destination = ::File.expand_path(@given_destination, base.destination_root)
89
+ @relative_destination = base.relative_to_original_destination_root(@destination)
90
+ end
91
+
92
+ # Filenames in the encoded form are converted. If you have a file:
93
+ #
94
+ # %file_name%.rb
95
+ #
96
+ # It calls #file_name from the base and replaces %-string with the
97
+ # return value (should be String) of #file_name:
98
+ #
99
+ # user.rb
100
+ #
101
+ # The method referenced can be either public or private.
102
+ #
103
+ def convert_encoded_instructions(filename)
104
+ filename.gsub(/%(.*?)%/) do |initial_string|
105
+ method = $1.strip
106
+ base.respond_to?(method, true) ? base.send(method) : initial_string
107
+ end
108
+ end
109
+
110
+ # Receives a hash of options and just execute the block if some
111
+ # conditions are met.
112
+ #
113
+ def invoke_with_conflict_check(&block)
114
+ if exists?
115
+ on_conflict_behavior(&block)
116
+ else
117
+ yield unless pretend?
118
+ say_status :create, :green
119
+ end
120
+
121
+ destination
122
+ rescue Errno::EISDIR, Errno::EEXIST
123
+ on_file_clash_behavior
124
+ end
125
+
126
+ def on_file_clash_behavior
127
+ say_status :file_clash, :red
128
+ end
129
+
130
+ # What to do when the destination file already exists.
131
+ #
132
+ def on_conflict_behavior
133
+ say_status :exist, :blue
134
+ end
135
+
136
+ # Shortcut to say_status shell method.
137
+ #
138
+ def say_status(status, color)
139
+ base.shell.say_status status, relative_destination, color if config[:verbose]
140
+ end
141
+ end
142
+ end
143
+ end
@@ -0,0 +1,373 @@
1
+ require "erb"
2
+
3
+ class Thor
4
+ module Actions
5
+ # Copies the file from the relative source to the relative destination. If
6
+ # the destination is not given it's assumed to be equal to the source.
7
+ #
8
+ # ==== Parameters
9
+ # source<String>:: the relative path to the source root.
10
+ # destination<String>:: the relative path to the destination root.
11
+ # config<Hash>:: give :verbose => false to not log the status, and
12
+ # :mode => :preserve, to preserve the file mode from the source.
13
+
14
+ #
15
+ # ==== Examples
16
+ #
17
+ # copy_file "README", "doc/README"
18
+ #
19
+ # copy_file "doc/README"
20
+ #
21
+ def copy_file(source, *args, &block)
22
+ config = args.last.is_a?(Hash) ? args.pop : {}
23
+ destination = args.first || source
24
+ source = File.expand_path(find_in_source_paths(source.to_s))
25
+
26
+ create_file destination, nil, config do
27
+ content = File.binread(source)
28
+ content = yield(content) if block
29
+ content
30
+ end
31
+ if config[:mode] == :preserve
32
+ mode = File.stat(source).mode
33
+ chmod(destination, mode, config)
34
+ end
35
+ end
36
+
37
+ # Links the file from the relative source to the relative destination. If
38
+ # the destination is not given it's assumed to be equal to the source.
39
+ #
40
+ # ==== Parameters
41
+ # source<String>:: the relative path to the source root.
42
+ # destination<String>:: the relative path to the destination root.
43
+ # config<Hash>:: give :verbose => false to not log the status.
44
+ #
45
+ # ==== Examples
46
+ #
47
+ # link_file "README", "doc/README"
48
+ #
49
+ # link_file "doc/README"
50
+ #
51
+ def link_file(source, *args)
52
+ config = args.last.is_a?(Hash) ? args.pop : {}
53
+ destination = args.first || source
54
+ source = File.expand_path(find_in_source_paths(source.to_s))
55
+
56
+ create_link destination, source, config
57
+ end
58
+
59
+ # Gets the content at the given address and places it at the given relative
60
+ # destination. If a block is given instead of destination, the content of
61
+ # the url is yielded and used as location.
62
+ #
63
+ # +get+ relies on open-uri, so passing application user input would provide
64
+ # a command injection attack vector.
65
+ #
66
+ # ==== Parameters
67
+ # source<String>:: the address of the given content.
68
+ # destination<String>:: the relative path to the destination root.
69
+ # config<Hash>:: give :verbose => false to not log the status.
70
+ #
71
+ # ==== Examples
72
+ #
73
+ # get "http://gist.github.com/103208", "doc/README"
74
+ #
75
+ # get "http://gist.github.com/103208" do |content|
76
+ # content.split("\n").first
77
+ # end
78
+ #
79
+ def get(source, *args, &block)
80
+ config = args.last.is_a?(Hash) ? args.pop : {}
81
+ destination = args.first
82
+
83
+ if source =~ %r{^https?\://}
84
+ require "open-uri"
85
+ else
86
+ source = File.expand_path(find_in_source_paths(source.to_s))
87
+ end
88
+
89
+ render = open(source) { |input| input.binmode.read }
90
+
91
+ destination ||= if block_given?
92
+ block.arity == 1 ? yield(render) : yield
93
+ else
94
+ File.basename(source)
95
+ end
96
+
97
+ create_file destination, render, config
98
+ end
99
+
100
+ # Gets an ERB template at the relative source, executes it and makes a copy
101
+ # at the relative destination. If the destination is not given it's assumed
102
+ # to be equal to the source removing .tt from the filename.
103
+ #
104
+ # ==== Parameters
105
+ # source<String>:: the relative path to the source root.
106
+ # destination<String>:: the relative path to the destination root.
107
+ # config<Hash>:: give :verbose => false to not log the status.
108
+ #
109
+ # ==== Examples
110
+ #
111
+ # template "README", "doc/README"
112
+ #
113
+ # template "doc/README"
114
+ #
115
+ def template(source, *args, &block)
116
+ config = args.last.is_a?(Hash) ? args.pop : {}
117
+ destination = args.first || source.sub(/#{TEMPLATE_EXTNAME}$/, "")
118
+
119
+ source = File.expand_path(find_in_source_paths(source.to_s))
120
+ context = config.delete(:context) || instance_eval("binding")
121
+
122
+ create_file destination, nil, config do
123
+ match = ERB.version.match(/(\d+\.\d+\.\d+)/)
124
+ capturable_erb = if match && match[1] >= "2.2.0" # Ruby 2.6+
125
+ CapturableERB.new(::File.binread(source), :trim_mode => "-", :eoutvar => "@output_buffer")
126
+ else
127
+ CapturableERB.new(::File.binread(source), nil, "-", "@output_buffer")
128
+ end
129
+ content = capturable_erb.tap do |erb|
130
+ erb.filename = source
131
+ end.result(context)
132
+ content = yield(content) if block
133
+ content
134
+ end
135
+ end
136
+
137
+ # Changes the mode of the given file or directory.
138
+ #
139
+ # ==== Parameters
140
+ # mode<Integer>:: the file mode
141
+ # path<String>:: the name of the file to change mode
142
+ # config<Hash>:: give :verbose => false to not log the status.
143
+ #
144
+ # ==== Example
145
+ #
146
+ # chmod "script/server", 0755
147
+ #
148
+ def chmod(path, mode, config = {})
149
+ return unless behavior == :invoke
150
+ path = File.expand_path(path, destination_root)
151
+ say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)
152
+ unless options[:pretend]
153
+ require "fileutils"
154
+ FileUtils.chmod_R(mode, path)
155
+ end
156
+ end
157
+
158
+ # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
159
+ #
160
+ # ==== Parameters
161
+ # path<String>:: path of the file to be changed
162
+ # data<String>:: the data to prepend to the file, can be also given as a block.
163
+ # config<Hash>:: give :verbose => false to not log the status.
164
+ #
165
+ # ==== Example
166
+ #
167
+ # prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"'
168
+ #
169
+ # prepend_to_file 'config/environments/test.rb' do
170
+ # 'config.gem "rspec"'
171
+ # end
172
+ #
173
+ def prepend_to_file(path, *args, &block)
174
+ config = args.last.is_a?(Hash) ? args.pop : {}
175
+ config[:after] = /\A/
176
+ insert_into_file(path, *(args << config), &block)
177
+ end
178
+ alias_method :prepend_file, :prepend_to_file
179
+
180
+ # Append text to a file. Since it depends on insert_into_file, it's reversible.
181
+ #
182
+ # ==== Parameters
183
+ # path<String>:: path of the file to be changed
184
+ # data<String>:: the data to append to the file, can be also given as a block.
185
+ # config<Hash>:: give :verbose => false to not log the status.
186
+ #
187
+ # ==== Example
188
+ #
189
+ # append_to_file 'config/environments/test.rb', 'config.gem "rspec"'
190
+ #
191
+ # append_to_file 'config/environments/test.rb' do
192
+ # 'config.gem "rspec"'
193
+ # end
194
+ #
195
+ def append_to_file(path, *args, &block)
196
+ config = args.last.is_a?(Hash) ? args.pop : {}
197
+ config[:before] = /\z/
198
+ insert_into_file(path, *(args << config), &block)
199
+ end
200
+ alias_method :append_file, :append_to_file
201
+
202
+ # Injects text right after the class definition. Since it depends on
203
+ # insert_into_file, it's reversible.
204
+ #
205
+ # ==== Parameters
206
+ # path<String>:: path of the file to be changed
207
+ # klass<String|Class>:: the class to be manipulated
208
+ # data<String>:: the data to append to the class, can be also given as a block.
209
+ # config<Hash>:: give :verbose => false to not log the status.
210
+ #
211
+ # ==== Examples
212
+ #
213
+ # inject_into_class "app/controllers/application_controller.rb", ApplicationController, " filter_parameter :password\n"
214
+ #
215
+ # inject_into_class "app/controllers/application_controller.rb", ApplicationController do
216
+ # " filter_parameter :password\n"
217
+ # end
218
+ #
219
+ def inject_into_class(path, klass, *args, &block)
220
+ config = args.last.is_a?(Hash) ? args.pop : {}
221
+ config[:after] = /class #{klass}\n|class #{klass} .*\n/
222
+ insert_into_file(path, *(args << config), &block)
223
+ end
224
+
225
+ # Injects text right after the module definition. Since it depends on
226
+ # insert_into_file, it's reversible.
227
+ #
228
+ # ==== Parameters
229
+ # path<String>:: path of the file to be changed
230
+ # module_name<String|Class>:: the module to be manipulated
231
+ # data<String>:: the data to append to the class, can be also given as a block.
232
+ # config<Hash>:: give :verbose => false to not log the status.
233
+ #
234
+ # ==== Examples
235
+ #
236
+ # inject_into_module "app/helpers/application_helper.rb", ApplicationHelper, " def help; 'help'; end\n"
237
+ #
238
+ # inject_into_module "app/helpers/application_helper.rb", ApplicationHelper do
239
+ # " def help; 'help'; end\n"
240
+ # end
241
+ #
242
+ def inject_into_module(path, module_name, *args, &block)
243
+ config = args.last.is_a?(Hash) ? args.pop : {}
244
+ config[:after] = /module #{module_name}\n|module #{module_name} .*\n/
245
+ insert_into_file(path, *(args << config), &block)
246
+ end
247
+
248
+ # Run a regular expression replacement on a file.
249
+ #
250
+ # ==== Parameters
251
+ # path<String>:: path of the file to be changed
252
+ # flag<Regexp|String>:: the regexp or string to be replaced
253
+ # replacement<String>:: the replacement, can be also given as a block
254
+ # config<Hash>:: give :verbose => false to not log the status.
255
+ #
256
+ # ==== Example
257
+ #
258
+ # gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'
259
+ #
260
+ # gsub_file 'README', /rake/, :green do |match|
261
+ # match << " no more. Use thor!"
262
+ # end
263
+ #
264
+ def gsub_file(path, flag, *args, &block)
265
+ return unless behavior == :invoke
266
+ config = args.last.is_a?(Hash) ? args.pop : {}
267
+
268
+ path = File.expand_path(path, destination_root)
269
+ say_status :gsub, relative_to_original_destination_root(path), config.fetch(:verbose, true)
270
+
271
+ unless options[:pretend]
272
+ content = File.binread(path)
273
+ content.gsub!(flag, *args, &block)
274
+ File.open(path, "wb") { |file| file.write(content) }
275
+ end
276
+ end
277
+
278
+ # Uncomment all lines matching a given regex. It will leave the space
279
+ # which existed before the comment hash in tact but will remove any spacing
280
+ # between the comment hash and the beginning of the line.
281
+ #
282
+ # ==== Parameters
283
+ # path<String>:: path of the file to be changed
284
+ # flag<Regexp|String>:: the regexp or string used to decide which lines to uncomment
285
+ # config<Hash>:: give :verbose => false to not log the status.
286
+ #
287
+ # ==== Example
288
+ #
289
+ # uncomment_lines 'config/initializers/session_store.rb', /active_record/
290
+ #
291
+ def uncomment_lines(path, flag, *args)
292
+ flag = flag.respond_to?(:source) ? flag.source : flag
293
+
294
+ gsub_file(path, /^(\s*)#[[:blank:]]*(.*#{flag})/, '\1\2', *args)
295
+ end
296
+
297
+ # Comment all lines matching a given regex. It will leave the space
298
+ # which existed before the beginning of the line in tact and will insert
299
+ # a single space after the comment hash.
300
+ #
301
+ # ==== Parameters
302
+ # path<String>:: path of the file to be changed
303
+ # flag<Regexp|String>:: the regexp or string used to decide which lines to comment
304
+ # config<Hash>:: give :verbose => false to not log the status.
305
+ #
306
+ # ==== Example
307
+ #
308
+ # comment_lines 'config/initializers/session_store.rb', /cookie_store/
309
+ #
310
+ def comment_lines(path, flag, *args)
311
+ flag = flag.respond_to?(:source) ? flag.source : flag
312
+
313
+ gsub_file(path, /^(\s*)([^#\n]*#{flag})/, '\1# \2', *args)
314
+ end
315
+
316
+ # Removes a file at the given location.
317
+ #
318
+ # ==== Parameters
319
+ # path<String>:: path of the file to be changed
320
+ # config<Hash>:: give :verbose => false to not log the status.
321
+ #
322
+ # ==== Example
323
+ #
324
+ # remove_file 'README'
325
+ # remove_file 'app/controllers/application_controller.rb'
326
+ #
327
+ def remove_file(path, config = {})
328
+ return unless behavior == :invoke
329
+ path = File.expand_path(path, destination_root)
330
+
331
+ say_status :remove, relative_to_original_destination_root(path), config.fetch(:verbose, true)
332
+ if !options[:pretend] && File.exist?(path)
333
+ require "fileutils"
334
+ ::FileUtils.rm_rf(path)
335
+ end
336
+ end
337
+ alias_method :remove_dir, :remove_file
338
+
339
+ attr_accessor :output_buffer
340
+ private :output_buffer, :output_buffer=
341
+
342
+ private
343
+
344
+ def concat(string)
345
+ @output_buffer.concat(string)
346
+ end
347
+
348
+ def capture(*args)
349
+ with_output_buffer { yield(*args) }
350
+ end
351
+
352
+ def with_output_buffer(buf = "".dup) #:nodoc:
353
+ raise ArgumentError, "Buffer can not be a frozen object" if buf.frozen?
354
+ old_buffer = output_buffer
355
+ self.output_buffer = buf
356
+ yield
357
+ output_buffer
358
+ ensure
359
+ self.output_buffer = old_buffer
360
+ end
361
+
362
+ # Thor::Actions#capture depends on what kind of buffer is used in ERB.
363
+ # Thus CapturableERB fixes ERB to use String buffer.
364
+ class CapturableERB < ERB
365
+ def set_eoutvar(compiler, eoutvar = "_erbout")
366
+ compiler.put_cmd = "#{eoutvar}.concat"
367
+ compiler.insert_cmd = "#{eoutvar}.concat"
368
+ compiler.pre_cmd = ["#{eoutvar} = ''.dup"]
369
+ compiler.post_cmd = [eoutvar]
370
+ end
371
+ end
372
+ end
373
+ end