ehbrs-tools 0.25.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/.avm.yml +4 -0
  3. data/.rspec +1 -0
  4. data/.rubocop.yml +39 -0
  5. data/Gemfile.lock +307 -0
  6. data/lib/ehbrs/{core_ext.rb → tools/core_ext.rb} +0 -0
  7. data/lib/ehbrs/tools/runner/finances/bb_browser.rb +1 -1
  8. data/lib/ehbrs/tools/runner/fs/selected.rb +19 -26
  9. data/lib/ehbrs/tools/runner/music/lyrics.rb +68 -0
  10. data/lib/ehbrs/tools/runner/music/lyrics_book.rb +41 -0
  11. data/lib/ehbrs/tools/runner/music/selected.rb +6 -6
  12. data/lib/ehbrs/tools/runner/web_utils/videos/upload.rb +1 -1
  13. data/lib/ehbrs/tools/version.rb +1 -1
  14. data/lib/ehbrs/user_dirs.rb +2 -2
  15. data/lib/ehbrs/videos/extract/package.rb +2 -2
  16. data/lib/ehbrs/videos/extract/package_file.rb +0 -1
  17. data/spec/code/rubocop_spec.rb +3 -0
  18. data/spec/lib/ehbrs/cooking_book/recipe/measure_spec.rb +21 -0
  19. data/spec/lib/ehbrs/observers/base_spec.rb +93 -0
  20. data/spec/lib/ehbrs/tools/runner/fs/used_space_spec.rb +62 -0
  21. data/spec/lib/ehbrs/tools/runner/vg/ips_spec.rb +31 -0
  22. data/spec/lib/ehbrs/tools/runner/vg/ips_spec_files/expected.rom +0 -0
  23. data/spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_0.ips +0 -0
  24. data/spec/lib/ehbrs/tools/runner/vg/ips_spec_files/patch_1.ips +0 -0
  25. data/spec/lib/ehbrs/tools/runner/vg/ips_spec_files/source.rom +0 -0
  26. data/spec/lib/ehbrs/tools/runner/videos/probe_spec.rb +19 -0
  27. data/spec/lib/ehbrs/tools/runner/videos/probe_spec_files/fixed.target.yaml +105 -0
  28. data/spec/lib/ehbrs/tools/runner/videos/unsupported_spec.rb +75 -0
  29. data/spec/lib/ehbrs/tools/runner/videos/unsupported_spec_files/dts_audio.probe.yaml +90 -0
  30. data/spec/lib/ehbrs/tools/runner_spec.rb +16 -0
  31. data/spec/lib/ehbrs/vg/wii/game_file_spec.rb +21 -0
  32. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec.rb +11 -0
  33. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/pikmin2_R92P01_wia.source.witdump +27 -0
  34. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/pikmin2_R92P01_wia.target.yaml +22 -0
  35. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/pikmin2_pal_iso.source.witdump +28 -0
  36. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/pikmin2_pal_iso.target.yaml +21 -0
  37. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/resident_evil_code_veronica_disc2_iso.source.witdump +16 -0
  38. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/resident_evil_code_veronica_disc2_iso.target.yaml +19 -0
  39. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/super_mario_galaxy_wbfs.source.witdump +28 -0
  40. data/spec/lib/ehbrs/vg/wii/wit/parsers/dump_spec_files/super_mario_galaxy_wbfs.target.yaml +23 -0
  41. data/spec/lib/ehbrs/vg/wii/wit/path_spec.rb +33 -0
  42. data/spec/spec_helper/videos.rb +30 -0
  43. data/spec/spec_helper/videos_files/stub_source.mp4 +0 -0
  44. data/spec/spec_helper.rb +7 -0
  45. data/vendor/aranha-parsers/aranha-parsers.gemspec +1 -0
  46. data/vendor/aranha-parsers/lib/aranha/parsers/rspec/setup.rb +1 -1
  47. data/vendor/aranha-parsers/lib/aranha/parsers/rspec/{source_target_fixtures_example.rb → shared_examples/source_target_fixtures.rb} +0 -0
  48. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/fetch_content_error.rb +10 -0
  49. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/http_get.rb +15 -2
  50. data/vendor/aranha-parsers/lib/aranha/parsers/version.rb +1 -1
  51. data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +1 -1
  52. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +9 -1
  53. data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +6 -0
  54. data/vendor/eac_cli/lib/eac_cli/runner_with/help/builder.rb +3 -3
  55. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  56. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +6 -5
  57. data/vendor/eac_fs/Gemfile +5 -0
  58. data/vendor/eac_fs/eac_fs.gemspec +20 -0
  59. data/vendor/{eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb → eac_fs/lib/eac_fs/cache.rb} +7 -2
  60. data/vendor/eac_fs/lib/eac_fs/file_info.rb +24 -0
  61. data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +10 -0
  62. data/vendor/eac_fs/lib/eac_fs/patches/module.rb +4 -0
  63. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +10 -0
  64. data/vendor/eac_fs/lib/eac_fs/patches/object.rb +4 -0
  65. data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +12 -0
  66. data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +4 -0
  67. data/vendor/eac_fs/lib/eac_fs/patches.rb +4 -0
  68. data/vendor/eac_fs/lib/eac_fs/version.rb +5 -0
  69. data/vendor/eac_fs/lib/eac_fs.rb +7 -0
  70. data/vendor/{eac_ruby_utils/spec/lib/eac_ruby_utils/filesystem_cache_spec.rb → eac_fs/spec/lib/eac_fs/cache_spec.rb} +2 -2
  71. data/vendor/eac_fs/spec/rubocop_spec.rb +3 -0
  72. data/vendor/eac_fs/spec/spec_helper.rb +4 -0
  73. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +2 -1
  74. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +3 -3
  75. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +1 -0
  76. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +16 -7
  77. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  78. data/vendor/eac_ruby_gems_utils/Gemfile +5 -0
  79. data/vendor/eac_ruby_gems_utils/LICENCE +16 -0
  80. data/vendor/eac_ruby_gems_utils/README.rdoc +3 -0
  81. data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +30 -0
  82. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb +33 -0
  83. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +41 -0
  84. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +97 -0
  85. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +58 -0
  86. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/minitest.rb +25 -0
  87. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +48 -0
  88. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +25 -0
  89. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +84 -0
  90. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb +21 -0
  91. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests.rb +9 -0
  92. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +5 -0
  93. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils.rb +7 -0
  94. data/vendor/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb +3 -0
  95. data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +14 -0
  96. data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +7 -0
  97. data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb +20 -0
  98. data/vendor/eac_ruby_gems_utils/spec/spec_helper.rb +4 -0
  99. data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile +5 -0
  100. data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock +19 -0
  101. data/vendor/eac_ruby_gems_utils/spec/support/mygem/Rakefile +14 -0
  102. data/vendor/eac_ruby_gems_utils/spec/support/mygem/exe/myrunner +5 -0
  103. data/vendor/eac_ruby_gems_utils/spec/support/mygem/lib/mygem/version.rb +5 -0
  104. data/vendor/eac_ruby_gems_utils/spec/support/mygem/lib/mygem.rb +5 -0
  105. data/vendor/eac_ruby_gems_utils/spec/support/mygem/mygem.gemspec +16 -0
  106. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +22 -0
  107. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +20 -0
  108. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +16 -0
  109. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +70 -0
  110. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  111. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +20 -0
  112. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +20 -0
  113. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +34 -0
  114. data/vendor/eac_templates/Gemfile +5 -0
  115. data/vendor/eac_templates/eac_templates.gemspec +19 -0
  116. data/vendor/eac_templates/lib/eac_templates/directory.rb +108 -0
  117. data/vendor/eac_templates/lib/eac_templates/file.rb +48 -0
  118. data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
  119. data/vendor/eac_templates/lib/eac_templates/patches/module/template.rb +10 -0
  120. data/vendor/eac_templates/lib/eac_templates/patches/module.rb +4 -0
  121. data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
  122. data/vendor/eac_templates/lib/eac_templates/patches/object/template.rb +9 -0
  123. data/vendor/eac_templates/lib/eac_templates/patches/object.rb +4 -0
  124. data/vendor/eac_templates/lib/eac_templates/patches.rb +4 -0
  125. data/vendor/eac_templates/lib/eac_templates/searcher.rb +53 -0
  126. data/vendor/eac_templates/lib/eac_templates/variable_not_found_error.rb +5 -0
  127. data/vendor/eac_templates/lib/eac_templates/variable_providers/base.rb +21 -0
  128. data/vendor/eac_templates/lib/eac_templates/variable_providers/config_reader.rb +27 -0
  129. data/vendor/eac_templates/lib/eac_templates/variable_providers/entries_reader.rb +23 -0
  130. data/vendor/eac_templates/lib/eac_templates/variable_providers/generic.rb +23 -0
  131. data/vendor/eac_templates/lib/eac_templates/variable_providers/hash.rb +27 -0
  132. data/vendor/eac_templates/lib/eac_templates/variable_providers.rb +23 -0
  133. data/vendor/eac_templates/lib/eac_templates/version.rb +5 -0
  134. data/vendor/eac_templates/lib/eac_templates.rb +7 -0
  135. data/vendor/eac_templates/spec/lib/eac_templates/file_spec.rb +35 -0
  136. data/vendor/eac_templates/spec/lib/eac_templates/file_spec_files/expected_content +2 -0
  137. data/vendor/eac_templates/spec/lib/eac_templates/file_spec_files/source.template +2 -0
  138. data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec.rb +30 -0
  139. data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path1/subdir1/file1.template +1 -0
  140. data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path1/subdir1/file2 +1 -0
  141. data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path2/subdir1/file3.template +1 -0
  142. data/vendor/eac_templates/spec/lib/object/template_spec.rb +23 -0
  143. data/vendor/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template +1 -0
  144. data/vendor/eac_templates/spec/rubocop_spec.rb +3 -0
  145. data/vendor/eac_templates/spec/spec_helper.rb +4 -0
  146. data/vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec +6 -1
  147. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/core_ext.rb +5 -0
  148. data/{lib/ehbrs → vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils}/fs/compressed_package.rb +1 -1
  149. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected/build.rb +41 -0
  150. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected/build_file.rb +27 -0
  151. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected.rb +35 -0
  152. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs.rb +10 -0
  153. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/album.rb +42 -0
  154. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/resource.rb +64 -0
  155. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/song.rb +68 -0
  156. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book.rb +65 -0
  157. data/{lib/ehbrs/fs.rb → vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music.rb} +2 -2
  158. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches/object.rb +4 -0
  159. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches.rb +4 -0
  160. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +1 -1
  161. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb +31 -0
  162. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/stream.rb +1 -1
  163. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/album/inner.html.erb +3 -0
  164. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/custom_style.css +11 -0
  165. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/index.html.erb +14 -0
  166. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/main.html.erb +24 -0
  167. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/resource/main.html.erb +8 -0
  168. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/song/inner.html.erb +5 -0
  169. data/vendor/ultimate_lyrics/Gemfile +5 -0
  170. data/vendor/ultimate_lyrics/bin/download_parser_spec_files.rb +94 -0
  171. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/field.rb +83 -0
  172. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/lyrics.rb +13 -0
  173. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/parser.rb +28 -0
  174. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/exclude_item.rb +17 -0
  175. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/extract_item.rb +21 -0
  176. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/item.rb +48 -0
  177. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/replace_fields.rb +13 -0
  178. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/rule.rb +52 -0
  179. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/url_format.rb +21 -0
  180. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider.rb +96 -0
  181. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider_search.rb +43 -0
  182. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/providers_data.xml +356 -0
  183. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/song_metadata/field.rb +24 -0
  184. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/song_metadata.rb +28 -0
  185. data/vendor/ultimate_lyrics/lib/ultimate_lyrics/version.rb +5 -0
  186. data/vendor/ultimate_lyrics/lib/ultimate_lyrics.rb +7 -0
  187. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec.rb +20 -0
  188. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.source.html +8 -0
  189. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.target.yaml +3 -0
  190. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.url +1 -0
  191. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.source.html +8 -0
  192. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.target.yaml +3 -0
  193. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.url +1 -0
  194. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.source.html +193 -0
  195. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.target.yaml +3 -0
  196. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.url +1 -0
  197. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.source.html +193 -0
  198. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.target.yaml +3 -0
  199. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.url +1 -0
  200. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.source.html +87 -0
  201. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.target.yaml +36 -0
  202. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.url +1 -0
  203. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.source.html +4 -0
  204. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.target.yaml +3 -0
  205. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.url +1 -0
  206. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.source.html +2 -0
  207. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.target.yaml +3 -0
  208. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.url +1 -0
  209. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.source.html +2 -0
  210. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.target.yaml +3 -0
  211. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.url +1 -0
  212. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.source.html +101 -0
  213. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.target.yaml +3 -0
  214. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.url +1 -0
  215. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.source.html +29 -0
  216. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.target.yaml +3 -0
  217. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.url +1 -0
  218. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.source.html +29 -0
  219. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.target.yaml +3 -0
  220. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.url +1 -0
  221. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.source.html +1301 -0
  222. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.target.yaml +3 -0
  223. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.url +1 -0
  224. data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/provider_search_spec.rb +72 -0
  225. data/vendor/ultimate_lyrics/spec/rubocop_spec.rb +3 -0
  226. data/vendor/ultimate_lyrics/spec/spec_helper.rb +4 -0
  227. data/vendor/ultimate_lyrics/ultimate_lyrics.gemspec +21 -0
  228. metadata +251 -12
  229. data/lib/ehbrs/patches/module/erb_template.rb +0 -11
  230. data/lib/ehbrs/patches/object/erb_template.rb +0 -9
  231. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +0 -12
