actioncable-enhanced-postgresql-adapter 1.0.1 → 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: cbd2628b1b145c871e94887e1bb56d28733d243bf6fe787ec7ba0cbb2770d714
4
- data.tar.gz: 73cd7a2f17185647a1abfa342da2fccd9e38e40606412c0c9bdf4e9bc058ee08
3
+ metadata.gz: 2f964127c2ecba15f7dc1d779c1c98c1218aa10c92831a58cf96bd73bab15bb0
4
+ data.tar.gz: e0a36b75c9339eae71fdb5bddc106e7d017ecea059cc17a79c8955d64387bd1c
5
5
  SHA512:
6
- metadata.gz: 875d18295fc902eab747ded3e513689d3c61c964bc7f7f470bb00dcd82e708e6eb6a42b8ff8257b887dba1d15cb88fdd7af2ac83e109aa204a5d2797e227b59a
7
- data.tar.gz: 12fb49a1e1e528bdc182bc22c5e450c534f3416af03c74ed5f10ef5203d10ea39344507c41f4505254932f79b4492830127085d2c64a7d6322359ca60c3f2614
6
+ metadata.gz: d21a9255157d9181e282d136d53e8fb837dc26fb18056a335a53ffbc0778f71ac55c1deff205c34a4a969839176d1234e143142d28dae131ee2ef24e64e48a8f
7
+ data.tar.gz: c0ad10a29822e5628ec67c77b28b5fe58ff9676f30dd5b316fad88f33ad02e35186f72e683ac444e32848bad10b48bc288f0e9ba806d3ba8bbb57162c558cf71
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
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
+
1
5
  1.0.1
2
6
 
3
7
  - Fix gemspec metadata
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,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "actioncable-enhanced-postgresql-adapter"
3
- spec.version = "1.0.1"
3
+ spec.version = "1.0.2"
4
4
  spec.authors = ["David Backeus"]
5
5
  spec.email = ["david.backeus@mynewsdesk.com"]
6
6
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
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.1
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
@@ -72,8 +71,7 @@ licenses:
72
71
  metadata:
73
72
  homepage_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter
74
73
  source_code_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter
75
- changelog_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/CHANGELOG.md
76
- post_install_message:
74
+ changelog_uri: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/blob/master/CHANGELOG.md
77
75
  rdoc_options: []
78
76
  require_paths:
79
77
  - lib
@@ -88,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
86
  - !ruby/object:Gem::Version
89
87
  version: '0'
90
88
  requirements: []
91
- rubygems_version: 3.4.10
92
- signing_key:
89
+ rubygems_version: 3.6.2
93
90
  specification_version: 4
94
91
  summary: ActionCable adapter for PostgreSQL that enhances the default.
95
92
  test_files: []