schema_plus_triggers 1.0.0 → 1.0.1

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: 8b822817500c789159442e33f7300af39e76520111b0133c8e5a79dca1cf7e16
4
- data.tar.gz: 7aa5ca8e5887060e3fad878ff5a6e6778d389074e3a93265549e1c4861452de8
3
+ metadata.gz: 0e42ddcf355675207c78375bd90b6a404b877c10ef67cfaf36c5c2591269b282
4
+ data.tar.gz: a6ec160196f7d0fb9390158936ad39b37a4c815d54e9a978917994b9774308c5
5
5
  SHA512:
6
- metadata.gz: 1cb5a03e6e3adada34bd1bee0d97755c20f7a3cbf4eeeb655cca1e492ada7da2d709cda144d0c77fa2a93a06b9fbfbb2e570a18604fabda6d3cf0c8ee22a4e83
7
- data.tar.gz: 70a76f583ff7b41e8ae697dcbf254d6c22e0a55cb57955728a53877e6f6b357c234c271075565ee12f5e66d37357dbba24d819ef958a52bbbf70c4f9aee51fbe
6
+ metadata.gz: 5bbd81e135e592ad54e4a45f28e4f8d7ee184c680315c10c645d7490b0432914af92ea1a8f2a678107f0b1ced86988119c8c9a542345170189d8303a6b092b34
7
+ data.tar.gz: 9062ba7c6f18a05e96d364804816a8d285983a64ad8be2bccead6b30f57c87a4ad6e2c94b0a5d90e6984ca560f7bdedb9e591ba2c35586b9a46c20d1785bf543
@@ -22,9 +22,12 @@ jobs:
22
22
  - '2.5'
23
23
  - '2.7'
24
24
  - '3.0'
25
+ - '3.1'
25
26
  activerecord:
26
27
  - '5.2'
27
28
  - '6.0'
29
+ - '6.1'
30
+ - '7.0'
28
31
  db:
29
32
  - skip
30
33
  dbversion:
@@ -32,6 +35,10 @@ jobs:
32
35
  exclude:
33
36
  - ruby: '3.0'
34
37
  activerecord: '5.2'
38
+ - ruby: '3.1'
39
+ activerecord: '5.2'
40
+ - ruby: '2.5'
41
+ activerecord: '7.0'
35
42
  - db: skip
36
43
  dbversion: skip
37
44
  include:
@@ -67,6 +74,22 @@ jobs:
67
74
  activerecord: '6.0'
68
75
  db: postgresql
69
76
  dbversion: '12'
77
+ - ruby: '2.5'
78
+ activerecord: '6.1'
79
+ db: postgresql
80
+ dbversion: '9.6'
81
+ - ruby: '2.5'
82
+ activerecord: '6.1'
83
+ db: postgresql
84
+ dbversion: '10'
85
+ - ruby: '2.5'
86
+ activerecord: '6.1'
87
+ db: postgresql
88
+ dbversion: '11'
89
+ - ruby: '2.5'
90
+ activerecord: '6.1'
91
+ db: postgresql
92
+ dbversion: '12'
70
93
  - ruby: '2.7'
71
94
  activerecord: '5.2'
72
95
  db: postgresql
@@ -99,6 +122,38 @@ jobs:
99
122
  activerecord: '6.0'
100
123
  db: postgresql
101
124
  dbversion: '12'
125
+ - ruby: '2.7'
126
+ activerecord: '6.1'
127
+ db: postgresql
128
+ dbversion: '9.6'
129
+ - ruby: '2.7'
130
+ activerecord: '6.1'
131
+ db: postgresql
132
+ dbversion: '10'
133
+ - ruby: '2.7'
134
+ activerecord: '6.1'
135
+ db: postgresql
136
+ dbversion: '11'
137
+ - ruby: '2.7'
138
+ activerecord: '6.1'
139
+ db: postgresql
140
+ dbversion: '12'
141
+ - ruby: '2.7'
142
+ activerecord: '7.0'
143
+ db: postgresql
144
+ dbversion: '9.6'
145
+ - ruby: '2.7'
146
+ activerecord: '7.0'
147
+ db: postgresql
148
+ dbversion: '10'
149
+ - ruby: '2.7'
150
+ activerecord: '7.0'
151
+ db: postgresql
152
+ dbversion: '11'
153
+ - ruby: '2.7'
154
+ activerecord: '7.0'
155
+ db: postgresql
156
+ dbversion: '12'
102
157
  - ruby: '3.0'
