ehbrs-tools 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/ehbrs/tools/version.rb +1 -1
 - data/lib/ehbrs/vg/wii/game_file.rb +10 -0
 - data/vendor/aranha-parsers/aranha-parsers.gemspec +1 -1
 - data/vendor/aranha-parsers/lib/aranha/parsers/version.rb +1 -1
 - data/vendor/aranha-parsers/spec/lib/rubocop_check_spec.rb +1 -5
 - data/vendor/aranha-parsers/spec/spec_helper.rb +3 -0
 - data/vendor/eac_cli/lib/eac_cli/config.rb +2 -0
 - data/vendor/eac_cli/lib/eac_cli/config/entry.rb +1 -1
 - data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
 - data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb +11 -0
 - data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
 - data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb +33 -0
 - metadata +4 -16
 - data/vendor/avm-apps/Gemfile +0 -5
 - data/vendor/avm-apps/avm-apps.gemspec +0 -18
 - data/vendor/avm-apps/lib/avm/apps.rb +0 -9
 - data/vendor/avm-apps/lib/avm/apps/config.rb +0 -19
 - data/vendor/avm-apps/lib/avm/apps/jobs.rb +0 -11
 - 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.rb +0 -57
 - 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/version.rb +0 -7
 - data/vendor/avm-apps/spec/rubocop_spec.rb +0 -3
 - data/vendor/avm-apps/spec/spec_helper.rb +0 -103
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 24cc95cbb19d48d47c3cf2447d31a2666e5bff47ba87e6e2b0943203f9324cd6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6d95e2625e2ed87691d8ecd13118a7da6c7108bb7a0e4fe900ffc96d7b6d2a51
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ce667b62bb9d70459867f6033acb75086631f8e264e5d1099ecb22d0f96e625239b7c98d660d47fe429b8ebfb9fe7c4210549a2726074ff0f0e4c8765946add8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 71a83d8127ae744dfd57c84061911280eeffba34170c484f90bfbdc0b44a6b16a4b200d762e5c573391e6e027e1c35a573a1186f34c357a004a6a95fc859b7dc
         
     | 
    
        data/lib/ehbrs/tools/version.rb
    CHANGED
    
    
| 
         @@ -20,8 +20,10 @@ module Ehbrs 
     | 
|
| 
       20 
20 
     | 
    
         
             
                      D: :disc_number,
         
     | 
| 
       21 
21 
     | 
    
         
             
                      e: :extname,
         
     | 
| 
       22 
22 
     | 
    
         
             
                      i: :id6,
         
     | 
| 
      
 23 
     | 
    
         
            +
                      m: :normalized_disc_name,
         
     | 
| 
       23 
24 
     | 
    
         
             
                      n: :disc_name,
         
     | 
| 
       24 
25 
     | 
    
         
             
                      N: :nintendont_basename,
         
     | 
| 
      
 26 
     | 
    
         
            +
                      s: :sanitized_disc_name,
         
     | 
| 
       25 
27 
     | 
    
         
             
                      t: :database_title,
         
     | 
| 
       26 
28 
     | 
    
         
             
                      T: :disc_type
         
     | 
| 
       27 
29 
     | 
    
         
             
                    )
         
     | 
| 
         @@ -46,6 +48,10 @@ module Ehbrs 
     | 
|
| 
       46 
48 
     | 
    
         
             
                      FORMAT.format(string).with(self)
         
     | 
| 
       47 
49 
     | 
    
         
             
                    end
         
     | 
| 
       48 
50 
     | 
    
         | 
| 
      
 51 
     | 
    
         
            +
                    def normalized_disc_name
         
     | 
| 
      
 52 
     | 
    
         
            +
                      sanitized_disc_name.downcase
         
     | 
| 
      
 53 
     | 
    
         
            +
                    end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
       49 
55 
     | 
    
         
             
                    def nintendont_basename
         
     | 
| 
       50 
56 
     | 
    
         
             
                      n = disc_number
         
     | 
| 
       51 
57 
     | 
    
         
             
                      n == 1 ? 'game' : "disc#{n}"
         
     | 
| 
         @@ -55,6 +61,10 @@ module Ehbrs 
     | 
|
| 
       55 
61 
     | 
    
         
             
                      properties.fetch('Disc & part IDs/disc')
         
     | 
| 
       56 
62 
     | 
    
         
             
                    end
         
     | 
| 
       57 
63 
     | 
    
         | 
| 
      
 64 
     | 
    
         
            +
                    def sanitized_disc_name
         
     | 
