takuya-lvm-snapshot 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +4 -0
  4. data/Gemfile +10 -0
  5. data/LICENSE +674 -0
  6. data/README.md +80 -0
  7. data/Rakefile +4 -0
  8. data/bin/console +15 -0
  9. data/bin/setup +8 -0
  10. data/bundle/ruby/2.7.0/bin/htmldiff +29 -0
  11. data/bundle/ruby/2.7.0/bin/ldiff +29 -0
  12. data/bundle/ruby/2.7.0/bin/rake +27 -0
  13. data/bundle/ruby/2.7.0/bin/rspec +27 -0
  14. data/bundle/ruby/2.7.0/cache/diff-lcs-1.5.0.gem +0 -0
  15. data/bundle/ruby/2.7.0/cache/rake-13.0.3.gem +0 -0
  16. data/bundle/ruby/2.7.0/cache/rspec-3.12.0.gem +0 -0
  17. data/bundle/ruby/2.7.0/cache/rspec-core-3.12.0.gem +0 -0
  18. data/bundle/ruby/2.7.0/cache/rspec-expectations-3.12.1.gem +0 -0
  19. data/bundle/ruby/2.7.0/cache/rspec-mocks-3.12.1.gem +0 -0
  20. data/bundle/ruby/2.7.0/cache/rspec-support-3.12.0.gem +0 -0
  21. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/.rspec +1 -0
  22. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/Code-of-Conduct.md +74 -0
  23. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/Contributing.md +119 -0
  24. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/History.md +400 -0
  25. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/License.md +39 -0
  26. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/Manifest.txt +59 -0
  27. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/README.rdoc +84 -0
  28. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/Rakefile +121 -0
  29. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/bin/htmldiff +35 -0
  30. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/bin/ldiff +9 -0
  31. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/docs/COPYING.txt +339 -0
  32. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/docs/artistic.txt +127 -0
  33. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/array.rb +7 -0
  34. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/backports.rb +9 -0
  35. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/block.rb +37 -0
  36. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/callbacks.rb +325 -0
  37. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/change.rb +174 -0
  38. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/htmldiff.rb +150 -0
  39. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/hunk.rb +358 -0
  40. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/internals.rb +308 -0
  41. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/ldiff.rb +171 -0
  42. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs/string.rb +5 -0
  43. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff/lcs.rb +739 -0
  44. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/lib/diff-lcs.rb +3 -0
  45. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/change_spec.rb +89 -0
  46. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/diff_spec.rb +51 -0
  47. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/aX +1 -0
  48. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/bXaX +1 -0
  49. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ds1.csv +50 -0
  50. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ds2.csv +51 -0
  51. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff +4 -0
  52. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff-c +7 -0
  53. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff-e +3 -0
  54. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff-f +3 -0
  55. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff-u +5 -0
  56. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef +4 -0
  57. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef-c +15 -0
  58. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef-e +3 -0
  59. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef-f +3 -0
  60. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef-u +9 -0
  61. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2 +7 -0
  62. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2-c +20 -0
  63. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2-d +7 -0
  64. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2-e +7 -0
  65. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2-f +7 -0
  66. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/ldiff/output.diff.chef2-u +16 -0
  67. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/new-chef +4 -0
  68. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/new-chef2 +17 -0
  69. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/old-chef +4 -0
  70. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/fixtures/old-chef2 +14 -0
  71. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/hunk_spec.rb +83 -0
  72. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/issues_spec.rb +154 -0
  73. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/lcs_spec.rb +56 -0
  74. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/ldiff_spec.rb +87 -0
  75. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/patch_spec.rb +416 -0
  76. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/sdiff_spec.rb +214 -0
  77. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/spec_helper.rb +374 -0
  78. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/traverse_balanced_spec.rb +310 -0
  79. data/bundle/ruby/2.7.0/gems/diff-lcs-1.5.0/spec/traverse_sequences_spec.rb +137 -0
  80. data/bundle/ruby/2.7.0/gems/rake-13.0.3/CONTRIBUTING.rdoc +43 -0
  81. data/bundle/ruby/2.7.0/gems/rake-13.0.3/Gemfile +10 -0
  82. data/bundle/ruby/2.7.0/gems/rake-13.0.3/History.rdoc +2386 -0
  83. data/bundle/ruby/2.7.0/gems/rake-13.0.3/MIT-LICENSE +21 -0
  84. data/bundle/ruby/2.7.0/gems/rake-13.0.3/README.rdoc +155 -0
  85. data/bundle/ruby/2.7.0/gems/rake-13.0.3/Rakefile +41 -0
  86. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/bundle +105 -0
  87. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/console +7 -0
  88. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/rake +29 -0
  89. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/rdoc +29 -0
  90. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/rubocop +29 -0
  91. data/bundle/ruby/2.7.0/gems/rake-13.0.3/bin/setup +6 -0
  92. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/command_line_usage.rdoc +158 -0
  93. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/example/Rakefile1 +38 -0
  94. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/example/Rakefile2 +35 -0
  95. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/example/a.c +6 -0
  96. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/example/b.c +6 -0
  97. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/example/main.c +11 -0
  98. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/glossary.rdoc +42 -0
  99. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/jamis.rb +592 -0
  100. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/proto_rake.rdoc +127 -0
  101. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/rake.1 +156 -0
  102. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/rakefile.rdoc +622 -0
  103. data/bundle/ruby/2.7.0/gems/rake-13.0.3/doc/rational.rdoc +151 -0
  104. data/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake +27 -0
  105. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb +824 -0
  106. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/backtrace.rb +24 -0
  107. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/clean.rb +78 -0
  108. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/cloneable.rb +17 -0
  109. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/cpu_counter.rb +107 -0
  110. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/default_loader.rb +15 -0
  111. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/dsl_definition.rb +195 -0
  112. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/early_time.rb +22 -0
  113. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/ext/core.rb +26 -0
  114. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/ext/string.rb +176 -0
  115. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/file_creation_task.rb +25 -0
  116. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/file_list.rb +435 -0
  117. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/file_task.rb +54 -0
  118. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/file_utils.rb +134 -0
  119. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/file_utils_ext.rb +134 -0
  120. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/invocation_chain.rb +57 -0
  121. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/invocation_exception_mixin.rb +17 -0
  122. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/late_time.rb +18 -0
  123. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/linked_list.rb +112 -0
  124. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/loaders/makefile.rb +54 -0
  125. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/multi_task.rb +14 -0
  126. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/name_space.rb +38 -0
  127. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/packagetask.rb +222 -0
  128. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/phony.rb +16 -0
  129. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/private_reader.rb +21 -0
  130. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/promise.rb +100 -0
  131. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/pseudo_status.rb +30 -0
  132. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb +67 -0
  133. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb +27 -0
  134. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
  135. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/scope.rb +43 -0
  136. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb +434 -0
  137. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task_argument_error.rb +8 -0
  138. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task_arguments.rb +109 -0
  139. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task_manager.rb +331 -0
  140. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/tasklib.rb +12 -0
  141. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/testtask.rb +189 -0
  142. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/thread_history_display.rb +49 -0
  143. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/thread_pool.rb +163 -0
  144. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/trace_output.rb +23 -0
  145. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/version.rb +10 -0
  146. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/win32.rb +51 -0
  147. data/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake.rb +71 -0
  148. data/bundle/ruby/2.7.0/gems/rake-13.0.3/rake.gemspec +43 -0
  149. data/bundle/ruby/2.7.0/gems/rspec-3.12.0/LICENSE.md +27 -0
  150. data/bundle/ruby/2.7.0/gems/rspec-3.12.0/README.md +47 -0
  151. data/bundle/ruby/2.7.0/gems/rspec-3.12.0/lib/rspec/version.rb +5 -0
  152. data/bundle/ruby/2.7.0/gems/rspec-3.12.0/lib/rspec.rb +3 -0
  153. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/.document +5 -0
  154. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/.yardopts +8 -0
  155. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/Changelog.md +2360 -0
  156. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/LICENSE.md +26 -0
  157. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/README.md +384 -0
  158. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/exe/rspec +4 -0
  159. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/autorun.rb +3 -0
  160. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/backtrace_formatter.rb +65 -0
  161. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/coordinator.rb +62 -0
  162. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
  163. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/fork_runner.rb +138 -0
  164. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/server.rb +61 -0
  165. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/shell_command.rb +126 -0
  166. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
  167. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/utilities.rb +69 -0
  168. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/configuration.rb +2385 -0
  169. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/configuration_options.rb +233 -0
  170. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/did_you_mean.rb +46 -0
  171. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/drb.rb +120 -0
  172. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/dsl.rb +98 -0
  173. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/example.rb +666 -0
  174. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/example_group.rb +905 -0
  175. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/example_status_persister.rb +235 -0
  176. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/filter_manager.rb +231 -0
  177. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/flat_map.rb +20 -0
  178. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
  179. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
  180. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  181. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
  182. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
  183. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/console_codes.rb +76 -0
  184. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  185. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
  186. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb +525 -0
  187. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
  188. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  189. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/helpers.rb +118 -0
  190. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
  191. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_printer.rb +412 -0
  192. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  193. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
  194. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  195. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  196. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/protocol.rb +182 -0
  197. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  198. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  199. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters.rb +279 -0
  200. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb +646 -0
  201. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb +87 -0
  202. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/memoized_helpers.rb +580 -0
  203. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/metadata.rb +498 -0
  204. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/metadata_filter.rb +255 -0
  205. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  206. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  207. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  208. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
  209. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  210. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  211. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb +521 -0
  212. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/option_parser.rb +323 -0
  213. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/ordering.rb +169 -0
  214. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb +29 -0
  215. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/pending.rb +157 -0
  216. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/profiler.rb +34 -0
  217. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/project_initializer/.rspec +1 -0
  218. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +98 -0
  219. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/project_initializer.rb +48 -0
  220. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/rake_task.rb +188 -0
  221. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/reporter.rb +265 -0
  222. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/ruby_project.rb +53 -0
  223. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/runner.rb +212 -0
  224. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/sandbox.rb +37 -0
  225. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/set.rb +54 -0
  226. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/shared_context.rb +55 -0
  227. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/shared_example_group.rb +271 -0
  228. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/shell_escape.rb +49 -0
  229. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  230. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/version.rb +9 -0
  231. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/warnings.rb +40 -0
  232. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core/world.rb +287 -0
  233. data/bundle/ruby/2.7.0/gems/rspec-core-3.12.0/lib/rspec/core.rb +212 -0
  234. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/.document +5 -0
  235. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/.yardopts +6 -0
  236. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/Changelog.md +1294 -0
  237. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/LICENSE.md +25 -0
  238. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/README.md +320 -0
  239. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
  240. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/configuration.rb +230 -0
  241. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/expectation_target.rb +163 -0
  242. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/fail_with.rb +39 -0
  243. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/failure_aggregator.rb +229 -0
  244. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/handler.rb +182 -0
  245. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/minitest_integration.rb +58 -0
  246. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/syntax.rb +132 -0
  247. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations/version.rb +8 -0
  248. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/expectations.rb +82 -0
  249. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/aliased_matcher.rb +116 -0
  250. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/all.rb +86 -0
  251. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/base_matcher.rb +198 -0
  252. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/be.rb +191 -0
  253. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/be_between.rb +77 -0
  254. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
  255. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
  256. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/be_within.rb +72 -0
  257. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/change.rb +450 -0
  258. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/compound.rb +290 -0
  259. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/contain_exactly.rb +310 -0
  260. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/count_expectation.rb +169 -0
  261. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/cover.rb +24 -0
  262. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/eq.rb +40 -0
  263. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/eql.rb +34 -0
  264. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/equal.rb +81 -0
  265. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/exist.rb +90 -0
  266. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/has.rb +167 -0
  267. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  268. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/include.rb +206 -0
  269. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/match.rb +106 -0
  270. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/operators.rb +128 -0
  271. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/output.rb +207 -0
  272. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/raise_error.rb +271 -0
  273. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/respond_to.rb +200 -0
  274. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/satisfy.rb +60 -0
  275. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  276. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/throw_symbol.rb +138 -0
  277. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in/yield.rb +375 -0
  278. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/built_in.rb +53 -0
  279. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/composable.rb +171 -0
  280. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/dsl.rb +545 -0
  281. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/english_phrasing.rb +58 -0
  282. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
  283. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/fail_matchers.rb +42 -0
  284. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/generated_descriptions.rb +41 -0
  285. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/matcher_delegator.rb +35 -0
  286. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers/matcher_protocol.rb +105 -0
  287. data/bundle/ruby/2.7.0/gems/rspec-expectations-3.12.1/lib/rspec/matchers.rb +1044 -0
  288. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/.document +5 -0
  289. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/.yardopts +6 -0
  290. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/Changelog.md +1227 -0
  291. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/LICENSE.md +25 -0
  292. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/README.md +463 -0
  293. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/chain.rb +111 -0
  294. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  295. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
  296. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
  297. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  298. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  299. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/recorder.rb +295 -0
  300. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
  301. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  302. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/any_instance.rb +11 -0
  303. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/argument_list_matcher.rb +115 -0
  304. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/argument_matchers.rb +322 -0
  305. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/configuration.rb +212 -0
  306. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/error_generator.rb +390 -0
  307. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/example_methods.rb +434 -0
  308. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/instance_method_stasher.rb +146 -0
  309. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/marshal_extension.rb +41 -0
  310. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  311. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/have_received.rb +134 -0
  312. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive.rb +133 -0
  313. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  314. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  315. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/message_chain.rb +87 -0
  316. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/message_expectation.rb +820 -0
  317. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/method_double.rb +309 -0
  318. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/method_reference.rb +214 -0
  319. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/minitest_integration.rb +68 -0
  320. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/mutate_const.rb +339 -0
  321. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/object_reference.rb +149 -0
  322. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/order_group.rb +81 -0
  323. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/proxy.rb +519 -0
  324. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/space.rb +238 -0
  325. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/standalone.rb +3 -0
  326. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/syntax.rb +325 -0
  327. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/targets.rb +124 -0
  328. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/test_double.rb +171 -0
  329. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/verifying_double.rb +121 -0
  330. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/verifying_message_expectation.rb +55 -0
  331. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/verifying_proxy.rb +220 -0
  332. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks/version.rb +9 -0
  333. data/bundle/ruby/2.7.0/gems/rspec-mocks-3.12.1/lib/rspec/mocks.rb +133 -0
  334. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/Changelog.md +364 -0
  335. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/LICENSE.md +23 -0
  336. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/README.md +40 -0
  337. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/caller_filter.rb +83 -0
  338. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/comparable_version.rb +46 -0
  339. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/differ.rb +215 -0
  340. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/directory_maker.rb +63 -0
  341. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/encoded_string.rb +161 -0
  342. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
  343. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/hunk_generator.rb +47 -0
  344. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/matcher_definition.rb +42 -0
  345. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/method_signature_verifier.rb +438 -0
  346. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/mutex.rb +73 -0
  347. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/object_formatter.rb +275 -0
  348. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/recursive_const_methods.rb +76 -0
  349. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/reentrant_mutex.rb +78 -0
  350. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/ruby_features.rb +198 -0
  351. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/source/location.rb +21 -0
  352. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/source/node.rb +110 -0
  353. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/source/token.rb +94 -0
  354. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/source.rb +85 -0
  355. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/deprecation_helpers.rb +48 -0
  356. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/diff_helpers.rb +31 -0
  357. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/formatting_support.rb +9 -0
  358. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/in_sub_process.rb +67 -0
  359. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
  360. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/shell_out.rb +105 -0
  361. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/stderr_splitter.rb +75 -0
  362. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/string_matcher.rb +45 -0
  363. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
  364. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  365. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/spec.rb +82 -0
  366. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/version.rb +7 -0
  367. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/warnings.rb +39 -0
  368. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support/with_keywords_when_needed.rb +33 -0
  369. data/bundle/ruby/2.7.0/gems/rspec-support-3.12.0/lib/rspec/support.rb +154 -0
  370. data/bundle/ruby/2.7.0/specifications/diff-lcs-1.5.0.gemspec +50 -0
  371. data/bundle/ruby/2.7.0/specifications/rake-13.0.3.gemspec +26 -0
  372. data/bundle/ruby/2.7.0/specifications/rspec-3.12.0.gemspec +39 -0
  373. data/bundle/ruby/2.7.0/specifications/rspec-core-3.12.0.gemspec +53 -0
  374. data/bundle/ruby/2.7.0/specifications/rspec-expectations-3.12.1.gemspec +44 -0
  375. data/bundle/ruby/2.7.0/specifications/rspec-mocks-3.12.1.gemspec +44 -0
  376. data/bundle/ruby/2.7.0/specifications/rspec-support-3.12.0.gemspec +36 -0
  377. data/lib/takuya/lvm_snapshot/version.rb +7 -0
  378. data/lib/takuya/lvm_snapshot.rb +111 -0
  379. data/takuya-lvm-snapshot.gemspec +34 -0
  380. metadata +424 -0