103
158
  activerecord: '6.0'
104
159
  db: postgresql
@@ -115,6 +170,86 @@ jobs:
115
170
  activerecord: '6.0'
116
171
  db: postgresql
117
172
  dbversion: '12'
173
+ - ruby: '3.0'
174
+ activerecord: '6.1'
175
+ db: postgresql
176
+ dbversion: '9.6'
177
+ - ruby: '3.0'
178
+ activerecord: '6.1'
179
+ db: postgresql
180
+ dbversion: '10'
181
+ - ruby: '3.0'
182
+ activerecord: '6.1'
183
+ db: postgresql
184
+ dbversion: '11'
185
+ - ruby: '3.0'
186
+ activerecord: '6.1'
187
+ db: postgresql
188
+ dbversion: '12'
189
+ - ruby: '3.0'
190
+ activerecord: '7.0'
191
+ db: postgresql
192
+ dbversion: '9.6'
193
+ - ruby: '3.0'
194
+ activerecord: '7.0'
195
+ db: postgresql
196
+ dbversion: '10'
197
+ - ruby: '3.0'
198
+ activerecord: '7.0'
199
+ db: postgresql
200
+ dbversion: '11'
201
+ - ruby: '3.0'
202
+ activerecord: '7.0'
203
+ db: postgresql
204
+ dbversion: '12'
205
+ - ruby: '3.1'
206
+ activerecord: '6.0'
207
+ db: postgresql
208
+ dbversion: '9.6'
209
+ - ruby: '3.1'
210
+ activerecord: '6.0'
211
+ db: postgresql
212
+ dbversion: '10'
213
+ - ruby: '3.1'
214
+ activerecord: '6.0'
215
+ db: postgresql
216
+ dbversion: '11'
217
+ - ruby: '3.1'
218
+ activerecord: '6.0'
219
+ db: postgresql
220
+ dbversion: '12'
221
+ - ruby: '3.1'
222
+ activerecord: '6.1'
223
+ db: postgresql
224
+ dbversion: '9.6'
225
+ - ruby: '3.1'
226
+ activerecord: '6.1'
227
+ db: postgresql
228
+ dbversion: '10'
229
+ - ruby: '3.1'
230
+ activerecord: '6.1'
231
+ db: postgresql
232
+ dbversion: '11'
233
+ - ruby: '3.1'
234
+ activerecord: '6.1'
235
+ db: postgresql
236
+ dbversion: '12'
237
+ - ruby: '3.1'
238
+ activerecord: '7.0'
239
+ db: postgresql
240
+ dbversion: '9.6'
241
+ - ruby: '3.1'
242
+ activerecord: '7.0'
243
+ db: postgresql
244
+ dbversion: '10'
245
+ - ruby: '3.1'
246
+ activerecord: '7.0'
247
+ db: postgresql
248
+ dbversion: '11'
249
+ - ruby: '3.1'
250
+ activerecord: '7.0'
251
+ db: postgresql
252
+ dbversion: '12'
118
253
  env:
119
254
  BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}/Gemfile.${{ matrix.db }}"
120
255
  POSTGRESQL_DB_HOST: 127.0.0.1
data/README.md CHANGED
@@ -29,9 +29,17 @@ SchemaPlus::Triggers is tested on:
29
29
  <!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
30
30
  * ruby **2.5** with activerecord **5.2**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
31
31
  * ruby **2.5** with activerecord **6.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
