pg_objects 0.5.10 → 0.5.13

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: 51a197f34cda82ae96bec65d995a31318415dfa7cef33151c504bb2a96c26891
4
- data.tar.gz: f7ca8ffc563afcf354a09f25fbb2a54829894241fb8b659b2b8827fd2e840fe6
3
+ metadata.gz: a2f8e5b5fa144c919c181751d97e366a335c2940d48c3f5c48f9b2f6c74fde6f
4
+ data.tar.gz: f49c9369ddf525210a6b5efdfa55bb0e935a7fbd7ce0795561c679deb7178217
5
5
  SHA512:
6
- metadata.gz: a64191bb1a96723bbb5597e9c17c8bcbbf1fe2308f4dce4ecc3c2701a10b4457aec0262cd80f9dee7a1218258c85e294cd47f9e957dfd2000964b7e9e18d0c8f
7
- data.tar.gz: 0dfdede09c0e89f760e3011e6284bc86257c7f0615a8cc318b949ea98065ef1941263181e24d3824955619e54933dd7c2274bb9a99266e103b59a0aa20d8e741
6
+ metadata.gz: 64e6c9821ff222f420b7aaf25b06be8c217d1dc52a13998731643b4f1014a8b7dcb1186acacbd01a36eb0520f4b825cc1a059e6837b1e94487a36d96e0f7acfe
7
+ data.tar.gz: 2a4c54a6c984cbbf902d236ed8d9243d5e0a1bebbe98ed2bc2fc05e9d33533ac29ca9f291b848f080a9a4f648cd6774a72a635949367bd62d88374c11f4976a5
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.9
4
- - 2.6.7
5
- - 2.7.3
6
- - 3.0.1
3
+ - 2.6.10
4
+ - 2.7.6
5
+ - 3.0.4
6
+ - 3.1.2
7
7
  before_install: gem install bundler -v 1.16.2
8
8
  script:
9
9
  - bundle exec rspec spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pg_objects (0.5.10)
4
+ pg_objects (0.5.13)
5
5
  activerecord (>= 6.0.3.5, < 7)
6
6
  pg_query (~> 1)
7
7
  railties (>= 4, < 7)
@@ -10,25 +10,25 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (6.1.4.1)
14
- actionview (= 6.1.4.1)
15
- activesupport (= 6.1.4.1)
13
+ actionpack (6.1.6)
14
+ actionview (= 6.1.6)
15
+ activesupport (= 6.1.6)
16
16
  rack (~> 2.0, >= 2.0.9)
17
17
  rack-test (>= 0.6.3)
18
18
  rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
- actionview (6.1.4.1)
21
- activesupport (= 6.1.4.1)
20
+ actionview (6.1.6)
21
+ activesupport (= 6.1.6)
22
22
  builder (~> 3.1)
23
23
  erubi (~> 1.4)
24
24
  rails-dom-testing (~> 2.0)
25
25
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
- activemodel (6.1.4.1)
27
- activesupport (= 6.1.4.1)
28
- activerecord (6.1.4.1)
29
- activemodel (= 6.1.4.1)
30
- activesupport (= 6.1.4.1)
31
- activesupport (6.1.4.1)
26
+ activemodel (6.1.6)
27
+ activesupport (= 6.1.6)
28
+ activerecord (6.1.6)
29
+ activemodel (= 6.1.6)
30
+ activesupport (= 6.1.6)
31
+ activesupport (6.1.6)
32
32
  concurrent-ruby (~> 1.0, >= 1.0.2)
33
33
  i18n (>= 1.6, < 2)
34
34
  minitest (>= 5.1)
@@ -37,85 +37,82 @@ GEM
37
37
  ast (2.4.2)
38
38
  builder (3.2.4)
39
39
  byebug (11.1.3)
40
- concurrent-ruby (1.1.9)
40
+ concurrent-ruby (1.1.10)
41
41
  crass (1.0.6)
42
- diff-lcs (1.4.4)
42
+ diff-lcs (1.5.0)
43
43
  erubi (1.10.0)
44
- i18n (1.8.10)
44
+ i18n (1.10.0)
45
45
  concurrent-ruby (~> 1.0)