| 
      
 65 
     | 
    
         
            +
                      ::ActiveSupport::Inflector.transliterate(disc_name).gsub(/[^0-9a-z ]/i, '')
         
     | 
| 
      
 66 
     | 
    
         
            +
                    end
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
       58 
68 
     | 
    
         
             
                    def valid?
         
     | 
| 
       59 
69 
     | 
    
         
             
                      properties.present?
         
     | 
| 
       60 
70 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -19,5 +19,5 @@ Gem::Specification.new do |s| 
     | 
|
| 
       19 
19 
     | 
    
         
             
              s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
         
     | 
| 
       20 
20 
     | 
    
         
             
              s.add_dependency 'ofx-parser', '~> 1.1.0'
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
              s.add_development_dependency 'eac_ruby_gem_support', '~> 0. 
     | 
| 
      
 22 
     | 
    
         
            +
              s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
         
     | 
| 
       23 
23 
     | 
    
         
             
            end
         
     | 
| 
         @@ -5,4 +5,7 @@ require 'tmpdir' 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            RSpec.configure do |config|
         
     | 
| 
       7 
7 
     | 
    
         
             
              config.example_status_persistence_file_path = ::File.join(::Dir.tmpdir, 'aranha-parsers_rspec')
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
              require 'eac_ruby_gem_support/rspec'
         
     | 
| 
      
 10 
     | 
    
         
            +
              ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
         
     | 
| 
       8 
11 
     | 
    
         
             
            end
         
     | 
| 
         @@ -0,0 +1,33 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'eac_ruby_utils/patches/pathname/parent_n'
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            RSpec.describe ::Pathname do
         
     | 
| 
      
 6 
     | 
    
         
            +
              [
         
     | 
| 
      
 7 
     | 
    
         
            +
                ['/absolute/path/to/file', 0, '/absolute/path/to/file'],
         
     | 
| 
      
 8 
     | 
    
         
            +
                ['/absolute/path/to/file', 1, '/absolute/path/to'],
         
     | 
| 
      
 9 
     | 
    
         
            +
                ['/absolute/path/to/file', 2, '/absolute/path'],
         
     | 
| 
      
 10 
     | 
    
         
            +
                ['/absolute/path/to/file', 3, '/absolute'],
         
     | 
| 
      
 11 
     | 
    
         
            +
                ['/absolute/path/to/file', 4, '/'],
         
     | 
| 
      
 12 
     | 
    
         
            +
                ['/absolute/path/to/file', 5, '/'],
         
     | 
| 
      
 13 
     | 
    
         
            +
                ['relative/path/to/file', 0, 'relative/path/to/file'],
         
     | 
| 
      
 14 
     | 
    
         
            +
                ['relative/path/to/file', 1, 'relative/path/to'],
         
     | 
| 
      
 15 
     | 
    
         
            +
                ['relative/path/to/file', 2, 'relative/path'],
         
     | 
| 
      
 16 
     | 
    
         
            +
                ['relative/path/to/file', 3, 'relative'],
         
     | 
| 
      
 17 
     | 
    
         
            +
                ['relative/path/to/file', 4, '.'],
         
     | 
| 
      
 18 
     | 
    
         
            +
                ['relative/path/to/file', 5, '..'],
         
     | 
| 
      
 19 
     | 
    
         
            +
                ['relative/path/to/file', 6, '../..']
         
     | 
| 
      
 20 
     | 
    
         
            +
              ].each do |test_data|
         
     | 
| 
      
 21 
     | 
    
         
            +
                input_path = test_data[0]
         
     | 
| 
      
 22 
     | 
    
         
            +
                context "when path is \"#{input_path}\"" do
         
     | 
| 
      
 23 
     | 
    
         
            +
                  let(:n) { test_data[1] }
         
     | 
| 
      
 24 
     | 
    
         
            +
                  let(:expected_path) { test_data[2] }
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                  it do
         
     | 
| 
      
 27 
     | 
    
         
            +
                    expect(described_class.new(input_path).parent_n(n)).to(
         
     | 
| 
      
 28 
     | 
    
         
            +
                      eq(described_class.new(expected_path))
         
     | 
| 
      
 29 
     | 
    
         
            +
                    )
         
     | 
| 
      
 30 
     | 
    
         
            +
                  end
         
     | 
| 
      
 31 
     | 
    
         
            +
                end
         
     | 
| 
      
 32 
     | 
    
         
            +
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ehbrs-tools
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.23.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Esquilo Azul Company
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-07-16 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: avm-tools
         
     | 
