eac_config 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_config/entry.rb +4 -0
- data/lib/eac_config/node_entry.rb +4 -0
- data/lib/eac_config/rspec/setup.rb +8 -0
- data/lib/eac_config/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a03da4e24715d7384e6de3cd61bb33bf9d1668234675059be4afb39355d82e1
|
4
|
+
data.tar.gz: 0f97dd63aae43cb52748f17ce8bc15488a11eaaa0ff65ccf2b15b0ee0ef0b16e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b13a3a78a6fc3029584d1942d4977beea8d7c213ac9a56721cd3aae15a8492c3491bd9d7a33f095049f8389d165322949750121c70dffdc114af8a753b540d
|
7
|
+
data.tar.gz: 060bd6ef9c82bfc29418e16ea2985bc120a5e2759e7ae2dc787b683d6d912818207417694bdb26b345e5a1298a8915006a6541f8fa51c70c437be7de48770d3e
|
data/lib/eac_config/entry.rb
CHANGED
@@ -29,6 +29,14 @@ module EacConfig
|
|
29
29
|
::EacConfig::EnvvarsNode.new.load_path.entry
|
30
30
|
end
|
31
31
|
|
32
|
+
# Wraps a RSpec example in a EacConfig node using a alternative file.
|
33
|
+
#
|
34
|
+
# @param target_example [RSpec::Core::ExampleGroup] The example to wrap. If not provided,
|
35
|
+
# it is applied to all examples.
|
36
|
+
# @param target_file [Pathname] The file used by the EacConfig node. If not provided, a
|
37
|
+
# temporary file is used.
|
38
|
+
# @param node_builder [Proc] Should return the desired EacConfig node. If not provided, a
|
39
|
+
# EacConfig::YamlFileNode is created.
|
32
40
|
def stub_eac_config_node(target_example = nil, target_file = nil, &node_builder)
|
33
41
|
parent_self = self
|
34
42
|
(target_example || rspec_config).around do |example|
|
data/lib/eac_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.83'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.83'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: eac_ruby_gem_support
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|