actioncable-enhanced-postgresql-adapter 1.0.0 → 1.0.2

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: d4b7f64d6bbcae86b24c05c84cc7d182d260c7dd2c6b41300ee5de5e4a87d31a
4
- data.tar.gz: ab38f315f5f5db4901c951c53e51d475da2fce45a50fc607cc2b56cb9e89b6c2
3
+ metadata.gz: 2f964127c2ecba15f7dc1d779c1c98c1218aa10c92831a58cf96bd73bab15bb0
4
+ data.tar.gz: e0a36b75c9339eae71fdb5bddc106e7d017ecea059cc17a79c8955d64387bd1c
5
5
  SHA512:
6
- metadata.gz: 3e2d3ebd77fef8816c622f47075ab51e89eb6f10529e9bdd95c60d7d34b64bc2a19146cc1931c264ae57dd1c51b438e5e926cab1eacba29837f406811e9209bc
7
- data.tar.gz: 81cc41a2e93e420069ff42f6deddb8766bea59e0689ced9c89d5c58e9809bff385c37e8e58660ed78b70012a92ce3ea22caece7033329243659be271a2eeaed3
6
+ metadata.gz: d21a9255157d9181e282d136d53e8fb837dc26fb18056a335a53ffbc0778f71ac55c1deff205c34a4a969839176d1234e143142d28dae131ee2ef24e64e48a8f
7
+ data.tar.gz: c0ad10a29822e5628ec67c77b28b5fe58ff9676f30dd5b316fad88f33ad02e35186f72e683ac444e32848bad10b48bc288f0e9ba806d3ba8bbb57162c558cf71
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ 1.0.2
2
+
3
+ - Fix incorrect escaping of large payloads (https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/pull/5 and https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/pull/6), thanks @chriscz and @bensheldon
4
+
5
+ 1.0.1
6
+
7
+ - Fix gemspec metadata
8
+
1
9
  1.0.0
2
10
 
3
11
  - Support > 8000 byte payloads
data/README.md CHANGED
@@ -19,7 +19,7 @@ Note that payloads smaller than 8000 bytes are sent directly via NOTIFY, as per
19
19
  Add this line to your application's Gemfile:
20
20
 
21
21
  ```ruby
22
- gem "actioncable-enhanced-postgresql-adapter", git: "https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter"
22
+ gem "actioncable-enhanced-postgresql-adapter"
23
23
  ```
24
24
 
25
25
  ## Usage
@@ -1,19 +1,19 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "actioncable-enhanced-postgresql-adapter"
3
- spec.version = "1.0.0"
3
+ spec.version = "1.0.2"
4
4
  spec.authors = ["David Backeus"]
5
5
  spec.email = ["david.backeus@mynewsdesk.com"]
6
6
 
7
7
  spec.summary = "ActionCable adapter for PostgreSQL that enhances the default."
8
- spec.description = "Handles the 8000 byte limit for PostgreSQL NOTIFY payloads"
9
- spec.homepage = "https://github.com/dbackeus/actioncable-enhanced-postgresql-adapter"
8
+ spec.description = "Enhances ActionCable's built in Postgres adapter with handling of the 8000 byte limit for PostgreSQL NOTIFY payloads and allows usage without ActiveRecord."
9
+ spec.homepage = "https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter"
10
10
  spec.license = "MIT"
11
11
  spec.required_ruby_version = ">= 2.7.0"
12
12
 
13
13
  spec.metadata = {
14
14
  "homepage_uri" => spec.homepage,
15
15
  "source_code_uri" => spec.homepage,
16
- "changelog_uri" => "#{spec.homepage}/CHANGELOG.md"
16
+ "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md"
17
17
  }
18
18
 
19
19
  spec.files = %w[README.md CHANGELOG.md actioncable-enhanced-postgresql-adapter.gemspec] + Dir["lib/**/*"]
@@ -21,4 +21,4 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "actioncable", ">= 6.0"
22
22
  spec.add_dependency "connection_pool", ">= 2.2.5" # Ruby 2.7 compatible version
23
23
  spec.add_dependency "pg", "~> 1.5"
24
- end
24
+ end
@@ -38,7 +38,6 @@ module ActionCable
38
38
 
39
39
  with_broadcast_connection do |pg_conn|
40
40
  channel = pg_conn.escape_identifier(channel_identifier(channel))
41
- payload = pg_conn.escape_string(payload)
42
41
 
43
42
  if payload.bytesize > MAX_NOTIFY_SIZE
44
43
  payload_id = insert_large_payload(pg_conn, payload)
@@ -53,7 +52,7 @@ module ActionCable
53
52
  payload = "#{LARGE_PAYLOAD_PREFIX}#{encrypted_payload_id}"
54
53
  end
55
54
 
56
- pg_conn.exec("NOTIFY #{channel}, '#{payload}'")
55
+ pg_conn.exec("NOTIFY #{channel}, #{pg_conn.escape_literal(payload)}")
57
56
  end
58
57
  end
59
58
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actioncable-enhanced-postgresql-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Backeus
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
10
+ date: 2025-09-19 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: actioncable
@@ -52,7 +51,8 @@ dependencies:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
53
  version: '1.5'
55
- description: Handles the 8000 byte limit for PostgreSQL NOTIFY payloads
54
+ description: Enhances ActionCable's built in Postgres adapter with handling of the
55
+ 8000 byte limit for PostgreSQL NOTIFY payloads and allows usage without ActiveRecord.
56
56
  email:
57
57
  - david.backeus@mynewsdesk.com
58
58
  executables: []
@@ -65,14 +65,13 @@ files:
65
65
  - lib/action_cable/subscription_adapter/enhanced_postgresql.rb
66
66
  - lib/actioncable-enhanced-postgresql-adapter.rb
67
67
  - lib/railtie.rb
68
- homepage: https://github.com/dbackeus/actioncable-enhanced-postgresql-adapter
68
+ homepage: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter
69
69
  licenses:
70
70
  - MIT
71
71
  metadata:
72
- homepage_uri: https://github.com/dbackeus/actioncable-enhanced-postgresql-adapter
73
- source_code_uri: https://github.com/dbackeus/actioncable-enhanced-postgresql-adapter
74
- changelog_uri: https://github.com/dbackeus/actioncable-enhanced-postgresql-adapter/CHANGELOG.md
75
- post_install_message:
72
+ homepage_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter
73
+ source_code_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter
74
+ changelog_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/blob/master/CHANGELOG.md
76
75
  rdoc_options: []
77
76
  require_paths:
78
77
  - lib
@@ -87,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
86
  - !ruby/object:Gem::Version
88
87
  version: '0'
89
88
  requirements: []
90
- rubygems_version: 3.4.10
91
- signing_key:
89
+ rubygems_version: 3.6.2
92
90
  specification_version: 4
93
91
  summary: ActionCable adapter for PostgreSQL that enhances the default.
94
92
  test_files: []