eac_tools 0.90.0 → 0.91.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (827) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +59 -53
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/Gemfile +8 -0
  5. data/sub/avm/avm.gemspec +28 -0
  6. data/sub/avm/lib/avm/application_scms/base.rb +39 -0
  7. data/sub/avm/lib/avm/application_scms.rb +9 -0
  8. data/sub/avm/lib/avm/application_stereotypes/base.rb +31 -0
  9. data/sub/avm/lib/avm/application_stereotypes.rb +9 -0
  10. data/sub/avm/lib/avm/applications/base/auto_local_source_path.rb +24 -0
  11. data/sub/avm/lib/avm/applications/base/local_instance.rb +31 -0
  12. data/sub/avm/lib/avm/applications/base/local_source.rb +35 -0
  13. data/sub/avm/lib/avm/applications/base/naming.rb +28 -0
  14. data/sub/avm/lib/avm/applications/base/organization.rb +29 -0
  15. data/sub/avm/lib/avm/applications/base/publishing.rb +43 -0
  16. data/sub/avm/lib/avm/applications/base/scm.rb +27 -0
  17. data/sub/avm/lib/avm/applications/base/stereotype.rb +31 -0
  18. data/sub/avm/lib/avm/applications/base.rb +37 -0
  19. data/sub/avm/lib/avm/applications.rb +9 -0
  20. data/sub/avm/lib/avm/data/callbacks.rb +37 -0
  21. data/sub/avm/lib/avm/data/clearer.rb +20 -0
  22. data/sub/avm/lib/avm/data/dumper.rb +142 -0
  23. data/sub/avm/lib/avm/data/loader.rb +28 -0
  24. data/sub/avm/lib/avm/data/package/base_performer.rb +38 -0
  25. data/sub/avm/lib/avm/data/package/build_directory.rb +28 -0
  26. data/sub/avm/lib/avm/data/package/clear.rb +22 -0
  27. data/sub/avm/lib/avm/data/package/dump.rb +45 -0
  28. data/sub/avm/lib/avm/data/package/load.rb +36 -0
  29. data/sub/avm/lib/avm/data/package.rb +67 -0
  30. data/sub/avm/lib/avm/data/performer.rb +49 -0
  31. data/sub/avm/lib/avm/data/rotate.rb +107 -0
  32. data/sub/avm/lib/avm/data/unit.rb +49 -0
  33. data/sub/avm/lib/avm/data/unit_with_commands.rb +52 -0
  34. data/sub/avm/lib/avm/docker/container.rb +50 -0
  35. data/sub/avm/lib/avm/docker/image.rb +76 -0
  36. data/sub/avm/lib/avm/docker/runner.rb +132 -0
  37. data/sub/avm/lib/avm/docker.rb +9 -0
  38. data/sub/avm/lib/avm/entries/auto_values/entry.rb +39 -0
  39. data/sub/avm/lib/avm/entries/auto_values/uri_entry.rb +24 -0
  40. data/sub/avm/lib/avm/entries/auto_values.rb +11 -0
  41. data/sub/avm/lib/avm/entries/base/inherited_entry_value.rb +46 -0
  42. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb +28 -0
  43. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb +39 -0
  44. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb +31 -0
  45. data/sub/avm/lib/avm/entries/base/uri_component_entry_value.rb +44 -0
  46. data/sub/avm/lib/avm/entries/base/uri_components_entries_values/component_factory.rb +42 -0
  47. data/sub/avm/lib/avm/entries/base/uri_components_entries_values/generic_component.rb +63 -0
  48. data/sub/avm/lib/avm/entries/base/uri_components_entries_values/path_component.rb +19 -0
  49. data/sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb +28 -0
  50. data/sub/avm/lib/avm/entries/base/uri_components_entries_values.rb +25 -0
  51. data/sub/avm/lib/avm/entries/base.rb +57 -0
  52. data/sub/avm/lib/avm/entries/entry/no_context_entry.rb +23 -0
  53. data/sub/avm/lib/avm/entries/entry.rb +70 -0
  54. data/sub/avm/lib/avm/entries/jobs/base.rb +62 -0
  55. data/sub/avm/lib/avm/entries/jobs/variables_source/read_entry.rb +50 -0
  56. data/sub/avm/lib/avm/entries/jobs/variables_source.rb +15 -0
  57. data/sub/avm/lib/avm/entries/jobs/with_variables_source.rb +15 -0
  58. data/sub/avm/lib/avm/entries/jobs.rb +11 -0
  59. data/sub/avm/lib/avm/entries/keys_constants_set.rb +43 -0
  60. data/sub/avm/lib/avm/entries/uri_builder.rb +91 -0
  61. data/sub/avm/lib/avm/entries.rb +9 -0
  62. data/sub/avm/lib/avm/executables.rb +24 -0
  63. data/sub/avm/lib/avm/file_formats/base.rb +35 -0
  64. data/sub/avm/lib/avm/file_formats/file_result.rb +13 -0
  65. data/sub/avm/lib/avm/file_formats/search_formatter.rb +87 -0
  66. data/sub/avm/lib/avm/file_formats/unknown.rb +18 -0
  67. data/sub/avm/lib/avm/file_formats/utf8_assert.rb +72 -0
  68. data/sub/avm/lib/avm/file_formats.rb +9 -0
  69. data/sub/avm/lib/avm/instances/base/auto_values/data.rb +25 -0
  70. data/sub/avm/lib/avm/instances/base/auto_values/database.rb +62 -0
  71. data/sub/avm/lib/avm/instances/base/auto_values/mailer.rb +35 -0
  72. data/sub/avm/lib/avm/instances/base/auto_values/source.rb +15 -0
  73. data/sub/avm/lib/avm/instances/base/auto_values.rb +14 -0
  74. data/sub/avm/lib/avm/instances/base/dockerizable.rb +45 -0
  75. data/sub/avm/lib/avm/instances/base/entry_keys.rb +27 -0
  76. data/sub/avm/lib/avm/instances/base/install.rb +31 -0
  77. data/sub/avm/lib/avm/instances/base/processes.rb +27 -0
  78. data/sub/avm/lib/avm/instances/base/subcommand_parent.rb +25 -0
  79. data/sub/avm/lib/avm/instances/base/web.rb +16 -0
  80. data/sub/avm/lib/avm/instances/base.rb +71 -0
  81. data/sub/avm/lib/avm/instances/data/files_unit.rb +59 -0
  82. data/sub/avm/lib/avm/instances/data/package.rb +27 -0
  83. data/sub/avm/lib/avm/instances/data/unit.rb +30 -0
  84. data/sub/avm/lib/avm/instances/data.rb +11 -0
  85. data/sub/avm/lib/avm/instances/docker_image.rb +15 -0
  86. data/sub/avm/lib/avm/instances/entry_keys.rb +43 -0
  87. data/sub/avm/lib/avm/instances/ids.rb +30 -0
  88. data/sub/avm/lib/avm/instances/process.rb +31 -0
  89. data/sub/avm/lib/avm/instances/runner.rb +37 -0
  90. data/sub/avm/lib/avm/instances.rb +9 -0
  91. data/sub/avm/lib/avm/launcher/context/instance_collector.rb +46 -0
  92. data/sub/avm/lib/avm/launcher/context/instance_discovery/root_instance_paths.rb +53 -0
  93. data/sub/avm/lib/avm/launcher/context/instance_discovery.rb +75 -0
  94. data/sub/avm/lib/avm/launcher/context/instance_manager/cached_instance.rb +37 -0
  95. data/sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb +35 -0
  96. data/sub/avm/lib/avm/launcher/context/instance_manager.rb +77 -0
  97. data/sub/avm/lib/avm/launcher/context/settings.rb +53 -0
  98. data/sub/avm/lib/avm/launcher/context.rb +100 -0
  99. data/sub/avm/lib/avm/launcher/errors/base.rb +10 -0
  100. data/sub/avm/lib/avm/launcher/errors/non_project.rb +15 -0
  101. data/sub/avm/lib/avm/launcher/errors.rb +11 -0
  102. data/sub/avm/lib/avm/launcher/instances/base/cache.rb +43 -0
  103. data/sub/avm/lib/avm/launcher/instances/base/publishing.rb +53 -0
  104. data/sub/avm/lib/avm/launcher/instances/base.rb +78 -0
  105. data/sub/avm/lib/avm/launcher/instances/error.rb +10 -0
  106. data/sub/avm/lib/avm/launcher/instances/runner_helper.rb +47 -0
  107. data/sub/avm/lib/avm/launcher/instances/settings.rb +26 -0
  108. data/sub/avm/lib/avm/launcher/instances.rb +11 -0
  109. data/sub/avm/lib/avm/launcher/paths/logical.rb +80 -0
  110. data/sub/avm/lib/avm/launcher/paths/real.rb +44 -0
  111. data/sub/avm/lib/avm/launcher/paths.rb +11 -0
  112. data/sub/avm/lib/avm/launcher/project.rb +17 -0
  113. data/sub/avm/lib/avm/launcher/publish/base.rb +47 -0
  114. data/sub/avm/lib/avm/launcher/publish/check_result.rb +65 -0
  115. data/sub/avm/lib/avm/launcher/publish.rb +11 -0
  116. data/sub/avm/lib/avm/launcher/stereotype.rb +63 -0
  117. data/sub/avm/lib/avm/launcher.rb +9 -0
  118. data/sub/avm/lib/avm/launcher_stereotypes.rb +9 -0
  119. data/sub/avm/lib/avm/patches/eac_config/entry_path.rb +46 -0
  120. data/sub/avm/lib/avm/path_string.rb +27 -0
  121. data/sub/avm/lib/avm/registry/application_scms.rb +15 -0
  122. data/sub/avm/lib/avm/registry/application_stereotypes/build_available.rb +49 -0
  123. data/sub/avm/lib/avm/registry/application_stereotypes/stereotype_builder.rb +33 -0
  124. data/sub/avm/lib/avm/registry/application_stereotypes.rb +52 -0
  125. data/sub/avm/lib/avm/registry/applications.rb +38 -0
  126. data/sub/avm/lib/avm/registry/config_objects.rb +18 -0
  127. data/sub/avm/lib/avm/registry/file_formats.rb +20 -0
  128. data/sub/avm/lib/avm/registry/from_gems.rb +80 -0
  129. data/sub/avm/lib/avm/registry/instances.rb +16 -0
  130. data/sub/avm/lib/avm/registry/launcher_stereotypes.rb +11 -0
  131. data/sub/avm/lib/avm/registry/runners.rb +10 -0
  132. data/sub/avm/lib/avm/registry/scms.rb +10 -0
  133. data/sub/avm/lib/avm/registry/source_generators.rb +17 -0
  134. data/sub/avm/lib/avm/registry/sources.rb +40 -0
  135. data/sub/avm/lib/avm/registry/with_path/cache.rb +31 -0
  136. data/sub/avm/lib/avm/registry/with_path.rb +49 -0
  137. data/sub/avm/lib/avm/registry.rb +35 -0
  138. data/sub/avm/lib/avm/result.rb +82 -0
  139. data/sub/avm/lib/avm/rspec/setup/launcher.rb +20 -0
  140. data/sub/avm/lib/avm/rspec/setup/source_generator.rb +22 -0
  141. data/sub/avm/lib/avm/rspec/setup.rb +36 -0
  142. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_format_file_resource_name.rb +15 -0
  143. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_formats_with_fixtures.rb +31 -0
  144. data/sub/avm/lib/avm/rspec/shared_examples/avm_source_generated.rb +26 -0
  145. data/sub/avm/lib/avm/rspec/shared_examples/entries_values.rb +21 -0
  146. data/sub/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +11 -0
  147. data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +14 -0
  148. data/sub/avm/lib/avm/rspec/shared_examples/with_config.rb +11 -0
  149. data/sub/avm/lib/avm/rspec.rb +9 -0
  150. data/sub/avm/lib/avm/runners/base.rb +27 -0
  151. data/sub/avm/lib/avm/scms/auto_commit/file_resource_name.rb +39 -0
  152. data/sub/avm/lib/avm/scms/auto_commit/for_file.rb +82 -0
  153. data/sub/avm/lib/avm/scms/auto_commit/rules/base.rb +40 -0
  154. data/sub/avm/lib/avm/scms/auto_commit/rules/last.rb +19 -0
  155. data/sub/avm/lib/avm/scms/auto_commit/rules/manual.rb +40 -0
  156. data/sub/avm/lib/avm/scms/auto_commit/rules/new.rb +24 -0
  157. data/sub/avm/lib/avm/scms/auto_commit/rules/nth.rb +31 -0
  158. data/sub/avm/lib/avm/scms/auto_commit/rules/unique.rb +21 -0
  159. data/sub/avm/lib/avm/scms/auto_commit/rules.rb +36 -0
  160. data/sub/avm/lib/avm/scms/auto_commit.rb +11 -0
  161. data/sub/avm/lib/avm/scms/base/branches.rb +22 -0
  162. data/sub/avm/lib/avm/scms/base/commits.rb +34 -0
  163. data/sub/avm/lib/avm/scms/base/milestones.rb +21 -0
  164. data/sub/avm/lib/avm/scms/base/remotes.rb +22 -0
  165. data/sub/avm/lib/avm/scms/base.rb +61 -0
  166. data/sub/avm/lib/avm/scms/branch.rb +26 -0
  167. data/sub/avm/lib/avm/scms/changed_file.rb +26 -0
  168. data/sub/avm/lib/avm/scms/commit.rb +66 -0
  169. data/sub/avm/lib/avm/scms/commit_info.rb +39 -0
  170. data/sub/avm/lib/avm/scms/inflector.rb +22 -0
  171. data/sub/avm/lib/avm/scms/interval.rb +18 -0
  172. data/sub/avm/lib/avm/scms/null/commit.rb +15 -0
  173. data/sub/avm/lib/avm/scms/null.rb +21 -0
  174. data/sub/avm/lib/avm/scms/remote.rb +11 -0
  175. data/sub/avm/lib/avm/scms.rb +9 -0
  176. data/sub/avm/lib/avm/self/docker_image.rb +14 -0
  177. data/sub/avm/lib/avm/self/instance/entry_keys.rb +12 -0
  178. data/sub/avm/lib/avm/self/instance.rb +31 -0
  179. data/sub/avm/lib/avm/source_generators/base.rb +75 -0
  180. data/sub/avm/lib/avm/source_generators/option.rb +11 -0
  181. data/sub/avm/lib/avm/source_generators/option_list.rb +32 -0
  182. data/sub/avm/lib/avm/source_generators/runner.rb +58 -0
  183. data/sub/avm/lib/avm/source_generators.rb +9 -0
  184. data/sub/avm/lib/avm/sources/auto_commit/for_file.rb +31 -0
  185. data/sub/avm/lib/avm/sources/auto_commit.rb +11 -0
  186. data/sub/avm/lib/avm/sources/base/application.rb +36 -0
  187. data/sub/avm/lib/avm/sources/base/configuration.rb +92 -0
  188. data/sub/avm/lib/avm/sources/base/instance.rb +16 -0
  189. data/sub/avm/lib/avm/sources/base/locale.rb +33 -0
  190. data/sub/avm/lib/avm/sources/base/organizational.rb +32 -0
  191. data/sub/avm/lib/avm/sources/base/parent.rb +28 -0
  192. data/sub/avm/lib/avm/sources/base/stereotype.rb +18 -0
  193. data/sub/avm/lib/avm/sources/base/sub/remove.rb +38 -0
  194. data/sub/avm/lib/avm/sources/base/sub.rb +26 -0
  195. data/sub/avm/lib/avm/sources/base/subs.rb +67 -0
  196. data/sub/avm/lib/avm/sources/base/subs_paths.rb +32 -0
  197. data/sub/avm/lib/avm/sources/base/testing.rb +70 -0
  198. data/sub/avm/lib/avm/sources/base/update.rb +39 -0
  199. data/sub/avm/lib/avm/sources/base/update_sub.rb +57 -0
  200. data/sub/avm/lib/avm/sources/base/update_subs.rb +19 -0
  201. data/sub/avm/lib/avm/sources/base/version_bump.rb +29 -0
  202. data/sub/avm/lib/avm/sources/base.rb +61 -0
  203. data/sub/avm/lib/avm/sources/configuration/rubocop.rb +26 -0
  204. data/sub/avm/lib/avm/sources/configuration.rb +59 -0
  205. data/sub/avm/lib/avm/sources/issues/deliver.rb +52 -0
  206. data/sub/avm/lib/avm/sources/issues.rb +11 -0
  207. data/sub/avm/lib/avm/sources/runner.rb +40 -0
  208. data/sub/avm/lib/avm/sources/tests/builder.rb +96 -0
  209. data/sub/avm/lib/avm/sources/tests/performer.rb +35 -0
  210. data/sub/avm/lib/avm/sources/tests/result.rb +15 -0
  211. data/sub/avm/lib/avm/sources/tests/single.rb +75 -0
  212. data/sub/avm/lib/avm/sources/tests.rb +11 -0
  213. data/sub/avm/lib/avm/sources/update_error.rb +8 -0
  214. data/sub/avm/lib/avm/sources.rb +9 -0
  215. data/sub/avm/lib/avm/sync.rb +92 -0
  216. data/sub/avm/lib/avm/version.rb +5 -0
  217. data/sub/avm/lib/avm/version_number.rb +45 -0
  218. data/sub/avm/lib/avm/with/application_stereotype.rb +33 -0
  219. data/sub/avm/lib/avm/with/extra_subcommands.rb +44 -0
  220. data/sub/avm/lib/avm.rb +7 -0
  221. data/sub/avm/locale/en.yml +6 -0
  222. data/sub/avm/locale/pt-BR.yml +6 -0
  223. data/sub/avm/spec/dummy/avm-tools_stub/avm-tools.gemspec +29 -0
  224. data/sub/avm/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb +7 -0
  225. data/sub/avm/spec/dummy/avm-tools_stub/lib/avm/tools.rb +6 -0
  226. data/sub/avm/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb +5 -0
  227. data/sub/avm/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb +3 -0
  228. data/sub/avm/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +16 -0
  229. data/sub/avm/spec/lib/avm/applications/base/entries_spec.rb +31 -0
  230. data/sub/avm/spec/lib/avm/applications/base/entries_spec_files/config.yml +12 -0
  231. data/sub/avm/spec/lib/avm/applications/base_spec.rb +23 -0
  232. data/sub/avm/spec/lib/avm/applications/base_spec_fixture.yml +3 -0
  233. data/sub/avm/spec/lib/avm/file_formats/base_spec.rb +11 -0
  234. data/sub/avm/spec/lib/avm/instances/base_spec.rb +107 -0
  235. data/sub/avm/spec/lib/avm/instances/base_spec_files/config.yml +50 -0
  236. data/sub/avm/spec/lib/avm/launcher/context_spec.rb +139 -0
  237. data/sub/avm/spec/lib/avm/launcher/context_spec.yml +5 -0
  238. data/sub/avm/spec/lib/avm/launcher/context_spec_files/config.yml +9 -0
  239. data/sub/avm/spec/lib/avm/launcher/instances/base_spec.rb +42 -0
  240. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/config.yml +5 -0
  241. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/settings.yaml +5 -0
  242. data/sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb +28 -0
  243. data/sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb +21 -0
  244. data/sub/avm/spec/lib/avm/scms/base_spec.rb +7 -0
  245. data/sub/avm/spec/lib/avm/sources/base_spec.rb +7 -0
  246. data/sub/avm/spec/lib/avm/sources/runner_spec.rb +9 -0
  247. data/sub/avm/spec/rubocop_spec.rb +3 -0
  248. data/sub/avm/spec/spec_helper/launcher_context/settings.yml +6 -0
  249. data/sub/avm/spec/spec_helper/launcher_context.rb +75 -0
  250. data/sub/avm/spec/spec_helper.rb +5 -0
  251. data/sub/avm/template/avm/self/docker_image/Dockerfile +17 -0
  252. data/sub/avm/template/avm/self/docker_image/entrypoint.sh +12 -0
  253. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +27 -0
  254. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/apache_host.rb +12 -0
  255. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +30 -0
  256. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/files.rb +22 -0
  257. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/gitolite.rb +55 -0
  258. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb +46 -0
  259. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/nodejs.rb +22 -0
  260. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/web.rb +20 -0
  261. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +59 -0
  262. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +19 -0
  263. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +106 -0
  264. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/entity_base.rb +35 -0
  265. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/project.rb +26 -0
  266. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/root.rb +21 -0
  267. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/wiki_page.rb +54 -0
  268. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api.rb +14 -0
  269. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb +17 -0
  270. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/read.rb +27 -0
  271. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/write.rb +70 -0
  272. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb +30 -0
  273. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project.rb +26 -0
  274. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +56 -0
  275. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb +14 -0
  276. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb +11 -0
  277. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb +36 -0
  278. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb +131 -0
  279. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb +65 -0
  280. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/docker.rb +19 -0
  281. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners.rb +13 -0
  282. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb +11 -0
  283. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +7 -0
  284. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0.rb +9 -0
  285. data/sub/avm-eac_redmine_base0/locale/en.yml +6 -0
  286. data/sub/avm-eac_redmine_base0/locale/pt-BR.yml +6 -0
  287. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec.rb +22 -0
  288. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +11 -0
  289. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec.rb +26 -0
  290. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec_files/config.yml +10 -0
  291. data/sub/avm-eac_redmine_base0/spec/spec_helper.rb +5 -0
  292. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template +45 -0
  293. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml +8 -0
  294. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +33 -0
  295. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_host_dockerfile +8 -0
  296. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template +10 -0
  297. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template +16 -0
  298. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_path_dockerfile +5 -0
  299. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template +52 -0
  300. data/sub/avm-eac_ruby_base0/Gemfile +8 -0
  301. data/sub/avm-eac_ruby_base0/avm-eac_ruby_base0.gemspec +20 -0
  302. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/rspec/setup.rb +16 -0
  303. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/rspec/source_generator.rb +33 -0
  304. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/rspec.rb +11 -0
  305. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/source_generators/base/application.rb +36 -0
  306. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/source_generators/base/executable.rb +31 -0
  307. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/source_generators/base/runner.rb +36 -0
  308. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/source_generators/base.rb +47 -0
  309. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/source_generators.rb +11 -0
  310. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/sources/base/executable.rb +62 -0
  311. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/sources/base.rb +19 -0
  312. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/sources.rb +11 -0
  313. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0/version.rb +7 -0
  314. data/sub/avm-eac_ruby_base0/lib/avm/eac_ruby_base0.rb +9 -0
  315. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec.rb +33 -0
  316. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/Gemfile +8 -0
  317. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +108 -0
  318. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/_gitignore +2 -0
  319. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +22 -0
  320. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/exe/dashed-mygem +6 -0
  321. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/application.rb +13 -0
  322. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/runner.rb +23 -0
  323. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +7 -0
  324. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb +9 -0
  325. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb +3 -0
  326. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb +4 -0
  327. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/Gemfile +8 -0
  328. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/Gemfile.lock +108 -0
  329. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/_gitignore +2 -0
  330. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/exe/mygem_underscore +6 -0
  331. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/lib/mygem_underscore/application.rb +11 -0
  332. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/lib/mygem_underscore/runner.rb +21 -0
  333. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/lib/mygem_underscore/version.rb +5 -0
  334. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/lib/mygem_underscore.rb +7 -0
  335. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/mygem_underscore.gemspec +22 -0
  336. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/spec/rubocop_spec.rb +3 -0
  337. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/source_generators/base_spec_files/mygem_underscore/spec/spec_helper.rb +4 -0
  338. data/sub/avm-eac_ruby_base0/spec/lib/avm/eac_ruby_base0/sources/base_spec.rb +16 -0
  339. data/sub/avm-eac_ruby_base0/spec/rubocop_spec.rb +3 -0
  340. data/sub/avm-eac_ruby_base0/spec/spec_helper.rb +4 -0
  341. data/sub/avm-eac_ruby_base0/template/avm/eac_ruby_base0/source_generators/base/application.template +11 -0
  342. data/sub/avm-eac_ruby_base0/template/avm/eac_ruby_base0/source_generators/base/executable.template +6 -0
  343. data/sub/avm-eac_ruby_base0/template/avm/eac_ruby_base0/source_generators/base/runner.template +21 -0
  344. data/sub/avm-eac_ruby_base1/Gemfile +8 -0
  345. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +22 -0
  346. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +56 -0
  347. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +19 -0
  348. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +34 -0
  349. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +25 -0
  350. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +44 -0
  351. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +17 -0
  352. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +77 -0
  353. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +33 -0
  354. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +19 -0
  355. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +16 -0
  356. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +26 -0
  357. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +25 -0
  358. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +11 -0
  359. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +47 -0
  360. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +22 -0
  361. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb +11 -0
  362. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +19 -0
  363. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances.rb +11 -0
  364. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +126 -0
  365. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +63 -0
  366. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +13 -0
  367. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +11 -0
  368. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +28 -0
  369. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +130 -0
  370. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +37 -0
  371. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +11 -0
  372. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +43 -0
  373. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +16 -0
  374. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +22 -0
  375. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec.rb +11 -0
  376. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +31 -0
  377. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +17 -0
  378. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +42 -0
  379. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +55 -0
  380. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +62 -0
  381. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +19 -0
  382. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +42 -0
  383. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/remote.rb +36 -0
  384. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +45 -0
  385. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb +11 -0
  386. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +77 -0
  387. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +30 -0
  388. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +18 -0
  389. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +11 -0
  390. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +63 -0
  391. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +27 -0
  392. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +35 -0
  393. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +62 -0
  394. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +112 -0
  395. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb +11 -0
  396. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +39 -0
  397. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +68 -0
  398. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +42 -0
  399. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +28 -0
  400. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +73 -0
  401. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +43 -0
  402. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +25 -0
  403. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +31 -0
  404. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +19 -0
  405. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +61 -0
  406. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +23 -0
  407. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb +53 -0
  408. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb +69 -0
  409. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +55 -0
  410. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb +29 -0
  411. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +58 -0
  412. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +60 -0
  413. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +89 -0
  414. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +76 -0
  415. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +19 -0
  416. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +68 -0
  417. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb +13 -0
  418. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +59 -0
  419. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +29 -0
  420. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +52 -0
  421. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +29 -0
  422. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +90 -0
  423. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +25 -0
  424. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb +13 -0
  425. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +59 -0
  426. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +64 -0
  427. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb +11 -0
  428. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
  429. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +9 -0
  430. data/sub/avm-eac_ruby_base1/locale/en.yml +9 -0
  431. data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +9 -0
  432. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +7 -0
  433. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +192 -0
  434. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +300 -0
  435. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +245 -0
  436. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +355 -0
  437. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
  438. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +305 -0
  439. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +15 -0
  440. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +6 -0
  441. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +3 -0
  442. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +6 -0
  443. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +5 -0
  444. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +46 -0
  445. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +49 -0
  446. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +29 -0
  447. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +23 -0
  448. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +23 -0
  449. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +14 -0
  450. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +7 -0
  451. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +36 -0
  452. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +5 -0
  453. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +27 -0
  454. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +4 -0
  455. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +19 -0
  456. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +8 -0
  457. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +1 -0
  458. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +2 -0
  459. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +19 -0
  460. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +7 -0
  461. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb +9 -0
  462. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb +3 -0
  463. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb +4 -0
  464. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +8 -0
  465. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +1 -0
  466. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +2 -0
  467. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +5 -0
  468. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb +7 -0
  469. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +19 -0
  470. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb +3 -0
  471. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +4 -0
  472. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +30 -0
  473. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +5 -0
  474. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +19 -0
  475. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +14 -0
  476. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +5 -0
  477. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +5 -0
  478. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +5 -0
  479. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +17 -0
  480. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +16 -0
  481. data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +3 -0
  482. data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +4 -0
  483. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +19 -0
  484. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +7 -0
  485. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +8 -0
  486. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +3 -0
  487. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +4 -0
  488. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +5 -0
  489. data/sub/eac_templates/eac_templates.gemspec +1 -0
  490. data/sub/eac_templates/lib/eac_templates/abstract/directory.rb +1 -1
  491. data/sub/eac_templates/lib/eac_templates/abstract/fs_object.rb +2 -2
  492. data/sub/eac_templates/lib/eac_templates/abstract/with_directory_file_methods.rb +35 -12
  493. data/sub/eac_templates/lib/eac_templates/{abstract/not_found_error.rb → errors/not_found.rb} +2 -2
  494. data/sub/eac_templates/lib/eac_templates/errors/type_mismatch.rb +8 -0
  495. data/sub/eac_templates/lib/eac_templates/errors.rb +9 -0
  496. data/sub/eac_templates/lib/eac_templates/modules/ancestor/directory.rb +21 -1
  497. data/sub/eac_templates/lib/eac_templates/modules/ancestor/file.rb +48 -0
  498. data/sub/eac_templates/lib/eac_templates/modules/ancestor/fs_object.rb +0 -2
  499. data/sub/eac_templates/lib/eac_templates/modules/ancestor.rb +1 -1
  500. data/sub/eac_templates/lib/eac_templates/modules/base/directory.rb +34 -6
  501. data/sub/eac_templates/lib/eac_templates/modules/base/file.rb +5 -1
  502. data/sub/eac_templates/lib/eac_templates/modules/base/fs_object.rb +0 -2
  503. data/sub/eac_templates/lib/eac_templates/modules/base.rb +36 -9
  504. data/sub/eac_templates/lib/eac_templates/sources/fs_object.rb +1 -1
  505. data/sub/eac_templates/lib/eac_templates/sources/set.rb +2 -2
  506. data/sub/eac_templates/lib/eac_templates/variables/directory.rb +2 -2
  507. data/sub/eac_templates/lib/eac_templates/version.rb +1 -1
  508. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec.rb +28 -0
  509. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/a_module/a/a_a +1 -0
  510. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/a_module/a/a_b +1 -0
  511. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/a_module/b +1 -0
  512. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/a_module/c +1 -0
  513. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/prepended_module/a/a_d +1 -0
  514. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/prepended_module/c +1 -0
  515. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/prepended_module/d +1 -0
  516. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/a/a_a +1 -0
  517. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/a/a_b +1 -0
  518. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/a/a_c +1 -0
  519. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/a/a_d +1 -0
  520. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/b +1 -0
  521. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/c +1 -0
  522. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/sub_class/d +1 -0
  523. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/super_class/a/a_a +1 -0
  524. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/super_class/a/a_b +1 -0
  525. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/super_class/b +1 -0
  526. data/sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec_files/super_class/c +1 -0
  527. data/sub/eac_templates/spec/lib/eac_templates/modules/{base_spec.rb → base/child_spec.rb} +30 -61
  528. data/sub/eac_templates/spec/spec_helper/modules_resources_context.rb +45 -0
  529. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/a_module/a/a_a +1 -0
  530. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/a_module/b +1 -0
  531. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/prepended_module/a/a_d.template +1 -0
  532. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/sub_class/a/a_c +1 -0
  533. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/super_class/a/a_b +1 -0
  534. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path1/super_class/b +1 -0
  535. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/a_module/a/a_b +1 -0
  536. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/a_module/b +1 -0
  537. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/a_module/c +1 -0
  538. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/prepended_module/c +1 -0
  539. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/prepended_module/d.template +1 -0
  540. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/sub_class/a/a_d +1 -0
  541. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/sub_class/b +1 -0
  542. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/super_class/a/a_b +1 -0
  543. data/sub/eac_templates/spec/spec_helper/modules_resources_context_files/path2/super_class/b +1 -0
  544. data/sub/eac_templates/spec/spec_helper.rb +2 -0
  545. metadata +549 -298
  546. data/sub/eac_ruby_utils/MIT-LICENCE +0 -16
  547. data/sub/eac_ruby_utils/README.rdoc +0 -3
  548. data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +0 -26
  549. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_abstract.rb +0 -100
  550. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/array_accessor.rb +0 -25
  551. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/base_accessor.rb +0 -57
  552. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/boolean_accessor.rb +0 -16
  553. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/class_methods.rb +0 -20
  554. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/common_accessor.rb +0 -30
  555. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/enumerable_accessor.rb +0 -52
  556. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/hash_accessor.rb +0 -57
  557. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/instance_methods.rb +0 -21
  558. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/set_accessor.rb +0 -25
  559. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable.rb +0 -15
  560. data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_instance_method.rb +0 -34
  561. data/sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb +0 -80
  562. data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb +0 -47
  563. data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb +0 -81
  564. data/sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +0 -19
  565. data/sub/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +0 -31
  566. data/sub/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb +0 -23
  567. data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb +0 -106
  568. data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb +0 -36
  569. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb +0 -52
  570. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb +0 -41
  571. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +0 -20
  572. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_accessors.rb +0 -36
  573. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb +0 -39
  574. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb +0 -64
  575. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb +0 -55
  576. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +0 -93
  577. data/sub/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +0 -32
  578. data/sub/eac_ruby_utils/lib/eac_ruby_utils/compare_by.rb +0 -28
  579. data/sub/eac_ruby_utils/lib/eac_ruby_utils/context.rb +0 -33
  580. data/sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb +0 -21
  581. data/sub/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb +0 -7
  582. data/sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb +0 -53
  583. data/sub/eac_ruby_utils/lib/eac_ruby_utils/enum.rb +0 -102
  584. data/sub/eac_ruby_utils/lib/eac_ruby_utils/enumerables_methods.rb +0 -42
  585. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/append_command_options.rb +0 -38
  586. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/concat.rb +0 -41
  587. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/debugging.rb +0 -19
  588. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/execution.rb +0 -52
  589. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/extra_options.rb +0 -28
  590. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command.rb +0 -45
  591. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb +0 -28
  592. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb +0 -27
  593. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +0 -23
  594. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +0 -67
  595. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/composite_command.rb +0 -45
  596. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +0 -93
  597. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_error.rb +0 -8
  598. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_result.rb +0 -45
  599. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb +0 -22
  600. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/local_env.rb +0 -17
  601. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb +0 -27
  602. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb +0 -32
  603. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +0 -53
  604. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +0 -25
  605. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +0 -24
  606. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +0 -34
  607. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +0 -74
  608. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs.rb +0 -23
  609. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +0 -57
  610. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb +0 -30
  611. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb +0 -16
  612. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb +0 -34
  613. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb +0 -52
  614. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs.rb +0 -9
  615. data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +0 -80
  616. data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +0 -34
  617. data/sub/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +0 -29
  618. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb +0 -14
  619. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb +0 -30
  620. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/integer_list.rb +0 -23
  621. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/item.rb +0 -48
  622. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +0 -129
  623. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/lists.rb +0 -51
  624. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb +0 -19
  625. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb +0 -19
  626. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable.rb +0 -17
  627. data/sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +0 -48
  628. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb +0 -4
  629. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb +0 -47
  630. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb +0 -74
  631. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb +0 -9
  632. data/sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb +0 -30
  633. data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/base.rb +0 -34
  634. data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb +0 -20
  635. data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/set.rb +0 -19
  636. data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable.rb +0 -9
  637. data/sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb +0 -62
  638. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb +0 -11
  639. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb +0 -37
  640. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb +0 -4
  641. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb +0 -4
  642. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +0 -9
  643. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb +0 -9
  644. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/method_class.rb +0 -9
  645. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +0 -7
  646. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +0 -10
  647. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/static_method_class.rb +0 -9
  648. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb +0 -4
  649. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb +0 -45
  650. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb +0 -4
  651. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +0 -9
  652. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +0 -14
  653. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +0 -4
  654. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/if_key.rb +0 -12
  655. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb +0 -10
  656. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb +0 -10
  657. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb +0 -10
  658. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb +0 -5
  659. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/ibr.rb +0 -10
  660. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +0 -10
  661. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +0 -4
  662. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +0 -10
  663. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_abstract.rb +0 -14
  664. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_immutable.rb +0 -10
  665. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_instance_method.rb +0 -10
  666. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb +0 -9
  667. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/compare_by.rb +0 -9
  668. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb +0 -11
  669. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb +0 -9
  670. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +0 -11
  671. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb +0 -10
  672. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/module_parent.rb +0 -5
  673. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb +0 -9
  674. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb +0 -9
  675. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb +0 -10
  676. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb +0 -9
  677. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb +0 -4
  678. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb +0 -25
  679. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +0 -11
  680. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +0 -20
  681. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +0 -55
  682. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +0 -13
  683. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +0 -17
  684. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb +0 -19
  685. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +0 -22
  686. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/recursive_build.rb +0 -12
  687. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_bool.rb +0 -12
  688. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb +0 -15
  689. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb +0 -15
  690. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb +0 -5
  691. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/assert_parent.rb +0 -12
  692. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb +0 -10
  693. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +0 -13
  694. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/child_of.rb +0 -16
  695. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb +0 -10
  696. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb +0 -12
  697. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb +0 -11
  698. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/readlink_r.rb +0 -11
  699. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb +0 -13
  700. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb +0 -4
  701. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb +0 -16
  702. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb +0 -10
  703. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb +0 -4
  704. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +0 -16
  705. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +0 -11
  706. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +0 -4
  707. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +0 -11
  708. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb +0 -4
  709. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb +0 -4
  710. data/sub/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +0 -51
  711. data/sub/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb +0 -39
  712. data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub/base.rb +0 -80
  713. data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub/sub_file.rb +0 -59
  714. data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +0 -11
  715. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +0 -20
  716. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +0 -17
  717. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/setup_manager.rb +0 -17
  718. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +0 -27
  719. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +0 -49
  720. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/stub_speaker.rb +0 -39
  721. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb +0 -9
  722. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +0 -32
  723. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +0 -71
  724. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb +0 -36
  725. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb +0 -52
  726. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb +0 -9
  727. data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb +0 -79
  728. data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb +0 -50
  729. data/sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +0 -77
  730. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +0 -64
  731. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb +0 -37
  732. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb +0 -16
  733. data/sub/eac_ruby_utils/lib/eac_ruby_utils/static_method_class.rb +0 -12
  734. data/sub/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +0 -70
  735. data/sub/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +0 -63
  736. data/sub/eac_ruby_utils/lib/eac_ruby_utils/unimplemented_method_error.rb +0 -6
  737. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +0 -5
  738. data/sub/eac_ruby_utils/lib/eac_ruby_utils/wildcards.rb +0 -26
  739. data/sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +0 -105
  740. data/sub/eac_ruby_utils/lib/eac_ruby_utils.rb +0 -6
  741. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_abstract_spec.rb +0 -94
  742. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/array_accessor_spec.rb +0 -43
  743. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/common_accessor_spec.rb +0 -57
  744. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/hash_accessor_spec.rb +0 -42
  745. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/set_accessor_spec.rb +0 -43
  746. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb +0 -17
  747. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb +0 -22
  748. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +0 -16
  749. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb +0 -54
  750. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb +0 -65
  751. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +0 -151
  752. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +0 -21
  753. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compare_by_spec.rb +0 -39
  754. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb +0 -60
  755. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enum_spec.rb +0 -44
  756. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enumerables_methods_spec.rb +0 -50
  757. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/base_example.rb +0 -97
  758. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/local_env_spec.rb +0 -11
  759. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/ssh_env_spec.rb +0 -17
  760. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb +0 -37
  761. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb +0 -25
  762. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb +0 -18
  763. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/directory_spec.rb +0 -12
  764. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb +0 -52
  765. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +0 -16
  766. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +0 -225
  767. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +0 -17
  768. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb +0 -46
  769. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/module_ancestors_variable/hash_spec.rb +0 -57
  770. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/module_ancestors_variable/set_spec.rb +0 -57
  771. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb +0 -80
  772. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb +0 -25
  773. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +0 -25
  774. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/acts_as_abstract_spec.rb +0 -14
  775. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/method_class_spec.rb +0 -20
  776. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +0 -30
  777. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/static_method_class_spec.rb +0 -20
  778. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb +0 -39
  779. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +0 -26
  780. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +0 -32
  781. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/if_key_spec.rb +0 -23
  782. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb +0 -17
  783. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb +0 -13
  784. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/compare_by_spec.rb +0 -37
  785. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb +0 -15
  786. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb +0 -15
  787. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb +0 -15
  788. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +0 -11
  789. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +0 -20
  790. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb +0 -13
  791. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/recursive_build_spec.rb +0 -62
  792. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/assert_parent_spec.rb +0 -21
  793. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb +0 -26
  794. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb +0 -17
  795. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/child_of_spec.rb +0 -26
  796. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb +0 -33
  797. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +0 -34
  798. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +0 -65
  799. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_module_a.rb +0 -6
  800. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_not_module.rb +0 -6
  801. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec.rb +0 -19
  802. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/rspec/setup/setup_manager_spec.rb +0 -17
  803. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_clean_environment_spec.rb +0 -31
  804. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb +0 -65
  805. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +0 -64
  806. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb +0 -129
  807. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/static_method_class_spec.rb +0 -44
  808. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +0 -57
  809. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/wildcards_spec.rb +0 -27
  810. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/yaml_spec.rb +0 -76
  811. data/sub/eac_ruby_utils/spec/locales/pt-BR.yml +0 -58
  812. data/sub/eac_ruby_utils/spec/spec_helper.rb +0 -15
  813. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/a_module/a/a_a +0 -1
  814. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/a_module/b +0 -1
  815. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/sub_class/a/a_c +0 -1
  816. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/super_class/a/a_b +0 -1
  817. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/super_class/b +0 -1
  818. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/a/a_b +0 -1
  819. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/b +0 -1
  820. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/c +0 -1
  821. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/prepended_module/c +0 -1
  822. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/sub_class/b +0 -1
  823. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/super_class/a/a_b +0 -1
  824. data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/super_class/b +0 -1
  825. /data/sub/{eac_ruby_utils → avm-eac_redmine_base0}/Gemfile +0 -0
  826. /data/sub/{eac_ruby_utils/spec/rubocop_check_spec.rb → avm-eac_redmine_base0/spec/rubocop_spec.rb} +0 -0
  827. /data/sub/{eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb} +0 -0
