pg_objects 0.5.12 → 1.0.0

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: 7cbcc1912798a11200339ee778c553eec549400db8d61b33b3b40fd32dcbd2cc
4
- data.tar.gz: 581ad580549d647b2891f05b3c5d4a4b73867a0bbfcadd17037e28e99acba27c
3
+ metadata.gz: 20d040eaab99c019cb6d394c6c3dc7b44f645f941b503098369805c498b3b3ae
4
+ data.tar.gz: e4d23e87e9c3164bbf25a9e213a9b7869dda65380c6a7834f0b44da1ddd3a5af
5
5
  SHA512:
6
- metadata.gz: c102a5fc0e7a1f96c38c26375877b5a22acea430a232dcd1d678371f691a24217d3d2b529a41ee4a082a680f31694d098d6b3947dad12f8cfd08b2b010ac8a44
7
- data.tar.gz: 31c09b9e711d56dc290765b40d609c4f7037acb1b1c432d0c3315c48fd829b4e7c78c7780e94ab42c620b3842740cf1a14663f55bdc53c9d35d9d0a4b7de8eb4
6
+ metadata.gz: 552bf1b91d45ae731ead04730b9213f339030657ffb589e5e1856e77ea25d6150a27aaa66d997dad6e96d9eddb08e7c71e32b898104f16d665ef96b5e159dd88
7
+ data.tar.gz: a9b003b346045b2d3f6d21fed2b7014f4dc908c342babe527e69eff059a3d3f2740352e7cd34e35e66783f495e2c5d831a4964a0f01d2f5fc1e1b52f5231602c
@@ -0,0 +1,22 @@
1
+ name: BundleAudit
2
+ on: push
3
+
4
+ jobs:
5
+ bundle_audit:
6
+ name: bundle_audit
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v2
12
+ with:
13
+ fetch-depth: 0
14
+
15
+ - name: Set up Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '3.2.2'
19
+ bundler-cache: true
20
+
21
+ - name: Bundle audit
22
+ run: bundle exec bundle-audit check
@@ -0,0 +1,26 @@
1
+ name: CI for PGObjects
2
+
3
+ on:
4
+ push: {}
5
+
6
+ jobs:
7
+ lint-and-test:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+
16
+ - name: Setup Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler-cache: true
21
+
22
+ - name: Run rubocop
23
+ run: bundle exec rubocop
24
+
25
+ - name: Run rspec
26
+ run: bundle exec rspec spec
data/.rubocop.yml CHANGED
@@ -1,13 +1,14 @@
1
1
  # softened a bit with http://relaxed.ruby.style/rubocop.yml
2
2
 
3
3
  require:
4
+ - rubocop-rake
4
5
  - rubocop-rspec
5
6
 
6
7
  inherit_from: .rubocop_todo.yml
7
8
 
8
9
  AllCops:
9
10
  # EnabledByDefault: true
10
- TargetRubyVersion: 2.5
11
+ TargetRubyVersion: 2.7
11
12
  # Cop names are not d§splayed in offense messages by default. Change behavior
12
13
  # by overriding DisplayCopNames, or by giving the -D/--display-cop-names
13
14
  # option.
data/.rubocop_todo.yml CHANGED
@@ -10,7 +10,3 @@ Style/Documentation:
10
10
  Exclude:
11
11
  - lib/pg_objects/config.rb
12
12
  - spec/**/*
13
-
14
- Style/GuardClause:
15
- Exclude:
16
- - pg_objects.gemspec
data/Gemfile CHANGED
@@ -1,8 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in pg_objects.gemspec
6
3
  gemspec
7
4
 
