pg_objects 0.4.3 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +116 -44
- data/.travis.yml +3 -5
- data/Gemfile.lock +71 -68
- data/lib/pg_objects/version.rb +1 -1
- data/pg_objects.gemspec +3 -3
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ddfcca2d57a3f844196267428b7ec3dd68995eed43596e4af5238a7c55d60e6
|
4
|
+
data.tar.gz: 4aaf544bb2807e4f8d38f2c603c014ed23b2e00200068d516bac8997da52df04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1addbcddfba9207d0cbdf3dec5ca8a67d6eb038ae5d54ff96f85f417bb7b52d09c15d82780766a55f9ed5c3461cd87f08a613a30bfed211fe5fde7d470ad18
|
7
|
+
data.tar.gz: 97d6cf0532922ae392b6fcda8265d1aaf34b0cd795b7fb91b0dfd329ce2534c3b08a2168afce7c589662c78805c0ab97107dcfa9a8526d977ebc5ad85dd91a5f
|
data/.rubocop.yml
CHANGED
@@ -7,7 +7,7 @@ inherit_from: .rubocop_todo.yml
|
|
7
7
|
|
8
8
|
AllCops:
|
9
9
|
# EnabledByDefault: true
|
10
|
-
TargetRubyVersion: 2.
|
10
|
+
TargetRubyVersion: 2.5
|
11
11
|
# Cop names are not d§splayed in offense messages by default. Change behavior
|
12
12
|
# by overriding DisplayCopNames, or by giving the -D/--display-cop-names
|
13
13
|
# option.
|
@@ -22,6 +22,14 @@ Bundler/OrderedGems:
|
|
22
22
|
TreatCommentsAsGroupSeparators: true
|
23
23
|
|
24
24
|
# Layout ######################################################################
|
25
|
+
|
26
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
27
|
+
Enabled: true
|
28
|
+
|
29
|
+
# Limit lines to 80 characters.
|
30
|
+
Layout/LineLength:
|
31
|
+
Max: 140
|
32
|
+
|
25
33
|
# Checks that the closing brace in an array literal is either on the same line
|
26
34
|
# as the last array element, or a new line.
|
27
35
|
Layout/MultilineArrayBraceLayout:
|
@@ -45,13 +53,16 @@ Layout/MultilineOperationIndentation:
|
|
45
53
|
Enabled: true
|
46
54
|
EnforcedStyle: indented
|
47
55
|
|
56
|
+
Layout/SpaceAroundMethodCallOperator:
|
57
|
+
Enabled: true
|
58
|
+
|
48
59
|
# Checks for padding/surrounding spaces inside string interpolation.
|
49
60
|
Layout/SpaceInsideStringInterpolation:
|
50
61
|
EnforcedStyle: no_space
|
51
62
|
Enabled: true
|
52
63
|
|
53
64
|
# Naming ######################################################################
|
54
|
-
Naming/
|
65
|
+
Naming/MethodParameterName:
|
55
66
|
MinNameLength: 2
|
56
67
|
|
57
68
|
# Use the configured style when naming variables.
|
@@ -59,44 +70,6 @@ Naming/VariableName:
|
|
59
70
|
EnforcedStyle: snake_case
|
60
71
|
Enabled: true
|
61
72
|
|
62
|
-
# Style #######################################################################
|
63
|
-
# Use alias_method instead of alias.
|
64
|
-
Style/Alias:
|
65
|
-
EnforcedStyle: prefer_alias_method
|
66
|
-
Enabled: true
|
67
|
-
|
68
|
-
Style/AsciiComments:
|
69
|
-
Enabled: false
|
70
|
-
StyleGuide: http://relaxed.ruby.style/#styleasciicomments
|
71
|
-
|
72
|
-
# Checks if there is a magic comment to enforce string literals
|
73
|
-
Style/FrozenStringLiteralComment:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Style/RegexpLiteral:
|
77
|
-
EnforcedStyle: mixed
|
78
|
-
Enabled: false
|
79
|
-
|
80
|
-
# Checks for proper usage of fail and raise.
|
81
|
-
Style/SignalException:
|
82
|
-
EnforcedStyle: only_raise
|
83
|
-
Enabled: true
|
84
|
-
|
85
|
-
# Check for the usage of parentheses around stabby lambda arguments.
|
86
|
-
Style/StabbyLambdaParentheses:
|
87
|
-
EnforcedStyle: require_parentheses
|
88
|
-
Enabled: true
|
89
|
-
|
90
|
-
# Checks if configured preferred methods are used over non-preferred.
|
91
|
-
Style/StringMethods:
|
92
|
-
PreferredMethods:
|
93
|
-
intern: to_sym
|
94
|
-
Enabled: true
|
95
|
-
|
96
|
-
# Checks for %q/%Q when single quotes or double quotes would do.
|
97
|
-
Style/UnneededPercentQ:
|
98
|
-
Enabled: false
|
99
|
-
|
100
73
|
# Metrics #####################################################################
|
101
74
|
|
102
75
|
# A calculated magnitude based on number of assignments,
|
@@ -124,10 +97,6 @@ Metrics/ClassLength:
|
|
124
97
|
# Enabled: true
|
125
98
|
# Max: 11
|
126
99
|
|
127
|
-
# Limit lines to 80 characters.
|
128
|
-
Metrics/LineLength:
|
129
|
-
Max: 140
|
130
|
-
|
131
100
|
# Avoid methods longer than 10 lines of code.
|
132
101
|
# Metrics/MethodLength:
|
133
102
|
# Max: 50
|
@@ -148,11 +117,27 @@ Metrics/ModuleLength:
|
|
148
117
|
|
149
118
|
# Lint ########################################################################
|
150
119
|
|
120
|
+
Lint/DeprecatedOpenSSLConstant:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
Lint/DuplicateElsifCondition:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
Lint/MixedRegexpCaptureTypes:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
Lint/RaiseException:
|
130
|
+
Enabled: true
|
131
|
+
|
151
132
|
# This cop looks for use of the same name as outer local variables
|
152
133
|
# for block arguments or block local variables.
|
153
134
|
Lint/ShadowingOuterLocalVariable:
|
154
135
|
Enabled: false
|
155
136
|
|
137
|
+
Lint/StructNewOverride:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
|
156
141
|
# Rails #######################################################################
|
157
142
|
|
158
143
|
# Enables Rails cops.
|
@@ -203,5 +188,92 @@ RSpec/NotToNot:
|
|
203
188
|
EnforcedStyle: not_to
|
204
189
|
Enabled: true
|
205
190
|
|
191
|
+
# Style #######################################################################
|
192
|
+
|
193
|
+
Style/AccessorGrouping:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
# Use alias_method instead of alias.
|
197
|
+
Style/Alias:
|
198
|
+
EnforcedStyle: prefer_alias_method
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Style/ArrayCoercion:
|
202
|
+
Enabled: true
|
203
|
+
|
204
|
+
Style/AsciiComments:
|
205
|
+
Enabled: false
|
206
|
+
StyleGuide: http://relaxed.ruby.style/#styleasciicomments
|
207
|
+
|
208
|
+
Style/BisectedAttrAccessor:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Style/CaseLikeIf:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Style/ExponentialNotation:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
# Checks if there is a magic comment to enforce string literals
|
218
|
+
Style/FrozenStringLiteralComment:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
Style/HashAsLastArrayItem:
|
222
|
+
Enabled: true
|
223
|
+
|
224
|
+
Style/HashEachMethods:
|
225
|
+
Enabled: true
|
226
|
+
|
227
|
+
Style/HashLikeCase:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
Style/HashTransformKeys:
|
231
|
+
Enabled: true
|
232
|
+
|
233
|
+
Style/HashTransformValues:
|
234
|
+
Enabled: true
|
235
|
+
|
206
236
|
Style/IfUnlessModifier:
|
207
237
|
Enabled: false
|
238
|
+
|
239
|
+
Style/RedundantAssignment:
|
240
|
+
Enabled: true
|
241
|
+
|
242
|
+
Style/RedundantFetchBlock:
|
243
|
+
Enabled: true
|
244
|
+
|
245
|
+
Style/RedundantFileExtensionInRequire:
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Style/RedundantRegexpCharacterClass:
|
249
|
+
Enabled: true
|
250
|
+
|
251
|
+
Style/RedundantRegexpEscape:
|
252
|
+
Enabled: true
|
253
|
+
|
254
|
+
Style/RegexpLiteral:
|
255
|
+
EnforcedStyle: mixed
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
# Checks for proper usage of fail and raise.
|
259
|
+
Style/SignalException:
|
260
|
+
EnforcedStyle: only_raise
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
# Check for the usage of parentheses around stabby lambda arguments.
|
264
|
+
Style/StabbyLambdaParentheses:
|
265
|
+
EnforcedStyle: require_parentheses
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
# Checks if configured preferred methods are used over non-preferred.
|
269
|
+
Style/StringMethods:
|
270
|
+
PreferredMethods:
|
271
|
+
intern: to_sym
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
# Checks for %q/%Q when single quotes or double quotes would do.
|
275
|
+
Style/RedundantPercentQ:
|
276
|
+
Enabled: false
|
277
|
+
|
278
|
+
Style/SlicingWithRange:
|
279
|
+
Enabled: true
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,110 +1,113 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pg_objects (0.
|
5
|
-
activerecord (>= 4, <
|
4
|
+
pg_objects (0.5.5)
|
5
|
+
activerecord (>= 4, < 7)
|
6
6
|
pg_query (~> 1)
|
7
|
-
railties (>= 4, <
|
7
|
+
railties (>= 4, < 7)
|
8
8
|
rake-hooks (~> 1)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (
|
14
|
-
actionview (=
|
15
|
-
activesupport (=
|
16
|
-
rack (~> 2.0)
|
13
|
+
actionpack (6.0.3.2)
|
14
|
+
actionview (= 6.0.3.2)
|
15
|
+
activesupport (= 6.0.3.2)
|
16
|
+
rack (~> 2.0, >= 2.0.8)
|
17
17
|
rack-test (>= 0.6.3)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
20
|
-
actionview (
|
21
|
-
activesupport (=
|
19
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
20
|
+
actionview (6.0.3.2)
|
21
|
+
activesupport (= 6.0.3.2)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubi (~> 1.4)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
|
-
rails-html-sanitizer (~> 1.
|
26
|
-
activemodel (
|
27
|
-
activesupport (=
|
28
|
-
activerecord (
|
29
|
-
activemodel (=
|
30
|
-
activesupport (=
|
31
|
-
|
32
|
-
activesupport (5.2.2)
|
25
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
26
|
+
activemodel (6.0.3.2)
|
27
|
+
activesupport (= 6.0.3.2)
|
28
|
+
activerecord (6.0.3.2)
|
29
|
+
activemodel (= 6.0.3.2)
|
30
|
+
activesupport (= 6.0.3.2)
|
31
|
+
activesupport (6.0.3.2)
|
33
32
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
34
33
|
i18n (>= 0.7, < 2)
|
35
34
|
minitest (~> 5.1)
|
36
35
|
tzinfo (~> 1.1)
|
37
|
-
|
38
|
-
ast (2.4.
|
39
|
-
builder (3.2.
|
40
|
-
byebug (
|
41
|
-
concurrent-ruby (1.1.
|
42
|
-
crass (1.0.
|
43
|
-
diff-lcs (1.
|
44
|
-
erubi (1.
|
45
|
-
i18n (1.3
|
36
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
37
|
+
ast (2.4.1)
|
38
|
+
builder (3.2.4)
|
39
|
+
byebug (11.1.3)
|
40
|
+
concurrent-ruby (1.1.6)
|
41
|
+
crass (1.0.6)
|
42
|
+
diff-lcs (1.4.4)
|
43
|
+
erubi (1.9.0)
|
44
|
+
i18n (1.8.3)
|
46
45
|
concurrent-ruby (~> 1.0)
|
47
|
-
|
48
|
-
loofah (2.2.3)
|
46
|
+
loofah (2.6.0)
|
49
47
|
crass (~> 1.0.2)
|
50
48
|
nokogiri (>= 1.5.9)
|
51
|
-
method_source (0.
|
49
|
+
method_source (1.0.0)
|
52
50
|
mini_portile2 (2.4.0)
|
53
|
-
minitest (5.
|
54
|
-
nokogiri (1.
|
51
|
+
minitest (5.14.1)
|
52
|
+
nokogiri (1.10.10)
|
55
53
|
mini_portile2 (~> 2.4.0)
|
56
|
-
parallel (1.
|
57
|
-
parser (2.
|
58
|
-
ast (~> 2.4.
|
59
|
-
pg_query (1.
|
60
|
-
|
61
|
-
rack (2.0.6)
|
54
|
+
parallel (1.19.2)
|
55
|
+
parser (2.7.1.4)
|
56
|
+
ast (~> 2.4.1)
|
57
|
+
pg_query (1.2.0)
|
58
|
+
rack (2.2.3)
|
62
59
|
rack-test (1.1.0)
|
63
60
|
rack (>= 1.0, < 3)
|
64
61
|
rails-dom-testing (2.0.3)
|
65
62
|
activesupport (>= 4.2.0)
|
66
63
|
nokogiri (>= 1.6)
|
67
|
-
rails-html-sanitizer (1.0
|
68
|
-
loofah (~> 2.
|
69
|
-
railties (
|
70
|
-
actionpack (=
|
71
|
-
activesupport (=
|
64
|
+
rails-html-sanitizer (1.3.0)
|
65
|
+
loofah (~> 2.3)
|
66
|
+
railties (6.0.3.2)
|
67
|
+
actionpack (= 6.0.3.2)
|
68
|
+
activesupport (= 6.0.3.2)
|
72
69
|
method_source
|
73
70
|
rake (>= 0.8.7)
|
74
|
-
thor (>= 0.
|
71
|
+
thor (>= 0.20.3, < 2.0)
|
75
72
|
rainbow (3.0.0)
|
76
|
-
rake (
|
73
|
+
rake (13.0.1)
|
77
74
|
rake-hooks (1.2.3)
|
78
75
|
rake
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
rspec-
|
83
|
-
|
84
|
-
rspec-
|
85
|
-
rspec-
|
76
|
+
regexp_parser (1.7.1)
|
77
|
+
rexml (3.2.4)
|
78
|
+
rspec (3.9.0)
|
79
|
+
rspec-core (~> 3.9.0)
|
80
|
+
rspec-expectations (~> 3.9.0)
|
81
|
+
rspec-mocks (~> 3.9.0)
|
82
|
+
rspec-core (3.9.2)
|
83
|
+
rspec-support (~> 3.9.3)
|
84
|
+
rspec-expectations (3.9.2)
|
86
85
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
88
|
-
rspec-mocks (3.
|
86
|
+
rspec-support (~> 3.9.0)
|
87
|
+
rspec-mocks (3.9.1)
|
89
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
90
|
-
rspec-support (~> 3.
|
91
|
-
rspec-support (3.
|
92
|
-
rubocop (0.
|
93
|
-
jaro_winkler (~> 1.5.1)
|
89
|
+
rspec-support (~> 3.9.0)
|
90
|
+
rspec-support (3.9.3)
|
91
|
+
rubocop (0.88.0)
|
94
92
|
parallel (~> 1.10)
|
95
|
-
parser (>= 2.
|
96
|
-
powerpack (~> 0.1)
|
93
|
+
parser (>= 2.7.1.1)
|
97
94
|
rainbow (>= 2.2.2, < 4.0)
|
95
|
+
regexp_parser (>= 1.7)
|
96
|
+
rexml
|
97
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
98
98
|
ruby-progressbar (~> 1.7)
|
99
|
-
unicode-display_width (
|
100
|
-
rubocop-
|
101
|
-
|
102
|
-
|
103
|
-
|
99
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
100
|
+
rubocop-ast (0.1.0)
|
101
|
+
parser (>= 2.7.0.1)
|
102
|
+
rubocop-rspec (1.42.0)
|
103
|
+
rubocop (>= 0.87.0)
|
104
|
+
ruby-progressbar (1.10.1)
|
105
|
+
thor (1.0.1)
|
104
106
|
thread_safe (0.3.6)
|
105
|
-
tzinfo (1.2.
|
107
|
+
tzinfo (1.2.7)
|
106
108
|
thread_safe (~> 0.1)
|
107
|
-
unicode-display_width (1.
|
109
|
+
unicode-display_width (1.7.0)
|
110
|
+
zeitwerk (2.3.1)
|
108
111
|
|
109
112
|
PLATFORMS
|
110
113
|
ruby
|
@@ -119,4 +122,4 @@ DEPENDENCIES
|
|
119
122
|
rubocop-rspec
|
120
123
|
|
121
124
|
BUNDLED WITH
|
122
|
-
1.17.
|
125
|
+
1.17.3
|
data/lib/pg_objects/version.rb
CHANGED
data/pg_objects.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = %q(Simple manager for PostgreSQL objects like triggers and functions)
|
12
12
|
spec.homepage = 'https://github.com/marinazzio/pg_objects'
|
13
13
|
|
14
|
-
spec.required_ruby_version = '>= 2.
|
14
|
+
spec.required_ruby_version = '>= 2.5.0'
|
15
15
|
|
16
16
|
spec.metadata = {
|
17
17
|
'bug_tracker_uri' => 'https://github.com/marinazzio/pg_objects/issues',
|
@@ -44,9 +44,9 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
45
45
|
spec.require_paths = ['lib']
|
46
46
|
|
47
|
-
spec.add_dependency 'activerecord', '>= 4', '<
|
47
|
+
spec.add_dependency 'activerecord', '>= 4', '< 7'
|
48
48
|
spec.add_dependency 'pg_query', '~> 1'
|
49
|
-
spec.add_dependency 'railties', '>= 4', '<
|
49
|
+
spec.add_dependency 'railties', '>= 4', '< 7'
|
50
50
|
spec.add_dependency 'rake-hooks', '~> 1'
|
51
51
|
|
52
52
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Kiselyov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pg_query
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '4'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '7'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '4'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '7'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rake-hooks
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,15 +200,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
200
|
requirements:
|
201
201
|
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: 2.
|
203
|
+
version: 2.5.0
|
204
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
|
-
|
211
|
-
rubygems_version: 2.7.6
|
210
|
+
rubygems_version: 3.0.3
|
212
211
|
signing_key:
|
213
212
|
specification_version: 4
|
214
213
|
summary: Simple manager for PostgreSQL objects like triggers and functions
|