pg_objects 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -7
- data/.travis.yml +4 -3
- data/Gemfile.lock +40 -31
- data/lib/pg_objects/logger.rb +2 -2
- data/lib/pg_objects/manager.rb +1 -1
- data/lib/pg_objects/parser.rb +1 -1
- data/lib/pg_objects/version.rb +1 -1
- data/pg_objects.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fa8812d6afca180c1d31c4b968097655975ac6e09ce558dd161e1729ef76363
|
4
|
+
data.tar.gz: 2c99244628c59a1550aa4bd1c4c33ded80a943452993f3e8f4fc4b6bbecf40c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b075184b7b644f8574d8dc4c6a459860dd6f90f1db4e49232095b776f65b6ba71a76a04b168efdf30455c85e86927122f92077dc4b8b0f7ba5d76aa9e6c1405
|
7
|
+
data.tar.gz: f4c58b5fe56c2c5f1c165022f9939a614d1e66b3e2c458fd037f534abd4ab12fdd5cb62f6277f2f390168966782868c5b651be11bfc7e96e7f82ed441f883b67
|
data/.rubocop.yml
CHANGED
@@ -17,6 +17,8 @@ AllCops:
|
|
17
17
|
# -S/--display-style-guide option.
|
18
18
|
DisplayStyleGuide: false
|
19
19
|
|
20
|
+
NewCops: enable
|
21
|
+
|
20
22
|
# Gems in consecutive lines should be alphabetically sorted
|
21
23
|
Bundler/OrderedGems:
|
22
24
|
TreatCommentsAsGroupSeparators: true
|
@@ -137,13 +139,6 @@ Lint/ShadowingOuterLocalVariable:
|
|
137
139
|
Lint/StructNewOverride:
|
138
140
|
Enabled: true
|
139
141
|
|
140
|
-
|
141
|
-
# Rails #######################################################################
|
142
|
-
|
143
|
-
# Enables Rails cops.
|
144
|
-
Rails:
|
145
|
-
Enabled: false
|
146
|
-
|
147
142
|
# RSpec #######################################################################
|
148
143
|
|
149
144
|
# Checks for long example.
|
@@ -179,6 +174,9 @@ RSpec/ImplicitSubject:
|
|
179
174
|
RSpec/LeadingSubject:
|
180
175
|
Enabled: false
|
181
176
|
|
177
|
+
RSpec/MultipleMemoizedHelpers:
|
178
|
+
Enabled: false
|
179
|
+
|
182
180
|
# Checks for explicitly referenced test subjects.
|
183
181
|
RSpec/NamedSubject:
|
184
182
|
Enabled: false
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pg_objects (0.5.
|
4
|
+
pg_objects (0.5.7)
|
5
5
|
activerecord (>= 6.0.3.5, < 7)
|
6
6
|
pg_query (~> 1)
|
7
7
|
railties (>= 4, < 7)
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
minitest (>= 5.1)
|
35
35
|
tzinfo (~> 2.0)
|
36
36
|
zeitwerk (~> 2.3)
|
37
|
-
ast (2.4.
|
37
|
+
ast (2.4.2)
|
38
38
|
builder (3.2.4)
|
39
39
|
byebug (11.1.3)
|
40
40
|
concurrent-ruby (1.1.8)
|
@@ -43,15 +43,15 @@ GEM
|
|
43
43
|
erubi (1.10.0)
|
44
44
|
i18n (1.8.10)
|
45
45
|
concurrent-ruby (~> 1.0)
|
46
|
-
loofah (2.9.
|
46
|
+
loofah (2.9.1)
|
47
47
|
crass (~> 1.0.2)
|
48
48
|
nokogiri (>= 1.5.9)
|
49
49
|
method_source (1.0.0)
|
50
50
|
minitest (5.14.4)
|
51
|
-
nokogiri (1.11.
|
51
|
+
nokogiri (1.11.3-x86_64-darwin)
|
52
52
|
racc (~> 1.4)
|
53
|
-
parallel (1.
|
54
|
-
parser (
|
53
|
+
parallel (1.20.1)
|
54
|
+
parser (3.0.1.0)
|
55
55
|
ast (~> 2.4.1)
|
56
56
|
pg_query (1.3.0)
|
57
57
|
racc (1.5.2)
|
@@ -70,42 +70,49 @@ GEM
|
|
70
70
|
rake (>= 0.8.7)
|
71
71
|
thor (~> 1.0)
|
72
72
|
rainbow (3.0.0)
|
73
|
-
rake (13.0.
|
73
|
+
rake (13.0.3)
|
74
74
|
rake-hooks (1.2.3)
|
75
75
|
rake
|
76
|
-
regexp_parser (1.
|
77
|
-
rexml (3.2.
|
78
|
-
rspec (3.
|
79
|
-
rspec-core (~> 3.
|
80
|
-
rspec-expectations (~> 3.
|
81
|
-
rspec-mocks (~> 3.
|
82
|
-
rspec-core (3.
|
83
|
-
rspec-support (~> 3.
|
84
|
-
rspec-expectations (3.
|
76
|
+
regexp_parser (2.1.1)
|
77
|
+
rexml (3.2.5)
|
78
|
+
rspec (3.10.0)
|
79
|
+
rspec-core (~> 3.10.0)
|
80
|
+
rspec-expectations (~> 3.10.0)
|
81
|
+
rspec-mocks (~> 3.10.0)
|
82
|
+
rspec-core (3.10.1)
|
83
|
+
rspec-support (~> 3.10.0)
|
84
|
+
rspec-expectations (3.10.1)
|
85
85
|
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.
|
87
|
-
rspec-mocks (3.
|
86
|
+
rspec-support (~> 3.10.0)
|
87
|
+
rspec-mocks (3.10.2)
|
88
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
89
|
-
rspec-support (~> 3.
|
90
|
-
rspec-support (3.
|
91
|
-
rubocop (
|
89
|
+
rspec-support (~> 3.10.0)
|
90
|
+
rspec-support (3.10.2)
|
91
|
+
rubocop (1.12.1)
|
92
92
|
parallel (~> 1.10)
|
93
|
-
parser (>=
|
93
|
+
parser (>= 3.0.0.0)
|
94
94
|
rainbow (>= 2.2.2, < 4.0)
|
95
|
-
regexp_parser (>= 1.
|
95
|
+
regexp_parser (>= 1.8, < 3.0)
|
96
96
|
rexml
|
97
|
-
rubocop-ast (>=
|
97
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
98
98
|
ruby-progressbar (~> 1.7)
|
99
|
-
unicode-display_width (>= 1.4.0, <
|
100
|
-
rubocop-ast (
|
101
|
-
parser (>= 2.7.
|
102
|
-
rubocop-
|
103
|
-
|
104
|
-
|
99
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
100
|
+
rubocop-ast (1.4.1)
|
101
|
+
parser (>= 2.7.1.5)
|
102
|
+
rubocop-rails (2.9.1)
|
103
|
+
activesupport (>= 4.2.0)
|
104
|
+
rack (>= 1.1)
|
105
|
+
rubocop (>= 0.90.0, < 2.0)
|
106
|
+
rubocop-rake (0.5.1)
|
107
|
+
rubocop
|
108
|
+
rubocop-rspec (2.2.0)
|
109
|
+
rubocop (~> 1.0)
|
110
|
+
rubocop-ast (>= 1.1.0)
|
111
|
+
ruby-progressbar (1.11.0)
|
105
112
|
thor (1.1.0)
|
106
113
|
tzinfo (2.0.4)
|
107
114
|
concurrent-ruby (~> 1.0)
|
108
|
-
unicode-display_width (
|
115
|
+
unicode-display_width (2.0.0)
|
109
116
|
zeitwerk (2.4.2)
|
110
117
|
|
111
118
|
PLATFORMS
|
@@ -118,6 +125,8 @@ DEPENDENCIES
|
|
118
125
|
rake
|
119
126
|
rspec
|
120
127
|
rubocop
|
128
|
+
rubocop-rails
|
129
|
+
rubocop-rake
|
121
130
|
rubocop-rspec
|
122
131
|
|
123
132
|
BUNDLED WITH
|
data/lib/pg_objects/logger.rb
CHANGED
@@ -2,11 +2,11 @@ module PgObjects
|
|
2
2
|
##
|
3
3
|
# Console output
|
4
4
|
#
|
5
|
-
# Pass +true+ to constructor to suppress output
|
5
|
+
# Pass +silent: true+ to constructor to suppress output
|
6
6
|
class Logger
|
7
7
|
attr_reader :silent
|
8
8
|
|
9
|
-
def initialize(silent
|
9
|
+
def initialize(silent: false)
|
10
10
|
@silent = silent
|
11
11
|
end
|
12
12
|
|
data/lib/pg_objects/manager.rb
CHANGED
data/lib/pg_objects/parser.rb
CHANGED
@@ -38,7 +38,7 @@ module PgObjects
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def fetch_dependencies(text)
|
41
|
-
text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split
|
41
|
+
text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split[1] if ln =~ /!depends_on/ }.compact
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
data/lib/pg_objects/version.rb
CHANGED
data/pg_objects.gemspec
CHANGED
@@ -53,5 +53,7 @@ Gem::Specification.new do |spec|
|
|
53
53
|
spec.add_development_dependency 'rake'
|
54
54
|
spec.add_development_dependency 'rspec'
|
55
55
|
spec.add_development_dependency 'rubocop'
|
56
|
+
spec.add_development_dependency 'rubocop-rails'
|
57
|
+
spec.add_development_dependency 'rubocop-rake'
|
56
58
|
spec.add_development_dependency 'rubocop-rspec'
|
57
59
|
end
|
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.
|
4
|
+
version: 0.5.7
|
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-04-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -134,6 +134,34 @@ dependencies:
|
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: rubocop-rails
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: rubocop-rake
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
137
165
|
- !ruby/object:Gem::Dependency
|
138
166
|
name: rubocop-rspec
|
139
167
|
requirement: !ruby/object:Gem::Requirement
|