@@ -0,0 +1,28 @@
1
+
2
+ Dump of file /home/eduardo/storage/roms/wii/disk/wbfs/SUPER MARIO GALAXY [RMGE01]/RMGE01.wbfs/#0
3
+
4
+ Real path: /mnt/storage/eduardo/roms/wii/disk/wbfs/SUPER MARIO GALAXY [RMGE01]/RMGE01.wbfs/#0
5
+ Virtual size: 118240000/hex = 4699979776 = 4482 MiB
6
+ Scrubbed size: d0b28000/hex = 3501359104 = 3339 MiB, 74.5%, 106853*32K
7
+ WBFS file size: d1200000/hex = 3508535296 = 3346 MiB, 74.7%, 100.2%
8
+ WBFS fragments: 1+0 = a ratio of 0.00 additional_fragments/GiB
9
+ File & disc type: WBFS/WII & Wii
10
+ Disc & part IDs: disc=RMGE01, ticket=RMGE, tmd=RMGE, boot=RMGE01, wbfs=RMGE01
11
+ Disc name: SUPER MARIO GALAXY
12
+ DB title: Super Mario Galaxy
13
+ ID Region: NTSC/USA [USA ]
14
+ Region setting: 1 [USA] / Jap=128 USA=6 ?=128 Eur=128,128,128,128,128,128 Kor=128
15
+ System version: 00000001-00000021 = IOS 0x21 = IOS 33
16
+ Partitions: 1 [encrypted, scrubbed, well signed]
17
+ Directories: 79
18
+ Files: 2383
19
+
20
+ 1 partition table with 1 partition:
21
+
22
+ index type offset .. end off size/hex = size/dec = MiB status
23
+ ----------------------------------------------------------------------------------------
24
+ 0 part.tab 40020 .. 40028 8 = 8 1 partition
25
+ ----------------------------------------------------------------------------------------
26
+ 0.0 DATA 0 f800000 .. 1173c0000 107bc0000 = 4424728576 = 4220 enc,signed,scrub
27
+ ----------------------------------------------------------------------------------------
28
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ Real path: "/mnt/storage/eduardo/roms/wii/disk/wbfs/SUPER MARIO GALAXY [RMGE01]/RMGE01.wbfs/#0"
3
+ Virtual size: 118240000/hex = 4699979776 = 4482 MiB
4
+ Scrubbed size: d0b28000/hex = 3501359104 = 3339 MiB, 74.5%, 106853*32K
5
+ WBFS file size: d1200000/hex = 3508535296 = 3346 MiB, 74.7%, 100.2%
6
+ WBFS fragments: 1+0 = a ratio of 0.00 additional_fragments/GiB
7
+ File & disc type/type: WBFS
8
+ File & disc type/platform_acronym: WII
9
+ File & disc type/type_extra:
10
+ File & disc type/platform_name: Wii
11
+ Disc & part IDs/disc: RMGE01
12
+ Disc & part IDs/ticket: RMGE
13
+ Disc & part IDs/tmd: RMGE
14
+ Disc & part IDs/boot: RMGE01
15
+ Disc & part IDs/wbfs: RMGE01
16
+ Disc name: SUPER MARIO GALAXY
17
+ DB title: Super Mario Galaxy
18
+ ID Region: NTSC/USA [USA ]
19
+ Region setting: 1 [USA] / Jap=128 USA=6 ?=128 Eur=128,128,128,128,128,128 Kor=128
20
+ System version: 00000001-00000021 = IOS 0x21 = IOS 33
21
+ Partitions: 1 [encrypted, scrubbed, well signed]
22
+ Directories: '79'
23
+ Files: '2383'
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ehbrs/vg/wii/wit/path'
4
+
5
+ RSpec.describe ::Ehbrs::Vg::Wii::Wit::Path do
6
+ describe '#parse' do
7
+ context 'when type is present' do
8
+ let(:source) { 'WbFs:path/to/file.wbfs' }
9
+ let(:instance) { described_class.parse(source) }
10
+
11
+ it { expect(instance.type).to eq('WBFS') }
12
+ it { expect(instance.path.to_s).to eq('path/to/file.wbfs') }
13
+ end
14
+
15
+ context 'when type is blank' do
16
+ let(:source) { 'path/to/file.wbfs' }
17
+ let(:instance) { described_class.parse(source) }
18
+
19
+ it { expect(instance.type).to eq('') }
20
+ it { expect(instance.path.to_s).to eq('path/to/file.wbfs') }
21
+ end
22
+ end
23
+
24
+ describe '#change?' do
25
+ let(:with_type) { described_class.new('ISO', 'path/to/file.wbfs') }
26
+ let(:without_type) { described_class.new(nil, 'path/to/file.wbfs') }
27
+
28
+ it { expect(with_type.change?(without_type)).to eq(false) }
29
+ it { expect(without_type.change?(with_type)).to eq(true) }
30
+
31
+ context 'when'
32
+ end
33
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/fs/temp'
4
+
5
+ ::RSpec.configure do |config|
6
+ config.before do
7
+ videos_temp_dir
8
+ end
9
+
10
+ config.after do
11
+ videos_temp_dir.remove
12
+ end
13
+
14
+ def videos_temp_dir
15
+ @videos_temp_dir ||= ::EacRubyUtils::Fs::Temp.directory
16
+ end
17
+
18
+ def stub_video_source_file
19
+ @stub_video_source_file ||= ::Pathname.new(__dir__).join('videos_files', 'stub_source.mp4')
20
+ end
21
+
22
+ def stub_video(ffmpeg_args, output_path = nil)
23
+ output_path ||= videos_temp_dir.file
24
+ ::Ehbrs::Executables.ffmpeg.command.append(
25
+ ['-i', stub_video_source_file.to_s, *ffmpeg_args, output_path.to_s]
26
+ ).execute!
27
+
28
+ output_path
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
5
+
6
+ require 'eac_ruby_utils/core_ext'
7
+ ::EacRubyUtils.require_sub __FILE__
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.add_dependency 'curb', '~> 0.9.10'
18
18
  s.add_dependency 'eac_ruby_utils', '~> 0.74'