8
- gem 'byebug'
5
+ group :development, :test do
6
+ gem 'bundler', require: false
7
+ gem 'bundler-audit', require: false
8
+ gem 'byebug', require: false
9
+ gem 'rake', require: false
10
+ gem 'rspec', require: false
11
+ gem 'rubocop', require: false
12
+ gem 'rubocop-rails', require: false
13
+ gem 'rubocop-rake', require: false
14
+ gem 'rubocop-rspec', require: false
15
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pg_objects (0.5.11)
4
+ pg_objects (1.0.0)
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.5)
14
- actionview (= 6.1.5)
15
- activesupport (= 6.1.5)
13
+ actionpack (6.1.7.3)
14
+ actionview (= 6.1.7.3)
15
+ activesupport (= 6.1.7.3)
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.5)
21
- activesupport (= 6.1.5)
20
+ actionview (6.1.7.3)
21
+ activesupport (= 6.1.7.3)
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.5)
27
- activesupport (= 6.1.5)
28
- activerecord (6.1.5)
29
- activemodel (= 6.1.5)
30
- activesupport (= 6.1.5)
31
- activesupport (6.1.5)
26
+ activemodel (6.1.7.3)
27
+ activesupport (= 6.1.7.3)
28
+ activerecord (6.1.7.3)
29
+ activemodel (= 6.1.7.3)
30
+ activesupport (= 6.1.7.3)
31
+ activesupport (6.1.7.3)
32
32
  concurrent-ruby (~> 1.0, >= 1.0.2)
33
33
  i18n (>= 1.6, < 2)
34
34
  minitest (>= 5.1)
@@ -36,38 +36,42 @@ GEM
36
36
  zeitwerk (~> 2.3)
37
37
  ast (2.4.2)
38
38
  builder (3.2.4)
39
+ bundler-audit (0.9.1)
40
+ bundler (>= 1.2.0, < 3)
41
+ thor (~> 1.0)
39
42
  byebug (11.1.3)
40
- concurrent-ruby (1.1.10)
43
+ concurrent-ruby (1.2.2)
41
44
  crass (1.0.6)
42
45
  diff-lcs (1.5.0)
43
- erubi (1.10.0)
44
- i18n (1.10.0)
46
+ erubi (1.12.0)
47
+ i18n (1.12.0)
45
48
  concurrent-ruby (~> 1.0)
46
- loofah (2.15.0)
49
+ json (2.6.3)
50
+ loofah (2.19.1)
47
51
  crass (~> 1.0.2)
48
52
  nokogiri (>= 1.5.9)
49
53
  method_source (1.0.0)
50
- mini_portile2 (2.8.0)
51
- minitest (5.15.0)
52
- nokogiri (1.13.3)
54
+ mini_portile2 (2.8.1)
55
+ minitest (5.18.0)
56
+ nokogiri (1.14.2)
53
57
  mini_portile2 (~> 2.8.0)
54
58
  racc (~> 1.4)
55
- parallel (1.22.0)
56
- parser (3.1.1.0)
59
+ parallel (1.22.1)
60
+ parser (3.2.2.0)
57
61
  ast (~> 2.4.1)
58
62
  pg_query (1.3.0)
59
- racc (1.6.0)
60
- rack (2.2.3)
61
- rack-test (1.1.0)
62
- rack (>= 1.0, < 3)
63
+ racc (1.6.2)
64
+ rack (2.2.6.4)
65
+ rack-test (2.1.0)
66
+ rack (>= 1.3)
63
67
  rails-dom-testing (2.0.3)
64
68
  activesupport (>= 4.2.0)
65
69
  nokogiri (>= 1.6)
66
- rails-html-sanitizer (1.4.2)
67
- loofah (~> 2.3)
68
- railties (6.1.5)
69
- actionpack (= 6.1.5)
70
- activesupport (= 6.1.5)
70
+ rails-html-sanitizer (1.5.0)
71
+ loofah (~> 2.19, >= 2.19.1)
72
+ railties (6.1.7.3)
73
+ actionpack (= 6.1.7.3)
74
+ activesupport (= 6.1.7.3)
71
75
  method_source
72
76
  rake (>= 12.2)
73
77
  thor (~> 1.0)
