tdc 0.6.2 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/tdc.rb CHANGED
@@ -4,53 +4,15 @@ require "yaml"
4
4
  require "active_support"
5
5
  require "active_support/concern"
6
6
  require "active_support/core_ext"
7
+ require "zeitwerk"
7
8
 
8
- require "tdc/version"
9
-
10
- # Definition Resolvers
11
- require "tdc/definition_resolvers"
12
- require "tdc/definition_resolvers/definition_resolver"
13
- require "tdc/definition_resolvers/tag_resolver"
14
-
15
- # Tdc Errors
16
- require "tdc/fatal_error"
17
- require "tdc/missing_override_error"
18
-
19
- # Extended Attributes
20
- require "tdc/extended_attributes"
21
- require "tdc/extended_attributes/interpreter_base"
22
- require "tdc/extended_attributes/default_interpreter"
23
- require "tdc/extended_attributes/interpreter_registry"
24
-
25
- # Data Definition Hierarchy
26
- require "tdc/data_definition"
27
- require "tdc/data_definition_file_reader"
28
- require "tdc/in_memory_data_definition"
29
- require "tdc/with_indifferent_access_decorator"
30
-
31
- # Generators
32
- require "tdc/generators"
33
- require "tdc/generators/catalog_entries"
34
- require "tdc/generators/generation_context"
35
-
36
- # Generator Concerns
37
- require "tdc/generators/definition_resolvable"
38
- require "tdc/generators/definition_sourcable"
39
-
40
- # Generator Hierarchy
41
- require "tdc/generators/generator_base"
42
- require "tdc/generators/standard_generator"
43
-
44
- # YAML Readers
45
- require "tdc/yaml_readers"
46
- require "tdc/yaml_readers/null_yaml_reader"
47
- require "tdc/yaml_readers/yaml_reader_base"
48
- require "tdc/yaml_readers/yaml_reader"
49
- require "tdc/yaml_readers/yaml_reader_with_expansion"
50
- require "tdc/yaml_readers/yaml_reader_factory"
9
+ loader = Zeitwerk::Loader.for_gem
10
+ loader.setup
51
11
 
52
12
  #
53
13
  # A framework for building a Test Data Catalog
54
14
  #
55
15
  module Tdc
56
16
  end
17
+
18
+ loader.eager_load
data/tdc.gemspec CHANGED
@@ -10,12 +10,11 @@ Gem::Specification.new do |spec|
10
10
  spec.homepage = "https://github.com/nulogy/tdc"
11
11
  spec.license = "MIT"
12
12
 
13
- spec.required_ruby_version = Gem::Requirement.new(">= 3.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.1")
14
14
 
15
15
  spec.metadata = {
16
16
  "homepage_uri" => "https://github.com/nulogy/tdc",
17
17
  "changelog_uri" => "https://github.com/nulogy/tdc/blob/master/CHANGELOG.md",
18
- "source_code_uri" => "https://github.com/nulogy/tdc",
19
18
  "bug_tracker_uri" => "https://github.com/nulogy/tdc/issues",
20
19
  "rubygems_mfa_required" => "true"
21
20
  }
@@ -29,15 +28,16 @@ Gem::Specification.new do |spec|
29
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
29
  spec.require_paths = ["lib"]
31
30
 
32
- spec.add_runtime_dependency "activesupport", ">= 6.0", "< 7.1"
31
+ spec.add_dependency "activesupport", ">= 7.0", "< 8.0"
32
+ spec.add_dependency "zeitwerk", ">= 2.7"
33
33
 
34
- spec.add_development_dependency "appraisal", "~> 2.4"
35
- spec.add_development_dependency "rake", "~> 13.0"
36
- spec.add_development_dependency "rspec", "~> 3.12"
37
- spec.add_development_dependency "rubocop", "~> 1.51"
38
- spec.add_development_dependency "rubocop-performance", "~> 1.18"
34
+ spec.add_development_dependency "appraisal", "~> 2.5"
35
+ spec.add_development_dependency "rake", "~> 13.2"
36
+ spec.add_development_dependency "rspec", "~> 3.13"
37
+ spec.add_development_dependency "rubocop", "~> 1.69"
38
+ spec.add_development_dependency "rubocop-performance", "~> 1.23"
39
39
  spec.add_development_dependency "rubocop-rake", "~> 0.6"