19
19
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
20
+ s.add_dependency 'nokogiri', '~> 1.12', '>= 1.12.4'
20
21
  s.add_dependency 'ofx-parser', '~> 1.1.0'
21
22
 
22
23
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3', '>= 0.3.3'
@@ -7,7 +7,7 @@ module Aranha
7
7
  module Rspec
8
8
  module Setup
9
9
  def self.extended(_setup_obj)
10
- require 'aranha/parsers/rspec/source_target_fixtures_example'
10
+ require 'aranha/parsers/rspec/shared_examples/source_target_fixtures'
11
11
  end
12
12
  end
13
13
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aranha
4
+ module Parsers
5
+ class SourceAddress
6
+ class FetchContentError < ::RuntimeError
7
+ end
8
+ end
9
+ end
10
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'addressable'
4
4
  require 'curb'
5
+ require 'aranha/parsers/source_address/fetch_content_error'
5
6
 
6
7
  module Aranha
7
8
  module Parsers
@@ -34,15 +35,27 @@ module Aranha
34
35
  def content
35
36
  c = ::Curl::Easy.new(url)
36
37
  c.follow_location = true
37
- raise "Curl perform failed (URL: #{url})" unless c.perform
38
+ curl_perform(c)
38
39
  return c.body_str if c.status.to_i == 200
