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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '090f868f28567b23d6ffc9554173206bbe2409f66eafc72684c00b778b57dbbd'
4
- data.tar.gz: 6811fc7d13900a2049cd323f09e88f6dd6c68519ad435ac05ec450be47ed4e43
3
+ metadata.gz: dbcb38025bb4b4992bb6a8d7ed1b2c1288fcc9b3df9c3bc4459a9be8ce7e96bd
4
+ data.tar.gz: fefad9359ecce30c1198a3c34e2c64ebb9993b797e2ff7320dd47ae23e6dfa2f
5
5
  SHA512:
6
- metadata.gz: 6ab11763408c6b58c655846a09b467efb4a21aeb456a2d47fab7441565ff27363b1d0524593f794fac3437b8186ca399d73bfd164df8878433ced1d00f3ccfa3
7
- data.tar.gz: e9da89b4b8bfb74a6176b433b21366df4755abc21a1554370ad6579bf6e7bd94a6f176bae7867c4785ef2ac46d5ccb59d64c702056f0136311f0a44364bcc813
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.0.0 (unreleased)
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", ">= 5.1", "< 6.2"
44
- spec.add_runtime_dependency "pg", ">= 0.18", "< 2.0"
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", "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.0.rc0"
5
+ VERSION = "2.1.0"
6
6
  end
7
7
  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.0.0.rc0
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-20 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
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: '6.2'
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: '6.2'
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: '2.0'
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: '2.0'
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: 1.0.2
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: 1.0.2
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: '0'
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: 1.3.1
262
+ version: '0'
267
263
  requirements: []
268
- rubygems_version: 3.0.3
264
+ rubygems_version: 3.1.6
269
265
  signing_key:
270
266
  specification_version: 4
271
267
  summary: Support for Postgres Notify/Listen