40
- spec.add_development_dependency "rubocop-rspec", "~> 2.22"
41
- spec.add_development_dependency "rubycritic", "~> 4.8"
40
+ spec.add_development_dependency "rubocop-rspec", "~> 3.3"
41
+ spec.add_development_dependency "rubycritic", "~> 4.9"
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.2
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,90 +16,104 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '7.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '8.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '6.0'
29
+ version: '7.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: zeitwerk
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.7'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '2.7'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: appraisal
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: '2.4'
53
+ version: '2.5'
40
54
  type: :development
41
55
  prerelease: false
42
56
  version_requirements: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - "~>"
45
59
  - !ruby/object:Gem::Version
46
- version: '2.4'
60
+ version: '2.5'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: rake
49
63
  requirement: !ruby/object:Gem::Requirement
50
64
  requirements:
51
65
  - - "~>"
52
66
  - !ruby/object:Gem::Version
53
- version: '13.0'
67
+ version: '13.2'
54
68
  type: :development
55
69
  prerelease: false
56
70
  version_requirements: !ruby/object:Gem::Requirement
57
71
  requirements:
58
72
  - - "~>"
59
73
  - !ruby/object:Gem::Version
60
- version: '13.0'
74
+ version: '13.2'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: rspec
63
77
  requirement: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - "~>"
66
80
  - !ruby/object:Gem::Version
67
- version: '3.12'
81
+ version: '3.13'
68
82
  type: :development
69
83
  prerelease: false
70
84
  version_requirements: !ruby/object:Gem::Requirement
71
85
  requirements:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
- version: '3.12'
88
+ version: '3.13'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: rubocop
77
91
  requirement: !ruby/object:Gem::Requirement
78
92
  requirements:
79
93
  - - "~>"
80
94
  - !ruby/object:Gem::Version
81
- version: '1.51'
95
+ version: '1.69'
82
96
  type: :development
83
97
  prerelease: false
84
98
  version_requirements: !ruby/object:Gem::Requirement
85
99
  requirements:
86
100
  - - "~>"
87
101
  - !ruby/object:Gem::Version
88
- version: '1.51'
102
+ version: '1.69'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: rubocop-performance
91
105
  requirement: !ruby/object:Gem::Requirement
92
106
  requirements:
93
107
  - - "~>"
94
108
  - !ruby/object:Gem::Version
95
- version: '1.18'
109
+ version: '1.23'
96
110
  type: :development
97
111
  prerelease: false
98
112
  version_requirements: !ruby/object:Gem::Requirement
99
113
  requirements:
100
114
  - - "~>"
101
115
  - !ruby/object:Gem::Version
102
- version: '1.18'
116
+ version: '1.23'
103
117
  - !ruby/object:Gem::Dependency
104
118
  name: rubocop-rake
105
119
  requirement: !ruby/object:Gem::Requirement
@@ -120,28 +134,28 @@ dependencies:
120
134
  requirements:
121
135
  - - "~>"
122
136
  - !ruby/object:Gem::Version
123
- version: '2.22'
137
+ version: '3.3'
124
138
  type: :development
125
139
  prerelease: false
126
140
  version_requirements: !ruby/object:Gem::Requirement
127
141
  requirements:
128
142
  - - "~>"
129
143
  - !ruby/object:Gem::Version
130
- version: '2.22'
144
+ version: '3.3'
131
145
  - !ruby/object:Gem::Dependency
132
146
  name: rubycritic
133
147
  requirement: !ruby/object:Gem::Requirement
134
148
  requirements:
135
149
  - - "~>"
136
150
  - !ruby/object:Gem::Version
137
- version: '4.8'
151
+ version: '4.9'
138
152
  type: :development
139
153
  prerelease: false
140
154
  version_requirements: !ruby/object:Gem::Requirement
141
155
  requirements:
142
156
  - - "~>"
143
157
  - !ruby/object:Gem::Version
144
- version: '4.8'
158
+ version: '4.9'
145
159
  - !ruby/object:Gem::Dependency
146
160
  name: simplecov
