tdc 0.6.0 → 0.6.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: f686a36de5c9af9dc1b77bac6abaa6e55506d35756c6680890f716de11559cbc
4
- data.tar.gz: f9d17bb78386293b038f4bb72ee81547307ffc08ad96fedfc95fc03102ba5d74
3
+ metadata.gz: 825ed25bb1ab3ebbf3d084dcb6505ea173f323dea4ee9d71997b12c11be1e57e
4
+ data.tar.gz: 67ccebba1b6aa4e5f8653329a566b2dd7edd7509caaacf322fc06b2dc9df5629
5
5
  SHA512:
6
- metadata.gz: 0461bea940925ae83f1269990ec75f876219a031f775a0cb208ac54586e85a07def8abea3cedb1d8ea0cbd0efddaa2c31e5dac23696a8625ae7708b5c1957fb1
7
- data.tar.gz: 39b7ac46e360ec68b2d69dce658f11a71dabb36f98d9b763798c6ddd715a0cddecda0a80785e1519a56a2d761e655f96ab21aef36be919acc0dfcfae93d8a82c
6
+ metadata.gz: 12379bc219f81c304035ae2855076511c56b8c99bde1dcd88ca629cee29fa661b7037c8d975a07b453f400ace7b467cdbd028fb8108b450694d7e0e5b952002b
7
+ data.tar.gz: 14b96dd59f0e137bf2c702d4e875764b68e887c07ece3e62544ada23ecb02614a73cff3ab087ba29f361fb88e63ba51e6499c1d67b7629091a5c236c07b590f8
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.1.4
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.2] - 2024-03-05
10
+
11
+ - Better error message when a tag cannot be resolved
12
+
13
+ ## [0.6.1] - 2023-05-30
14
+
15
+ - Compatibility with Psych 4 (and therefore Ruby 3.1)
16
+
9
17
  ## [0.6.0] - 2023-03-13
10
18
 
11
19
  - Support Rails 7.0.x
@@ -21,6 +21,8 @@ module Tdc
21
21
  # Before resolution the instance definition value is a tag.
22
22
  tag = instance_definition[key]
23
23
 
24
+ unresolvable_tag(tag, catalog_entry) unless tag
25
+
24
26
  # Use the tag to source an object from the current catalog.
25
27
  sourced_object = catalog_entry.send(tag)
26
28
 
data/lib/tdc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tdc
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -18,7 +18,7 @@ module Tdc
18
18
  end
19
19
 
20
20
  def definitions_source
21
- source_string.empty? ? [] : YAML.load(source_string) # rubocop:disable Security/YAMLLoad
21
+ source_string.empty? ? [] : YAML.safe_load(source_string, permitted_classes: [Date])
22
22
  rescue => e
23
23
  raise Tdc::FatalError, <<~MSG
24
24
  Unable to load YAML from #{definitions_file}
data/tdc.gemspec CHANGED
@@ -34,10 +34,10 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "appraisal", "~> 2.4"
35
35
  spec.add_development_dependency "rake", "~> 13.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.12"
37
- spec.add_development_dependency "rubocop", "~> 1.48"
38
- spec.add_development_dependency "rubocop-performance", "~> 1.16"
37
+ spec.add_development_dependency "rubocop", "~> 1.51"
38
+ spec.add_development_dependency "rubocop-performance", "~> 1.18"
39
39
  spec.add_development_dependency "rubocop-rake", "~> 0.6"
40
- spec.add_development_dependency "rubocop-rspec", "~> 2.19"
41
- spec.add_development_dependency "rubycritic", ">= 4.7"
40
+ spec.add_development_dependency "rubocop-rspec", "~> 2.22"
41
+ spec.add_development_dependency "rubycritic", "~> 4.8"
42
42
  spec.add_development_dependency "simplecov", "~> 0.22"
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -78,28 +78,28 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.48'
81
+ version: '1.51'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.48'
88
+ version: '1.51'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rubocop-performance
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.16'
95
+ version: '1.18'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.16'
102
+ version: '1.18'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rubocop-rake
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -120,28 +120,28 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '2.19'
123
+ version: '2.22'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '2.19'
130
+ version: '2.22'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: rubycritic
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ">="
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '4.7'
137
+ version: '4.8'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ">="
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '4.7'
144
+ version: '4.8'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: simplecov
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.4.8
237
+ rubygems_version: 3.5.6
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: A simple framework for creating a Test Data Catalog