matrixeval 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/matrixeval/config/yaml.rb +5 -1
- data/lib/matrixeval/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c305c1536ff019ffbb2a8b9a0eeccd99b19311427e4fb4a6312306f5d03fdd5a
|
4
|
+
data.tar.gz: ada812a94ab31d5b995edcb08f294324aeb042fd6da27e4dcc94f441ce2aeaaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a9f25ca3a3e6c45a0fc8b2b6375fbc0852dcae7a0353da32f2925203fcc58dcf967deea3e0cd0784b061a1a36697f4e01a6320c569b98f1d7e7cd77c647b6e
|
7
|
+
data.tar.gz: ab69ed304271bca32b6f890fbf17b05007c96306f7be1eb2db068f1a229a3538b6b80d523d7629e094fbd04936331b11cd9ee4076cac880a255d63e818e067cc
|
data/CHANGELOG.md
CHANGED
@@ -5,16 +5,20 @@ module Matrixeval
|
|
5
5
|
class YAML
|
6
6
|
|
7
7
|
class MissingError < StandardError; end
|
8
|
+
class MissingTargetGem < StandardError; end
|
8
9
|
|
9
10
|
class << self
|
10
11
|
|
11
12
|
def create_for(target_name)
|
12
13
|
return if File.exist?(path)
|
14
|
+
require "matrixeval/#{target_name}" unless target_name.nil?
|
13
15
|
|
14
16
|
FileUtils.cp(
|
15
17
|
target(target_name).matrixeval_yml_template_path,
|
16
18
|
path
|
17
19
|
)
|
20
|
+
rescue LoadError
|
21
|
+
raise MissingTargetGem.new("Missing gem for the target #{target_name}")
|
18
22
|
end
|
19
23
|
|
20
24
|
def path
|
@@ -38,7 +42,7 @@ module Matrixeval
|
|
38
42
|
end
|
39
43
|
|
40
44
|
def target_klass(target_name)
|
41
|
-
Matrixeval.targets[target_name] || Target
|
45
|
+
Matrixeval.targets[target_name&.to_sym] || Target
|
42
46
|
end
|
43
47
|
|
44
48
|
end
|
data/lib/matrixeval/version.rb
CHANGED