| 
         @@ -306,20 +306,6 @@ files: 
     | 
|
| 
       306 
306 
     | 
    
         
             
            - vendor/aranha-selenium/lib/aranha/selenium/version.rb
         
     | 
| 
       307 
307 
     | 
    
         
             
            - vendor/aranha-selenium/spec/rubocop_check_spec.rb
         
     | 
| 
       308 
308 
     | 
    
         
             
            - vendor/aranha-selenium/spec/spec_helper.rb
         
     | 
| 
       309 
     | 
    
         
            -
            - vendor/avm-apps/Gemfile
         
     | 
| 
       310 
     | 
    
         
            -
            - vendor/avm-apps/avm-apps.gemspec
         
     | 
| 
       311 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps.rb
         
     | 
| 
       312 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/config.rb
         
     | 
| 
       313 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/jobs.rb
         
     | 
| 
       314 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/jobs/base.rb
         
     | 
| 
       315 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb
         
     | 
| 
       316 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/sources/configuration.rb
         
     | 
| 
       317 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb
         
     | 
| 
       318 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb
         
     | 
| 
       319 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb
         
     | 
| 
       320 
     | 
    
         
            -
            - vendor/avm-apps/lib/avm/apps/version.rb
         
     | 
| 
       321 
     | 
    
         
            -
            - vendor/avm-apps/spec/rubocop_spec.rb
         
     | 
| 
       322 
     | 
    
         
            -
            - vendor/avm-apps/spec/spec_helper.rb
         
     | 
| 
       323 
309 
     | 
    
         
             
            - vendor/eac_cli/Gemfile
         
     | 
| 
       324 
310 
     | 
    
         
             
            - vendor/eac_cli/eac_cli.gemspec
         
     | 
| 
       325 
311 
     | 
    
         
             
            - vendor/eac_cli/lib/eac_cli.rb
         
     | 
| 
         @@ -564,6 +550,7 @@ files: 
     | 
|
| 
       564 
550 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
         
     | 
| 
       565 
551 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
         
     | 
| 
       566 
552 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
         
     | 
| 
      
 553 
     | 
    
         
            +
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb
         
     | 
| 
       567 
554 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
         
     | 
| 
       568 
555 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
         
     | 
| 
       569 
556 
     | 
    
         
             
            - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb
         
     | 
| 
         @@ -615,6 +602,7 @@ files: 
     | 
|
| 
       615 
602 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb
         
     | 
| 
       616 
603 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template
         
     | 
| 
       617 
604 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
         
     | 
| 
      
 605 
     | 
    
         
            +
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb
         
     | 
| 
       618 
606 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb
         
     | 
| 
       619 
607 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_module_a.rb
         
     | 
| 
       620 
608 
     | 
    
         
             
            - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_not_module.rb
         
     | 
    
        data/vendor/avm-apps/Gemfile
    DELETED
    
    
| 
         @@ -1,18 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            $LOAD_PATH.push File.expand_path('lib', __dir__)
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            require 'avm/apps/version'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            Gem::Specification.new do |s|
         
     | 
| 
       8 
     | 
    
         
            -
              s.name        = 'avm-apps'
         
     | 
| 
       9 
     | 
    
         
            -
              s.version     = Avm::Apps::VERSION
         
     | 
| 
       10 
     | 
    
         
            -
              s.authors     = ['Eduardo H. Bogoni']
         
     | 
| 
       11 
     | 
    
         
            -
              s.summary     = 'AVM components for applications.'
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
              s.files = Dir['{lib}/**/*']
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
              s.add_dependency 'eac_ruby_utils', '~> 0.67'
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
              s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
         
     | 
| 
       18 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,19 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'eac_ruby_utils/core_ext'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            module Avm
         
     | 
| 
       6 
     | 
    
         
            -
              module Apps
         
     | 
| 
       7 
     | 
    
         
            -
                class Config
         
     | 
| 
       8 
     | 
    
         
            -
                  class << self
         
     | 
| 
       9 
     | 
    
         
            -
                    # @deprecated Use EacConfig::Node.context instead.
         
     | 
| 
       10 
     | 
    
         
            -
                    # @return [EacRubyUtils::Context<EacConfig::Node>]
         
     | 
| 
       11 
     | 
    
         
            -
                    def context
         
     | 
| 
       12 
     | 
    
         
            -
                      ::EacConfig::Node.context
         
     | 
| 
       13 
     | 
    
         
            -
                    end
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                    delegate :current, to: :context
         
     | 