@@ -1,57 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/acts_as_immutable'
4
-
5
- RSpec.describe EacRubyUtils::ActsAsImmutable::CommonAccessor do
6
- let(:stub_class) do
7
- Class.new do
8
- include EacRubyUtils::ActsAsImmutable
9
-
10
- immutable_accessor :attr1, :attr2, :attr3
11
-
12
- def attr1_get_filter(value)
13
- value || 'DEFAULT'
14
- end
15
-
16
- def attr2_set_filter(value)
17
- "#{value}_FILTERED"
18
- end
19
- end
20
- end
21
-
22
- let(:initial_instance) { stub_class.new }
23
-
24
- it { expect(initial_instance.attr1).to eq('DEFAULT') }
25
- it { expect(initial_instance.attr2).to be_nil }
26
- it { expect(initial_instance.attr3).to be_nil }
27
-
28
- context 'when attr1 is set' do
29
- let(:change1_instance) { initial_instance.attr1('A') }
30
-
31
- it { expect(change1_instance).to be_a(initial_instance.class) }
32
- it { expect(change1_instance.object_id).not_to eq(initial_instance.object_id) }
33
- it { expect(change1_instance.attr1).to eq('A') }
34
- it { expect(change1_instance.attr2).to be_nil }
35
- it { expect(change1_instance.attr3).to be_nil }
36
-
37
- context 'when attr2 is set' do
38
- let(:change2_instance) { change1_instance.attr2('B') }
39
-
40
- it { expect(change2_instance).to be_a(change1_instance.class) }
41
- it { expect(change2_instance.object_id).not_to eq(change1_instance.object_id) }
42
- it { expect(change2_instance.attr1).to eq('A') }
43
- it { expect(change2_instance.attr2).to eq('B_FILTERED') }
44
- it { expect(change2_instance.attr3).to be_nil }
45
- end
46
-
47
- context 'when attr3 is set' do
48
- let(:change2_instance) { change1_instance.attr3('C') }
49
-
50
- it { expect(change2_instance).to be_a(change1_instance.class) }
51
- it { expect(change2_instance.object_id).not_to eq(change1_instance.object_id) }
52
- it { expect(change2_instance.attr1).to eq('A') }
53
- it { expect(change2_instance.attr2).to be_nil }
54
- it { expect(change2_instance.attr3).to eq('C') }
55
- end
56
- end
57
- end
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/acts_as_immutable'
4
-
5
- RSpec.describe EacRubyUtils::ActsAsImmutable::HashAccessor do
6
- let(:stub_class) do
7
- Class.new do
8
- include EacRubyUtils::ActsAsImmutable
9
-
10
- immutable_accessor :the_hash, type: :hash
11
- end
12
- end
13
-
14
- let(:initial_instance) { stub_class.new }
15
-
16
- it { expect(initial_instance.the_hashes).to eq({}) }
17
- it { expect(initial_instance.the_hash('key_a')).to be_nil }
18
-
19
- context 'when a single value is set' do
20
- let(:change1_instance) { initial_instance.the_hash('key_a', 'A') }
21
-
22
- before { change1_instance }
23
-
24
- it { expect(initial_instance.the_hashes).to eq({}) }
25
- it { expect(initial_instance.the_hash('key_a')).to be_nil }
26
- it { expect(change1_instance.the_hashes).to eq({ 'key_a' => 'A' }) }
27
- it { expect(change1_instance.the_hash('key_a')).to eq('A') }
28
-
29
- context 'when all valuesare set' do
30
- let(:change2_instance) { initial_instance.the_hashes('key_b' => 'B') }
31
-
32
- before { change2_instance }
33
-
34
- it { expect(change1_instance.the_hashes).to eq({ 'key_a' => 'A' }) }
35
- it { expect(change1_instance.the_hash('key_a')).to eq('A') }
36
- it { expect(change1_instance.the_hash('key_b')).to be_nil }
37
- it { expect(change2_instance.the_hashes).to eq({ 'key_b' => 'B' }) }
38
- it { expect(change2_instance.the_hash('key_a')).to be_nil }
39
- it { expect(change2_instance.the_hash('key_b')).to eq('B') }
40
- end
41
- end
42
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/acts_as_immutable'
4
-
5
- RSpec.describe EacRubyUtils::ActsAsImmutable::SetAccessor do
6
- let(:stub_class) do
7
- Class.new do
8
- include EacRubyUtils::ActsAsImmutable
9
-
10
- immutable_accessor :array_attr, type: :set
11
- end
12
- end
13
-
14
- let(:initial_instance) { stub_class.new }
15
-
16
- it do
17
- expect(initial_instance.array_attrs).to eq(Set.new)
18
- end
19
-
20
- context 'when array_attr pushs for' do
21
- let(:change1_instance) { initial_instance.array_attr('A') }
22
-
23
- it { expect(change1_instance).to be_a(initial_instance.class) }
24
- it { expect(change1_instance.object_id).not_to eq(initial_instance.object_id) }
25
- it { expect(change1_instance.array_attrs).to eq(Set.new(%w[A])) }
26
-
27
- context 'when array_attrs sets for' do
28
- let(:change2_instance) { initial_instance.array_attrs(%w[B]) }
29
-
30
- it { expect(change2_instance).to be_a(initial_instance.class) }
31
- it { expect(change2_instance.object_id).not_to eq(change1_instance.object_id) }
32
- it { expect(change2_instance.array_attrs).to eq(Set.new(%w[B])) }
33
- end
34
-
35
- context 'when array_attrs push for a repetead value' do
36
- let(:change2_instance) { initial_instance.array_attr('A') }
37
-
38
- it { expect(change2_instance).to be_a(initial_instance.class) }
39
- it { expect(change2_instance.object_id).not_to eq(change1_instance.object_id) }
40
- it { expect(change2_instance.array_attrs).to eq(Set.new(%w[A])) }
41
- end
42
- end
43
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/arguments_consumer'
4
-
5
- RSpec.describe EacRubyUtils::ArgumentsConsumer do
6
- let(:instance) { described_class.new(%i[a b c d], d: 'd_value') }
7
- let(:args) { ['a_value', 'b_value', { e: 'e_value' }] }
8
- let(:result) { instance.parse(args) }
9
-
10
- it { expect(result).to be_a(Hash) }
11
- it { expect(result.count).to eq(5) }
12
- it { expect(result.fetch(:a)).to eq('a_value') }
13
- it { expect(result.fetch(:b)).to eq('b_value') }
14
- it { expect(result.fetch(:c)).to be_nil }
15
- it { expect(result.fetch(:d)).to eq('d_value') }
16
- it { expect(result.fetch(:e)).to eq('e_value') }
17
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/bit_array'
4
-
5
- RSpec.describe EacRubyUtils::BitArray do
6
- describe '#to_byte_array' do
7
- let(:instance) { described_class.new([0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1]) }
8
-
9
- {
10
- false => [0xF0, 0xDC],
11
- true => [0x0F, 0x3B]
12
- }.each do |big_endian, expected_bytes|
13
- context "when big-endian is #{big_endian}" do
14
- let(:expected_value) { EacRubyUtils::ByteArray.new(expected_bytes) }
15
-
16
- it do
17
- expect(instance.to_byte_array(big_endian)).to eq(expected_value)
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/blank_not_blank'
4
-
5
- RSpec.describe EacRubyUtils::BlankNotBlank do
6
- let(:instance) { described_class.instance }
7
-
8
- it do
9
- expect { described_class.new }.to raise_error(NoMethodError)
10
- end
11
-
12
- it { expect(instance).to be_present }
13
- it { expect(instance).not_to be_blank }
14
- it { expect(instance).to be_truthy }
15
- it { expect(instance).to eq('') }
16
- end
@@ -1,54 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/byte'
4
-
5
- RSpec.describe EacRubyUtils::Byte do
6
- describe '#[]' do
7
- let(:instance) { described_class.new(0xDC) }
8
-
9
- [0, 0, 1, 1, 1, 0, 1, 1].each_with_index do |bit_value, bit_index|
10
- context "when bit index is #{bit_index}" do
11
- it { expect(instance[bit_index].value).to eq(bit_value) }
12
- end
13
- end
14
- end
15
-
16
- describe '#bit_set' do
17
- let(:instance) { described_class.new(0b11011100) }
18
-
19
- {
20
- 0 => [0b11011100, 0b11011100, 0b11011000, 0b11010100,
21
- 0b11001100, 0b11011100, 0b10011100, 0b01011100],
22
- 1 => [0b11011101, 0b11011110, 0b11011100, 0b11011100,
23
- 0b11011100, 0b11111100, 0b11011100, 0b11011100]
24
- }.each do |bit_value, expected_values|
25
- expected_values.each_with_index do |expected_value, bit_index|
26
- context "when bit index is #{bit_index} and bit value is #{bit_value}" do
27
- it do
28
- expect(instance.bit_set(bit_index, bit_value))
29
- .to eq(described_class.new(expected_value))
30
- end
31
- end
32
- end
33
- end
34
- end
35
-
36
- describe '#from_bit_array' do
37
- let(:bit_array) { [0, 0, 1, 1, 1, 0, 1, 1] }
38
-
39
- { false => 0b11011100, true => 0b00111011 }.each do |big_endian, expected_integer|
40
- context "when big-endian is #{big_endian}" do
41
- let(:expected_value) { described_class.new(expected_integer) }
42
-
43
- it do
44
- expect(described_class.from_bit_array(bit_array, big_endian)).to eq(expected_value)
45
- end
46
- end
47
- end
48
-
49
- it do
50
- expect { described_class.from_bit_array([0, 0, 1, 1, 1, 0, 1]) }
51
- .to raise_error(ArgumentError)
52
- end
53
- end
54
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/common_concern'
4
-
5
- RSpec.describe EacRubyUtils::CommonConcern do
6
- let(:instance) do
7
- described_class.new do
8
- self.valor = 'changed'
9
- end
10
- end
11
-
12
- let(:stub_module) do
13
- Module.new do
14
- module ClassMethods # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration,
15
- def my_class_method
16
- 'class'
17
- end
18
- end
19
-
20
- module InstanceMethods # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
21
- def my_instance_method
22
- 'from_module'
23
- end
24
- end
25
- end
26
- end
27
-
28
- let(:stub_class) do
29
- Class.new do
30
- class << self
31
- attr_accessor :valor
32
- end
33
-
34
- def my_instance_method
35
- 'from_class'
36
- end
37
- end
38
- end
39
-
40
- let(:stub_class_instance) { stub_class.new }
41
-
42
- before do
43
- instance.setup(stub_module)
44
- end
45
-
46
- context 'when included' do
47
- before do
48
- stub_class.include stub_module
49
- end
50
-
51
- it { expect(stub_class_instance.my_instance_method).to eq('from_class') }
52
- it { expect(stub_class_instance.class.my_class_method).to eq('class') }
53
- it { expect(stub_class_instance.class.valor).to eq('changed') }
54
- end
55
-
56
- context 'when prepended' do
57
- before do
58
- stub_class.prepend stub_module
59
- end
60
-
61
- it { expect(stub_class_instance.my_instance_method).to eq('from_module') }
62
- it { expect(stub_class_instance.class.my_class_method).to eq('class') }
63
- it { expect(stub_class_instance.class.valor).to eq('changed') }
64
- end
65
- end
@@ -1,151 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/common_constructor'
4
-
5
- RSpec.describe EacRubyUtils::CommonConstructor do
6
- ARG_LIST = %i[a b c d].freeze # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
7
-
8
- let(:instance) do
9
- described_class.new(*ARG_LIST, default: %w[Vcc Vd]) do
10
- @z = 'Vz'
11
- end
12
- end
13
-
14
- let(:a_class) do
15
- Class.new do
16
- attr_reader :z
17
- end
18
- end
19
-
20
- let(:a_class_instance) { a_class.new('Va', 'Vb', 'Vc') }
21
-
22
- before do
23
- instance.setup_class(a_class)
24
- end
25
-
26
- it { expect(a_class_instance.z).to eq('Vz') }
27
-
28
- ARG_LIST.each do |attr|
29
- expected_value = "V#{attr}"
30
- it "attribute \"#{attr}\" equal to \"#{expected_value}\"" do
31
- expect(a_class_instance.send(attr)).to eq(expected_value)
32
- end
33
-
34
- [false, true].each do |include_all|
35
- it "respond_to?('#{attr}', #{include_all}) == #{include_all}" do
36
- expect(a_class_instance.respond_to?("#{attr}=", include_all)).to eq(include_all)
37
- end
38
- end
39
- end
40
-
41
- context 'with super class' do
42
- let(:super_class) do
43
- Class.new do
44
- attr_reader :super_a, :super_b
45
-
46
- def initialize(a, b) # rubocop:disable Naming/MethodParameterName
47
- @super_a = a
48
- @super_b = b
49
- end
50
- end
51
- end
52
-
53
- let(:sub_class) do
54
- sub_constructor.setup_class(Class.new(super_class))
55
- end
56
-
57
- let(:sub_object) { sub_class.new(1, 2, 3, 4) }
58
-
59
- context 'with super_args parameter' do
60
- let(:sub_constructor) do
61
- described_class.new(:c, :a, :b, :d, super_args: -> { [c, a] })
62
- end
63
-
64
- it { expect(sub_object.a).to eq(2) }
65
- it { expect(sub_object.b).to eq(3) }
66
- it { expect(sub_object.c).to eq(1) }
67
- it { expect(sub_object.d).to eq(4) }
68
- it { expect(sub_object.super_a).to eq(1) }
69
- it { expect(sub_object.super_b).to eq(2) }
70
- end
71
-
72
- context 'without super_args parameter' do
73
- let(:sub_constructor) do
74
- described_class.new(:c, :a, :b, :d)
75
- end
76
-
77
- it { expect(sub_object.a).to eq(2) }
78
- it { expect(sub_object.b).to eq(3) }
79
- it { expect(sub_object.c).to eq(1) }
80
- it { expect(sub_object.d).to eq(4) }
81
- it { expect(sub_object.super_a).to eq(2) }
82
- it { expect(sub_object.super_b).to eq(3) }
83
- end
84
-
85
- context 'with undefined super arguments' do
86
- let(:sub_constructor) do
87
- described_class.new(:x, :y, :w, :a)
88
- end
89
-
90
- it do
91
- expect { sub_object }.to raise_error(ArgumentError)
92
- end
93
- end
94
- end
95
-
96
- context 'with block argument' do
97
- let(:instance) do
98
- described_class.new(:first, :second, :last, block_arg: true, default: ['second'])
99
- end
100
-
101
- let(:block) do
102
- proc { first + second }
103
- end
104
-
105
- let(:a_class) do
106
- Class.new do
107
- def result
108
- last.run
109
- end
110
- end
111
- end
112
-
113
- let(:a_class_instance) { a_class.new('first') { 'last' } }
114
-
115
- it { expect(a_class_instance.last).to be_a(Proc) }
116
- it { expect(a_class_instance.last.call).to eq('last') }
117
-
118
- it { expect(a_class_instance.first).to eq('first') }
119
- it { expect(a_class_instance.second).to eq('second') }
120
- end
121
-
122
- context 'with class hierarchy mixed with and without common_constructor' do
123
- let(:klass_0) do # rubocop:disable Naming/VariableNumber, RSpec/IndexedLet
124
- described_class.new(:a_param).setup_class(Class.new)
125
- end
126
-
127
- let(:klass_1) do # rubocop:disable Naming/VariableNumber, RSpec/IndexedLet
128
- Class.new(klass_0) do
129
- def initialize(a_param) # rubocop:disable Lint/UselessMethodDefinition
130
- super(a_param)
131
- end
132
- end
133
- end
134
-
135
- let(:klass_2) do # rubocop:disable Naming/VariableNumber, RSpec/IndexedLet
136
- Class.new(klass_1)
137
- end
138
-
139
- let(:klass_3) do # rubocop:disable Naming/VariableNumber, RSpec/IndexedLet
140
- described_class.new(:a_param).setup_class(Class.new(klass_2))
141
- end
142
-
143
- 4.times.each do |i|
144
- context "with #{i}-th class" do
145
- let(:class_instance) { send("klass_#{i}").new(:a) }
146
-
147
- it { expect(class_instance.a_param).to eq(:a) }
148
- end
149
- end
150
- end
151
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/compact'
4
-
5
- RSpec.describe EacRubyUtils::Compact do
6
- let(:sub_object) { Struct.new(:c_attr).new('c_value') }
7
- let(:object) { Struct.new(:a_attr, :b_attr, :sub).new('a_value', 'b_value', sub_object) }
8
- let(:instance) { described_class.new(object, %w[a_attr b_attr sub.c_attr]) }
9
-
10
- describe '#to_a' do
11
- it do
12
- expect(instance.to_a).to eq(%w[a_value b_value c_value])
13
- end
14
- end
15
-
16
- describe '#to_h' do
17
- it do
18
- expect(instance.to_h).to eq(a_attr: 'a_value', b_attr: 'b_value', 'sub.c_attr': 'c_value')
19
- end
20
- end
21
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/compare_by'
4
-
5
- RSpec.describe EacRubyUtils::CompareBy do
6
- let(:instance) { described_class.new(%i[field1 field2]) }
7
- let(:klass) do
8
- Class.new do
9
- attr_reader :field1, :field2
10
-
11
- def initialize(field1, field2)
12
- @field1 = field1
13
- @field2 = field2
14
- end
15
- end
16
- end
17
- let(:o1) { klass.new(1, 2) } # rubocop:disable RSpec/IndexedLet
18
- let(:o2) { klass.new(2, 1) } # rubocop:disable RSpec/IndexedLet
19
- let(:o3) { klass.new(1, 1) } # rubocop:disable RSpec/IndexedLet
20
-
21
- before { instance.apply(klass) }
22
-
23
- describe '#comparable' do
24
- it { expect(o1).to be < o2 }
25
- it { expect(o1).to be > o3 }
26
- it { expect(o2).to be > o3 }
27
- it { expect([o1, o2, o3].sort).to eq([o3, o1, o2]) }
28
- end
29
-
30
- describe '#equality' do
31
- it { expect(o1).not_to eq(o2) }
32
- it { expect(o1).not_to eq(o3) }
33
- it { expect(o2).not_to eq(o3) }
34
-
35
- it { expect(o1).to eq(klass.new(1, 2)) }
36
- it { expect(o2).to eq(klass.new(2, 1)) }
37
- it { expect(o3).to eq(klass.new(1, 1)) }
38
- end
39
- end
@@ -1,60 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/custom_format'
4
-
5
- class StubObjectData
6
- def x_value
7
- 'X1'
8
- end
9
-
10
- def y_value
11
- 'Y1'
12
- end
13
- end
14
-
15
- RSpec.describe EacRubyUtils::CustomFormat do
16
- let(:instance) { described_class.new(x: :x_value, y: :y_value, z: :unexistent) }
17
- let(:ok_format) { instance.format('|%%|%y|%x|%y|') }
18
- let(:ok_string_expected) { '|%|Y1|X1|Y1|' }
19
- let(:fail_format) { instance.format('|%z|') }
20
-
21
- it do
22
- expect(ok_format.sequences).to include(:x, :y)
23
- end
24
-
25
- it do
26
- expect(fail_format.sequences).to include(:z)
27
- end
28
-
29
- context 'when object source is a hash' do
30
- let(:object_source) { { x_value: 'X1', y_value: 'Y1' } }
31
-
32
- context 'when hash has all keys' do
33
- it do
34
- expect(ok_format.with(object_source)).to eq(ok_string_expected)
35
- end
36
- end
37
-
38
- context 'when hash has not all keys' do
39
- it do
40
- expect(fail_format.with(object_source)).to eq('||')
41
- end
42
- end
43
- end
44
-
45
- context 'when object source is not a hash' do
46
- let(:object_source) { StubObjectData.new }
47
-
48
- context 'when object has all methods' do
49
- it do
50
- expect(ok_format.with(object_source)).to eq(ok_string_expected)
51
- end
52
- end
53
-
54
- context 'when object has not all methods' do
55
- it do
56
- expect { fail_format.with(object_source) }.to raise_error(ArgumentError)
57
- end
58
- end
59
- end
60
- end
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/enum'
4
-
5
- RSpec.describe EacRubyUtils::Enum do
6
- let(:klass) do
7
- Class.new(described_class) do
8
- attr_reader :color
9
-
10
- def initialize(key, color = :none)
11
- super(key)
12
- @color = color
13
- end
14
-
15
- enum :horse
16
- enum :pig, [:pink]
17
- enum(:dog, :white)
18
- enum(:cat) { :black }
19
- end
20
- end
21
-
22
- it { expect(klass.horse).to be_a(klass) }
23
- it { expect(klass.pig).to be_a(klass) }
24
- it { expect(klass.dog).to be_a(klass) }
25
- it { expect(klass.cat).to be_a(klass) }
26
-
27
- it { expect(klass.horse.color).to eq(:none) }
28
- it { expect(klass.pig.color).to eq(:pink) }
29
- it { expect(klass.dog.color).to eq(:white) }
30
- it { expect(klass.cat.color).to eq(:black) }
31
-
32
- it { expect(klass.const_get(:HORSE)).to eq(klass.horse) }
33
- it { expect(klass.const_get(:PIG)).to eq(klass.pig) }
34
- it { expect(klass.const_get(:DOG)).to eq(klass.dog) }
35
- it { expect(klass.const_get(:CAT)).to eq(klass.cat) }
36
-
37
- it { expect(klass.values).to eq([klass.horse, klass::PIG, klass.dog, klass::CAT]) }
38
-
39
- describe '#enum' do
40
- it do
41
- expect { klass.enum(:PiG) }.to raise_error(ArgumentError)
42
- end
43
- end
44
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/enumerables_methods'
4
-
5
- RSpec.describe EacRubyUtils::EnumerablesMethods do
6
- describe '#write_method?' do
7
- it do
8
- expect(described_class).to be_write_method(:'[]=')
9
- end
10
-
11
- it do
12
- expect(described_class).not_to be_write_method(:'!=')
13
- end
14
- end
15
-
16
- [
17
- [:enumerable, %i[drop lazy sort], []],
18
- [:hash, %i[\[\] <= compact slice to_h values],
19
- %i[\[\]= compact! delete default= keep_if shift]],
20
- [:set, %i[<= include?], %i[<< add clear collect! divide delete keep_if merge reset subtract]]
21
- ].each do |test_values|
22
- klass_underscore, read_methods, write_methods = test_values
23
-
24
- context "when class/module is #{klass_underscore}" do
25
- let(:const_prefix) { klass_underscore.to_s.upcase }
26
- let(:const_all) { "#{const_prefix}_METHODS" }
27
- let(:const_read) { "#{const_prefix}_READ_METHODS" }
28
- let(:const_write) { "#{const_prefix}_WRITE_METHODS" }
29
- let(:actual_all) { described_class.const_get(const_all) }
30
- let(:actual_read) { described_class.const_get(const_read) }
31
- let(:actual_write) { described_class.const_get(const_write) }
32
-
33
- read_methods.each do |method_name|
34
- context "when method is \"#{method_name}\"" do
35
- it { expect(actual_all).to include(method_name) }
36
- it { expect(actual_read).to include(method_name) }
37
- it { expect(actual_write).not_to include(method_name) }
38
- end
39
- end
40
-
41
- write_methods.each do |method_name|
42
- context "when method is \"#{method_name}\"" do
43
- it { expect(actual_all).to include(method_name) }
44
- it { expect(actual_read).not_to include(method_name) }
45
- it { expect(actual_write).to include(method_name) }
46
- end
47
- end
48
- end
49
- end
50
- end