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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/lib/tdc/definition_resolvers/tag_resolver.rb +2 -0
- data/lib/tdc/version.rb +1 -1
- data/lib/tdc/yaml_readers/yaml_reader_base.rb +1 -1
- data/tdc.gemspec +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825ed25bb1ab3ebbf3d084dcb6505ea173f323dea4ee9d71997b12c11be1e57e
|
4
|
+
data.tar.gz: 67ccebba1b6aa4e5f8653329a566b2dd7edd7509caaacf322fc06b2dc9df5629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12379bc219f81c304035ae2855076511c56b8c99bde1dcd88ca629cee29fa661b7037c8d975a07b453f400ace7b467cdbd028fb8108b450694d7e0e5b952002b
|
7
|
+
data.tar.gz: 14b96dd59f0e137bf2c702d4e875764b68e887c07ece3e62544ada23ecb02614a73cff3ab087ba29f361fb88e63ba51e6499c1d67b7629091a5c236c07b590f8
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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
@@ -18,7 +18,7 @@ module Tdc
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def definitions_source
|
21
|
-
source_string.empty? ? [] : YAML.
|
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.
|
38
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
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.
|
41
|
-
spec.add_development_dependency "rubycritic", "
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|