| 
       16 
     | 
    
         
            -
                  end
         
     | 
| 
       17 
     | 
    
         
            -
                end
         
     | 
| 
       18 
     | 
    
         
            -
              end
         
     | 
| 
       19 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,64 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'avm/apps/jobs/variables_source'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'eac_cli/core_ext'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            module Avm
         
     | 
| 
       7 
     | 
    
         
            -
              module Apps
         
     | 
| 
       8 
     | 
    
         
            -
                module Jobs
         
     | 
| 
       9 
     | 
    
         
            -
                  module Base
         
     | 
| 
       10 
     | 
    
         
            -
                    common_concern do
         
     | 
| 
       11 
     | 
    
         
            -
                      include ::ActiveSupport::Callbacks
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
                      enable_speaker
         
     | 
| 
       14 
     | 
    
         
            -
                      enable_simple_cache
         
     | 
| 
       15 
     | 
    
         
            -
                      enable_listable
         
     | 
| 
       16 
     | 
    
         
            -
                      common_constructor :instance, :options, default: [{}] do
         
     | 
| 
       17 
     | 
    
         
            -
                        if option_list.present?
         
     | 
| 
       18 
     | 
    
         
            -
                          self.options = option_list.hash_keys_validate!(options.symbolize_keys)
         
     | 
| 
       19 
     | 
    
         
            -
                        end
         
     | 
| 
       20 
     | 
    
         
            -
                      end
         
     | 
| 
       21 
     | 
    
         
            -
                      define_callbacks(*jobs)
         
     | 
| 
       22 
     | 
    
         
            -
                    end
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
                    module ClassMethods
         
     | 
| 
       25 
     | 
    
         
            -
                      def jobs
         
     | 
| 
       26 
     | 
    
         
            -
                        const_get('JOBS').dup
         
     | 
| 
       27 
     | 
    
         
            -
                      end
         
     | 
| 
       28 
     | 
    
         
            -
                    end
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                    module InstanceMethods
         
     | 
| 
       31 
     | 
    
         
            -
                      def option_list
         
     | 
| 
       32 
     | 
    
         
            -
                        nil
         
     | 
| 
       33 
     | 
    
         
            -
                      end
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
                      def run
         
     | 
| 
       36 
     | 
    
         
            -
                        start_banner if respond_to?(:start_banner)
         
     | 
| 
       37 
     | 
    
         
            -
                        run_jobs
         
     | 
| 
       38 
     | 
    
         
            -
                        ::Avm::Result.success('Done!')
         
     | 
| 
       39 
     | 
    
         
            -
                      rescue ::Avm::Result::Error => e
         
     | 
| 
       40 
     | 
    
         
            -
                        e.to_result
         
     | 
| 
       41 
     | 
    
         
            -
                      end
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                      def variables_source
         
     | 
| 
       44 
     | 
    
         
            -
                        ::Avm::Apps::Jobs::VariablesSource.new(self, instance)
         
     | 
| 
       45 
     | 
    
         
            -
                      end
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
                      protected
         
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
                      def run_jobs
         
     | 
| 
       50 
     | 
    
         
            -
                        jobs.each do |job|
         
     | 
| 
       51 
     | 
    
         
            -
                          run_callbacks job do
         
     | 
| 
       52 
     | 
    
         
            -
                            send(job)
         
     | 
| 
       53 
     | 
    
         
            -
                          end
         
     | 
| 
       54 
     | 
    
         
            -
                        end
         
     | 
| 
       55 
     | 
    
         
            -
                      end
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
                      def jobs
         
     | 
| 
       58 
     | 
    
         
            -
                        self.class.jobs
         
     | 
| 
       59 
     | 
    
         
            -
                      end
         
     | 
| 
       60 
     | 
    
         
            -
                    end
         
     | 
| 
       61 
     | 
    
         
            -
                  end
         
     | 
| 
       62 
     | 
    
         
            -
                end
         
     | 
| 
       63 
     | 
    
         
            -
              end
         
     | 
| 
       64 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,24 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'eac_ruby_utils/core_ext'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            module Avm
         
     | 
| 
       6 
     | 
    
         
            -
              module Apps
         
     | 
| 
       7 
     | 
    
         
            -
                module Jobs
         
     | 
| 
       8 
     | 
    
         
            -
                  class VariablesSource
         
     | 
| 
       9 
     | 
    
         
            -
                    common_constructor :job, :instance
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
                    def read_entry(path, options = {})
         
     | 
