eac_ruby_gem_support 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b3ca5402c7c6e6f3db0c188918cb13068e4910ae638347460d7247ebbb6e89
4
- data.tar.gz: 39ce126f55b25a5fc2e2a665795b2cfd5c2c63e95b8c4424372e4b66d73e8cae
3
+ metadata.gz: 78a74df60ac64e3fc1434c2abfd80a2ca8011b3123c93f043fecbdfb8a6cc202
4
+ data.tar.gz: 98b98f8ecc9cc76e4a90b9196f92c65bc6b98439f1efb722500fab21e7f2d075
5
5
  SHA512:
6
- metadata.gz: eee5209187b9d48ac954e710bf3b7e466ffb556325f88e8379fceb980a508ede8d7df5f3dcea661b32c5ee4ae36cf9b8a886b1df22c9a37e7cc26666ffaa050a
7
- data.tar.gz: 94ea6d74d01eff15e49da65069cd3f70cf8f4024cf8beeeee97e07492cf15865ac16872cc2a555d6f1685df70789c12a5138cbb21cef0ff2285c84da156caf83
6
+ metadata.gz: 67976f114cbc716e604eda60a525f076d144b8858894e2cbcbd7678215f36eab528880d5a80f21e880344d2d88ece668eaf6ba79f2822173ff14b40ca2e508f9
7
+ data.tar.gz: 17efa59ecf539800429f6cc95df7591ff677d98308d2ddc250d7ee14f55174ea63842d2353cf62327d776acbe32a9c6d090787b73c175eddf75f12492b57442c
@@ -7,35 +7,32 @@ require 'tmpdir'
7
7
 
8
8
  module EacRubyGemSupport
9
9
  module Rspec
10
- class Setup
11
- common_constructor :setup_obj
12
-
13
- def perform
14
- setup_obj.singleton_class.include ::EacRubyGemSupport::Rspec::Specs::Rubocop
15
- setup_load_path
16
- setup_example_persistence
17
- setup_filesystem_helper
10
+ module Setup
11
+ extend ::ActiveSupport::Concern
12
+ include ::EacRubyGemSupport::Rspec::Specs::Rubocop
13
+
14
+ def self.perform(setup_obj)
15
+ setup_obj.setup_load_path
16
+ setup_obj.setup_example_persistence
17
+ setup_obj.setup_filesystem_helper
18
18
  end
19
19
 
20
- private
21
-
22
20
  def setup_filesystem_helper
23
- setup_obj.rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Filesystem
24
- setup_obj.rspec_config.after(:each) { purge_temp_files }
21
+ rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Filesystem
22
+ rspec_config.after(:each) { purge_temp_files }
25
23
  end
26
24
 
27
25
  def setup_load_path
28
- $LOAD_PATH.push setup_obj.app_root_path.join('lib').to_path
26
+ $LOAD_PATH.push app_root_path.join('lib').to_path
29
27
  end
30
28
 
31
29
  def setup_example_persistence
32
- setup_obj.rspec_config.example_status_persistence_file_path =
33
- example_persistence_path.to_path
30
+ rspec_config.example_status_persistence_file_path = example_persistence_path.to_path
34
31
  end
35
32
 
36
33
  # @return [Pathname]
37
34
  def example_persistence_path
38
- ::File.join(::Dir.tmpdir, setup_obj.app_root_path.basename.to_path.variableize).to_pathname
35
+ ::File.join(::Dir.tmpdir, app_root_path.basename.to_path.variableize).to_pathname
39
36
  end
40
37
  end
41
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyGemSupport
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_gem_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-31 00:00:00.000000000 Z
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils