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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b819362065c34cdb7dc9f98da57b528e3c562a703f3f856f87c465c33de26ed
4
- data.tar.gz: 55c564cc2ce1e5e3d4b184d19939e505f328f28559ad02850048e259606a1523
3
+ metadata.gz: c305c1536ff019ffbb2a8b9a0eeccd99b19311427e4fb4a6312306f5d03fdd5a
4
+ data.tar.gz: ada812a94ab31d5b995edcb08f294324aeb042fd6da27e4dcc94f441ce2aeaaf
5
5
  SHA512:
6
- metadata.gz: 47e8d94abc5f289b91dc9a648b089a67b207ebd7ff7b3ed0d468390741878b27e0ae76e48fed5a577a26270ab41c5775036ea336badb05450a7613fee295c07b
7
- data.tar.gz: ddd4097eb3149857f4af687b6b8bbd9fb4b6fba802260c0ea00be6820e04a1648e0557393a5486f87489694e35928483260a6cca43da4baeed1001828030c953
6
+ metadata.gz: 54a9f25ca3a3e6c45a0fc8b2b6375fbc0852dcae7a0353da32f2925203fcc58dcf967deea3e0cd0784b061a1a36697f4e01a6320c569b98f1d7e7cd77c647b6e
7
+ data.tar.gz: ab69ed304271bca32b6f890fbf17b05007c96306f7be1eb2db068f1a229a3538b6b80d523d7629e094fbd04936331b11cd9ee4076cac880a255d63e818e067cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ # [0.4.2] - 2022-02-27
4
+
5
+ - Fix "matrixeval init -t ruby" to use correct template
6
+
3
7
  # [0.4.1] - 2022-02-27
4
8
 
5
9
  - Fix a load_plugin issue
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Matrixeval
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrixeval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hopper Gee