39
40
 
40
- raise "Get #{url} returned #{c.status.to_i}"
41
+ raise ::Aranha::Parsers::SourceAddress::FetchContentError,
42
+ "Get #{url} returned #{c.status.to_i}"
41
43
  end
42
44
 
43
45
  def serialize
44
46
  url
45
47
  end
48
+
49
+ private
50
+
51
+ def curl_perform(curl)
52
+ unless curl.perform
53
+ raise(::Aranha::Parsers::SourceAddress::FetchContentError,
54
+ "Curl perform failed (URL: #{url})")
55
+ end
56
+ rescue Curl::Err::CurlError => e
57
+ raise ::Aranha::Parsers::SourceAddress::FetchContentError, "CURL error: #{e.class.name}"
58
+ end
46
59
  end
47
60
  end
48
61
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.8.3'
5
+ VERSION = '0.8.5'
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ module EacCli
13
13
  repeat? ? previous_value + [new_value] : new_value
14
14
  end
15
15
 
16
- def default_value
16
+ def default_default_value
17
17
  repeat? ? [] : nil
18
18
  end
19
19
  end
@@ -18,7 +18,7 @@ module EacCli
18
18
 
19
19
  enable_listable
20
20
  enable_abstract_methods :build_value, :default_value
21
- lists.add_symbol :option, :optional, :usage, :repeat, :required
21
+ lists.add_symbol :option, :default, :optional, :usage, :repeat, :required
22
22
  common_constructor :short, :long, :description, :options, default: [{}] do