147
161
  requirement: !ruby/object:Gem::Requirement
@@ -176,10 +190,12 @@ files:
176
190
  - bin/console
177
191
  - bin/setup
178
192
  - gemfiles/.bundle/config
179
- - gemfiles/rails_6_1.gemfile
180
- - gemfiles/rails_6_1.gemfile.lock
181
193
  - gemfiles/rails_7.gemfile
182
194
  - gemfiles/rails_7.gemfile.lock
195
+ - gemfiles/rails_7_1.gemfile
196
+ - gemfiles/rails_7_1.gemfile.lock
197
+ - gemfiles/rails_7_2.gemfile
198
+ - gemfiles/rails_7_2.gemfile.lock
183
199
  - images/Tdc.png
184
200
  - lib/tdc.rb
185
201
  - lib/tdc/data_definition.rb
@@ -216,7 +232,6 @@ licenses:
216
232
  metadata:
217
233
  homepage_uri: https://github.com/nulogy/tdc
218
234
  changelog_uri: https://github.com/nulogy/tdc/blob/master/CHANGELOG.md
219
- source_code_uri: https://github.com/nulogy/tdc
220
235
  bug_tracker_uri: https://github.com/nulogy/tdc/issues
221
236
  rubygems_mfa_required: 'true'
222
237
  post_install_message:
@@ -227,14 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
242
  requirements:
228
243
  - - ">="
229
244
  - !ruby/object:Gem::Version
230
- version: '3.0'
245
+ version: '3.1'
231
246
  required_rubygems_version: !ruby/object:Gem::Requirement
232
247
  requirements:
233
248
  - - ">="
234
249
  - !ruby/object:Gem::Version
235
250
  version: '0'
236
251
  requirements: []
237
- rubygems_version: 3.5.6
252
+ rubygems_version: 3.5.23
238
253
  signing_key:
239
254
  specification_version: 4
240
255
  summary: A simple framework for creating a Test Data Catalog
