pgdump_scrambler 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +40 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +45 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +13 -2
- data/Gemfile.lock +148 -101
- data/README.md +1 -1
- data/Rakefile +5 -3
- data/bin/console +4 -3
- data/bin/pgdump-obfuscator +7 -3
- data/lib/config/table.rb +8 -10
- data/lib/pgdump_scrambler/config.rb +31 -30
- data/lib/pgdump_scrambler/dumper.rb +26 -18
- data/lib/pgdump_scrambler/railtie.rb +2 -1
- data/lib/pgdump_scrambler/s3_request.rb +31 -36
- data/lib/pgdump_scrambler/s3_uploader.rb +17 -8
- data/lib/pgdump_scrambler/utils.rb +21 -0
- data/lib/pgdump_scrambler/version.rb +2 -1
- data/lib/pgdump_scrambler.rb +6 -7
- data/lib/tasks/pgdump_scrambler_tasks.rake +8 -6
- data/pgdump_scrambler.gemspec +17 -24
- metadata +13 -67
- data/.rubocop_todo.yml +0 -173
- data/.ruby-version +0 -1
- data/.travis.yml +0 -5
metadata
CHANGED
@@ -1,84 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgdump_scrambler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shunichi Ikegami
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '13.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '13.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.12'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.12'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rails
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '7.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '7.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop
|
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
|
-
description: scramble pg_dump columns.
|
11
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Scramble pg_dump columns.
|
70
14
|
email:
|
71
15
|
- sike.tm@gmail.com
|
72
16
|
executables: []
|
73
17
|
extensions: []
|
74
18
|
extra_rdoc_files: []
|
75
19
|
files:
|
20
|
+
- ".github/workflows/main.yml"
|
76
21
|
- ".gitignore"
|
77
22
|
- ".rspec"
|
78
23
|
- ".rubocop.yml"
|
79
|
-
- ".rubocop_todo.yml"
|
80
|
-
- ".ruby-version"
|
81
|
-
- ".travis.yml"
|
82
24
|
- ".vscode/tasks.json"
|
83
25
|
- CHANGELOG.md
|
84
26
|
- Gemfile
|
@@ -96,6 +38,7 @@ files:
|
|
96
38
|
- lib/pgdump_scrambler/railtie.rb
|
97
39
|
- lib/pgdump_scrambler/s3_request.rb
|
98
40
|
- lib/pgdump_scrambler/s3_uploader.rb
|
41
|
+
- lib/pgdump_scrambler/utils.rb
|
99
42
|
- lib/pgdump_scrambler/version.rb
|
100
43
|
- lib/tasks/pgdump_scrambler_tasks.rake
|
101
44
|
- libexec/pgdump-obfuscator-darwin-amd64
|
@@ -107,7 +50,10 @@ homepage: https://github.com/shunichi/pgdump_scrambler
|
|
107
50
|
licenses:
|
108
51
|
- MIT
|
109
52
|
metadata:
|
110
|
-
|
53
|
+
homepage_uri: https://github.com/shunichi/pgdump_scrambler
|
54
|
+
source_code_uri: https://github.com/shunichi/pgdump_scrambler
|
55
|
+
changelog_uri: https://github.com/shunichi/pgdump_scrambler/blob/main/CHANGELOG.md
|
56
|
+
rubygems_mfa_required: 'true'
|
111
57
|
post_install_message:
|
112
58
|
rdoc_options: []
|
113
59
|
require_paths:
|
@@ -116,15 +62,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
62
|
requirements:
|
117
63
|
- - ">="
|
118
64
|
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
65
|
+
version: '3.0'
|
120
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
67
|
requirements:
|
122
68
|
- - ">="
|
123
69
|
- !ruby/object:Gem::Version
|
124
70
|
version: '0'
|
125
71
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.33
|
127
73
|
signing_key:
|
128
74
|
specification_version: 4
|
129
|
-
summary:
|
75
|
+
summary: Scramble pg_dump columns
|
130
76
|
test_files: []
|
data/.rubocop_todo.yml
DELETED
@@ -1,173 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-03-08 00:50:23 +0900 using RuboCop version 0.52.1.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
-
# Include: **/*.gemspec
|
13
|
-
Gemspec/OrderedDependencies:
|
14
|
-
Exclude:
|
15
|
-
- 'pgdump_scrambler.gemspec'
|
16
|
-
|
17
|
-
# Offense count: 5
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
Layout/EmptyLineAfterMagicComment:
|
20
|
-
Exclude:
|
21
|
-
- 'lib/pgdump_scrambler.rb'
|
22
|
-
- 'lib/pgdump_scrambler/railtie.rb'
|
23
|
-
- 'lib/pgdump_scrambler/table.rb'
|
24
|
-
- 'lib/pgdump_scrambler/version.rb'
|
25
|
-
- 'lib/tasks/pgdump_scrambler_tasks.rake'
|
26
|
-
|
27
|
-
# Offense count: 1
|
28
|
-
# Cop supports --auto-correct.
|
29
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
30
|
-
Layout/ExtraSpacing:
|
31
|
-
Exclude:
|
32
|
-
- 'pgdump_scrambler.gemspec'
|
33
|
-
|
34
|
-
# Offense count: 1
|
35
|
-
# Cop supports --auto-correct.
|
36
|
-
# Configuration parameters: EnforcedStyle.
|
37
|
-
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
38
|
-
Layout/IndentHeredoc:
|
39
|
-
Exclude:
|
40
|
-
- 'spec/pgdump_scrambler_spec.rb'
|
41
|
-
|
42
|
-
# Offense count: 1
|
43
|
-
# Cop supports --auto-correct.
|
44
|
-
# Configuration parameters: AllowForAlignment.
|
45
|
-
Layout/SpaceAroundOperators:
|
46
|
-
Exclude:
|
47
|
-
- 'pgdump_scrambler.gemspec'
|
48
|
-
|
49
|
-
# Offense count: 1
|
50
|
-
# Cop supports --auto-correct.
|
51
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
52
|
-
# SupportedStyles: space, no_space
|
53
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
54
|
-
Layout/SpaceInsideBlockBraces:
|
55
|
-
Exclude:
|
56
|
-
- 'Gemfile'
|
57
|
-
|
58
|
-
# Offense count: 2
|
59
|
-
# Cop supports --auto-correct.
|
60
|
-
# Configuration parameters: EnforcedStyle.
|
61
|
-
# SupportedStyles: final_newline, final_blank_line
|
62
|
-
Layout/TrailingBlankLines:
|
63
|
-
Exclude:
|
64
|
-
- 'lib/pgdump_scrambler/table.rb'
|
65
|
-
- 'lib/tasks/pgdump_scrambler_tasks.rake'
|
66
|
-
|
67
|
-
# Offense count: 4
|
68
|
-
# Cop supports --auto-correct.
|
69
|
-
Layout/TrailingWhitespace:
|
70
|
-
Exclude:
|
71
|
-
- 'lib/pgdump_scrambler/table.rb'
|
72
|
-
|
73
|
-
# Offense count: 1
|
74
|
-
# Configuration parameters: AllowSafeAssignment.
|
75
|
-
Lint/AssignmentInCondition:
|
76
|
-
Exclude:
|
77
|
-
- 'lib/pgdump_scrambler/table.rb'
|
78
|
-
|
79
|
-
# Offense count: 1
|
80
|
-
# Cop supports --auto-correct.
|
81
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
82
|
-
Lint/UnusedBlockArgument:
|
83
|
-
Exclude:
|
84
|
-
- 'lib/pgdump_scrambler/table.rb'
|
85
|
-
|
86
|
-
# Offense count: 1
|
87
|
-
# Cop supports --auto-correct.
|
88
|
-
Security/YAMLLoad:
|
89
|
-
Exclude:
|
90
|
-
- 'lib/pgdump_scrambler/table.rb'
|
91
|
-
|
92
|
-
# Offense count: 5
|
93
|
-
Style/Documentation:
|
94
|
-
Exclude:
|
95
|
-
- 'spec/**/*'
|
96
|
-
- 'test/**/*'
|
97
|
-
- 'lib/pgdump_scrambler.rb'
|
98
|
-
- 'lib/pgdump_scrambler/railtie.rb'
|
99
|
-
- 'lib/pgdump_scrambler/table.rb'
|
100
|
-
|
101
|
-
# Offense count: 6
|
102
|
-
# Cop supports --auto-correct.
|
103
|
-
# Configuration parameters: EnforcedStyle.
|
104
|
-
# SupportedStyles: when_needed, always, never
|
105
|
-
Style/FrozenStringLiteralComment:
|
106
|
-
Exclude:
|
107
|
-
- 'Gemfile'
|
108
|
-
- 'Rakefile'
|
109
|
-
- 'bin/console'
|
110
|
-
- 'pgdump_scrambler.gemspec'
|
111
|
-
- 'spec/pgdump_scrambler_spec.rb'
|
112
|
-
- 'spec/spec_helper.rb'
|
113
|
-
|
114
|
-
# Offense count: 1
|
115
|
-
# Cop supports --auto-correct.
|
116
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
117
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
118
|
-
Style/HashSyntax:
|
119
|
-
Exclude:
|
120
|
-
- 'Rakefile'
|
121
|
-
|
122
|
-
# Offense count: 1
|
123
|
-
# Cop supports --auto-correct.
|
124
|
-
Style/IfUnlessModifier:
|
125
|
-
Exclude:
|
126
|
-
- 'lib/pgdump_scrambler.rb'
|
127
|
-
|
128
|
-
# Offense count: 2
|
129
|
-
# Cop supports --auto-correct.
|
130
|
-
# Configuration parameters: PreferredDelimiters.
|
131
|
-
Style/PercentLiteralDelimiters:
|
132
|
-
Exclude:
|
133
|
-
- 'pgdump_scrambler.gemspec'
|
134
|
-
|
135
|
-
# Offense count: 1
|
136
|
-
# Cop supports --auto-correct.
|
137
|
-
Style/RescueModifier:
|
138
|
-
Exclude:
|
139
|
-
- 'lib/pgdump_scrambler/table.rb'
|
140
|
-
|
141
|
-
# Offense count: 32
|
142
|
-
# Cop supports --auto-correct.
|
143
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
144
|
-
# SupportedStyles: single_quotes, double_quotes
|
145
|
-
Style/StringLiterals:
|
146
|
-
Exclude:
|
147
|
-
- 'Gemfile'
|
148
|
-
- 'Rakefile'
|
149
|
-
- 'bin/console'
|
150
|
-
- 'lib/pgdump_scrambler.rb'
|
151
|
-
- 'lib/pgdump_scrambler/version.rb'
|
152
|
-
- 'pgdump_scrambler.gemspec'
|
153
|
-
- 'spec/spec_helper.rb'
|
154
|
-
|
155
|
-
# Offense count: 1
|
156
|
-
# Cop supports --auto-correct.
|
157
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
158
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
159
|
-
Style/TrailingCommaInLiteral:
|
160
|
-
Exclude:
|
161
|
-
- 'lib/pgdump_scrambler/table.rb'
|
162
|
-
|
163
|
-
# Offense count: 2
|
164
|
-
# Cop supports --auto-correct.
|
165
|
-
Style/UnneededPercentQ:
|
166
|
-
Exclude:
|
167
|
-
- 'pgdump_scrambler.gemspec'
|
168
|
-
|
169
|
-
# Offense count: 11
|
170
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
171
|
-
# URISchemes: http, https
|
172
|
-
Metrics/LineLength:
|
173
|
-
Max: 96
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.1.3
|