@@ -75,52 +79,57 @@ GEM
75
79
  rake (13.0.6)
76
80
  rake-hooks (1.2.3)
77
81
  rake
78
- regexp_parser (2.2.1)
82
+ regexp_parser (2.7.0)
79
83
  rexml (3.2.5)
80
- rspec (3.11.0)
81
- rspec-core (~> 3.11.0)
82
- rspec-expectations (~> 3.11.0)
83
- rspec-mocks (~> 3.11.0)
84
- rspec-core (3.11.0)
85
- rspec-support (~> 3.11.0)
86
- rspec-expectations (3.11.0)
84
+ rspec (3.12.0)
85
+ rspec-core (~> 3.12.0)
86
+ rspec-expectations (~> 3.12.0)
87
+ rspec-mocks (~> 3.12.0)
88
+ rspec-core (3.12.1)
89
+ rspec-support (~> 3.12.0)
90
+ rspec-expectations (3.12.2)
87
91
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.11.0)
89
- rspec-mocks (3.11.0)
92
+ rspec-support (~> 3.12.0)
93
+ rspec-mocks (3.12.5)
90
94
  diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.11.0)
92
- rspec-support (3.11.0)
93
- rubocop (1.26.1)
95
+ rspec-support (~> 3.12.0)
96
+ rspec-support (3.12.0)
97
+ rubocop (1.48.1)
98
+ json (~> 2.3)
94
99
  parallel (~> 1.10)
95
- parser (>= 3.1.0.0)
100
+ parser (>= 3.2.0.0)
96
101
  rainbow (>= 2.2.2, < 4.0)
97
102
  regexp_parser (>= 1.8, < 3.0)
98
- rexml
99
- rubocop-ast (>= 1.16.0, < 2.0)
103
+ rexml (>= 3.2.5, < 4.0)
104
+ rubocop-ast (>= 1.26.0, < 2.0)
100
105
  ruby-progressbar (~> 1.7)
101
- unicode-display_width (>= 1.4.0, < 3.0)
102
- rubocop-ast (1.16.0)
103
- parser (>= 3.1.1.0)
104
- rubocop-rails (2.14.2)
106
+ unicode-display_width (>= 2.4.0, < 3.0)
107
+ rubocop-ast (1.28.0)
108
+ parser (>= 3.2.1.0)
109
+ rubocop-capybara (2.17.1)
110
+ rubocop (~> 1.41)
111
+ rubocop-rails (2.18.0)
105
112
  activesupport (>= 4.2.0)
106
113
  rack (>= 1.1)
107
- rubocop (>= 1.7.0, < 2.0)
114
+ rubocop (>= 1.33.0, < 2.0)
108
115
  rubocop-rake (0.6.0)
109
116
  rubocop (~> 1.0)
110
- rubocop-rspec (2.9.0)
111
- rubocop (~> 1.19)
112
- ruby-progressbar (1.11.0)
117
+ rubocop-rspec (2.19.0)
118
+ rubocop (~> 1.33)
119
+ rubocop-capybara (~> 2.17)
120
+ ruby-progressbar (1.13.0)
113
121
  thor (1.2.1)
114
- tzinfo (2.0.4)
122
+ tzinfo (2.0.6)
115
123
  concurrent-ruby (~> 1.0)
116
- unicode-display_width (2.1.0)
117
- zeitwerk (2.5.4)
124
+ unicode-display_width (2.4.2)
125
+ zeitwerk (2.6.7)
118
126
 
119
127
  PLATFORMS
120
128
  ruby
121
129
 
122
130
  DEPENDENCIES
123
131
  bundler
132
+ bundler-audit
124
133
  byebug
125
134
  pg_objects!
126
135
  rake
@@ -131,4 +140,4 @@ DEPENDENCIES
131
140
  rubocop-rspec
132
141
 
133
142
  BUNDLED WITH
