activerecord-postgres_pub_sub 2.0.0.rc0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +10 -15
- data/CHANGELOG.md +9 -1
- data/activerecord-postgres_pub_sub.gemspec +4 -3
- data/gemfiles/rails_7.0_pg_1.1.gemfile +8 -0
- data/gemfiles/rails_7.0_pg_1.2.gemfile +8 -0
- data/lib/activerecord/postgres_pub_sub/listener.rb +2 -2
- data/lib/activerecord/postgres_pub_sub/version.rb +1 -1
- metadata +20 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbcb38025bb4b4992bb6a8d7ed1b2c1288fcc9b3df9c3bc4459a9be8ce7e96bd
|
4
|
+
data.tar.gz: fefad9359ecce30c1198a3c34e2c64ebb9993b797e2ff7320dd47ae23e6dfa2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce692f2b1d176e51767ca21d679d8b618a84e9c029cd5f70e4430e32dec6ba6d9d9c226945c25530125d4e7f7692f7ab049673117aa0c86f3ed8bfdae08ef3d6
|
7
|
+
data.tar.gz: 7166ae680431461ea81a0e44e0d3f8b0b26607255d23869417c2c59c98a74a04ba75c783e7682c576a8c4de9b305d0d9906e36fe433e11fe6ff8c979adc57d03
|
data/Appraisals
CHANGED
@@ -1,30 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise "rails-5.1" do
|
4
|
-
gem "activerecord", "5.1.6"
|
5
|
-
gem "pg", "0.18.4"
|
6
|
-
end
|
7
|
-
|
8
3
|
appraise "rails-5.2_pg-1.1" do
|
9
4
|
gem "activerecord", "5.2.1"
|
10
5
|
gem "pg", "1.1.4"
|
11
6
|
end
|
12
7
|
|
13
|
-
appraise "rails-5.2_pg-0.18" do
|
14
|
-
gem "activerecord", "5.2.1"
|
15
|
-
gem "pg", "0.18.4"
|
16
|
-
end
|
17
|
-
|
18
8
|
appraise "rails-5.2_pg-1.2" do
|
19
9
|
gem "activerecord", "5.2.1"
|
20
10
|
gem "pg", "1.2.0"
|
21
11
|
end
|
22
12
|
|
23
|
-
appraise "rails-6.0_pg-0.18" do
|
24
|
-
gem "activerecord", ">= 6.0.0", "< 6.1"
|
25
|
-
gem "pg", "0.18.4"
|
26
|
-
end
|
27
|
-
|
28
13
|
appraise "rails-6.0_pg-1.1" do
|
29
14
|
gem "activerecord", ">= 6.0.0", "< 6.1"
|
30
15
|
gem "pg", "1.1.4"
|
@@ -44,3 +29,13 @@ appraise "rails-6.1_pg-1.2" do
|
|
44
29
|
gem "activerecord", ">= 6.1.0", "< 6.2"
|
45
30
|
gem "pg", "1.2.0"
|
46
31
|
end
|
32
|
+
|
33
|
+
appraise "rails-7.0_pg-1.1" do
|
34
|
+
gem "activerecord", ">= 7.0.0", "< 7.1"
|
35
|
+
gem "pg", "1.1.4"
|
36
|
+
end
|
37
|
+
|
38
|
+
appraise "rails-7.0_pg-1.2" do
|
39
|
+
gem "activerecord", ">= 7.0.0", "< 7.1"
|
40
|
+
gem "pg", "1.2.0"
|
41
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# activerecord-postgres_pub_sub
|
2
2
|
|
3
|
-
## v2.
|
3
|
+
## v2.1.0
|
4
|
+
- Set required ruby version to 2.7.0
|
5
|
+
- Add support for Rails 7.0
|
6
|
+
|
7
|
+
## v2.0.1
|
8
|
+
- Fix version constraint on pg gem.
|
9
|
+
- Drop support for rails 5.1 as a result of pg constraint change.
|
10
|
+
|
11
|
+
## v2.0.0
|
4
12
|
- Add support for Rails 6.1.
|
5
13
|
- Drop support for pg 0.18 as support has been [dropped in activerecord 6.1](https://github.com/rails/rails/commit/592358e182effecebe8c6a4645bd4431f5a73654).
|
6
14
|
|
@@ -39,9 +39,10 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.bindir = "bin"
|
40
40
|
spec.executables = []
|
41
41
|
spec.require_paths = ["lib"]
|
42
|
+
spec.required_ruby_version = ">= 2.7.0"
|
42
43
|
|
43
|
-
spec.add_runtime_dependency "activerecord", "
|
44
|
-
spec.add_runtime_dependency "pg", "
|
44
|
+
spec.add_runtime_dependency "activerecord", "> 5.1", "< 7.1"
|
45
|
+
spec.add_runtime_dependency "pg", "~> 1.1"
|
45
46
|
spec.add_runtime_dependency "private_attr"
|
46
47
|
spec.add_runtime_dependency "with_advisory_lock"
|
47
48
|
|
@@ -49,7 +50,7 @@ Gem::Specification.new do |spec|
|
|
49
50
|
spec.add_development_dependency "bundler", ">= 1.3.0"
|
50
51
|
spec.add_development_dependency "database_cleaner"
|
51
52
|
spec.add_development_dependency "ezcater_matchers"
|
52
|
-
spec.add_development_dependency "ezcater_rubocop", "
|
53
|
+
spec.add_development_dependency "ezcater_rubocop", "~> 3.0"
|
53
54
|
spec.add_development_dependency "overcommit"
|
54
55
|
spec.add_development_dependency "rake", "~> 10.0"
|
55
56
|
spec.add_development_dependency "rspec", "~> 3.4"
|
@@ -67,9 +67,9 @@ module ActiveRecord
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def with_optional_lock
|
70
|
+
def with_optional_lock(&block)
|
71
71
|
if exclusive_lock
|
72
|
-
ActiveRecord::Base.with_advisory_lock(lock_name)
|
72
|
+
ActiveRecord::Base.with_advisory_lock(lock_name, &block)
|
73
73
|
else
|
74
74
|
yield
|
75
75
|
end
|
metadata
CHANGED
@@ -1,55 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgres_pub_sub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezCater, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '5.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '5.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pg
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.18'
|
40
|
-
- - "<"
|
37
|
+
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
39
|
+
version: '1.1'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.18'
|
50
|
-
- - "<"
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
46
|
+
version: '1.1'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: private_attr
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,16 +132,16 @@ dependencies:
|
|
138
132
|
name: ezcater_rubocop
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|
140
134
|
requirements:
|
141
|
-
- -
|
135
|
+
- - "~>"
|
142
136
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
137
|
+
version: '3.0'
|
144
138
|
type: :development
|
145
139
|
prerelease: false
|
146
140
|
version_requirements: !ruby/object:Gem::Requirement
|
147
141
|
requirements:
|
148
|
-
- -
|
142
|
+
- - "~>"
|
149
143
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
144
|
+
version: '3.0'
|
151
145
|
- !ruby/object:Gem::Dependency
|
152
146
|
name: overcommit
|
153
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,6 +234,8 @@ files:
|
|
240
234
|
- gemfiles/rails_6.0_pg_1.2.gemfile
|
241
235
|
- gemfiles/rails_6.1_pg_1.1.gemfile
|
242
236
|
- gemfiles/rails_6.1_pg_1.2.gemfile
|
237
|
+
- gemfiles/rails_7.0_pg_1.1.gemfile
|
238
|
+
- gemfiles/rails_7.0_pg_1.2.gemfile
|
243
239
|
- lib/activerecord-postgres_pub_sub.rb
|
244
240
|
- lib/activerecord/postgres_pub_sub/listener.rb
|
245
241
|
- lib/activerecord/postgres_pub_sub/version.rb
|
@@ -258,14 +254,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
254
|
requirements:
|
259
255
|
- - ">="
|
260
256
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
257
|
+
version: 2.7.0
|
262
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
259
|
requirements:
|
264
|
-
- - "
|
260
|
+
- - ">="
|
265
261
|
- !ruby/object:Gem::Version
|
266
|
-
version:
|
262
|
+
version: '0'
|
267
263
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
264
|
+
rubygems_version: 3.1.6
|
269
265
|
signing_key:
|
270
266
|
specification_version: 4
|
271
267
|
summary: Support for Postgres Notify/Listen
|