eac_tools 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +20 -14
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/lib/avm/sources/base/configuration.rb +14 -6
  5. data/sub/avm/lib/avm/sources/base/testing.rb +50 -7
  6. data/sub/avm/lib/avm/sources/tests/builder.rb +8 -1
  7. data/sub/avm/lib/avm/sources/tests/single.rb +28 -9
  8. data/sub/avm/lib/avm/version.rb +1 -1
  9. data/sub/avm-eac_generic_base0/Gemfile +3 -0
  10. data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +3 -3
  11. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb +0 -6
  12. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  13. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +15 -7
  14. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  15. data/sub/eac_ruby_utils/Gemfile +16 -0
  16. data/sub/eac_ruby_utils/MIT-LICENCE +16 -0
  17. data/sub/eac_ruby_utils/README.rdoc +3 -0
  18. data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +24 -0
  19. data/sub/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +68 -0
  20. data/sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb +81 -0
  21. data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb +46 -0
  22. data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb +81 -0
  23. data/sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +19 -0
  24. data/sub/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +31 -0
  25. data/sub/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb +23 -0
  26. data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb +105 -0
  27. data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb +36 -0
  28. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb +52 -0
  29. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb +41 -0
  30. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +20 -0
  31. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb +29 -0
  32. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb +53 -0
  33. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb +54 -0
  34. data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +89 -0
  35. data/sub/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +22 -0
  36. data/sub/eac_ruby_utils/lib/eac_ruby_utils/compare_by.rb +28 -0
  37. data/sub/eac_ruby_utils/lib/eac_ruby_utils/context.rb +33 -0
  38. data/sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb +21 -0
  39. data/sub/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb +7 -0
  40. data/sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb +53 -0
  41. data/sub/eac_ruby_utils/lib/eac_ruby_utils/enum.rb +102 -0
  42. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb +28 -0
  43. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb +33 -0
  44. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb +24 -0
  45. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +33 -0
  46. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +172 -0
  47. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +81 -0
  48. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb +22 -0
  49. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/local_env.rb +17 -0
  50. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb +27 -0
  51. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb +32 -0
  52. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +53 -0
  53. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +25 -0
  54. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +24 -0
  55. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +34 -0
  56. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +75 -0
  57. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs.rb +23 -0
  58. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +57 -0
  59. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb +30 -0
  60. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb +16 -0
  61. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb +34 -0
  62. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb +52 -0
  63. data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs.rb +9 -0
  64. data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +79 -0
  65. data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +35 -0
  66. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb +32 -0
  67. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb +23 -0
  68. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb +16 -0
  69. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb +20 -0
  70. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb +30 -0
  71. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb +46 -0
  72. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb +21 -0
  73. data/sub/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb +15 -0
  74. data/sub/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +29 -0
  75. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb +14 -0
  76. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb +30 -0
  77. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/integer_list.rb +23 -0
  78. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +111 -0
  79. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/lists.rb +59 -0
  80. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb +19 -0
  81. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb +19 -0
  82. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +49 -0
  83. data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable.rb +17 -0
  84. data/sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +48 -0
  85. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb +4 -0
  86. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb +47 -0
  87. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb +74 -0
  88. data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb +9 -0
  89. data/sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb +35 -0
  90. data/sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb +62 -0
  91. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb +11 -0
  92. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +9 -0
  93. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb +9 -0
  94. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +7 -0
  95. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +10 -0
  96. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb +4 -0
  97. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb +45 -0
  98. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb +4 -0
  99. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +9 -0
  100. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +14 -0
  101. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +4 -0
  102. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb +10 -0
  103. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb +10 -0
  104. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb +10 -0
  105. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb +5 -0
  106. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +10 -0
  107. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +4 -0
  108. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +10 -0
  109. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb +9 -0
  110. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/compare_by.rb +9 -0
  111. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb +11 -0
  112. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb +9 -0
  113. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +10 -0
  114. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb +10 -0
  115. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/method_class.rb +9 -0
  116. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb +9 -0
  117. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb +9 -0
  118. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb +10 -0
  119. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb +9 -0
  120. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb +4 -0
  121. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb +25 -0
  122. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +11 -0
  123. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +20 -0
  124. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +23 -0
  125. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +13 -0
  126. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +17 -0
  127. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb +19 -0
  128. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +22 -0
  129. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb +15 -0
  130. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb +15 -0
  131. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb +5 -0
  132. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb +10 -0
  133. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +9 -0
  134. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb +10 -0
  135. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb +12 -0
  136. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb +11 -0
  137. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/readlink_r.rb +11 -0
  138. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb +13 -0
  139. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb +4 -0
  140. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb +16 -0
  141. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb +10 -0
  142. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb +4 -0
  143. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +16 -0
  144. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +11 -0
  145. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
  146. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +11 -0
  147. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb +4 -0
  148. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb +4 -0
  149. data/sub/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +51 -0
  150. data/sub/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb +34 -0
  151. data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +134 -0
  152. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +20 -0
  153. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +17 -0
  154. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +12 -0
  155. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +49 -0
  156. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/stub_speaker.rb +39 -0
  157. data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb +9 -0
  158. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +32 -0
  159. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +38 -0
  160. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb +9 -0
  161. data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb +69 -0
  162. data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb +46 -0
  163. data/sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +77 -0
  164. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +64 -0
  165. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb +32 -0
  166. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb +16 -0
  167. data/sub/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +70 -0
  168. data/sub/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +63 -0
  169. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +5 -0
  170. data/sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +105 -0
  171. data/sub/eac_ruby_utils/lib/eac_ruby_utils.rb +6 -0
  172. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb +28 -0
  173. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb +17 -0
  174. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb +22 -0
  175. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +16 -0
  176. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb +54 -0
  177. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb +65 -0
  178. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +125 -0
  179. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +20 -0
  180. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compare_by_spec.rb +38 -0
  181. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb +60 -0
  182. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enum_spec.rb +43 -0
  183. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb +37 -0
  184. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb +25 -0
  185. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb +18 -0
  186. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/directory_spec.rb +12 -0
  187. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb +52 -0
  188. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +16 -0
  189. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +275 -0
  190. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +17 -0
  191. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb +46 -0
  192. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb +80 -0
  193. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +25 -0
  194. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +30 -0
  195. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb +39 -0
  196. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +26 -0
  197. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +32 -0
  198. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb +17 -0
  199. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb +13 -0
  200. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/compare_by_spec.rb +36 -0
  201. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb +15 -0
  202. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb +20 -0
  203. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb +15 -0
  204. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb +13 -0
  205. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +11 -0
  206. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +20 -0
  207. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb +13 -0
  208. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template +1 -0
  209. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb +26 -0
  210. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb +17 -0
  211. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb +33 -0
  212. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +34 -0
  213. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +65 -0
  214. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_module_a.rb +6 -0
  215. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_not_module.rb +6 -0
  216. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb +19 -0
  217. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb +22 -0
  218. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +57 -0
  219. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb +129 -0
  220. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +57 -0
  221. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/yaml_spec.rb +75 -0
  222. data/sub/eac_ruby_utils/spec/locales/pt-BR.yml +58 -0
  223. data/sub/eac_ruby_utils/spec/rubocop_check_spec.rb +3 -0
  224. data/sub/eac_ruby_utils/spec/spec_helper.rb +15 -0
  225. metadata +218 -23
  226. data/sub/avm/lib/avm/sources/tester.rb +0 -24
  227. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/tester.rb +0 -56
  228. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb +0 -36
