avm-tools 0.103.1 → 0.107.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/instances/entry.rb +3 -3
- data/lib/avm/launcher/context/instance_collector.rb +46 -0
- data/lib/avm/launcher/instances/runner_helper.rb +21 -15
- data/lib/avm/launcher/paths/logical.rb +5 -0
- data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
- data/lib/avm/ruby/rubocop/_configured.rb +2 -2
- data/lib/avm/tools/app_src.rb +68 -0
- data/lib/avm/tools/runner/app_src/info.rb +16 -2
- data/lib/avm/tools/runner/app_src/ruby/bundler/gemfile_lock/git.rb +62 -0
- data/lib/avm/tools/runner/app_src/ruby/bundler/gemfile_lock.rb +11 -41
- data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -4
- data/lib/avm/tools/runner/app_src.rb +2 -2
- data/lib/avm/tools/runner/config/load_path.rb +2 -2
- data/lib/avm/tools/runner/git/deploy.rb +2 -2
- data/lib/avm/tools/runner/launcher/instances.rb +7 -5
- data/lib/avm/tools/runner/launcher/projects.rb +2 -4
- data/lib/avm/tools/runner/launcher/publish.rb +2 -6
- data/lib/avm/tools/runner.rb +1 -1
- data/lib/avm/tools/version.rb +1 -1
- data/vendor/avm/avm.gemspec +6 -0
- data/vendor/avm/lib/avm/app_src/base.rb +45 -0
- data/vendor/avm/lib/avm/app_src/configuration/_locale.rb +16 -0
- data/vendor/avm/lib/avm/app_src/configuration/_rubocop.rb +24 -0
- data/vendor/avm/lib/avm/app_src/configuration/_tests.rb +27 -0
- data/vendor/avm/lib/avm/app_src/configuration.rb +55 -0
- data/{lib/avm/eac_asciidoctor_base0.rb → vendor/avm/lib/avm/app_src.rb} +1 -1
- data/{lib → vendor/avm/lib}/avm/executables.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/files/appendable/file_content.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/appendable/plain_directory.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/appendable/resource_base.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/appendable/tar_output_command.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/appendable/templatized_directory.rb +1 -0
- data/{lib → vendor/avm/lib}/avm/files/appendable.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/appender.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/deploy.rb +0 -1
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/base.rb +2 -2
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/generic_plain.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/html.rb +0 -0
- data/vendor/avm/lib/avm/files/formatter/formats/javascript.rb +24 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/json.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/php.rb +1 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/python.rb +1 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/ruby.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats/xml.rb +1 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/formats.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files/formatter/utf8_assert.rb +3 -1
- data/{lib → vendor/avm/lib}/avm/files/formatter.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/files/rotate.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/files.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/commit_info.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/base.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/last.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/manual.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/new.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/nth.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules/unique.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit/rules.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit_path/ruby.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/auto_commit_path.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/git/commit/class_methods.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/commit/deploy.rb +0 -1
- data/{lib → vendor/avm/lib}/avm/git/commit/deploy_methods.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/commit/diff_tree_line.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/commit/file.rb +2 -2
- data/{lib → vendor/avm/lib}/avm/git/commit.rb +3 -2
- data/{lib → vendor/avm/lib}/avm/git/file_auto_fixup.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/commits.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/git_subrepos.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/local_branch.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/local_tag.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/push.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/remote.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/test.rb +2 -2
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/tracker.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/validation.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/validations.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete/working_tree.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/complete.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue/deliver.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/issue.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/organize/reference_update.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/organize/repository.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/organize.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/revision_test.rb +2 -3
- data/{lib → vendor/avm/lib}/avm/git/subrepo_check/parent.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/subrepo_check/remote.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/git/subrepo_check/show_result.rb +0 -1
- data/{lib → vendor/avm/lib}/avm/git/subrepo_check.rb +0 -1
- data/{lib → vendor/avm/lib}/avm/git/subrepo_checks.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/git.rb +0 -0
- data/vendor/avm/lib/avm/jobs/base.rb +62 -0
- data/vendor/avm/lib/avm/jobs/variables_source.rb +22 -0
- data/vendor/{avm-apps/lib/avm/apps → avm/lib/avm}/jobs.rb +2 -4
- data/{lib → vendor/avm/lib}/avm/result.rb +0 -0
- data/vendor/avm/lib/avm/version.rb +1 -1
- data/vendor/avm/spec/lib/avm/git/auto_commit_path_spec.rb +21 -0
- data/vendor/avm/spec/lib/avm/git/commit/deploy_spec.rb +93 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec.rb +13 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +1 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +1 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +1 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +2 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
- data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
- data/vendor/avm/spec/lib/avm/git/commit_spec.rb +56 -0
- data/vendor/avm/spec/rubocop_spec.rb +1 -1
- data/vendor/avm/spec/spec_helper.rb +2 -100
- data/vendor/avm-apps/avm-apps.gemspec +1 -1
- data/vendor/avm-apps/lib/avm/apps/version.rb +1 -1
- data/vendor/avm-apps/spec/rubocop_spec.rb +1 -1
- data/vendor/avm-apps/spec/spec_helper.rb +2 -101
- data/vendor/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +1 -0
- data/{lib → vendor/avm-eac_asciidoctor_base0/lib}/avm/eac_asciidoctor_base0/apache_host.rb +0 -0
- data/{lib → vendor/avm-eac_asciidoctor_base0/lib}/avm/eac_asciidoctor_base0/apache_path.rb +0 -0
- data/{lib → vendor/avm-eac_asciidoctor_base0/lib}/avm/eac_asciidoctor_base0/deploy.rb +0 -0
- data/{lib → vendor/avm-eac_asciidoctor_base0/lib}/avm/eac_asciidoctor_base0/instance.rb +0 -0
- data/vendor/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
- data/vendor/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb +1 -1
- data/vendor/avm-eac_asciidoctor_base0/spec/spec_helper.rb +2 -100
- data/vendor/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
- data/vendor/avm-eac_rails_base1/spec/rubocop_spec.rb +1 -1
- data/vendor/avm-eac_rails_base1/spec/spec_helper.rb +2 -100
- data/vendor/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -1
- data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb +3 -2
- data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/vendor/avm-eac_redmine_base0/spec/rubocop_spec.rb +1 -1
- data/vendor/avm-eac_redmine_base0/spec/spec_helper.rb +2 -100
- data/vendor/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template +1 -0
- data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +2 -2
- data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +2 -2
- data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +2 -2
- data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/vendor/avm-eac_webapp_base0/spec/rubocop_spec.rb +1 -1
- data/vendor/avm-eac_webapp_base0/spec/spec_helper.rb +2 -100
- data/vendor/eac_cli/eac_cli.gemspec +3 -3
- data/vendor/eac_cli/lib/eac_cli/config/entry.rb +0 -2
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +1 -1
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +9 -1
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +6 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/help/builder.rb +3 -3
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +6 -5
- data/vendor/eac_cli/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_cli/spec/spec_helper.rb +2 -101
- data/vendor/eac_config/eac_config.gemspec +2 -2
- data/vendor/eac_config/lib/eac_config/version.rb +1 -1
- data/vendor/eac_config/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_config/spec/spec_helper.rb +2 -15
- data/vendor/eac_docker/eac_docker.gemspec +2 -2
- data/vendor/eac_docker/lib/eac_docker/container.rb +7 -3
- data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +4 -0
- data/vendor/eac_docker/lib/eac_docker/rspec/setup.rb +17 -0
- data/vendor/eac_docker/lib/eac_docker/rspec.rb +2 -10
- data/vendor/eac_docker/lib/eac_docker/version.rb +1 -1
- data/vendor/eac_docker/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_docker/spec/spec_helper.rb +2 -104
- data/vendor/eac_fs/Gemfile +5 -0
- data/vendor/eac_fs/eac_fs.gemspec +20 -0
- data/vendor/{eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb → eac_fs/lib/eac_fs/cache.rb} +7 -2
- data/{lib/avm → vendor/eac_fs/lib/eac_fs}/cached_download.rb +4 -4
- data/vendor/eac_fs/lib/eac_fs/file_info.rb +29 -0
- data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +10 -0
- data/vendor/eac_fs/lib/eac_fs/patches/module.rb +4 -0
- data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +10 -0
- data/vendor/eac_fs/lib/eac_fs/patches/object.rb +4 -0
- data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +12 -0
- data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +4 -0
- data/vendor/eac_fs/lib/eac_fs/patches.rb +4 -0
- data/vendor/eac_fs/lib/eac_fs/version.rb +5 -0
- data/vendor/eac_fs/lib/eac_fs.rb +7 -0
- 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
- data/vendor/eac_fs/spec/rubocop_spec.rb +3 -0
- data/vendor/eac_fs/spec/spec_helper.rb +4 -0
- data/vendor/eac_git/eac_git.gemspec +3 -3
- data/vendor/eac_git/lib/eac_git/local/commit/archive.rb +1 -1
- data/vendor/eac_git/lib/eac_git/local/commit.rb +3 -3
- data/vendor/eac_git/lib/eac_git/local.rb +13 -0
- data/vendor/eac_git/lib/eac_git/rspec/setup.rb +23 -0
- data/vendor/eac_git/lib/eac_git/rspec.rb +1 -14
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- data/vendor/eac_git/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_git/spec/spec_helper.rb +2 -104
- data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +5 -4
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +3 -3
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +1 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +16 -7
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_base0/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_ruby_base0/spec/spec_helper.rb +2 -101
- data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +2 -2
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -5
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb +1 -1
- data/vendor/eac_ruby_gems_utils/spec/spec_helper.rb +2 -101
- data/vendor/eac_ruby_utils/eac_ruby_utils.gemspec +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +22 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +15 -3
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +75 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +35 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +20 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +16 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +51 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +20 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +17 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +12 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +49 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +70 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +20 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +20 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +34 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +65 -0
- data/vendor/eac_ruby_utils/spec/rubocop_check_spec.rb +1 -1
- data/vendor/eac_ruby_utils/spec/spec_helper.rb +6 -6
- data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
- data/vendor/eac_templates/lib/eac_templates/patches/module.rb +4 -0
- data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
- data/vendor/eac_templates/lib/eac_templates/patches/object.rb +4 -0
- data/vendor/eac_templates/lib/eac_templates/patches.rb +4 -0
- data/vendor/eac_templates/lib/eac_templates/version.rb +1 -1
- data/vendor/eac_templates/spec/rubocop_spec.rb +1 -1
- data/vendor/eac_templates/spec/spec_helper.rb +2 -100
- metadata +146 -250
- data/lib/avm/app_src.rb +0 -61
- data/lib/avm/files/info.rb +0 -24
- data/lib/avm/fs_cache.rb +0 -11
- data/vendor/avm-apps/lib/avm/apps/config.rb +0 -19
- data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +0 -64
- data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +0 -24
- data/vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb +0 -18
- data/vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb +0 -26
- data/vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb +0 -29
- data/vendor/avm-apps/lib/avm/apps/sources/configuration.rb +0 -57
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +0 -12
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/conditional.rb +0 -35
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/stubbed_ssh.rb +0 -44
@@ -1,103 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
6
|
-
# this file to always be loaded, without a need to explicitly require it in any
|
7
|
-
# files.
|
8
|
-
#
|
9
|
-
# Given that it is always loaded, you are encouraged to keep this file as
|
10
|
-
# light-weight as possible. Requiring heavyweight dependencies from this file
|
11
|
-
# will add to the boot time of your test suite on EVERY test run, even for an
|
12
|
-
# individual file that may not need all of that loaded. Instead, consider making
|
13
|
-
# a separate helper file that requires the additional dependencies and performs
|
14
|
-
# the additional setup, and require it from the spec files that actually need
|
15
|
-
# it.
|
16
|
-
#
|
17
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
18
|
-
RSpec.configure do |config|
|
19
|
-
# rspec-expectations config goes here. You can use an alternate
|
20
|
-
# assertion/expectation library such as wrong or the stdlib/minitest
|
21
|
-
# assertions if you prefer.
|
22
|
-
config.expect_with :rspec do |expectations|
|
23
|
-
# This option will default to `true` in RSpec 4. It makes the `description`
|
24
|
-
# and `failure_message` of custom matchers include text for helper methods
|
25
|
-
# defined using `chain`, e.g.:
|
26
|
-
# be_bigger_than(2).and_smaller_than(4).description
|
27
|
-
# # => "be bigger than 2 and smaller than 4"
|
28
|
-
# ...rather than:
|
29
|
-
# # => "be bigger than 2"
|
30
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
31
|
-
end
|
32
|
-
|
33
|
-
# rspec-mocks config goes here. You can use an alternate test double
|
34
|
-
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
35
|
-
config.mock_with :rspec do |mocks|
|
36
|
-
# Prevents you from mocking or stubbing a method that does not exist on
|
37
|
-
# a real object. This is generally recommended, and will default to
|
38
|
-
# `true` in RSpec 4.
|
39
|
-
mocks.verify_partial_doubles = true
|
40
|
-
end
|
41
|
-
|
42
|
-
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
43
|
-
# have no way to turn it off -- the option exists only for backwards
|
44
|
-
# compatibility in RSpec 3). It causes shared context metadata to be
|
45
|
-
# inherited by the metadata hash of host groups and examples, rather than
|
46
|
-
# triggering implicit auto-inclusion in groups with matching metadata.
|
47
|
-
config.shared_context_metadata_behavior = :apply_to_host_groups
|
48
|
-
|
49
|
-
# The settings below are suggested to provide a good initial experience
|
50
|
-
# with RSpec, but feel free to customize to your heart's content.
|
51
|
-
# # This allows you to limit a spec run to individual examples or groups
|
52
|
-
# # you care about by tagging them with `:focus` metadata. When nothing
|
53
|
-
# # is tagged with `:focus`, all examples get run. RSpec also provides
|
54
|
-
# # aliases for `it`, `describe`, and `context` that include `:focus`
|
55
|
-
# # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
56
|
-
# config.filter_run_when_matching :focus
|
57
|
-
#
|
58
|
-
# # Allows RSpec to persist some state between runs in order to support
|
59
|
-
# # the `--only-failures` and `--next-failure` CLI options. We recommend
|
60
|
-
# # you configure your source control system to ignore this file.
|
61
|
-
# config.example_status_persistence_file_path = "spec/examples.txt"
|
62
|
-
#
|
63
|
-
# # Limits the available syntax to the non-monkey patched syntax that is
|
64
|
-
# # recommended. For more details, see:
|
65
|
-
# # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
66
|
-
# # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
67
|
-
# # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
68
|
-
# config.disable_monkey_patching!
|
69
|
-
#
|
70
|
-
# # This setting enables warnings. It's recommended, but in some cases may
|
71
|
-
# # be too noisy due to issues in dependencies.
|
72
|
-
# config.warnings = true
|
73
|
-
#
|
74
|
-
# # Many RSpec users commonly either run the entire suite or an individual
|
75
|
-
# # file, and it's useful to allow more verbose output when running an
|
76
|
-
# # individual spec file.
|
77
|
-
# if config.files_to_run.one?
|
78
|
-
# # Use the documentation formatter for detailed output,
|
79
|
-
# # unless a formatter has already been configured
|
80
|
-
# # (e.g. via a command-line flag).
|
81
|
-
# config.default_formatter = "doc"
|
82
|
-
# end
|
83
|
-
#
|
84
|
-
# # Print the 10 slowest examples and example groups at the
|
85
|
-
# # end of the spec run, to help surface which specs are running
|
86
|
-
# # particularly slow.
|
87
|
-
# config.profile_examples = 10
|
88
|
-
#
|
89
|
-
# # Run specs in random order to surface order dependencies. If you find an
|
90
|
-
# # order dependency and want to debug it, you can fix the order by providing
|
91
|
-
# # the seed, which is printed after each run.
|
92
|
-
# # --seed 1234
|
93
|
-
# config.order = :random
|
94
|
-
#
|
95
|
-
# # Seed global randomization in this process using the `--seed` CLI option.
|
96
|
-
# # Setting this allows you to use `--seed` to deterministically reproduce
|
97
|
-
# # test failures related to randomization by passing the same `--seed` value
|
98
|
-
# # as the one that triggered the failure.
|
99
|
-
# Kernel.srand config.seed
|
100
|
-
|
101
|
-
require 'eac_ruby_gem_support/rspec'
|
102
|
-
::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
|
103
|
-
end
|
3
|
+
require 'eac_ruby_utils/rspec/default_setup'
|
4
|
+
::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
15
|
s.add_dependency 'addressable'
|
16
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
16
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.70'
|
17
17
|
|
18
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.
|
18
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
|
19
19
|
end
|
@@ -1,17 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
config.expect_with :rspec do |expectations|
|
6
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
7
|
-
end
|
8
|
-
|
9
|
-
config.mock_with :rspec do |mocks|
|
10
|
-
mocks.verify_partial_doubles = true
|
11
|
-
end
|
12
|
-
|
13
|
-
config.shared_context_metadata_behavior = :apply_to_host_groups
|
14
|
-
|
15
|
-
require 'eac_ruby_gem_support/rspec'
|
16
|
-
::EacRubyGemSupport::Rspec.setup(::File.dirname(__dir__), config)
|
17
|
-
end
|
3
|
+
require 'eac_ruby_utils/rspec/default_setup'
|
4
|
+
::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
15
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.74'
|
16
16
|
s.add_dependency 'eac_templates', '~> 0.1'
|
17
17
|
|
18
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.
|
18
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3', '>= 0.3.3'
|
19
19
|
end
|
@@ -7,7 +7,7 @@ module EacDocker
|
|
7
7
|
enable_immutable
|
8
8
|
immutable_accessor :interactive, :temporary, :tty, type: :boolean
|
9
9
|
immutable_accessor :env, type: :hash
|
10
|
-
immutable_accessor :command_arg, :volume, type: :array
|
10
|
+
immutable_accessor :capability, :command_arg, :volume, type: :array
|
11
11
|
attr_reader :id
|
12
12
|
common_constructor :image
|
13
13
|
|
@@ -43,8 +43,8 @@ module EacDocker
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def run_command_args
|
46
|
-
run_command_boolean_args +
|
47
|
-
command_args
|
46
|
+
run_command_boolean_args + run_command_capabilities_args + run_command_envs_args +
|
47
|
+
run_command_volumes_args + [image.provide.id] + command_args
|
48
48
|
end
|
49
49
|
|
50
50
|
def stop
|
@@ -63,6 +63,10 @@ module EacDocker
|
|
63
63
|
r
|
64
64
|
end
|
65
65
|
|
66
|
+
def run_command_capabilities_args
|
67
|
+
capabilities.flat_map { |capability| ['--cap-add', capability] }
|
68
|
+
end
|
69
|
+
|
66
70
|
def run_command_volumes_args
|
67
71
|
volumes.flat_map { |volume| ['--volume', volume] }
|
68
72
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_docker/executables'
|
4
|
+
|
5
|
+
module EacDocker
|
6
|
+
module Rspec
|
7
|
+
module Setup
|
8
|
+
def self.extended(obj)
|
9
|
+
obj.setup_conditional_docker_executable
|
10
|
+
end
|
11
|
+
|
12
|
+
def setup_conditional_docker_executable
|
13
|
+
conditional(:docker) { ::EacDocker::Executables.docker.validate }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,17 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/
|
4
|
-
require 'eac_docker/executables'
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
5
4
|
|
6
5
|
module EacDocker
|
7
6
|
module Rspec
|
8
|
-
|
9
|
-
def configure
|
10
|
-
::EacRubyUtils::Rspec::Conditional.default.add(:docker) do
|
11
|
-
::EacDocker::Executables.docker.validate
|
12
|
-
end
|
13
|
-
RSpec.configure { |config| ::EacRubyUtils::Rspec::Conditional.default.configure(config) }
|
14
|
-
end
|
15
|
-
end
|
7
|
+
require_sub __FILE__
|
16
8
|
end
|
17
9
|
end
|
@@ -1,106 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
6
|
-
# this file to always be loaded, without a need to explicitly require it in any
|
7
|
-
# files.
|
8
|
-
#
|
9
|
-
# Given that it is always loaded, you are encouraged to keep this file as
|
10
|
-
# light-weight as possible. Requiring heavyweight dependencies from this file
|
11
|
-
# will add to the boot time of your test suite on EVERY test run, even for an
|
12
|
-
# individual file that may not need all of that loaded. Instead, consider making
|
13
|
-
# a separate helper file that requires the additional dependencies and performs
|
14
|
-
# the additional setup, and require it from the spec files that actually need
|
15
|
-
# it.
|
16
|
-
#
|
17
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
18
|
-
RSpec.configure do |config|
|
19
|
-
# rspec-expectations config goes here. You can use an alternate
|
20
|
-
# assertion/expectation library such as wrong or the stdlib/minitest
|
21
|
-
# assertions if you prefer.
|
22
|
-
config.expect_with :rspec do |expectations|
|
23
|
-
# This option will default to `true` in RSpec 4. It makes the `description`
|
24
|
-
# and `failure_message` of custom matchers include text for helper methods
|
25
|
-
# defined using `chain`, e.g.:
|
26
|
-
# be_bigger_than(2).and_smaller_than(4).description
|
27
|
-
# # => "be bigger than 2 and smaller than 4"
|
28
|
-
# ...rather than:
|
29
|
-
# # => "be bigger than 2"
|
30
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
31
|
-
end
|
32
|
-
|
33
|
-
# rspec-mocks config goes here. You can use an alternate test double
|
34
|
-
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
35
|
-
config.mock_with :rspec do |mocks|
|
36
|
-
# Prevents you from mocking or stubbing a method that does not exist on
|
37
|
-
# a real object. This is generally recommended, and will default to
|
38
|
-
# `true` in RSpec 4.
|
39
|
-
mocks.verify_partial_doubles = true
|
40
|
-
end
|
41
|
-
|
42
|
-
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
43
|
-
# have no way to turn it off -- the option exists only for backwards
|
44
|
-
# compatibility in RSpec 3). It causes shared context metadata to be
|
45
|
-
# inherited by the metadata hash of host groups and examples, rather than
|
46
|
-
# triggering implicit auto-inclusion in groups with matching metadata.
|
47
|
-
config.shared_context_metadata_behavior = :apply_to_host_groups
|
48
|
-
|
49
|
-
# The settings below are suggested to provide a good initial experience
|
50
|
-
# with RSpec, but feel free to customize to your heart's content.
|
51
|
-
# # This allows you to limit a spec run to individual examples or groups
|
52
|
-
# # you care about by tagging them with `:focus` metadata. When nothing
|
53
|
-
# # is tagged with `:focus`, all examples get run. RSpec also provides
|
54
|
-
# # aliases for `it`, `describe`, and `context` that include `:focus`
|
55
|
-
# # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
56
|
-
# config.filter_run_when_matching :focus
|
57
|
-
#
|
58
|
-
# # Allows RSpec to persist some state between runs in order to support
|
59
|
-
# # the `--only-failures` and `--next-failure` CLI options. We recommend
|
60
|
-
# # you configure your source control system to ignore this file.
|
61
|
-
# config.example_status_persistence_file_path = "spec/examples.txt"
|
62
|
-
#
|
63
|
-
# # Limits the available syntax to the non-monkey patched syntax that is
|
64
|
-
# # recommended. For more details, see:
|
65
|
-
# # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
66
|
-
# # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
67
|
-
# # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
68
|
-
# config.disable_monkey_patching!
|
69
|
-
#
|
70
|
-
# # This setting enables warnings. It's recommended, but in some cases may
|
71
|
-
# # be too noisy due to issues in dependencies.
|
72
|
-
# config.warnings = true
|
73
|
-
#
|
74
|
-
# # Many RSpec users commonly either run the entire suite or an individual
|
75
|
-
# # file, and it's useful to allow more verbose output when running an
|
76
|
-
# # individual spec file.
|
77
|
-
# if config.files_to_run.one?
|
78
|
-
# # Use the documentation formatter for detailed output,
|
79
|
-
# # unless a formatter has already been configured
|
80
|
-
# # (e.g. via a command-line flag).
|
81
|
-
# config.default_formatter = "doc"
|
82
|
-
# end
|
83
|
-
#
|
84
|
-
# # Print the 10 slowest examples and example groups at the
|
85
|
-
# # end of the spec run, to help surface which specs are running
|
86
|
-
# # particularly slow.
|
87
|
-
# config.profile_examples = 10
|
88
|
-
#
|
89
|
-
# # Run specs in random order to surface order dependencies. If you find an
|
90
|
-
# # order dependency and want to debug it, you can fix the order by providing
|
91
|
-
# # the seed, which is printed after each run.
|
92
|
-
# # --seed 1234
|
93
|
-
# config.order = :random
|
94
|
-
#
|
95
|
-
# # Seed global randomization in this process using the `--seed` CLI option.
|
96
|
-
# # Setting this allows you to use `--seed` to deterministically reproduce
|
97
|
-
# # test failures related to randomization by passing the same `--seed` value
|
98
|
-
# # as the one that triggered the failure.
|
99
|
-
# Kernel.srand config.seed
|
100
|
-
|
101
|
-
require 'eac_ruby_gem_support/rspec'
|
102
|
-
::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
|
103
|
-
end
|
104
|
-
|
105
|
-
require 'eac_docker/rspec'
|
106
|
-
::EacDocker::Rspec.configure
|
3
|
+
require 'eac_ruby_utils/rspec/default_setup'
|
4
|
+
::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
|
@@ -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,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
4
|
-
require 'eac_ruby_utils/
|
3
|
+
require 'eac_fs/patches'
|
4
|
+
require 'eac_ruby_utils/fs/temp'
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
class CachedDownload
|
@@ -9,7 +9,7 @@ module Avm
|
|
9
9
|
|
10
10
|
def initialize(url, parent_fs_cache = nil)
|
11
11
|
@url = url
|
12
|
-
@fs_cache = (parent_fs_cache ||
|
12
|
+
@fs_cache = (parent_fs_cache || fs_cache).child(url.parameterize)
|
13
13
|
end
|
14
14
|
|
15
15
|
def assert
|
@@ -25,7 +25,7 @@ module Avm
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def path
|
28
|
-
|
28
|
+
fs_cache.content_path.to_pathname
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
@@ -0,0 +1,29 @@
|
|
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
|
+
UNKNOWN_CONTENT_TYPE_STRING = 'application/octet-stream'
|
10
|
+
UNKNOWN_CONTENT_TYPE = ::ContentType.parse(UNKNOWN_CONTENT_TYPE_STRING)
|
11
|
+
|
12
|
+
enable_simple_cache
|
13
|
+
attr_reader :magic_string
|
14
|
+
|
15
|
+
def initialize(path)
|
16
|
+
@magic_string = ::FileMagic.new(FileMagic::MAGIC_MIME).file(path.to_pathname.to_path)
|
17
|
+
end
|
18
|
+
|
19
|
+
delegate :charset, :mime_type, :subtype, :type, to: :content_type
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def content_type_uncached
|
24
|
+
::ContentType.parse(magic_string)
|
25
|
+
rescue ::Parslet::ParseFailed
|
26
|
+
UNKNOWN_CONTENT_TYPE
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/core_ext/object/blank'
|
4
|
-
require '
|
4
|
+
require 'eac_fs/cache'
|
5
5
|
|
6
|
-
RSpec.describe ::
|
6
|
+
RSpec.describe ::EacFs::Cache do
|
7
7
|
let(:tmpdir) { ::Dir.mktmpdir }
|
8
8
|
let(:instance) { described_class.new(tmpdir, 'instance') }
|
9
9
|
|
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,vendor}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
15
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.74'
|
16
16
|
s.add_dependency 'parseconfig', '~> 1.0', '>= 1.0.8'
|
17
17
|
|
18
|
-
s.add_development_dependency 'aranha-parsers', '~> 0.
|
19
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
|
18
|
+
s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.2'
|
19
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3', '>= 0.3.2'
|
20
20
|
end
|
@@ -9,7 +9,7 @@ module EacGit
|
|
9
9
|
# @return [EacRubyUtils::Envs::Command]
|
10
10
|
def archive_to_dir(path)
|
11
11
|
path = path.to_pathname
|
12
|
-
repo.command('archive', '--format=tar',
|
12
|
+
repo.command('archive', '--format=tar', id).pipe(
|
13
13
|
::EacGit::Executables.tar.command('-xC', path)
|
14
14
|
)
|
15
15
|
end
|
@@ -16,10 +16,10 @@ module EacGit
|
|
16
16
|
commiter_all: '%cn <%ce>, %ci'
|
17
17
|
}.freeze
|
18
18
|
|
19
|
-
common_constructor :repo, :
|
19
|
+
common_constructor :repo, :id
|
20
20
|
|
21
21
|
def format(format)
|
22
|
-
repo.command('--no-pager', 'log', '-1', "--pretty=format:#{format}",
|
22
|
+
repo.command('--no-pager', 'log', '-1', "--pretty=format:#{format}", id).execute!.strip
|
23
23
|
end
|
24
24
|
|
25
25
|
FIELDS.each do |field, format|
|
@@ -45,7 +45,7 @@ module EacGit
|
|
45
45
|
def diff_tree_execute
|
46
46
|
args = []
|
47
47
|
args << '--root' if root_child?
|
48
|
-
args <<
|
48
|
+
args << id
|
49
49
|
repo.command(*::EacGit::Local::Commit::DiffTreeLine::GIT_COMMAND_ARGS, *args).execute!
|
50
50
|
end
|
51
51
|
end
|
@@ -8,6 +8,8 @@ module EacGit
|
|
8
8
|
class Local
|
9
9
|
require_sub __FILE__, include_modules: true
|
10
10
|
|
11
|
+
HEAD_REFERENCE = 'HEAD'
|
12
|
+
|
11
13
|
common_constructor :root_path do
|
12
14
|
self.root_path = root_path.to_pathname
|
13
15
|
end
|
@@ -24,6 +26,11 @@ module EacGit
|
|
24
26
|
base == revparse
|
25
27
|
end
|
26
28
|
|
29
|
+
# @return [EacGit::Local::Commit
|
30
|
+
def head(required = true)
|
31
|
+
commit(HEAD_REFERENCE, required)
|
32
|
+
end
|
33
|
+
|
27
34
|
def merge_base(*commits)
|
28
35
|
refs = commits.dup
|
29
36
|
while refs.count > 1
|
@@ -56,6 +63,12 @@ module EacGit
|
|
56
63
|
::EacGit::Local::Subrepo.new(self, subpath)
|
57
64
|
end
|
58
65
|
|
66
|
+
# @return [Array<EacGit::Local::Subrepo>]
|
67
|
+
def subrepos
|
68
|
+
command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip).select(&:present?)
|
69
|
+
.map { |subpath| subrepo(subpath) }
|
70
|
+
end
|
71
|
+
|
59
72
|
def to_s
|
60
73
|
"#{self.class}[#{root_path}]"
|
61
74
|
end
|