46
- loofah (2.12.0)
46
+ loofah (2.18.0)
47
47
  crass (~> 1.0.2)
48
48
  nokogiri (>= 1.5.9)
49
49
  method_source (1.0.0)
50
- mini_portile2 (2.6.1)
51
- minitest (5.14.4)
52
- nokogiri (1.12.3)
53
- mini_portile2 (~> 2.6.1)
50
+ minitest (5.16.0)
51
+ nokogiri (1.13.6-x86_64-linux)
54
52
  racc (~> 1.4)
55
- parallel (1.20.1)
56
- parser (3.0.2.0)
53
+ parallel (1.22.1)
54
+ parser (3.1.2.0)
57
55
  ast (~> 2.4.1)
58
56
  pg_query (1.3.0)
59
- racc (1.5.2)
60
- rack (2.2.3)
57
+ racc (1.6.0)
58
+ rack (2.2.3.1)
61
59
  rack-test (1.1.0)
62
60
  rack (>= 1.0, < 3)
63
61
  rails-dom-testing (2.0.3)
64
62
  activesupport (>= 4.2.0)
65
63
  nokogiri (>= 1.6)
66
- rails-html-sanitizer (1.4.2)
64
+ rails-html-sanitizer (1.4.3)
67
65
  loofah (~> 2.3)
68
- railties (6.1.4.1)
69
- actionpack (= 6.1.4.1)
70
- activesupport (= 6.1.4.1)
66
+ railties (6.1.6)
67
+ actionpack (= 6.1.6)
68
+ activesupport (= 6.1.6)
71
69
  method_source
72
- rake (>= 0.13)
70
+ rake (>= 12.2)
73
71
  thor (~> 1.0)
74
- rainbow (3.0.0)
72
+ rainbow (3.1.1)
75
73
  rake (13.0.6)
76
74
  rake-hooks (1.2.3)
77
75
  rake
78
- regexp_parser (2.1.1)
76
+ regexp_parser (2.5.0)
79
77
  rexml (3.2.5)
80
- rspec (3.10.0)
81
- rspec-core (~> 3.10.0)
82
- rspec-expectations (~> 3.10.0)
83
- rspec-mocks (~> 3.10.0)
84
- rspec-core (3.10.1)
85
- rspec-support (~> 3.10.0)
86
- rspec-expectations (3.10.1)
78
+ rspec (3.11.0)
79
+ rspec-core (~> 3.11.0)
80
+ rspec-expectations (~> 3.11.0)
81
+ rspec-mocks (~> 3.11.0)
82
+ rspec-core (3.11.0)
83
+ rspec-support (~> 3.11.0)
84
+ rspec-expectations (3.11.0)
87
85
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.10.0)
89
- rspec-mocks (3.10.2)
86
+ rspec-support (~> 3.11.0)
87
+ rspec-mocks (3.11.1)
90
88
  diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.10.0)
92
- rspec-support (3.10.2)
93
- rubocop (1.20.0)
89
+ rspec-support (~> 3.11.0)
90
+ rspec-support (3.11.0)
91
+ rubocop (1.30.1)
94
92
  parallel (~> 1.10)
95
- parser (>= 3.0.0.0)
93
+ parser (>= 3.1.0.0)
96
94
  rainbow (>= 2.2.2, < 4.0)
97
95
  regexp_parser (>= 1.8, < 3.0)
98
- rexml
99
- rubocop-ast (>= 1.9.1, < 2.0)
96
+ rexml (>= 3.2.5, < 4.0)
97
+ rubocop-ast (>= 1.18.0, < 2.0)
100
98
  ruby-progressbar (~> 1.7)
101
99
  unicode-display_width (>= 1.4.0, < 3.0)
102
- rubocop-ast (1.11.0)
103
- parser (>= 3.0.1.1)
104
- rubocop-rails (2.11.3)
100
+ rubocop-ast (1.18.0)
101
+ parser (>= 3.1.1.0)
102
+ rubocop-rails (2.15.0)
105
103
  activesupport (>= 4.2.0)
106
104
  rack (>= 1.1)
107
105
  rubocop (>= 1.7.0, < 2.0)
108
106
  rubocop-rake (0.6.0)
109
107
  rubocop (~> 1.0)