| 
       12 
     | 
    
         
            -
                      entry_from_job(path) || instance.read_entry(path, options)
         
     | 
| 
       13 
     | 
    
         
            -
                    end
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                    private
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
                    def entry_from_job(path)
         
     | 
| 
       18 
     | 
    
         
            -
                      method = path.gsub('.', '_').underscore
         
     | 
| 
       19 
     | 
    
         
            -
                      return job.send(method) if job.respond_to?(method, true)
         
     | 
| 
       20 
     | 
    
         
            -
                    end
         
     | 
| 
       21 
     | 
    
         
            -
                  end
         
     | 
| 
       22 
     | 
    
         
            -
                end
         
     | 
| 
       23 
     | 
    
         
            -
              end
         
     | 
| 
       24 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,57 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'eac_config/old_configs'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'eac_ruby_utils/core_ext'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'yaml'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            module Avm
         
     | 
| 
       8 
     | 
    
         
            -
              module Apps
         
     | 
| 
       9 
     | 
    
         
            -
                module Sources
         
     | 
| 
       10 
     | 
    
         
            -
                  class Configuration < ::EacConfig::OldConfigs
         
     | 
| 
       11 
     | 
    
         
            -
                    require_sub __FILE__
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
                    FILENAMES = %w[.avm.yml .avm.yaml].freeze
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                    class << self
         
     | 
| 
       16 
     | 
    
         
            -
                      def find_by_path(path)
         
     | 
| 
       17 
     | 
    
         
            -
                        path = ::Pathname.new(path.to_s) unless path.is_a?(::Pathname)
         
     | 
| 
       18 
     | 
    
         
            -
                        internal_find_path(path.expand_path)
         
     | 
| 
       19 
     | 
    
         
            -
                      end
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
                      def find_in_path(path)
         
     | 
| 
       22 
     | 
    
         
            -
                        absolute_pathname = path.to_pathname.expand_path
         
     | 
| 
       23 
     | 
    
         
            -
                        if absolute_pathname.directory?
         
     | 
| 
       24 
     | 
    
         
            -
                          FILENAMES.each do |filename|
         
     | 
| 
       25 
     | 
    
         
            -
                            file = absolute_pathname.join(filename)
         
     | 
| 
       26 
     | 
    
         
            -
                            return new(file) if file.exist?
         
     | 
| 
       27 
     | 
    
         
            -
                          end
         
     | 
| 
       28 
     | 
    
         
            -
                        end
         
     | 
| 
       29 
     | 
    
         
            -
                        nil
         
     | 
| 
       30 
     | 
    
         
            -
                      end
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
                      private
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
                      def internal_find_path(absolute_pathname)
         
     | 
| 
       35 
     | 
    
         
            -
                        r = find_in_path(absolute_pathname)
         
     | 
| 
       36 
     | 
    
         
            -
                        return r if r.present?
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
                        internal_find_path(absolute_pathname.dirname) unless absolute_pathname.root?
         
     | 
| 
       39 
     | 
    
         
            -
                      end
         
     | 
| 
       40 
     | 
    
         
            -
                    end
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
                    def initialize(path)
         
     | 
| 
       43 
     | 
    
         
            -
                      super(nil, storage_path: path)
         
     | 
| 
       44 
     | 
    
         
            -
                    end
         
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
                    # Utility to read a configuration as a [EacRubyUtils::Envs::Command].
         
     | 
| 
       47 
     | 
    
         
            -
                    # @return [EacRubyUtils::Envs::Command]
         
     | 
| 
       48 
     | 
    
         
            -
                    def read_command(key)
         
     | 
| 
       49 
     | 
    
         
            -
                      read_entry(key).if_present do |v|
         
     | 
| 
       50 
     | 
    
         
            -
                        args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v)
         
     | 
| 
       51 
     | 
    
         
            -
                        ::EacRubyUtils::Envs.local.command(args).chdir(::File.dirname(storage_path))
         
     | 
| 
       52 
     | 
    
         
            -
                      end
         
     | 
| 
       53 
     | 
    
         
            -
                    end
         
     | 
| 
       54 
     | 
    
         
            -
                  end
         
     | 
| 
       55 
     | 
    
         
            -
                end
         
     | 
| 
       56 
     | 
    
         
            -
              end
         
     | 
| 
       57 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,18 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'avm/patches/eac_ruby_gems_utils/gem'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'i18n'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            module Avm
         
     | 
| 
       7 
     | 
    
         
            -
              module Apps
         
     | 
