pangea-component-dns 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ddf341959726e321c4c42bbc2e59d599e721a722c97758baeea0c8bddabc775e
4
+ data.tar.gz: 27c30c9eb2984a54b802714bd417b0243603076f7aea3e2756edd6f5912c9f3d
5
+ SHA512:
6
+ metadata.gz: ef1a7a7b8b7ba8b873d256f2c0e296b41e4fa3878808d22e524cbe46a9211e63ce687bec02b1225326090d87f9c83da1e989f62c698e303232f89e9fbbee53d4
7
+ data.tar.gz: 544dd840f7010224b088acd79e5f397dfa40a74540b92717d2b60256a16cb12cb92c0b30972bb12cee73ae908566cc35ff3477d8a99efc2a130e6fb692f0bf93
data/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
data/.rubocop.yml ADDED
@@ -0,0 +1,54 @@
1
+ AllCops:
2
+ TargetRubyVersion: '3.0'
3
+ NewCops: enable
4
+
5
+ Gemspec/RequiredRubyVersion:
6
+ Enabled: false
7
+
8
+ Style/FrozenStringLiteralComment:
9
+ Enabled: false
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+ Style/GlobalVars:
15
+ Enabled: false
16
+
17
+ Style/GuardClause:
18
+ Enabled: false
19
+
20
+ Style/StringConcatenation:
21
+ Enabled: false
22
+
23
+ Metrics/MethodLength:
24
+ Enabled: false
25
+
26
+ Metrics/ModuleLength:
27
+ Enabled: false
28
+
29
+ Metrics/AbcSize:
30
+ Enabled: false
31
+
32
+ Metrics/PerceivedComplexity:
33
+ Enabled: false
34
+
35
+ Metrics/ParameterLists:
36
+ Enabled: false
37
+
38
+ Style/MissingRespondToMissing:
39
+ Enabled: false
40
+
41
+ Lint/MissingSuper:
42
+ Enabled: false
43
+
44
+ Metrics/CyclomaticComplexity:
45
+ Enabled: false
46
+
47
+ Metrics/ClassLength:
48
+ Enabled: false
49
+
50
+ Metrics/BlockLength:
51
+ Enabled: false
52
+
53
+ Naming/AccessorMethodName:
54
+ Enabled: false
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ pangea-component-dns
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.0
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source %(https://rubygems.org)
2
+
3
+ group :development do
4
+ %w[
5
+ rubocop-rspec
6
+ rubocop-rake
7
+ keycutter
8
+ rspec
9
+ rake
10
+ yard
11
+ ].each do |this_gem|
12
+ gem this_gem
13
+ end
14
+ end
15
+
16
+ group :production do
17
+ %w[terraform-synthesizer].each do |this_gem|
18
+ gem this_gem
19
+ end
20
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,74 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ abstract-synthesizer (0.0.3)
5
+ ast (2.4.2)
6
+ diff-lcs (1.5.0)
7
+ json (2.6.3)
8
+ keycutter (1.0.2)
9
+ language_server-protocol (3.17.0.3)
10
+ parallel (1.23.0)
11
+ parser (3.2.2.4)
12
+ ast (~> 2.4.1)
13
+ racc
14
+ racc (1.7.3)
15
+ rainbow (3.1.1)
16
+ rake (13.1.0)
17
+ regexp_parser (2.8.2)
18
+ rexml (3.2.6)
19
+ rspec (3.12.0)
20
+ rspec-core (~> 3.12.0)
21
+ rspec-expectations (~> 3.12.0)
22
+ rspec-mocks (~> 3.12.0)
23
+ rspec-core (3.12.2)
24
+ rspec-support (~> 3.12.0)
25
+ rspec-expectations (3.12.3)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.12.0)
28
+ rspec-mocks (3.12.6)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-support (3.12.1)
32
+ rubocop (1.57.2)
33
+ json (~> 2.3)
34
+ language_server-protocol (>= 3.17.0)
35
+ parallel (~> 1.10)
36
+ parser (>= 3.2.2.4)
37
+ rainbow (>= 2.2.2, < 4.0)
38
+ regexp_parser (>= 1.8, < 3.0)
39
+ rexml (>= 3.2.5, < 4.0)
40
+ rubocop-ast (>= 1.28.1, < 2.0)
41
+ ruby-progressbar (~> 1.7)
42
+ unicode-display_width (>= 2.4.0, < 3.0)
43
+ rubocop-ast (1.30.0)
44
+ parser (>= 3.2.1.0)
45
+ rubocop-capybara (2.19.0)
46
+ rubocop (~> 1.41)
47
+ rubocop-factory_bot (2.24.0)
48
+ rubocop (~> 1.33)
49
+ rubocop-rake (0.6.0)
50
+ rubocop (~> 1.0)
51
+ rubocop-rspec (2.25.0)
52
+ rubocop (~> 1.40)
53
+ rubocop-capybara (~> 2.17)
54
+ rubocop-factory_bot (~> 2.22)
55
+ ruby-progressbar (1.13.0)
56
+ terraform-synthesizer (0.0.4)
57
+ abstract-synthesizer
58
+ unicode-display_width (2.5.0)
59
+ yard (0.9.34)
60
+
61
+ PLATFORMS
62
+ x86_64-linux
63
+
64
+ DEPENDENCIES
65
+ keycutter
66
+ rake
67
+ rspec
68
+ rubocop-rake
69
+ rubocop-rspec
70
+ terraform-synthesizer
71
+ yard
72
+
73
+ BUNDLED WITH
74
+ 2.3.3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 drzln
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # pangea-component-dns
2
+ DNS components for the Pangea framework
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require %(bundler/gem_tasks)
4
+ require %(rubocop/rake_task)
5
+ require %(rspec/core/rake_task)
6
+
7
+ RuboCop::RakeTask.new(:rubocop) do |t|
8
+ t.options = [%(--display-cop-names)]
9
+ end
10
+
11
+ task :bundix do
12
+ sh %(bundle lock --update)
13
+ sh %(bundix)
14
+ end
@@ -0,0 +1,7 @@
1
+ module Pangea
2
+ module Component
3
+ module DNS
4
+ VERSION = %(0.0.1).freeze
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,27 @@
1
+ require %(terraform-synthesizer)
2
+ require %(json)
3
+
4
+ def symbolize(hash)
5
+ JSON[JSON[hash], symbolize_names: true]
6
+ end
7
+
8
+ ################################################################################
9
+ # external entities call render with data
10
+ # render implements the synthesizer and processes
11
+ # internal module with data
12
+ ################################################################################
13
+
14
+ def render(data)
15
+ synth = TerraformSynthesizer.new
16
+ current_file_directory = File.dirname(File.expand_path(__FILE__))
17
+ vpc_file_path = File.join(
18
+ current_file_directory,
19
+ '../',
20
+ 'resources',
21
+ 'vpc.rb'
22
+ )
23
+ vpc_content = File.read(vpc_file_path)
24
+ synth.load_synthesis_data(data)
25
+ synth.synthesize(vpc_content)
26
+ synth.synthesis
27
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path(%(lib), __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require_relative %(./lib/pangea-component-dns/version)
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = %(pangea-component-dns)
9
+ spec.version = Pangea::Component::DNS::VERSION
10
+ spec.authors = [%(drzthslnt@gmail.com)]
11
+ spec.email = [%(drzthslnt@gmail.com)]
12
+ spec.description = %(network components)
13
+ spec.summary = %(network components)
14
+ spec.homepage = %(https://github.com/drzln/#{spec.name})
15
+ spec.license = %(MIT)
16
+ spec.require_paths = %w[lib resources]
17
+ spec.required_ruby_version = %(>= #{`cat .ruby-version`})
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+
23
+ %i[
24
+ rubocop-rspec
25
+ rubocop-rake
26
+ solargraph
27
+ keycutter
28
+ rubocop
29
+ rspec
30
+ rake
31
+ yard
32
+ ].each do |gem|
33
+ spec.add_development_dependency(gem)
34
+ end
35
+
36
+ %i[terraform-synthesizer].each do |gem|
37
+ spec.add_runtime_dependency(gem)
38
+ end
39
+
40
+ spec.metadata[%(rubygems_mfa_required)] = %(true)
41
+ end
data/resources/dns.rb ADDED
@@ -0,0 +1,3 @@
1
+ resource :aws_route53_zone, %(test) do
2
+ name %(test)
3
+ end
data/resources/vpc.rb ADDED
@@ -0,0 +1,3 @@
1
+ resource :aws_vpc, :bob do
2
+ cidr_block %(10.0.0.0/16)
3
+ end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pangea-component-dns
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - drzthslnt@gmail.com
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop-rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: solargraph
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: keycutter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: yard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: terraform-synthesizer
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: network components
140
+ email:
141
+ - drzthslnt@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rubocop.yml"
148
+ - ".ruby-gemset"
149
+ - ".ruby-version"
150
+ - Gemfile
151
+ - Gemfile.lock
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - lib/pangea-component-dns.rb
156
+ - lib/pangea-component-dns/version.rb
157
+ - pangea-component-dns.gemspec
158
+ - resources/dns.rb
159
+ - resources/vpc.rb
160
+ homepage: https://github.com/drzln/pangea-component-dns
161
+ licenses:
162
+ - MIT
163
+ metadata:
164
+ rubygems_mfa_required: 'true'
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ - resources
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 3.1.0
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubygems_version: 3.3.3
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: network components
185
+ test_files: []