110
- rubocop-rspec (2.4.0)
111
- rubocop (~> 1.0)
112
- rubocop-ast (>= 1.1.0)
108
+ rubocop-rspec (2.11.1)
109
+ rubocop (~> 1.19)
113
110
  ruby-progressbar (1.11.0)
114
- thor (1.1.0)
111
+ thor (1.2.1)
115
112
  tzinfo (2.0.4)
116
113
  concurrent-ruby (~> 1.0)
117
- unicode-display_width (2.0.0)
118
- zeitwerk (2.4.2)
114
+ unicode-display_width (2.1.0)
115
+ zeitwerk (2.6.0)
119
116
 
120
117
  PLATFORMS
121
118
  ruby
@@ -9,17 +9,19 @@ module PgObjects
9
9
  # name_of_dependency: short or full name of object as well as object_name
10
10
  #
11
11
  class Parser
12
+ # rubocop: disable Style/WordArray
12
13
  ROUTES = [
13
14
  ['DefineStmt', 'defnames', 0, 'String', 'str'],
14
15
  ['CreateFunctionStmt', 'funcname', 0, 'String', 'str'],
15
- %w[CreateTrigStmt trigname],
16
- %w[CreateEventTrigStmt trigname],
17
- %w[CompositeTypeStmt typevar RangeVar relname],
18
- %w[ViewStmt view RangeVar relname],
16
+ ['CreateTrigStmt', 'trigname'],
17
+ ['CreateEventTrigStmt', 'trigname'],
18
+ ['CompositeTypeStmt', 'typevar', 'RangeVar', 'relname'],
19
+ ['ViewStmt', 'view', 'RangeVar', 'relname'],
19
20
  ['CreateConversionStmt', 'conversion_name', 0, 'String', 'str'],
20
- %w[CreateTableAsStmt into IntoClause rel RangeVar relname],
21
+ ['CreateTableAsStmt', 'into', 'IntoClause', 'rel', 'RangeVar', 'relname'],
21
22
  ['CreateOpClassStmt', 'opclassname', 0, 'String', 'str']
22
23
  ].freeze
24
+ # rubocop: enable Style/WordArray
23
25
 
24
26
  class << self
25
27
  def fetch_directives(text)
@@ -38,7 +40,7 @@ module PgObjects
38
40
  private
39
41
 
40
42
  def fetch_dependencies(text)
41
- text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split[1] if ln =~ /!depends_on/ }.compact
43
+ text.split("\n").grep(/^(--|#)!/).map { |ln| ln.split[1] if ln =~ /!depends_on/ }.compact
42
44
  end
43
45
  end
44
46
  end
@@ -1,3 +1,3 @@
1
1
  module PgObjects
2
- VERSION = '0.5.10'.freeze
2
+ VERSION = '0.5.13'.freeze
3
3
  end
data/pg_objects.gemspec CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  'bug_tracker_uri' => 'https://github.com/marinazzio/pg_objects/issues',
18
18
  'documentation_uri' => 'https://github.com/marinazzio/pg_objects/blob/master/README.md',
19
19
  'homepage_uri' => 'https://github.com/marinazzio/pg_objects',
20
+ 'rubygems_mfa_required' => 'true',
20
21
  'source_code_uri' => 'https://github.com/marinazzio/pg_objects'
21
22
  }
22
23
 
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.5.10
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Kiselyov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -214,6 +214,7 @@ metadata:
214
214
  bug_tracker_uri: https://github.com/marinazzio/pg_objects/issues
215
215
  documentation_uri: https://github.com/marinazzio/pg_objects/blob/master/README.md
216
216
  homepage_uri: https://github.com/marinazzio/pg_objects
217
+ rubygems_mfa_required: 'true'
217
218
  source_code_uri: https://github.com/marinazzio/pg_objects
218
219
  allowed_push_host: https://rubygems.org
219
220
  post_install_message: |2+
@@ -235,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
236
  - !ruby/object:Gem::Version
236
237
  version: '0'
237
238
  requirements: []
238
- rubygems_version: 3.1.4
239
+ rubygems_version: 3.3.7
239
240
  signing_key:
240
241
  specification_version: 4
241
242
  summary: Simple manager for PostgreSQL objects like triggers and functions