pg_objects 0.5.13 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2f8e5b5fa144c919c181751d97e366a335c2940d48c3f5c48f9b2f6c74fde6f
4
- data.tar.gz: f49c9369ddf525210a6b5efdfa55bb0e935a7fbd7ce0795561c679deb7178217
3
+ metadata.gz: 20d040eaab99c019cb6d394c6c3dc7b44f645f941b503098369805c498b3b3ae
4
+ data.tar.gz: e4d23e87e9c3164bbf25a9e213a9b7869dda65380c6a7834f0b44da1ddd3a5af
5
5
  SHA512:
6
- metadata.gz: 64e6c9821ff222f420b7aaf25b06be8c217d1dc52a13998731643b4f1014a8b7dcb1186acacbd01a36eb0520f4b825cc1a059e6837b1e94487a36d96e0f7acfe
7
- data.tar.gz: 2a4c54a6c984cbbf902d236ed8d9243d5e0a1bebbe98ed2bc2fc05e9d33533ac29ca9f291b848f080a9a4f648cd6774a72a635949367bd62d88374c11f4976a5
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.13)
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.6)
14
- actionview (= 6.1.6)
15
- activesupport (= 6.1.6)
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.6)
21
- activesupport (= 6.1.6)
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.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)
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,36 +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.18.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
- minitest (5.16.0)
51
- nokogiri (1.13.6-x86_64-linux)
54
+ mini_portile2 (2.8.1)
55
+ minitest (5.18.0)
56
+ nokogiri (1.14.2)
57
+ mini_portile2 (~> 2.8.0)
52
58
  racc (~> 1.4)
53
59
  parallel (1.22.1)
54
- parser (3.1.2.0)
60
+ parser (3.2.2.0)
55
61
  ast (~> 2.4.1)
56
62
  pg_query (1.3.0)
57
- racc (1.6.0)
58
- rack (2.2.3.1)
59
- rack-test (1.1.0)
60
- 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)
61
67
  rails-dom-testing (2.0.3)
62
68
  activesupport (>= 4.2.0)
63
69
  nokogiri (>= 1.6)
64
- rails-html-sanitizer (1.4.3)
65
- loofah (~> 2.3)
66
- railties (6.1.6)
67
- actionpack (= 6.1.6)
68
- activesupport (= 6.1.6)
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)
69
75
  method_source
70
76
  rake (>= 12.2)
71
77
  thor (~> 1.0)
@@ -73,52 +79,57 @@ GEM
73
79
  rake (13.0.6)
74
80
  rake-hooks (1.2.3)
75
81
  rake
76
- regexp_parser (2.5.0)
82
+ regexp_parser (2.7.0)
77
83
  rexml (3.2.5)
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)
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)
85
91
  diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.11.0)
87
- rspec-mocks (3.11.1)
92
+ rspec-support (~> 3.12.0)
93
+ rspec-mocks (3.12.5)
88
94
  diff-lcs (>= 1.2.0, < 2.0)
89
- rspec-support (~> 3.11.0)
90
- rspec-support (3.11.0)
91
- rubocop (1.30.1)
95
+ rspec-support (~> 3.12.0)
96
+ rspec-support (3.12.0)
97
+ rubocop (1.48.1)
98
+ json (~> 2.3)
92
99
  parallel (~> 1.10)
93
- parser (>= 3.1.0.0)
100
+ parser (>= 3.2.0.0)
94
101
  rainbow (>= 2.2.2, < 4.0)
95
102
  regexp_parser (>= 1.8, < 3.0)
96
103
  rexml (>= 3.2.5, < 4.0)
97
- rubocop-ast (>= 1.18.0, < 2.0)
104
+ rubocop-ast (>= 1.26.0, < 2.0)
98
105
  ruby-progressbar (~> 1.7)
99
- unicode-display_width (>= 1.4.0, < 3.0)
100
- rubocop-ast (1.18.0)
101
- parser (>= 3.1.1.0)
102
- rubocop-rails (2.15.0)
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)
103
112
  activesupport (>= 4.2.0)
104
113
  rack (>= 1.1)
105
- rubocop (>= 1.7.0, < 2.0)
114
+ rubocop (>= 1.33.0, < 2.0)
106
115
  rubocop-rake (0.6.0)
107
116
  rubocop (~> 1.0)
108
- rubocop-rspec (2.11.1)
109
- rubocop (~> 1.19)
110
- 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)
111
121
  thor (1.2.1)
112
- tzinfo (2.0.4)
122
+ tzinfo (2.0.6)
113
123
  concurrent-ruby (~> 1.0)
114
- unicode-display_width (2.1.0)
115
- zeitwerk (2.6.0)
124
+ unicode-display_width (2.4.2)
125
+ zeitwerk (2.6.7)
116
126
 
117
127
  PLATFORMS
118
128
  ruby
119
129
 
120
130
  DEPENDENCIES
121
131
  bundler
132
+ bundler-audit
122
133
  byebug
123
134
  pg_objects!
124
135
  rake
@@ -129,4 +140,4 @@ DEPENDENCIES
129
140
  rubocop-rspec
130
141
 
131
142
  BUNDLED WITH
132
- 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.13'.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.13
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-06-20 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,7 +132,7 @@ 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
  - - ">="
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.10
4
- - 2.7.6
5
- - 3.0.4
6
- - 3.1.2
7
- before_install: gem install bundler -v 1.16.2
8
- script:
9
- - bundle exec rspec spec
10
- - bundle exec rubocop