@@ -1,274 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- tdc (0.6.0)
5
- activesupport (>= 6.0, < 7.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.1.3.2)
11
- actionpack (= 6.1.3.2)
12
- activesupport (= 6.1.3.2)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (6.1.3.2)
16
- actionpack (= 6.1.3.2)
17
- activejob (= 6.1.3.2)
18
- activerecord (= 6.1.3.2)
19
- activestorage (= 6.1.3.2)
20
- activesupport (= 6.1.3.2)
21
- mail (>= 2.7.1)
22
- actionmailer (6.1.3.2)
23
- actionpack (= 6.1.3.2)
24
- actionview (= 6.1.3.2)
25
- activejob (= 6.1.3.2)
26
- activesupport (= 6.1.3.2)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.1.3.2)
30
- actionview (= 6.1.3.2)
31
- activesupport (= 6.1.3.2)
32
- rack (~> 2.0, >= 2.0.9)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.1.3.2)
37
- actionpack (= 6.1.3.2)
38
- activerecord (= 6.1.3.2)
39
- activestorage (= 6.1.3.2)
40
- activesupport (= 6.1.3.2)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.1.3.2)
43
- activesupport (= 6.1.3.2)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.3.2)
49
- activesupport (= 6.1.3.2)
50
- globalid (>= 0.3.6)
51
- activemodel (6.1.3.2)
52
- activesupport (= 6.1.3.2)
53
- activerecord (6.1.3.2)
54
- activemodel (= 6.1.3.2)
55
- activesupport (= 6.1.3.2)
56
- activestorage (6.1.3.2)
57
- actionpack (= 6.1.3.2)
58
- activejob (= 6.1.3.2)
59
- activerecord (= 6.1.3.2)
60
- activesupport (= 6.1.3.2)
61
- marcel (~> 1.0.0)
62
- mini_mime (~> 1.0.2)
63
- activesupport (6.1.3.2)
64
- concurrent-ruby (~> 1.0, >= 1.0.2)
65
- i18n (>= 1.6, < 2)
66
- minitest (>= 5.1)
67
- tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
- addressable (2.8.1)
70
- public_suffix (>= 2.0.2, < 6.0)
71
- appraisal (2.4.1)
72
- bundler
73
- rake
74
- thor (>= 0.14.0)
75
- ast (2.4.2)
76
- axiom-types (0.1.1)
77
- descendants_tracker (~> 0.0.4)
78
- ice_nine (~> 0.11.0)
79
- thread_safe (~> 0.3, >= 0.3.1)
80
- builder (3.2.4)
81
- coercible (1.0.0)
82
- descendants_tracker (~> 0.0.1)
83
- concurrent-ruby (1.2.2)
84
- crass (1.0.6)
85
- date (3.3.3)
86
- descendants_tracker (0.0.4)
87
- thread_safe (~> 0.3, >= 0.3.1)
88
- diff-lcs (1.5.0)
89
- docile (1.4.0)
90
- equalizer (0.0.11)
91
- erubi (1.12.0)
92
- flay (2.13.0)
93
- erubi (~> 1.10)
94
- path_expander (~> 1.0)
95
- ruby_parser (~> 3.0)
96
- sexp_processor (~> 4.0)
97
- flog (4.6.6)
98
- path_expander (~> 1.0)
99
- ruby_parser (~> 3.1, > 3.1.0)
100
- sexp_processor (~> 4.8)
101
- globalid (1.1.0)
102
- activesupport (>= 5.0)
103
- i18n (1.12.0)
104
- concurrent-ruby (~> 1.0)
105
- ice_nine (0.11.2)
106
- json (2.6.3)
107
- kwalify (0.7.2)
108
- launchy (2.5.2)
109
- addressable (~> 2.8)
110
- loofah (2.19.1)
111
- crass (~> 1.0.2)
112
- nokogiri (>= 1.5.9)
113
- mail (2.8.1)
114
- mini_mime (>= 0.1.1)
115
- net-imap
116
- net-pop
117
- net-smtp
118
- marcel (1.0.2)
119
- method_source (1.0.0)
120
- mini_mime (1.0.3)
121
- minitest (5.18.0)
122
- net-imap (0.3.4)
123
- date
124
- net-protocol
125
- net-pop (0.1.2)
126
- net-protocol
127
- net-protocol (0.2.1)
128
- timeout
129
- net-smtp (0.3.3)
130
- net-protocol
131
- nio4r (2.5.8)
132
- nokogiri (1.14.2-x86_64-darwin)
133
- racc (~> 1.4)
134
- parallel (1.22.1)
135
- parser (3.2.1.1)
136
- ast (~> 2.4.1)
137
- path_expander (1.1.1)
138
- public_suffix (5.0.1)
139
- racc (1.6.2)
140
- rack (2.2.6.4)
141
- rack-test (2.0.2)
142
- rack (>= 1.3)
143
- rails (6.1.3.2)
144
- actioncable (= 6.1.3.2)
145
- actionmailbox (= 6.1.3.2)
146
- actionmailer (= 6.1.3.2)
147
- actionpack (= 6.1.3.2)
148
- actiontext (= 6.1.3.2)
149
- actionview (= 6.1.3.2)
150
- activejob (= 6.1.3.2)
151
- activemodel (= 6.1.3.2)
152
- activerecord (= 6.1.3.2)
153
- activestorage (= 6.1.3.2)
154
- activesupport (= 6.1.3.2)
155
- bundler (>= 1.15.0)
156
- railties (= 6.1.3.2)
157
- sprockets-rails (>= 2.0.0)
158
- rails-dom-testing (2.0.3)
159
- activesupport (>= 4.2.0)
160
- nokogiri (>= 1.6)
161
- rails-html-sanitizer (1.5.0)
162
- loofah (~> 2.19, >= 2.19.1)
163
- railties (6.1.3.2)
164
- actionpack (= 6.1.3.2)
165
- activesupport (= 6.1.3.2)
166
- method_source
167
- rake (>= 0.8.7)
168
- thor (~> 1.0)
169
- rainbow (3.1.1)
170
- rake (13.0.6)
171
- reek (6.1.4)
172
- kwalify (~> 0.7.0)
173
- parser (~> 3.2.0)
174
- rainbow (>= 2.0, < 4.0)
175
- regexp_parser (2.7.0)
176
- rexml (3.2.5)
177
- rspec (3.12.0)
178
- rspec-core (~> 3.12.0)
179
- rspec-expectations (~> 3.12.0)
180
- rspec-mocks (~> 3.12.0)
181
- rspec-core (3.12.1)
182
- rspec-support (~> 3.12.0)
183
- rspec-expectations (3.12.2)
184
- diff-lcs (>= 1.2.0, < 2.0)
185
- rspec-support (~> 3.12.0)
186
- rspec-mocks (3.12.4)
187
- diff-lcs (>= 1.2.0, < 2.0)
188
- rspec-support (~> 3.12.0)
189
- rspec-support (3.12.0)
190
- rubocop (1.48.1)
191
- json (~> 2.3)
192
- parallel (~> 1.10)
193
- parser (>= 3.2.0.0)
194
- rainbow (>= 2.2.2, < 4.0)
195
- regexp_parser (>= 1.8, < 3.0)
196
- rexml (>= 3.2.5, < 4.0)
197
- rubocop-ast (>= 1.26.0, < 2.0)
198
- ruby-progressbar (~> 1.7)
199
- unicode-display_width (>= 2.4.0, < 3.0)
200
- rubocop-ast (1.27.0)
201
- parser (>= 3.2.1.0)
202
- rubocop-capybara (2.17.1)
203
- rubocop (~> 1.41)
204
- rubocop-performance (1.16.0)
205
- rubocop (>= 1.7.0, < 2.0)
206
- rubocop-ast (>= 0.4.0)
207
- rubocop-rake (0.6.0)
208
- rubocop (~> 1.0)
209
- rubocop-rspec (2.19.0)
210
- rubocop (~> 1.33)
211
- rubocop-capybara (~> 2.17)
212
- ruby-progressbar (1.13.0)
213
- ruby_parser (3.20.0)
214
- sexp_processor (~> 4.16)
215
- rubycritic (4.7.0)
216
- flay (~> 2.8)
217
- flog (~> 4.4)
218
- launchy (>= 2.0.0)
219
- parser (>= 2.6.0)
220
- rainbow (~> 3.0)
221
- reek (~> 6.0, < 7.0)
222
- ruby_parser (~> 3.8)
223
- simplecov (>= 0.17.0)
224
- tty-which (~> 0.4.0)
225
- virtus (~> 1.0)
226
- sexp_processor (4.16.1)
227
- simplecov (0.22.0)
228
- docile (~> 1.1)
229
- simplecov-html (~> 0.11)
230
- simplecov_json_formatter (~> 0.1)
231
- simplecov-html (0.12.3)
232
- simplecov_json_formatter (0.1.4)
233
- sprockets (4.2.0)
234
- concurrent-ruby (~> 1.0)
235
- rack (>= 2.2.4, < 4)
236
- sprockets-rails (3.4.2)
237
- actionpack (>= 5.2)
238
- activesupport (>= 5.2)
239
- sprockets (>= 3.0.0)
240
- thor (1.2.1)
241
- thread_safe (0.3.6)
242
- timeout (0.3.2)
243
- tty-which (0.4.2)
244
- tzinfo (2.0.6)
245
- concurrent-ruby (~> 1.0)
246
- unicode-display_width (2.4.2)
247
- virtus (1.0.5)
248
- axiom-types (~> 0.1)
249
- coercible (~> 1.0)
250
- descendants_tracker (~> 0.0, >= 0.0.3)
251
- equalizer (~> 0.0, >= 0.0.9)
252
- websocket-driver (0.7.5)
253
- websocket-extensions (>= 0.1.0)
254
- websocket-extensions (0.1.5)
255
- zeitwerk (2.6.7)
256
-
257
- PLATFORMS
258
- x86_64-darwin-22
259
-
260
- DEPENDENCIES
261
- appraisal (~> 2.4)
262
- rails (= 6.1.3.2)
263
- rake (~> 13.0)
264
- rspec (~> 3.12)
265
- rubocop (~> 1.48)
266
- rubocop-performance (~> 1.16)
267
- rubocop-rake (~> 0.6)
268
- rubocop-rspec (~> 2.19)
269
- rubycritic (>= 4.7)
270
- simplecov (~> 0.22)
271
- tdc!
272
-
273
- BUNDLED WITH
274
- 2.4.8