@@ -0,0 +1,58 @@
1
+ pt-BR:
2
+ eac_ruby_utils:
3
+ listable:
4
+ stub:
5
+ inteiro:
6
+ a:
7
+ label: Inteiro A
8
+ description: Inteiro A Descr.
9
+ b:
10
+ label: Inteiro BB
11
+ description: Inteiro BB Descr.
12
+ c:
13
+ label: Inteiro CCC
14
+ description: Inteiro CCC Descr.
15
+ __blank:
16
+ label: Inteiro em branco
17
+ description: Inteiro em branco Descr.
18
+ cadeia:
19
+ a:
20
+ label: Cadeia AAA
21
+ description: Cadeia AAA Descr.
22
+ b:
23
+ label: Cadeia BB
24
+ description: Cadeia BB Descr.
25
+ c:
26
+ label: Cadeia C
27
+ description: Cadeia C Descr.
28
+ code:
29
+ a:
30
+ label: Código A
31
+ description: Código A Descr.
32
+ b:
33
+ label: Código B
34
+ description: Código B Descr.
35
+ type:
36
+ a:
37
+ label: Tipo A
38
+ description: Tipo A Descr.
39
+ b:
40
+ label: Tipo B
41
+ description: Tipo B Descr.
42
+ simbolo:
43
+ a:
44
+ label: Simbolo A
45
+ description: Simbolo A Descr.
46
+ b:
47
+ label: Simbolo B
48
+ description: Simbolo B Descr.
49
+ c:
50
+ label: Simbolo C
51
+ description: Simbolo C Descr.
52
+ tipado:
53
+ a:
54
+ label: Tipado A
55
+ description: Tipado A Descr.
56
+ b:
57
+ label: Tipado B
58
+ description: Tipado B Descr.
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('../lib', __dir__)
4
+ require 'tmpdir'
5
+
6
+ require 'i18n'
7
+ ::I18n.load_path << ::File.join(__dir__, 'locales/pt-BR.yml')
8
+ ::I18n.locale = 'pt-BR'
9
+
10
+ RSpec.configure do |config|
11
+ config.example_status_persistence_file_path = ::File.join(::Dir.tmpdir, 'eac_ruby_utils_rspec')
12
+
13
+ require 'eac_ruby_utils/rspec/default_setup'
14
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__), config)
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-16 00:00:00.000000000 Z
11
+ date: 2022-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-eac_generic_base0
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.2.2
19
+ version: '0.3'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.2.2
26
+ version: '0.3'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: avm-eac_rails_base1
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,20 +84,14 @@ dependencies:
90
84
  requirements:
91
85
  - - "~>"
92
86
  - !ruby/object:Gem::Version
93
- version: '0.8'
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 0.8.2
87
+ version: '0.9'
97
88
  type: :runtime
98
89
  prerelease: false
99
90
  version_requirements: !ruby/object:Gem::Requirement
100
91
  requirements:
101
92
  - - "~>"
102
93
  - !ruby/object:Gem::Version
103
- version: '0.8'
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 0.8.2
94
+ version: '0.9'
107
95
  - !ruby/object:Gem::Dependency
108
96
  name: avm-tools
109
97
  requirement: !ruby/object:Gem::Requirement
@@ -127,7 +115,7 @@ dependencies:
127
115
  version: '0.95'
128
116
  - - ">="
129
117
  - !ruby/object:Gem::Version
130
- version: 0.95.1
118
+ version: 0.95.2
131
119
  type: :runtime
132
120
  prerelease: false
133
121
  version_requirements: !ruby/object:Gem::Requirement
@@ -137,7 +125,7 @@ dependencies:
137
125
  version: '0.95'
138
126
  - - ">="
139
127
  - !ruby/object:Gem::Version
140
- version: 0.95.1
128
+ version: 0.95.2
141
129
  - !ruby/object:Gem::Dependency
142
130
  name: eac_ruby_gem_support
143
131
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +156,6 @@ files:
168
156
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
169
157
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb
170
158
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
171
- - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/tester.rb
172
159
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb
173
160
  - sub/avm-eac_generic_base0/locale/en.yml
174
161
  - sub/avm-eac_generic_base0/locale/pt-BR.yml
@@ -264,7 +251,6 @@ files:
264
251
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
265
252
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
266
253
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb
267
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb
268
254
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb
269
255
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb
270
256
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb
@@ -1109,7 +1095,6 @@ files:
1109
1095
  - sub/avm/lib/avm/sources/base/testing.rb