23
23
  raise 'Nor short neither long selector was set' if short.blank? && long.blank?
24
24
 
@@ -27,6 +27,14 @@ module EacCli
27
27
  )
28
28
  end
29
29
 
30
+ def default_value
31
+ default_value? ? options[OPTION_DEFAULT] : default_default_value
32
+ end
33
+
34
+ def default_value?
35
+ options.key?(OPTION_DEFAULT)
36
+ end
37
+
30
38
  def identifier
31
39
  [long, short].each do |v|
32
40
  v.to_s.if_present { |vv| return vv.variableize.to_sym }
@@ -14,6 +14,12 @@ module EacCli
14
14
  end
15
15
 
16
16
  def default_value
17
+ return super unless default_value?
18
+
19
+ raise "Unallowed default value for boolean options (Option: #{self})"
20
+ end
21
+
22
+ def default_default_value
17
23
  repeat? ? 0 : false
18
24
  end
19
25
  end
@@ -36,9 +36,9 @@ module EacCli
36
36
  end
37
37
 
38
38
  def option_definition(option)
39
- self.class.option_usage_full(option) + option.description.if_present('') do |v|
40
- OPTION_DESC_SEP + v
41
- end
39
+ [self.class.option_usage_full(option), option.description,
40
+ option.default_value? ? "[Default: \"#{option.default_value}\"]" : nil]
41
+ .reject(&:blank?).join(OPTION_DESC_SEP)
42
42
  end