134
- 1.17.3
143
+ 2.3.7
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/pg_objects.svg)](https://badge.fury.io/rb/pg_objects)
2
- [![Build Status](https://travis-ci.org/marinazzio/pg_objects.svg?branch=master)](https://travis-ci.org/marinazzio/pg_objects)
3
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/935cd23d8f899b6d8057/maintainability)](https://codeclimate.com/github/marinazzio/pg_objects/maintainability)
4
3
 
5
4
  # PgObjects
@@ -1,3 +1,3 @@
1
1
  module PgObjects
2
- VERSION = '0.5.12'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
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.5.0'
14
+ spec.required_ruby_version = '>= 2.7.0'
15
15
 
16
16
  spec.metadata = {
17
17
  'bug_tracker_uri' => 'https://github.com/marinazzio/pg_objects/issues',
@@ -30,11 +30,9 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
32
32
  # to allow pushing to a single host or delete this section to allow pushing to any host.
33
- if spec.respond_to?(:metadata)
34
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
35
- else
36
- raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
37
- end
33
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
34
+
35
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
38
36
 
39
37
  # Specify which files should be added to the gem when it is released.
40
38
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -49,12 +47,4 @@ Gem::Specification.new do |spec|
49
47
  spec.add_dependency 'pg_query', '~> 1'
50
48
  spec.add_dependency 'railties', '>= 4', '< 7'
51
49
  spec.add_dependency 'rake-hooks', '~> 1'
52
-
53
- spec.add_development_dependency 'bundler'
54
- spec.add_development_dependency 'rake'
55
- spec.add_development_dependency 'rspec'
56
- spec.add_development_dependency 'rubocop'
57
- spec.add_development_dependency 'rubocop-rails'
58
- spec.add_development_dependency 'rubocop-rake'
59
- spec.add_development_dependency 'rubocop-rspec'
60
50
  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.12
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Kiselyov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2023-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -78,104 +78,6 @@ dependencies:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '1'
81
- - !ruby/object:Gem::Dependency
82
- name: bundler
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- - !ruby/object:Gem::Dependency
96
- name: rake
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: '0'
109
- - !ruby/object:Gem::Dependency
110
- name: rspec
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- version: '0'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: '0'
123
- - !ruby/object:Gem::Dependency
124
- name: rubocop
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: '0'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
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'
165
- - !ruby/object:Gem::Dependency
166
- name: rubocop-rspec
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- version: '0'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: '0'
179
81
  description:
180
82
  email:
181
83
  - denis.kiselyov@gmail.com
@@ -183,11 +85,12 @@ executables: []
183
85
  extensions: []
184
86
  extra_rdoc_files: []
185
87
  files:
88
+ - ".github/workflows/bundle_audit.yml"
89
+ - ".github/workflows/ci.yml"
186
90
  - ".gitignore"
187
91
  - ".rspec"
188
92
  - ".rubocop.yml"
189
93
  - ".rubocop_todo.yml"
190
- - ".travis.yml"
191
94
  - Gemfile
192
95
  - Gemfile.lock
193
96
  - LICENSE
@@ -229,14 +132,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
132
  requirements:
230
133
  - - ">="
231
134
  - !ruby/object:Gem::Version
232
- version: 2.5.0
135
+ version: 2.7.0
233
136
  required_rubygems_version: !ruby/object:Gem::Requirement
234
137
  requirements:
235
138
  - - ">="
236
139
  - !ruby/object:Gem::Version
237
140
  version: '0'
238
141
  requirements: []
239
- rubygems_version: 3.1.6
142
+ rubygems_version: 3.3.7
240
143
  signing_key:
241
144
  specification_version: 4
242
145
  summary: Simple manager for PostgreSQL objects like triggers and functions
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.9
4
- - 2.6.7
5
- - 2.7.3
6
- - 3.0.1
7
- before_install: gem install bundler -v 1.16.2
8
- script:
9
- - bundle exec rspec spec
10
- - bundle exec rubocop