activerecord-postgres_pub_sub 2.0.1 → 2.1.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: 852a0958937ab361ba541832b1f900cece2fc30d4c8ae794acd6f809bdedcd11
4
- data.tar.gz: 311e6dfa629aa17811bd7911e6106f9cd07178f08fe444874f7e53a8654cf2dd
3
+ metadata.gz: dbcb38025bb4b4992bb6a8d7ed1b2c1288fcc9b3df9c3bc4459a9be8ce7e96bd
4
+ data.tar.gz: fefad9359ecce30c1198a3c34e2c64ebb9993b797e2ff7320dd47ae23e6dfa2f
5
5
  SHA512:
6
- metadata.gz: 253a3fa05db6d0628bb7c35ba80e1f3fab1f50d3672b01c588deaba68da6394d9698a138f49b71f9d6aa1ffb2b02cbe05aaef0dae5eb825ac4c2f8cee8ac6a5e
7
- data.tar.gz: 28bb58d53ae5178ec2edde80f040a3aef6a87babc14abd371c4372a9b20ad2a22cfd2aa1225fea8a76822f061fa067007db528f8ae0e8f0cfb6318506090cb58
6
+ metadata.gz: ce692f2b1d176e51767ca21d679d8b618a84e9c029cd5f70e4430e32dec6ba6d9d9c226945c25530125d4e7f7692f7ab049673117aa0c86f3ed8bfdae08ef3d6
7
+ data.tar.gz: 7166ae680431461ea81a0e44e0d3f8b0b26607255d23869417c2c59c98a74a04ba75c783e7682c576a8c4de9b305d0d9906e36fe433e11fe6ff8c979adc57d03
data/Appraisals CHANGED
@@ -29,3 +29,13 @@ appraise "rails-6.1_pg-1.2" do
29
29
  gem "activerecord", ">= 6.1.0", "< 6.2"
30
30
  gem "pg", "1.2.0"
31
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,5 +1,9 @@
1
1
  # activerecord-postgres_pub_sub
2
2
 
3
+ ## v2.1.0
4
+ - Set required ruby version to 2.7.0
5
+ - Add support for Rails 7.0
6
+
3
7
  ## v2.0.1
4
8
  - Fix version constraint on pg gem.
5
9
  - Drop support for rails 5.1 as a result of pg constraint change.
@@ -39,8 +39,9 @@ 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", "> 5.1", "< 6.2"
44
+ spec.add_runtime_dependency "activerecord", "> 5.1", "< 7.1"
44
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"
@@ -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", "1.0.2"
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"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", ">= 7.0.0", "< 7.1"
6
+ gem "pg", "1.1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", ">= 7.0.0", "< 7.1"
6
+ gem "pg", "1.2.0"
7
+
8
+ gemspec path: "../"
@@ -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) { yield }
72
+ ActiveRecord::Base.with_advisory_lock(lock_name, &block)
73
73
  else
74
74
  yield
75
75
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module PostgresPubSub
5
- VERSION = "2.0.1"
5
+ VERSION = "2.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-postgres_pub_sub
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
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: 2021-03-24 00:00:00.000000000 Z
11
+ date: 2022-02-23 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.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -132,16 +132,16 @@ dependencies:
132
132
  name: ezcater_rubocop
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - '='
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 1.0.2
137
+ version: '3.0'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - '='
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 1.0.2
144
+ version: '3.0'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: overcommit
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +234,8 @@ files:
234
234
  - gemfiles/rails_6.0_pg_1.2.gemfile
235
235
  - gemfiles/rails_6.1_pg_1.1.gemfile
236
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
237
239
  - lib/activerecord-postgres_pub_sub.rb
238
240
  - lib/activerecord/postgres_pub_sub/listener.rb
239
241
  - lib/activerecord/postgres_pub_sub/version.rb
@@ -252,14 +254,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
254
  requirements:
253
255
  - - ">="
254
256
  - !ruby/object:Gem::Version
255
- version: '0'
257
+ version: 2.7.0
256
258
  required_rubygems_version: !ruby/object:Gem::Requirement
257
259
  requirements:
258
260
  - - ">="
259
261
  - !ruby/object:Gem::Version
260
262
  version: '0'
261
263
  requirements: []
262
- rubygems_version: 3.0.3
264
+ rubygems_version: 3.1.6
263
265
  signing_key:
264
266
  specification_version: 4
265
267
  summary: Support for Postgres Notify/Listen