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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1440d84714eee23457350728cd639e7e3a61e789290a6919090664f21a9d02dd
4
- data.tar.gz: 6d2be5ba86e02703bb30c64d2a83ba02fc30b4b436ec940527ca96fe95d8edc2
3
+ metadata.gz: 2ddfcca2d57a3f844196267428b7ec3dd68995eed43596e4af5238a7c55d60e6
4
+ data.tar.gz: 4aaf544bb2807e4f8d38f2c603c014ed23b2e00200068d516bac8997da52df04
5
5
  SHA512:
6
- metadata.gz: 33fc09874bfe6313dd5fabd916cd41151a2ebe89ab6319fd93ccea96bedaae80fab7b7c2d150dcf2b9a31e3bcf0ce96f58f0b205d56cdc4d6e54112a06fd5fa7
7
- data.tar.gz: f50fa9789f8d44891ebbe4a6f5d9a351a1407f2268b0d1b7a2e1df97ff6739b45be64d81adf88324f10105e4d5788c55982e02d7c27641f4059cb3559dbd8ec5
6
+ metadata.gz: 9e1addbcddfba9207d0cbdf3dec5ca8a67d6eb038ae5d54ff96f85f417bb7b52d09c15d82780766a55f9ed5c3461cd87f08a613a30bfed211fe5fde7d470ad18
7
+ data.tar.gz: 97d6cf0532922ae392b6fcda8265d1aaf34b0cd795b7fb91b0dfd329ce2534c3b08a2168afce7c589662c78805c0ab97107dcfa9a8526d977ebc5ad85dd91a5f
@@ -7,7 +7,7 @@ inherit_from: .rubocop_todo.yml
7
7
 
8
8
  AllCops:
9
9
  # EnabledByDefault: true
10
- TargetRubyVersion: 2.3
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/UncommunicativeMethodParamName:
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
@@ -1,10 +1,8 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.3.8
5
- - 2.4.5
6
- - 2.5.3
7
- - 2.6.0
3
+ - 2.5.8
4
+ - 2.6.6
5
+ - 2.7.1
8
6
  before_install: gem install bundler -v 1.16.2
9
7
  script:
10
8
  - bundle exec rspec spec
@@ -1,110 +1,113 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pg_objects (0.4.3)
5
- activerecord (>= 4, < 6)
4
+ pg_objects (0.5.5)
5
+ activerecord (>= 4, < 7)
6
6
  pg_query (~> 1)
7
- railties (>= 4, < 6)
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 (5.2.2)
14
- actionview (= 5.2.2)
15
- activesupport (= 5.2.2)
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.2)
20
- actionview (5.2.2)
21
- activesupport (= 5.2.2)
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.0, >= 1.0.3)
26
- activemodel (5.2.2)
27
- activesupport (= 5.2.2)
28
- activerecord (5.2.2)
29
- activemodel (= 5.2.2)
30
- activesupport (= 5.2.2)
31
- arel (>= 9.0)
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
- arel (9.0.0)
38
- ast (2.4.0)
39
- builder (3.2.3)
40
- byebug (10.0.2)
41
- concurrent-ruby (1.1.4)
42
- crass (1.0.4)
43
- diff-lcs (1.3)
44
- erubi (1.8.0)
45
- i18n (1.3.0)
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
- jaro_winkler (1.5.1)
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.9.2)
49
+ method_source (1.0.0)
52
50
  mini_portile2 (2.4.0)
53
- minitest (5.11.3)
54
- nokogiri (1.9.1)
51
+ minitest (5.14.1)
52
+ nokogiri (1.10.10)
55
53
  mini_portile2 (~> 2.4.0)
56
- parallel (1.12.1)
57
- parser (2.5.3.0)
58
- ast (~> 2.4.0)
59
- pg_query (1.1.0)
60
- powerpack (0.1.2)
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.4)
68
- loofah (~> 2.2, >= 2.2.2)
69
- railties (5.2.2)
70
- actionpack (= 5.2.2)
71
- activesupport (= 5.2.2)
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.19.0, < 2.0)
71
+ thor (>= 0.20.3, < 2.0)
75
72
  rainbow (3.0.0)
76
- rake (12.3.2)
73
+ rake (13.0.1)
77
74
  rake-hooks (1.2.3)
78
75
  rake
79
- rspec (3.8.0)
80
- rspec-core (~> 3.8.0)
81
- rspec-expectations (~> 3.8.0)
82
- rspec-mocks (~> 3.8.0)
83
- rspec-core (3.8.0)
84
- rspec-support (~> 3.8.0)
85
- rspec-expectations (3.8.2)
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.8.0)
88
- rspec-mocks (3.8.0)
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.8.0)
91
- rspec-support (3.8.0)
92
- rubocop (0.61.1)
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.5, != 2.5.1.1)
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 (~> 1.4.0)
100
- rubocop-rspec (1.30.1)
101
- rubocop (>= 0.60.0)
102
- ruby-progressbar (1.10.0)
103
- thor (0.20.3)
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.5)
107
+ tzinfo (1.2.7)
106
108
  thread_safe (~> 0.1)
107
- unicode-display_width (1.4.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.2
125
+ 1.17.3
@@ -1,3 +1,3 @@
1
1
  module PgObjects
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.5.5'.freeze
3
3
  end
@@ -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.3.8'
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', '< 6'
47
+ spec.add_dependency 'activerecord', '>= 4', '< 7'
48
48
  spec.add_dependency 'pg_query', '~> 1'
49
- spec.add_dependency 'railties', '>= 4', '< 6'
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.3
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: 2018-12-26 00:00:00.000000000 Z
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: '6'
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: '6'
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: '6'
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: '6'
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.3.8
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
- rubyforge_project:
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