| 
       8 
     | 
    
         
            -
                module Sources
         
     | 
| 
       9 
     | 
    
         
            -
                  class Configuration < ::EacConfig::OldConfigs
         
     | 
| 
       10 
     | 
    
         
            -
                    LOCALE_KEY = :locale
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
                    def locale
         
     | 
| 
       13 
     | 
    
         
            -
                      read_entry(LOCALE_KEY) || ::I18n.default_locale
         
     | 
| 
       14 
     | 
    
         
            -
                    end
         
     | 
| 
       15 
     | 
    
         
            -
                  end
         
     | 
| 
       16 
     | 
    
         
            -
                end
         
     | 
| 
       17 
     | 
    
         
            -
              end
         
     | 
| 
       18 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,26 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            module Avm
         
     | 
| 
       4 
     | 
    
         
            -
              module Apps
         
     | 
| 
       5 
     | 
    
         
            -
                module Sources
         
     | 
| 
       6 
     | 
    
         
            -
                  class Configuration < ::EacConfig::OldConfigs
         
     | 
| 
       7 
     | 
    
         
            -
                    RUBOCOP_COMMAND_KEY = 'ruby.rubocop.command'
         
     | 
| 
       8 
     | 
    
         
            -
                    RUBOCOP_GEMFILE_KEY = 'ruby.rubocop.gemfile'
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
                    def rubocop_command
         
     | 
| 
       11 
     | 
    
         
            -
                      read_command(RUBOCOP_COMMAND_KEY)
         
     | 
| 
       12 
     | 
    
         
            -
                    end
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
                    def rubocop_gemfile
         
     | 
| 
       15 
     | 
    
         
            -
                      gemfile_path = read_entry(RUBOCOP_GEMFILE_KEY)
         
     | 
| 
       16 
     | 
    
         
            -
                      return nil if gemfile_path.blank?
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                      gemfile_path = gemfile_path.to_pathname.expand_path(storage_path.parent)
         
     | 
| 
       19 
     | 
    
         
            -
                      return gemfile_path if gemfile_path.file?
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
                      raise "Gemfile path \"#{gemfile_path}\" does not exist or is not a file"
         
     | 
| 
       22 
     | 
    
         
            -
                    end
         
     | 
| 
       23 
     | 
    
         
            -
                  end
         
     | 
| 
       24 
     | 
    
         
            -
                end
         
     | 
| 
       25 
     | 
    
         
            -
              end
         
     | 
| 
       26 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,29 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'avm/patches/eac_ruby_gems_utils/gem'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            module Avm
         
     | 
| 
       6 
     | 
    
         
            -
              module Apps
         
     | 
| 
       7 
     | 
    
         
            -
                module Sources
         
     | 
| 
       8 
     | 
    
         
            -
                  class Configuration < ::EacConfig::OldConfigs
         
     | 
| 
       9 
     | 
    
         
            -
                    BUNDLE_TEST_COMMAND_KEY = 'test.bundle_command'
         
     | 
| 
       10 
     | 
    
         
            -
                    TEST_COMMAND_KEY = 'test.command'
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
                    def any_test_command
         
     | 
| 
       13 
     | 
    
         
            -
                      bundle_test_command || test_command
         
     | 
| 
       14 
     | 
    
         
            -
                    end
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
                    def test_command
         
     | 
| 
       17 
     | 
    
         
            -
                      read_command(TEST_COMMAND_KEY)
         
     | 
| 
       18 
     | 
    
         
            -
                    end
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                    def bundle_test_command
         
     | 
| 
       21 
     | 
    
         
            -
                      read_entry(BUNDLE_TEST_COMMAND_KEY).if_present do |v|
         
     | 
| 
       22 
     | 
    
         
            -
                        args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v)
         
     | 
| 
       23 
     | 
    
         
            -
                        ::EacRubyGemsUtils::Gem.new(::File.dirname(storage_path)).bundle(*args).chdir_root
         
     | 
| 
       24 
     | 
    
         
            -
                      end
         
     | 
| 
       25 
     | 
    
         
            -
                    end
         
     | 
| 
       26 
     | 
    
         
            -
                  end
         
     | 
| 
       27 
     | 
    
         
            -
                end
         
     | 
| 
       28 
     | 
    
         
            -
              end
         
     | 
| 
       29 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,103 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            # This file was generated by the `rspec --init` command. Conventionally, all
         
     | 
| 
       4 
     | 
    
         
            -
            # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
         
     | 
| 
       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
         
     |