@@ -0,0 +1,21 @@
1
+ Copyright (c) Jim Weirich
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
@@ -0,0 +1,155 @@
1
+ = RAKE -- Ruby Make
2
+
3
+ home :: https://github.com/ruby/rake
4
+ bugs :: https://github.com/ruby/rake/issues
5
+ docs :: https://ruby.github.io/rake
6
+
7
+ == Description
8
+
9
+ Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
10
+ specified in standard Ruby syntax.
11
+
12
+ Rake has the following features:
13
+
14
+ * Rakefiles (rake's version of Makefiles) are completely defined in
15
+ standard Ruby syntax. No XML files to edit. No quirky Makefile
16
+ syntax to worry about (is that a tab or a space?)
17
+
18
+ * Users can specify tasks with prerequisites.
19
+
20
+ * Rake supports rule patterns to synthesize implicit tasks.
21
+
22
+ * Flexible FileLists that act like arrays but know about manipulating
23
+ file names and paths.
24
+
25
+ * A library of prepackaged tasks to make building rakefiles easier. For example,
26
+ tasks for building tarballs. (Formerly
27
+ tasks for building RDoc, Gems, and publishing to FTP were included in rake but they're now
28
+ available in RDoc, RubyGems, and rake-contrib respectively.)
29
+
30
+ * Supports parallel execution of tasks.
31
+
32
+ == Installation
33
+
34
+ === Gem Installation
35
+
36
+ Download and install rake with the following.
37
+
38
+ gem install rake
39
+
40
+ == Usage
41
+
42
+ === Simple Example
43
+
44
+ First, you must write a "Rakefile" file which contains the build rules. Here's
45
+ a simple example:
46
+
47
+ task default: %w[test]
48
+
49
+ task :test do
50
+ ruby "test/unittest.rb"
51
+ end
52
+
53
+ This Rakefile has two tasks:
54
+
55
+ * A task named "test", which -- upon invocation -- will run a unit test file
56
+ in Ruby.
57
+ * A task named "default". This task does nothing by itself, but it has exactly
58
+ one dependency, namely the "test" task. Invoking the "default" task will
59
+ cause Rake to invoke the "test" task as well.
60
+
61
+ Running the "rake" command without any options will cause it to run the
62
+ "default" task in the Rakefile:
63
+
64
+ % ls
65
+ Rakefile test/
66
+ % rake
67
+ (in /home/some_user/Projects/rake)
68
+ ruby test/unittest.rb
69
+ ....unit test output here...
70
+
71
+ Type "rake --help" for all available options.
72
+
73
+ == Resources
74
+
75
+ === Rake Information
76
+
77
+ * {Rake command-line}[link:doc/command_line_usage.rdoc]
78
+ * {Writing Rakefiles}[link:doc/rakefile.rdoc]
79
+ * The original {Rake announcement}[link:doc/rational.rdoc]
80
+ * Rake {glossary}[link:doc/glossary.rdoc]
81
+
82
+ === Presentations and Articles about Rake
83
+
84
+ * Avdi Grimm's rake series:
85
+ 1. {Rake Basics}[https://avdi.codes/rake-part-1-basics/]
86
+ 2. {Rake File Lists}[https://avdi.codes/rake-part-2-file-lists-2/]
87
+ 3. {Rake Rules}[https://avdi.codes/rake-part-3-rules/]
88
+ 4. {Rake Pathmap}[https://avdi.codes/rake-part-4-pathmap/]
89
+ 5. {File Operations}[https://avdi.codes/rake-part-5-file-operations/]
90
+ 6. {Clean and Clobber}[https://avdi.codes/rake-part-6-clean-and-clobber/]
91
+ 7. {MultiTask}[https://avdi.codes/rake-part-7-multitask/]
92
+ * {Jim Weirich's 2003 RubyConf presentation}[https://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/]
93
+ * Martin Fowler's article on Rake: https://martinfowler.com/articles/rake.html
94
+
95
+ == Other Make Re-envisionings ...
96
+
97
+ Rake is a late entry in the make replacement field. Here are links to
98
+ other projects with similar (and not so similar) goals.
99
+
100
+ * https://directory.fsf.org/wiki/Bras -- Bras, one of earliest
101
+ implementations of "make in a scripting language".
102
+ * http://www.a-a-p.org -- Make in Python
103
+ * https://ant.apache.org -- The Ant project
104
+ * https://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
105
+ * https://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
106
+
107
+ == Credits
108
+
109
+ [<b>Jim Weirich</b>] Who originally created Rake.
110
+
111
+ [<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
112
+
113
+ [<b>Nobuyoshi Nakada <nobu@ruby-lang.org></b>] For the initial patch for rule support.
114
+
115
+ [<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
116
+
117
+ [<b>Eric Hodel</b>] For aid in maintaining rake.
118
+
119
+ [<b>Hiroshi SHIBATA</b>] Maintainer of Rake 10.X and Rake 11.X
120
+
121
+ == License
122
+
123
+ Rake is available under an MIT-style license.
124
+
125
+ :include: MIT-LICENSE
126
+
127
+ ---
128
+
129
+ = Other stuff
130
+
131
+ Author:: Jim Weirich <jim.weirich@gmail.com>
132
+ Requires:: Ruby 2.0.0 or later
133
+ License:: Copyright Jim Weirich.
134
+ Released under an MIT-style license. See the MIT-LICENSE
135
+ file included in the distribution.
136
+
137
+ == Warranty
138
+
139
+ This software is provided "as is" and without any express or implied
140
+ warranties, including, without limitation, the implied warranties of
141
+ merchantability and fitness for a particular purpose.
142
+
143
+ == Historical
144
+
145
+ Rake was originally created by Jim Weirich, who unfortunately passed away in
146
+ February 2014. This repository was originally hosted at
147
+ {github.com/jimweirich/rake}[https://github.com/jimweirich/rake/], however
148
+ with his passing, has been moved to {ruby/rake}[https://github.com/ruby/rake].
149
+
150
+ You can view Jim's last commit here:
151
+ https://github.com/jimweirich/rake/tree/336559f28f55bce418e2ebcc0a57548dcbac4025
152
+
153
+ You can {read more about Jim}[https://en.wikipedia.org/wiki/Jim_Weirich] at Wikipedia.
154
+
155
+ Thank you for this great tool, Jim. We'll remember you.
@@ -0,0 +1,41 @@
1
+ # Rakefile for rake -*- ruby -*-
2
+
3
+ # Copyright 2003, 2004, 2005 by Jim Weirich (jim@weirichhouse.org)
4
+ # All rights reserved.
5
+
6
+ # This file may be distributed under an MIT style license. See
7
+ # MIT-LICENSE for details.
8
+
9
+ lib = File.expand_path("../lib", __FILE__)
10
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
11
+
12
+ begin
13
+ require "bundler/gem_tasks"
14
+ rescue LoadError
15
+ end
16
+
17
+ require "rake/testtask"
18
+ Rake::TestTask.new(:test) do |t|
19
+ t.libs << "test"
20
+ t.verbose = true
21
+ t.test_files = FileList["test/**/test_*.rb"]
22
+ end
23
+
24
+ require "rdoc/task"
25
+ RDoc::Task.new do |doc|
26
+ doc.main = "README.rdoc"
27
+ doc.title = "Rake -- Ruby Make"
28
+ doc.rdoc_files = FileList.new %w[lib MIT-LICENSE doc/**/*.rdoc *.rdoc]
29
+ doc.rdoc_dir = "html"
30
+ end
31
+
32
+ task ghpages: :rdoc do
33
+ %x[git checkout gh-pages]
34
+ require "fileutils"
35
+ FileUtils.rm_rf "/tmp/html"
36
+ FileUtils.mv "html", "/tmp"
37
+ FileUtils.rm_rf "*"
38
+ FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
39
+ end
40
+
41
+ task default: :test
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1 || ">= 0.a"
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||= begin
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version || "#{Gem::Requirement.default}.a"
67
+ end
68
+ end
69
+
70
+ def load_bundler!
71
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
72
+
73
+ # must dup string for RG < 1.8 compatibility
74
+ activate_bundler(bundler_version.dup)
75
+ end
76
+
77
+ def activate_bundler(bundler_version)
78
+ if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79
+ bundler_version = "< 2"
80
+ end
81
+ gem_error = activation_error_handling do
82
+ gem "bundler", bundler_version
83
+ end
84
+ return if gem_error.nil?
85
+ require_error = activation_error_handling do
86
+ require "bundler/version"
87
+ end
88
+ return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89
+ warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
90
+ exit 42
91
+ end
92
+
93
+ def activation_error_handling
94
+ yield
95
+ nil
96
+ rescue StandardError, LoadError => e
97
+ e
98
+ end
99
+ end
100
+
101
+ m.load_bundler!
102
+
103
+ if m.invoked_as_script?
104
+ load Gem.bin_path("bundler", "bundle")
105
+ end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rake"
5
+
6
+ require "irb"
7
+ IRB.start
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rake", "rake")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rdoc' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rdoc", "rdoc")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rubocop", "rubocop")
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
@@ -0,0 +1,158 @@
1
+ = Rake Command Line Usage
2
+
3
+ Rake is invoked from the command line using:
4
+
5
+ % rake [options ...] [VAR=VALUE ...] [targets ...]
6
+
7
+ Options are:
8
+
9
+ [<tt><em>name</em>=<em>value</em></tt>]
10
+ Set the environment variable <em>name</em> to <em>value</em>
11
+ during the execution of the <b>rake</b> command. You can access
12
+ the value by using ENV['<em>name</em>'].
13
+
14
+ [<tt>--all</tt> (-A)]
15
+ Used in combination with the -T and -D options, will force
16
+ those options to show all the tasks, even the ones without comments.
17
+
18
+ [<tt>--backtrace</tt>{=_output_} (-n)]
19
+ Enable a full backtrace (i.e. like --trace, but without the task
20
+ tracing details). The _output_ parameter is optional, but if
21
+ specified it controls where the backtrace output is sent. If
22
+ _output_ is <tt>stdout</tt>, then backtrace output is directed to
23
+ standard output. If _output_ is <tt>stderr</tt>, or if it is
24
+ missing, then the backtrace output is sent to standard error.
25
+
26
+ [<tt>--comments</tt>]
27
+ Used in combination with the -W options to force the output to
28
+ contain commented options only. This is the reverse of
29
+ <tt>--all</tt>.
30
+
31
+ [<tt>--describe</tt> _pattern_ (-D)]
32
+ Describe the tasks (matching optional PATTERN), then exit.
33
+
34
+ [<tt>--dry-run</tt> (-n)]
35
+ Do a dry run. Print the tasks invoked and executed, but do not
36
+ actually execute any of the actions.
37
+
38
+ [<tt>--execute</tt> _code_ (-e)]
39
+ Execute some Ruby code and exit.
40
+
41
+ [<tt>--execute-print</tt> _code_ (-p)]
42
+ Execute some Ruby code, print the result, and exit.
43
+
44
+ [<tt>--execute-continue</tt> _code_ (-E)]
45
+ Execute some Ruby code, then continue with normal task processing.
46
+
47
+ [<tt>--help</tt> (-H)]
48
+ Display some help text and exit.
49
+
50
+ [<tt>--jobs</tt> _number_ (-j)]
51
+
52
+ Specifies the maximum number of concurrent threads allowed. Rake
53
+ will allocate threads as needed up to this maximum number.
54
+
55
+ If omitted, Rake will attempt to estimate the number of CPUs on
56
+ the system and add 4 to that number.
57
+
58
+ The concurrent threads are used to execute the <tt>multitask</tt>
59
+ prerequisites. Also see the <tt>-m</tt> option which turns all
60
+ tasks into multitasks.
61
+
62
+ Sample values:
63
+ (no -j) : Allow up to (# of CPUs + 4) number of threads
64
+ --jobs : Allow unlimited number of threads
65
+ --jobs=1 : Allow only one thread (the main thread)
66
+ --jobs=16 : Allow up to 16 concurrent threads
67
+
68
+ [<tt>--job-stats</tt> _level_]
69
+
70
+ Display job statistics at the completion of the run. By default,
71
+ this will display the requested number of active threads (from the
72
+ -j options) and the maximum number of threads in play at any given
73
+ time.
74
+
75
+ If the optional _level_ is <tt>history</tt>, then a complete trace
76
+ of task history will be displayed on standard output.
77
+
78
+ [<tt>--libdir</tt> _directory_ (-I)]
79
+ Add _directory_ to the list of directories searched for require.
80
+
81
+ [<tt>--multitask</tt> (-m)]
82
+ Treat all tasks as multitasks. ('make/drake' semantics)
83
+
84
+ [<tt>--nosearch</tt> (-N)]
85
+ Do not search for a Rakefile in parent directories.
86
+
87
+ [<tt>--prereqs</tt> (-P)]
88
+ Display a list of all tasks and their immediate prerequisites.
89
+
90
+ [<tt>--quiet</tt> (-q)]
91
+ Do not echo commands from FileUtils.
92
+
93
+ [<tt>--rakefile</tt> _filename_ (-f)]
94
+ Use _filename_ as the name of the rakefile. The default rakefile
95
+ names are +rakefile+ and +Rakefile+ (with +rakefile+ taking
96
+ precedence). If the rakefile is not found in the current
97
+ directory, +rake+ will search parent directories for a match. The
98
+ directory where the Rakefile is found will become the current
99
+ directory for the actions executed in the Rakefile.
100
+
101
+ [<tt>--rakelibdir</tt> _rakelibdir_ (-R)]
102
+ Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
103
+
104
+ [<tt>--require</tt> _name_ (-r)]
105
+ Require _name_ before executing the Rakefile.
106
+
107
+ [<tt>--rules</tt>]
108
+ Trace the rules resolution.
109
+
110
+ [<tt>--silent (-s)</tt>]
111
+ Like --quiet, but also suppresses the 'in directory' announcement.
112
+
113
+ [<tt>--suppress-backtrace _pattern_ </tt>]
114
+ Line matching the regular expression _pattern_ will be removed
115
+ from the backtrace output. Note that the --backtrace option is the
116
+ full backtrace without these lines suppressed.
117
+
118
+ [<tt>--system</tt> (-g)]
119
+ Use the system wide (global) rakefiles. The project Rakefile is
120
+ ignored. By default, the system wide rakefiles are used only if no
121
+ project Rakefile is found. On Unix-like system, the system wide
122
+ rake files are located in $HOME/.rake. On a windows system they
123
+ are stored in $APPDATA/Rake.
124
+
125
+ [<tt>--no-system</tt> (-G)]
126
+ Use the project level Rakefile, ignoring the system-wide (global)
127
+ rakefiles.
128
+
129
+ [<tt>--tasks</tt> <em>pattern</em> (-T)]
130
+ Display a list of the major tasks and their comments. Comments
131
+ are defined using the "desc" command. If a pattern is given, then
132
+ only tasks matching the pattern are displayed.
133
+
134
+ [<tt>--trace</tt>{=_output_} (-t)]
135
+ Turn on invoke/execute tracing. Also enable full backtrace on
136
+ errors. The _output_ parameter is optional, but if specified it
137
+ controls where the trace output is sent. If _output_ is
138
+ <tt>stdout</tt>, then trace output is directed to standard output.
139
+ If _output_ is <tt>stderr</tt>, or if it is missing, then trace
140
+ output is sent to standard error.
141
+
142
+ [<tt>--verbose</tt> (-v)]
143
+ Echo the Sys commands to standard output.
144
+
145
+ [<tt>--version</tt> (-V)]
146
+ Display the program version and exit.
147
+
148
+ [<tt>--where</tt> <em>pattern</em> (-W)]
149
+ Display tasks that match <em>pattern</em> and the file and line
150
+ number where the task is defined. By default this option will
151
+ display all tasks, not just the tasks that have descriptions.
152
+
153
+ [<tt>--no-deprecation-warnings</tt> (-X)]
154
+ Do not display the deprecation warnings.
155
+
156
+ In addition, any command line option of the form
157
+ <em>VAR</em>=<em>VALUE</em> will be added to the environment hash
158
+ <tt>ENV</tt> and may be tested in the Rakefile.
@@ -0,0 +1,38 @@
1
+ # Example Rakefile -*- ruby -*-
2
+
3
+ task :default => [:main]
4
+
5
+ file "a.o" => ["a.c"] do |t|
6
+ src = t.name.sub(/\.o$/, '.c')
7
+ sh "gcc #{src} -c -o #{t.name}"
8
+ end
9
+
10
+ file "b.o" => ["b.c"] do |t|
11
+ src = t.name.sub(/\.o$/, '.c')
12
+ sh "gcc #{src} -c -o #{t.name}"
13
+ end
14
+
15
+ file "main.o" => ["main.c"] do |t|
16
+ src = t.name.sub(/\.o$/, '.c')
17
+ sh "gcc #{src} -c -o #{t.name}"
18
+ end
19
+
20
+ OBJFILES = ["a.o", "b.o", "main.o"]
21
+ task :obj => OBJFILES
22
+
23
+ file "main" => OBJFILES do |t|
24
+ sh "gcc -o #{t.name} main.o a.o b.o"
25
+ end
26
+
27
+ task :clean do
28
+ rm_f FileList['*.o']
29
+ Dir['*~'].each { |fn| rm_f fn }
30
+ end
31
+
32
+ task :clobber => [:clean] do
33
+ rm_f "main"
34
+ end
35
+
36
+ task :run => ["main"] do
37
+ sh "./main"
38
+ end
@@ -0,0 +1,35 @@
1
+ # Example Rakefile -*- ruby -*-
2
+ # Using the power of Ruby
3
+
4
+ task :default => [:main]
5
+
6
+ def ext(fn, newext)
7
+ fn.sub(/\.[^.]+$/, newext)
8
+ end
9
+
10
+ SRCFILES = Dir['*.c']
11
+ OBJFILES = SRCFILES.collect { |fn| ext(fn,".o") }
12
+
13
+ OBJFILES.each do |objfile|
14
+ srcfile = ext(objfile, ".c")
15
+ file objfile => [srcfile] do |t|
16
+ sh "gcc #{srcfile} -c -o #{t.name}"
17
+ end
18
+ end
19
+
20
+ file "main" => OBJFILES do |t|
21
+ sh "gcc -o #{t.name} main.o a.o b.o"
22
+ end
23
+
24
+ task :clean do
25
+ rm_f FileList['*.o']
26
+ Dir['*~'].each { |fn| rm_f fn }
27
+ end
28
+
29
+ task :clobber => [:clean] do
30
+ rm_f "main"
31
+ end
32
+
33
+ task :run => ["main"] do
34
+ sh "./main"
35
+ end
@@ -0,0 +1,6 @@
1
+ #include <stdio.h>
2
+
3
+ void a()
4
+ {
5
+ printf ("In function a\n");
6
+ }
@@ -0,0 +1,6 @@
1
+ #include <stdio.h>
2
+
3
+ void b()
4
+ {
5
+ printf ("In function b\n");
6
+ }
@@ -0,0 +1,11 @@
1
+ #include <stdio.h>
2
+
3
+ extern void a();
4
+ extern void b();
5
+
6
+ int main ()
7
+ {
8
+ a();
9
+ b();
10
+ return 0;
11
+ }