1110
1096
  - sub/avm/lib/avm/sources/configuration.rb
1111
1097
  - sub/avm/lib/avm/sources/configuration/rubocop.rb
1112
- - sub/avm/lib/avm/sources/tester.rb
1113
1098
  - sub/avm/lib/avm/sources/tests.rb
1114
1099
  - sub/avm/lib/avm/sources/tests/builder.rb
1115
1100
  - sub/avm/lib/avm/sources/tests/performer.rb
@@ -1234,6 +1219,216 @@ files:
1234
1219
  - sub/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb
1235
1220
  - sub/eac_ruby_base0/spec/rubocop_spec.rb
1236
1221
  - sub/eac_ruby_base0/spec/spec_helper.rb
1222
+ - sub/eac_ruby_utils/Gemfile
1223
+ - sub/eac_ruby_utils/MIT-LICENCE
1224
+ - sub/eac_ruby_utils/README.rdoc
1225
+ - sub/eac_ruby_utils/eac_ruby_utils.gemspec
1226
+ - sub/eac_ruby_utils/lib/eac_ruby_utils.rb
1227
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb
1228
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
1229
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb
1230
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb
1231
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
1232
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
1233
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
1234
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb
1235
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb
1236
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
1237
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb
1238
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb
1239
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
1240
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb
1241
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb
1242
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb
1243
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/compact.rb
1244
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/compare_by.rb
1245
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/context.rb
1246
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
1247
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb
1248
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb
1249
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/enum.rb
1250
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs.rb
1251
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb
1252
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb
1253
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb
1254
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb
1255
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb
1256
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb
1257
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
1258
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/local_env.rb
1259
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb
1260
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb
1261
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb
1262
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb
1263
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb
1264
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
1265
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
1266
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
1267
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
1268
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
1269
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb
1270
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb
1271
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb
1272
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb
1273
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb
1274
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb
1275
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb
1276
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb
1277
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb
1278
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb
1279
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb
1280
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb
1281
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb
1282
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb
1283
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable.rb
1284
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb
1285
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb
1286
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/integer_list.rb
1287
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb
1288
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/lists.rb
1289
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
1290
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb
1291
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb
1292
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb
1293
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb
1294
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb
1295
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb
1296
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb
1297
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb
1298
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb
1299
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb
1300
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
1301
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
1302
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb
1303
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
1304
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb
1305
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb
1306
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
1307
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
1308
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
1309
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb
1310
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb
1311
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb
1312
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb
1313
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
1314
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb
1315
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb
1316
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb
1317
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
1318
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb
1319
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
1320
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/compare_by.rb
1321
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb
1322
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb
1323
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
1324
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb
1325
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/method_class.rb
1326
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb
1327
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb
1328
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb
1329
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb
1330
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
1331
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
1332
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb
1333
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb
1334
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
1335
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb
1336
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb
1337
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
1338
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
1339
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
1340
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb
1341
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
1342
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb
1343
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
1344
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb
1345
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb
1346
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb
1347
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/readlink_r.rb
1348
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
1349
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
1350
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
1351
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb
1352
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
1353
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb
1354
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
1355
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
1356
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
1357
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb
1358
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb
1359
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
1360
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb
1361
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb
1362
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb
1363
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
1364
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb
1365
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/stub_speaker.rb
1366
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb
1367
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb
1368
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
1369
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
1370
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
1371
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
1372
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb
1373
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
1374
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb
1375
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb
1376
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
1377
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb
1378
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
1379
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb
1380
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
1381
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb
1382
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
1383
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb
1384
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
1385
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb
1386
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb
1387
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compare_by_spec.rb
1388
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb
1389
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enum_spec.rb
1390
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb
1391
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb
1392
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
1393
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/directory_spec.rb
1394
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
1395
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb
1396
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
1397
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb
1398
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb
1399
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
1400
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
1401
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb
1402
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
1403
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb
1404
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb
1405
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb
1406
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb
1407
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/compare_by_spec.rb
1408
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb
1409
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
1410
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb
1411
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb
1412
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb
1413
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb
1414
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb
1415
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template
1416
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb
1417
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
1418
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb
1419
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb
1420
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb
1421
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb
1422
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_module_a.rb
1423
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_not_module.rb
1424
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb
1425
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
1426
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
1427
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb
1428
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/yaml_spec.rb
1429
+ - sub/eac_ruby_utils/spec/locales/pt-BR.yml
1430
+ - sub/eac_ruby_utils/spec/rubocop_check_spec.rb
1431
+ - sub/eac_ruby_utils/spec/spec_helper.rb
1237
1432
  homepage:
1238
1433
  licenses: []
1239
1434
  metadata: {}
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Sources
7
- class Tester
8
- enable_abstract_methods
9
- common_constructor :source
10
-
11
- abstract_methods :result, :logs
12
-
13
- # @return [EacFs::Logs]
14
- def logs
15
- raise_abstract_method __method__
16
- end
17
-
18
- # @return [Avm::Sources::Tests::Result]
19
- def result
20
- raise_abstract_method __method__
21
- end
22
- end
23
- end
24
- end
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/sources/tester'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module EacGenericBase0
8
- module Sources
9
- class Tester < ::Avm::Sources::Tester
10
- TEST_COMMAND_CONFIGURATION_KEY = :test_command
11
-
12
- enable_simple_cache
13
-
14
- # @return [EacRubyUtils::Envs::Command, nil]
15
- def test_command
16
- source.read_configuration_as_shell_words(TEST_COMMAND_CONFIGURATION_KEY)
17
- .if_present do |args|
18
- ::EacRubyUtils::Envs.local.command(args).chdir(source.path)
19
- end
20
- end
21
-
22
- # @return [EacFs::Logs]
23
- def logs
24
- @logs ||= ::EacFs::Logs.new.add(:stdout).add(:stderr)
25
- end
26
-
27
- # @return [Avm::Sources::Tests::Result]
28
- def result
29
- @result ||= begin
30
- if test_command.blank?
31
- ::Avm::Sources::Tests::Result::NONEXISTENT
32
- elsif run_test_command
33
- ::Avm::Sources::Tests::Result::SUCESSFUL
34
- else
35
- ::Avm::Sources::Tests::Result::FAILED
36
- end
37
- end
38
- end
39
-
40
- protected
41
-
42
- def run_test_command
43
- execute_command_and_log(test_command)
44
- end
45
-
46
- # @return [true, false]
47
- def execute_command_and_log(command)
48
- r = command.execute
49
- logs[:stdout].write(r[:stdout])
50
- logs[:stderr].write(r[:stderr])
51
- r[:exit_code].zero?
52
- end
53
- end
54
- end
55
- end
56
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_generic_base0/sources/tester'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module EacRubyBase1
8
- module Sources
9
- class Tester < ::Avm::EacGenericBase0::Sources::Tester
10
- BUNDLE_TEST_COMMAND_CONFIGURATION_KEY = :bundle_test_command
11
-
12
- # @return [Avm::EacRailsBase1::Sources::Base::BundleCommand, nil]
13
- def test_command
14
- bundle_test_command || super || default_test_command
15
- end
16
-
17
- # @return [Avm::EacRailsBase1::Sources::Base::BundleCommand, nil]
18
- def bundle_test_command
19
- source.read_configuration_as_shell_words(BUNDLE_TEST_COMMAND_CONFIGURATION_KEY)
20
- .if_present { |args| source.bundle(*args).chdir_root }
21
- end
22
-
23
- # @return [Avm::EacRailsBase1::Sources::Base::BundleCommand, nil]
24
- def default_test_command
25
- source.bundle('exec', 'rspec', '--fail-fast').chdir_root
26
- end
27
-
28
- def run_test_command
29
- execute_command_and_log(source.bundle('install').chdir_root) ||
30
- execute_command_and_log(source.bundle('update').chdir_root)
31
- super
32
- end
33
- end
34
- end
35
- end
36
- end