43
43
 
44
44
  def section(header, include_header = true)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.22.2'
4
+ VERSION = '0.23.0'
5
5
  end
@@ -13,6 +13,7 @@ RSpec.describe ::EacCli::Runner do
13
13
  bool_opt '-p', '--opt2', 'A boolean option'
14
14
  arg_opt '-q', '--opt4', 'A repeatable argument option.', repeat: true
15
15
  bool_opt '-r', '--opt5', 'A repeatable boolean option', repeat: true
16
+ arg_opt '-s', '--opt6', 'A argument option with default value', default: 'DEFAULT'
16
17
  pos_arg :pos1
17
18
  pos_arg :pos2, repeat: true, optional: true
18
19
  alt do
@@ -28,9 +29,9 @@ RSpec.describe ::EacCli::Runner do
28
29
  let(:parsed_actual) { instance.parsed.to_h.symbolize_keys }
29
30
 
30
31
  context 'when all args are supplied' do
31
- let(:argv) { %w[--opt1 aaa --opt2 bbb ccc ddd] }
32
+ let(:argv) { %w[--opt1 aaa --opt2 bbb ccc ddd --opt6 6] }
32
33
  let(:parsed_expected) do
33
- { opt1: 'aaa', opt2: true, opt3: false, opt4: [], opt5: 0, pos1: 'bbb',
34
+ { opt1: 'aaa', opt2: true, opt3: false, opt4: [], opt5: 0, opt6: '6', pos1: 'bbb',
34
35
  pos2: %w[ccc ddd] }
35
36
  end
36
37
 
@@ -65,7 +66,7 @@ RSpec.describe ::EacCli::Runner do
65
66
  context 'when only required args are supplied' do
66
67
  let(:argv) { %w[bbb] }
67
68
  let(:parsed_expected) do
68
- { opt1: nil, opt2: false, opt3: false, opt4: [], opt5: 0, pos1: 'bbb',
69
+ { opt1: nil, opt2: false, opt3: false, opt4: [], opt5: 0, opt6: 'DEFAULT', pos1: 'bbb',
69
70
  pos2: [] }
70
71
  end
71
72
 
@@ -87,7 +88,7 @@ RSpec.describe ::EacCli::Runner do
87
88
  context 'when alternative args are supplied' do
88
89
  let(:argv) { %w[--opt3] }
89
90
  let(:parsed_expected) do
90
- { opt1: nil, opt2: false, opt3: true, opt4: [], opt5: 0, pos1: nil,
91
+ { opt1: nil, opt2: false, opt3: true, opt4: [], opt5: 0, opt6: 'DEFAULT', pos1: nil,
91
92
  pos2: [] }
92
93
  end
93
94
 
@@ -98,7 +99,7 @@ RSpec.describe ::EacCli::Runner do
98
99
  context 'when repeated options are supplied' do
99
100
  let(:argv) { %w[--opt5 -rrr --opt4=A -q B --opt4 C AAA] }
100
101
  let(:parsed_expected) do
101
- { opt1: nil, opt2: false, opt3: false, opt4: %w[A B C], opt5: 4, pos1: 'AAA',
102
+ { opt1: nil, opt2: false, opt3: false, opt4: %w[A B C], opt5: 4, opt6: 'DEFAULT', pos1: 'AAA',
102
103
  pos2: [] }
103
104
  end
104
105
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'eac_fs/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'eac_fs'
9
+ s.version = EacFs::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib}/**/*']
14
+
15
+ s.add_dependency 'content-type'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
17
+ s.add_dependency 'ruby-filemagic'
18
+
19
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
20
+ end
@@ -1,7 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module EacRubyUtils
4
- class FilesystemCache
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'fileutils'
5
+
6
+ module EacFs
7
+ class Cache
8
+ enable_context
9
+
5
10
  CONTENT_FILE_NAME = '__content__'
6
11
 
7
12
  attr_reader :path
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'content-type'
5
+ require 'filemagic'
6
+
7
+ module EacFs
8
+ class FileInfo
9
+ enable_simple_cache
10
+ attr_reader :magic_string
11
+
12
+ def initialize(path)
13
+ @magic_string = ::FileMagic.new(FileMagic::MAGIC_MIME).file(path.to_pathname.to_path)
14
+ end
15
+
16
+ delegate :charset, :mime_type, :subtype, :type, to: :content_type
17
+
18
+ private
19
+
20
+ def content_type_uncached
21
+ ::ContentType.parse(magic_string)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/cache'
4
+
5
+ class Module
6
+ # @return [EacFs::Cache]
7
+ def fs_cache
8
+ ::EacFs::Cache.context.current.child('fs_cache', *name.split('::'))
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/patches/module/fs_cache'
4
+
5
+ class Object
6
+ # @return [EacFs::Cache]
7
+ def fs_cache
8
+ self.class.fs_cache
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/file_info'
4
+ require 'pathname'
5
+
6
+ class Pathname
7
+ # Shortcut for `EacFs::FileInfo.new(self)`.
8
+ # @return [EacFs::FileInfo]
9
+ def info
10
+ ::EacFs::FileInfo.new(self)
11
+ end
12
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacFs
4
+ VERSION = '0.3.0'
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacFs
6
+ require_sub __FILE__
7
+ end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/core_ext/object/blank'
4
- require 'eac_ruby_utils/filesystem_cache'
4
+ require 'eac_fs/cache'
5
5
 
6
- RSpec.describe ::EacRubyUtils::FilesystemCache do
6
+ RSpec.describe ::EacFs::Cache do
7
7
  let(:tmpdir) { ::Dir.mktmpdir }
8
8
  let(:instance) { described_class.new(tmpdir, 'instance') }
9
9
 
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
15
  s.add_dependency 'eac_cli', '~> 0.22', '>= 0.22.2'
16
- s.add_dependency 'eac_ruby_gems_utils', '~> 0.9', '~> 0.9.5'
16
+ s.add_dependency 'eac_fs', '~> 0.3'
17
+ s.add_dependency 'eac_ruby_gems_utils', '~> 0.9', '~> 0.9.6'
17
18
  s.add_dependency 'eac_ruby_utils', '~> 0.70'
18
19
 
19
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
@@ -3,10 +3,10 @@
3
3
  require 'eac_cli/config'
4
4
  require 'eac_config/envvars_node'
5
5
  require 'eac_config/yaml_file_node'
6
+ require 'eac_fs/cache'
6
7
  require 'eac_ruby_base0/application_xdg'
7
8
  require 'eac_ruby_gems_utils/gem'
8
9
  require 'eac_ruby_utils/core_ext'
9
- require 'eac_ruby_utils/filesystem_cache'
10
10
 
11
11
  module EacRubyBase0
12
12
  class Application
@@ -44,8 +44,8 @@ module EacRubyBase0
44
44
  end
45
45
 
46
46
  def fs_cache
47
- @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(
48
- cache_dir.join(::EacRubyUtils::FilesystemCache.name.parameterize)
47
+ @fs_cache ||= ::EacFs::Cache.new(
48
+ cache_dir.join(::EacFs::Cache.name.parameterize)
49
49
  )
50
50
  end
51
51
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
+ require 'eac_fs/patches'
4
5
  require 'eac_ruby_base0/patches'
@@ -3,6 +3,7 @@
3
3
  require 'eac_cli/core_ext'
4
4
  require 'eac_cli/speaker'
5
5
  require 'eac_config/node'
6
+ require 'eac_fs/cache'
6
7
  require 'eac_ruby_utils/speaker'
7
8
 
8
9
  module EacRubyBase0
@@ -23,13 +24,11 @@ module EacRubyBase0
23
24
  end
24
25
 
25
26
  def run
26
- ::EacRubyUtils::Speaker.context.on(build_speaker) do
27
- ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
28
- if parsed.version?
29
- show_version
30
- else
31
- run_with_subcommand
32
- end
27
+ on_context do
28
+ if parsed.version?
29
+ show_version
30
+ else
31
+ run_with_subcommand
33
32
  end
34
33
  end
35
34
  end
@@ -38,6 +37,16 @@ module EacRubyBase0
38
37
  runner_context.call(:application).version.to_s
39
38
  end
40
39
 
40
+ def on_context
41
+ ::EacRubyUtils::Speaker.context.on(build_speaker) do
42
+ ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
43
+ ::EacFs::Cache.context.on(application.fs_cache) do
44
+ yield
45
+ end
46
+ end
47
+ end
48
+ end
49
+
41
50
  def show_version
42
51
  out("#{application_version}\n")
43
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.10.1'
4
+ VERSION = '0.11.0'
5
5
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
@@ -0,0 +1,16 @@
1
+ Copyright (c) 2020 Eduardo Henrique Bogoni
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4
+ associated documentation files (the "Software"), to deal in the Software without restriction,
5
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
6
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
7
+ furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice (including the next paragraph) shall be
10
+ included in all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
13
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
16
+ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
1
+ = E.A.C.'s Ruby Gems Utils.
2
+
3
+ Utilities for Ruby\'s gems development.
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ # Maintain your gem's version:
6
+ require 'eac_ruby_gems_utils/version'
7
+
8
+ # Describe your gem and declare its dependencies:
9
+ Gem::Specification.new do |s|
10
+ s.name = 'eac_ruby_gems_utils'
11
+ s.version = ::EacRubyGemsUtils::VERSION
12
+ s.authors = ['Esquilo Azul Company']
13
+ s.summary = 'Utilities for Ruby gems development.'
14
+ s.license = 'MIT'
15
+ s.homepage = 'https://github.com/esquilo-azul/eac_ruby_gems_utils'
16
+ s.metadata = { 'source_code_uri' => s.homepage }
17
+
18
+ s.extra_rdoc_files = ['README.rdoc']
19
+ s.rdoc_options = ['--charset=UTF-8']
20
+
21
+ s.require_paths = ['lib']
22
+ s.files = Dir['{lib}/**/*', 'Gemfile']
23
+ s.test_files = Dir['{spec}/**/*', '.rspec']
24
+
25
+ s.add_dependency 'bundler', '~> 2.2', '>= 2.2.17'
26
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
27
+
28
+ # Tests
29
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
30
+ end