32
+ * ruby **2.5** with activerecord **6.1**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
32
33
  * ruby **2.7** with activerecord **5.2**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
33
34
  * ruby **2.7** with activerecord **6.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
35
+ * ruby **2.7** with activerecord **6.1**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
36
+ * ruby **2.7** with activerecord **7.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
34
37
  * ruby **3.0** with activerecord **6.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
38
+ * ruby **3.0** with activerecord **6.1**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
39
+ * ruby **3.0** with activerecord **7.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
40
+ * ruby **3.1** with activerecord **6.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
41
+ * ruby **3.1** with activerecord **6.1**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
42
+ * ruby **3.1** with activerecord **7.0**, using **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
35
43
 
36
44
  <!-- SCHEMA_DEV: MATRIX - end -->
37
45
 
@@ -79,6 +87,7 @@ This will return an array of arrays. The inner array containing the table name a
79
87
 
80
88
  ## History
81
89
 
90
+ * **1.0.1** - Add AR 6.1 and 7.0, as well as Ruby 3.1 support
82
91
  * **1.0.0** - Drop ruby < 2.5, and add Rails 6.0
83
92
  * **0.2.0** - Add testing for multiple PostgreSQL versions
84
93
  * **0.1.0** - Initial release
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 6.1", "< 6.2"
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 7.0", "< 7.1"
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SchemaPlus
4
4
  module Triggers
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
data/schema_dev.yml CHANGED
@@ -2,9 +2,12 @@ ruby:
2
2
  - 2.5
3
3
  - 2.7
4
4
  - 3.0
5
+ - 3.1
5
6
  activerecord:
6
7
  - 5.2
7
8
  - 6.0
9
+ - 6.1
10
+ - 7.0
8
11
  db:
9
12
  - postgresql
10
13
  dbversions:
@@ -21,11 +21,11 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.required_ruby_version = ">= 2.5.0"
23
23
 
24
- gem.add_dependency "activerecord", ">= 5.2", '< 6.1'
25
- gem.add_dependency "schema_plus_core", "~> 3.0"
24
+ gem.add_dependency "activerecord", ">= 5.2", '< 7.1'
25
+ gem.add_dependency "schema_plus_core", "~> 3.1.0"
26
26
 
27
27
  gem.add_development_dependency "bundler"
28
28
  gem.add_development_dependency "rake", "~> 13.0"
29
29
  gem.add_development_dependency "rspec", "~> 3.0"
30
- gem.add_development_dependency "schema_dev", "~> 4.1"
30
+ gem.add_development_dependency "schema_dev", "~> 4.2.0"
31
31
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'simplecov'
4
- SimpleCov.start
4
+ SimpleCov.start unless SimpleCov.running
5
5
 
6
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
7
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_plus_triggers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Rudd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-06 00:00:00.000000000 Z
11
+ date: 2022-06-12 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: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: schema_plus_core
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: 3.1.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.0'
46
+ version: 3.1.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '4.1'
95
+ version: 4.2.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '4.1'
102
+ version: 4.2.0
103
103
  description: Adds support for triggers in ActiveRecord
104
104
  email:
105
105
  - urkle@outoforder.cc
@@ -119,6 +119,10 @@ files:
119
119
  - gemfiles/activerecord-5.2/Gemfile.postgresql
120
120
  - gemfiles/activerecord-6.0/Gemfile.base
121
121
  - gemfiles/activerecord-6.0/Gemfile.postgresql
122
+ - gemfiles/activerecord-6.1/Gemfile.base
123
+ - gemfiles/activerecord-6.1/Gemfile.postgresql
124
+ - gemfiles/activerecord-7.0/Gemfile.base
125
+ - gemfiles/activerecord-7.0/Gemfile.postgresql
122
126
  - lib/schema_plus/triggers.rb
123
127
  - lib/schema_plus/triggers/active_record/connection_adapters/abstract_adapter.rb
124
128
  - lib/schema_plus/triggers/active_record/connection_adapters/postgresql_adapter.rb