pg_easy_replicate 0.1.0

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: 183ef6099fbe9da9d5a472f59cdd1adb1a1a62dbc3d6280d0ecdf429fcf5e2d5
4
+ data.tar.gz: 5af07f7ec6714711eee12c5e1fd16a911248602dc585be0bb83979895d450afb
5
+ SHA512:
6
+ metadata.gz: 2fa2a8a4938fc55fae28be71724318a1237f95cb7de0a49590008ac469ec3b8f3641a4bd1e048a4c63a73a5aff4edbcf423509df68794bcc93280cee0ec75d6a
7
+ data.tar.gz: 927015aef583a0f095911fe5d37335825f528e17ff43e579abf0bc617f82f433d0f27413845f209c177d8c26e85220dadcee24ca00db8f453d8752800ee7abb2
data/.prettierignore ADDED
@@ -0,0 +1,4 @@
1
+ /spec/fixtures
2
+ /docs
3
+ /scripts
4
+ *.sql
data/.rspec ADDED
@@ -0,0 +1,5 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
4
+ --fail-fast
5
+ --exclude-pattern spec/lib/smoke_spec.rb
data/.rubocop.yml ADDED
@@ -0,0 +1,257 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-rake
4
+ - rubocop-performance
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Include
9
+ - Exclude
10
+ - AllowedMethods
11
+
12
+ AllCops:
13
+ NewCops: enable
14
+ Exclude:
15
+ - "**/.git/**/*"
16
+ - "**/node_modules/**/*"
17
+ - "**/Brewfile"
18
+ TargetRubyVersion: 2.7
19
+
20
+ Bundler/OrderedGems:
21
+ Include:
22
+ - "**/Gemfile"
23
+
24
+ Style/FrozenStringLiteralComment:
25
+ EnforcedStyle: always
26
+
27
+ Style/MutableConstant:
28
+ EnforcedStyle: literals
29
+
30
+ Style/MethodCallWithArgsParentheses:
31
+ Enabled: true
32
+ EnforcedStyle: require_parentheses
33
+ AllowedMethods:
34
+ - yield
35
+ - raise
36
+ - fail
37
+ - puts
38
+ - require
39
+ - require_relative
40
+ - render
41
+ - redirect_to
42
+ - head
43
+ - throw
44
+ # RSpec
45
+ - to
46
+ - not_to
47
+ - to_not
48
+ - and
49
+ - or
50
+ Exclude:
51
+ - "**/Gemfile"
52
+ - "**/db/migrate/*"
53
+ - "**/db/schema.rb"
54
+
55
+ Style/RedundantInitialize:
56
+ Enabled: false
57
+
58
+ Layout:
59
+ Enabled: false
60
+
61
+ Metrics:
62
+ Enabled: false
63
+
64
+ Naming/AccessorMethodName:
65
+ Enabled: false
66
+
67
+ Naming/MethodParameterName:
68
+ Enabled: false
69
+
70
+ Naming/PredicateName:
71
+ Enabled: false
72
+
73
+ Naming/VariableNumber:
74
+ Enabled: false
75
+
76
+ Style/AsciiComments:
77
+ Enabled: false
78
+
79
+ Style/BlockDelimiters:
80
+ Enabled: false
81
+
82
+ Style/CaseLikeIf:
83
+ Enabled: false
84
+
85
+ Style/ClassAndModuleChildren:
86
+ Enabled: false
87
+
88
+ Style/CommentAnnotation:
89
+ Enabled: false
90
+
91
+ Style/Documentation:
92
+ Enabled: false
93
+
94
+ Style/IfUnlessModifier:
95
+ Enabled: false
96
+
97
+ Style/Lambda:
98
+ Enabled: false
99
+
100
+ Style/ModuleFunction:
101
+ Enabled: false
102
+
103
+ Style/MultilineBlockChain:
104
+ Enabled: false
105
+
106
+ Style/NumericLiterals:
107
+ Enabled: false
108
+
109
+ Style/NumericPredicate:
110
+ Enabled: false
111
+
112
+ Style/ParallelAssignment:
113
+ Enabled: false
114
+
115
+ Style/PerlBackrefs:
116
+ Enabled: false
117
+
118
+ Style/QuotedSymbols:
119
+ EnforcedStyle: double_quotes
120
+ Enabled: false
121
+
122
+ Style/RaiseArgs:
123
+ Enabled: false
124
+
125
+ Style/RescueStandardError:
126
+ Enabled: false
127
+
128
+ Style/SingleArgumentDig:
129
+ Enabled: false
130
+
131
+ Style/StringLiterals:
132
+ EnforcedStyle: double_quotes
133
+ Enabled: false
134
+
135
+ Style/StringLiteralsInInterpolation:
136
+ Enabled: false
137
+
138
+ Style/SymbolArray:
139
+ Enabled: false
140
+
141
+ Style/TrailingCommaInArguments:
142
+ Enabled: false
143
+
144
+ Style/TrailingCommaInArrayLiteral:
145
+ Enabled: false
146
+ EnforcedStyleForMultiline: consistent_comma
147
+
148
+ Style/TrailingCommaInHashLiteral:
149
+ Enabled: false
150
+
151
+ Style/TrailingUnderscoreVariable:
152
+ Enabled: false
153
+
154
+ Style/ZeroLengthPredicate:
155
+ Enabled: false
156
+
157
+ Style/DateTime:
158
+ Enabled: true
159
+
160
+ RSpec/ExpectChange:
161
+ EnforcedStyle: block
162
+
163
+ Gemspec/RequireMFA:
164
+ # Our Gemspec files are internal, MFA isn't needed
165
+ Enabled: false
166
+
167
+ # Temporary Rubocop exclusions
168
+ Style/OpenStructUse:
169
+ Enabled: false
170
+
171
+ # Ruby 3 migration exclusions
172
+ Style/HashSyntax:
173
+ Enabled: false
174
+
175
+ Naming/BlockForwarding:
176
+ Enabled: false
177
+
178
+ Lint/RedundantDirGlobSort:
179
+ Enabled: false
180
+
181
+ RSpec/ExampleLength:
182
+ Enabled: false
183
+
184
+ RSpec/MultipleExpectations:
185
+ Enabled: false
186
+
187
+ RSpec/VerifiedDoubles:
188
+ Enabled: false
189
+
190
+ RSpec/ContextWording:
191
+ Enabled: false
192
+
193
+ RSpec/AnyInstance:
194
+ Enabled: false
195
+
196
+ RSpec/MessageSpies:
197
+ Enabled: false
198
+
199
+ RSpec/RepeatedDescription:
200
+ Enabled: false
201
+
202
+ RSpec/RepeatedExample:
203
+ Enabled: false
204
+
205
+ RSpec/HookArgument:
206
+ Enabled: false
207
+
208
+ RSpec/DescribeClass:
209
+ Enabled: false
210
+
211
+ RSpec/DescribedClass:
212
+ Enabled: false
213
+
214
+ RSpec/FilePath:
215
+ Enabled: false
216
+
217
+ RSpec/IdenticalEqualityAssertion:
218
+ Enabled: false
219
+
220
+ RSpec/InstanceVariable:
221
+ Enabled: false
222
+
223
+ RSpec/MissingExampleGroupArgument:
224
+ Enabled: false
225
+
226
+ RSpec/MultipleDescribes:
227
+ Enabled: false
228
+
229
+ RSpec/NestedGroups:
230
+ Enabled: false
231
+
232
+ RSpec/PredicateMatcher:
233
+ Enabled: false
234
+
235
+ RSpec/Rails/HttpStatus:
236
+ Enabled: false
237
+
238
+ RSpec/RepeatedExampleGroupDescription:
239
+ Enabled: false
240
+
241
+ RSpec/StubbedMock:
242
+ Enabled: false
243
+
244
+ Lint/UnusedMethodArgument:
245
+ Enabled: false
246
+
247
+ Lint/MissingSuper:
248
+ Enabled: false
249
+
250
+ RSpec/NoExpectationExample:
251
+ Enabled: false
252
+
253
+ Style/AccessorGrouping:
254
+ Enabled: false
255
+
256
+ Style/FormatStringToken:
257
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.3
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## [0.1.0] - 2023-06-19
2
+
3
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ - Demonstrating empathy and kindness toward other people
14
+ - Being respectful of differing opinions, viewpoints, and experiences
15
+ - Giving and gracefully accepting constructive feedback
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ - Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ - The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ - Trolling, insulting or derogatory comments, and personal or political attacks
24
+ - Public or private harassment
25
+ - Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ - Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at shayonj@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Dockerfile ADDED
@@ -0,0 +1,5 @@
1
+ FROM ruby:3.0
2
+
3
+ ARG VERSION=0.1.0
4
+
5
+ RUN gem install pg_easy_replicate -v $VERSION
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in pg_easy_replicate.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,117 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pg_easy_replicate (0.1.0)
5
+ lockbox (~> 1.2.0)
6
+ ougai (~> 2.0.0)
7
+ pg (~> 1.5.3)
8
+ sequel (~> 5.69.0)
9
+ thor (~> 1.2.2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ ast (2.4.2)
15
+ coderay (1.1.3)
16
+ diff-lcs (1.5.0)
17
+ haml (6.1.1)
18
+ temple (>= 0.8.2)
19
+ thor
20
+ tilt
21
+ json (2.6.3)
22
+ lockbox (1.2.0)
23
+ method_source (1.0.0)
24
+ oj (3.14.3)
25
+ ougai (2.0.0)
26
+ oj (~> 3.10)
27
+ parallel (1.23.0)
28
+ parser (3.2.2.1)
29
+ ast (~> 2.4.1)
30
+ pg (1.5.3)
31
+ prettier_print (1.2.1)
32
+ pry (0.14.2)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
35
+ rainbow (3.1.1)
36
+ rake (13.0.6)
37
+ rbs (3.1.0)
38
+ regexp_parser (2.8.0)
39
+ rexml (3.2.5)
40
+ rspec (3.12.0)
41
+ rspec-core (~> 3.12.0)
42
+ rspec-expectations (~> 3.12.0)
43
+ rspec-mocks (~> 3.12.0)
44
+ rspec-core (3.12.2)
45
+ rspec-support (~> 3.12.0)
46
+ rspec-expectations (3.12.3)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.12.0)
49
+ rspec-mocks (3.12.5)
50
+ diff-lcs (>= 1.2.0, < 2.0)
51
+ rspec-support (~> 3.12.0)
52
+ rspec-support (3.12.0)
53
+ rubocop (1.51.0)
54
+ json (~> 2.3)
55
+ parallel (~> 1.10)
56
+ parser (>= 3.2.0.0)
57
+ rainbow (>= 2.2.2, < 4.0)
58
+ regexp_parser (>= 1.8, < 3.0)
59
+ rexml (>= 3.2.5, < 4.0)
60
+ rubocop-ast (>= 1.28.0, < 2.0)
61
+ ruby-progressbar (~> 1.7)
62
+ unicode-display_width (>= 2.4.0, < 3.0)
63
+ rubocop-ast (1.28.1)
64
+ parser (>= 3.2.1.0)
65
+ rubocop-capybara (2.18.0)
66
+ rubocop (~> 1.41)
67
+ rubocop-factory_bot (2.23.1)
68
+ rubocop (~> 1.33)
69
+ rubocop-packaging (0.5.2)
70
+ rubocop (>= 1.33, < 2.0)
71
+ rubocop-performance (1.18.0)
72
+ rubocop (>= 1.7.0, < 2.0)
73
+ rubocop-ast (>= 0.4.0)
74
+ rubocop-rake (0.6.0)
75
+ rubocop (~> 1.0)
76
+ rubocop-rspec (2.22.0)
77
+ rubocop (~> 1.33)
78
+ rubocop-capybara (~> 2.17)
79
+ rubocop-factory_bot (~> 2.22)
80
+ ruby-progressbar (1.13.0)
81
+ sequel (5.69.0)
82
+ syntax_tree (6.1.1)
83
+ prettier_print (>= 1.2.0)
84
+ syntax_tree-haml (4.0.3)
85
+ haml (>= 5.2)
86
+ prettier_print (>= 1.2.1)
87
+ syntax_tree (>= 6.0.0)
88
+ syntax_tree-rbs (1.0.0)
89
+ prettier_print
90
+ rbs
91
+ syntax_tree (>= 2.0.1)
92
+ temple (0.10.1)
93
+ thor (1.2.2)
94
+ tilt (2.1.0)
95
+ unicode-display_width (2.4.2)
96
+
97
+ PLATFORMS
98
+ arm64-darwin-22
99
+ x86_64-linux
100
+
101
+ DEPENDENCIES
102
+ pg_easy_replicate!
103
+ prettier_print
104
+ pry
105
+ rake
106
+ rspec
107
+ rubocop
108
+ rubocop-packaging
109
+ rubocop-performance
110
+ rubocop-rake
111
+ rubocop-rspec
112
+ syntax_tree
113
+ syntax_tree-haml
114
+ syntax_tree-rbs
115
+
116
+ BUNDLED WITH
117
+ 2.4.12
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Shayon Mukherjee
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
13
+ all 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
21
+ THE SOFTWARE.