eac_ruby_gem_support 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_ruby_gem_support/rspec/setup.rb +13 -16
- data/lib/eac_ruby_gem_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a74df60ac64e3fc1434c2abfd80a2ca8011b3123c93f043fecbdfb8a6cc202
|
4
|
+
data.tar.gz: 98b98f8ecc9cc76e4a90b9196f92c65bc6b98439f1efb722500fab21e7f2d075
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
24
|
-
|
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
|
26
|
+
$LOAD_PATH.push app_root_path.join('lib').to_path
|
29
27
|
end
|
30
28
|
|
31
29
|
def setup_example_persistence
|
32
|
-
|
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,
|
35
|
+
::File.join(::Dir.tmpdir, app_root_path.basename.to_path.variableize).to_pathname
|
39
36
|
end
|
40
37
|
end
|
41
38
|
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.
|
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-
|
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
|