party_bus 0.3.0 → 0.4.1

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: '0110038615068e66e523892618e01699781d171dba48ff9c3cde8e848da5e733'
4
- data.tar.gz: 52030ca8f0099a88f91f999edc5ecc4034cd195862c61789b7ad2a58a0d3eff9
3
+ metadata.gz: 832767f34752bd2bd03335ce1727ffdb3d0c0af92319265dfc3adb05787a38a7
4
+ data.tar.gz: ec013a5bb553786067450783419ed6cca83670586470a08e9eec1d5f73a6d391
5
5
  SHA512:
6
- metadata.gz: 8690c05498ce9aa66a0b6d83a0c9f1eb7dfc307c927debde799d1d4750797da8d98c588d735dd833587dd09dd988fc30a6428a420315a3a9b6915e2f888b34af
7
- data.tar.gz: 40202ab15c221fb616e27b5a6769b52188d3c5250d7c8aae08e8d2a09406eea0ab1696392f9ea5a3ea7da75813fd0d4698c45230b1d776b76c53bf65915af8fb
6
+ metadata.gz: 65ed4f040d465108ce7e98419d8439ebdbaff1b008691487f4854a6ee4f336cc8b7ea30b8bb4512269e30153004bf40f3ddea1b594ff2a645526c51f6adb89d3
7
+ data.tar.gz: 4b98a78fbbe1535b1ccbccbd9af8a29880448bc2b3531dd59e614da68158ffd30a626da8923b223fdaee1551412e8f2948bb3f273a1c6d568bc7cf9ca76a192c
data/Gemfile.lock CHANGED
@@ -1,64 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- party_bus (0.3.0)
5
- activerecord (>= 6.0, <= 8.0)
4
+ party_bus (0.4.1)
5
+ activerecord (>= 5.0, <= 8.0)
6
6
  after_do (~> 0.4.0)
7
7
  httparty (~> 0.20.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (7.0.3.1)
13
- activesupport (= 7.0.3.1)
14
- activerecord (7.0.3.1)
15
- activemodel (= 7.0.3.1)
16
- activesupport (= 7.0.3.1)
17
- activesupport (7.0.3.1)
12
+ activemodel (7.1.5.1)
13
+ activesupport (= 7.1.5.1)
14
+ activerecord (7.1.5.1)
15
+ activemodel (= 7.1.5.1)
16
+ activesupport (= 7.1.5.1)
17
+ timeout (>= 0.4.0)
18
+ activesupport (7.1.5.1)
19
+ base64
20
+ benchmark (>= 0.3)
21
+ bigdecimal
18
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
+ connection_pool (>= 2.2.5)
24
+ drb
19
25
  i18n (>= 1.6, < 2)
26
+ logger (>= 1.4.2)
20
27
  minitest (>= 5.1)
28
+ mutex_m
29
+ securerandom (>= 0.3)
21
30
  tzinfo (~> 2.0)
22
- addressable (2.8.0)
23
- public_suffix (>= 2.0.2, < 5.0)
31
+ addressable (2.8.1)
32
+ public_suffix (>= 2.0.2, < 6.0)
24
33
  after_do (0.4.0)
34
+ base64 (0.2.0)
35
+ benchmark (0.4.0)
36
+ bigdecimal (3.1.9)
25
37
  byebug (11.1.3)
26
- concurrent-ruby (1.1.10)
38
+ concurrent-ruby (1.3.5)
39
+ connection_pool (2.5.0)
27
40
  crack (0.4.5)
28
41
  rexml
29
42
  diff-lcs (1.5.0)
30
43
  dotenv (2.8.1)
44
+ drb (2.2.1)
31
45
  hashdiff (1.0.1)
32
46
  httparty (0.20.0)
33
47
  mime-types (~> 3.0)
34
48
  multi_xml (>= 0.5.2)
35
- i18n (1.12.0)
49
+ i18n (1.14.7)
36
50
  concurrent-ruby (~> 1.0)
37
- mime-types (3.4.1)
51
+ logger (1.6.6)
52
+ mime-types (3.6.0)
53
+ logger
38
54
  mime-types-data (~> 3.2015)
39
- mime-types-data (3.2022.0105)
40
- minitest (5.16.3)
55
+ mime-types-data (3.2025.0304)
56
+ minitest (5.25.4)
41
57
  multi_xml (0.6.0)
42
- pg (1.4.3)
43
- public_suffix (4.0.7)
58
+ mutex_m (0.3.0)
59
+ pg (1.4.6)
60
+ public_suffix (5.0.1)
44
61
  rake (12.3.3)
45
62
  rexml (3.2.5)
46
- rspec (3.10.0)
47
- rspec-core (~> 3.10.0)
48
- rspec-expectations (~> 3.10.0)
49
- rspec-mocks (~> 3.10.0)
50
- rspec-core (3.10.1)
51
- rspec-support (~> 3.10.0)
52
- rspec-expectations (3.10.2)
63
+ rspec (3.12.0)
64
+ rspec-core (~> 3.12.0)
65
+ rspec-expectations (~> 3.12.0)
66
+ rspec-mocks (~> 3.12.0)
67
+ rspec-core (3.12.1)
68
+ rspec-support (~> 3.12.0)
69
+ rspec-expectations (3.12.2)
53
70
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-mocks (3.10.2)
71
+ rspec-support (~> 3.12.0)
72
+ rspec-mocks (3.12.4)
56
73
  diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-support (3.10.3)
59
- tzinfo (2.0.5)
74
+ rspec-support (~> 3.12.0)
75
+ rspec-support (3.12.0)
76
+ securerandom (0.3.2)
77
+ timeout (0.4.3)
78
+ tzinfo (2.0.6)
60
79
  concurrent-ruby (~> 1.0)
61
- webmock (3.14.0)
80
+ webmock (3.18.1)
62
81
  addressable (>= 2.8.0)
63
82
  crack (>= 0.3.2)
64
83
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -2,19 +2,17 @@ module PartyBus
2
2
  module Events
3
3
  class Create
4
4
  def self.perform_using(
5
- connection_id:,
5
+ connection_id: PartyBus.configuration.connection_id,
6
6
  payload:,
7
- resource_action:,
8
- resource_type:,
9
- timestamp: Time.now
7
+ timestamp: Time.now,
8
+ topic:
10
9
  )
11
- new(connection_id, payload, resource_type, resource_action, timestamp).perform
10
+ new(connection_id, payload, topic, timestamp).perform
12
11
  end
13
12
 
14
- def initialize(connection_id, payload, resource_type, resource_action, timestamp)
13
+ def initialize(connection_id, payload, topic, timestamp)
15
14
  @connection_id = connection_id
16
- @resource_type = resource_type
17
- @resource_action = resource_action
15
+ @topic = topic
18
16
  @payload = payload
19
17
  @timestamp = timestamp
20
18
  end
@@ -24,8 +22,7 @@ module PartyBus
24
22
  body: {
25
23
  event: {
26
24
  payload: @payload,
27
- resource_action: @resource_action,
28
- resource_type: @resource_type
25
+ topic: @topic,
29
26
  }
30
27
  },
31
28
  path: "/api/v1/connections/#{@connection_id}/events",
@@ -49,8 +49,7 @@ module Publishable
49
49
  {
50
50
  connection_id: pb_connection_id,
51
51
  payload: pb_payload,
52
- resource_type: pb_resource_name,
53
- resource_action: action,
52
+ topic: "#{pb_resource_name}.#{action}"
54
53
  }
55
54
  end
56
55
 
@@ -1,3 +1,3 @@
1
1
  module PartyBus
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/party_bus.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_runtime_dependency("after_do", '~> 0.4.0')
29
29
  spec.add_runtime_dependency("httparty", '~> 0.20.0')
30
- spec.add_runtime_dependency("activerecord", ">= 6.0", "<= 8.0")
30
+ spec.add_runtime_dependency("activerecord", ">= 5.0", "<= 8.0")
31
31
  # spec.add_runtime_dependency("activemodel", ">= 6.0")
32
32
  # spec.add_runtime_dependency("activesupport", ">= 6.0")
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - corey jergensen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: after_do
@@ -44,7 +44,7 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '6.0'
47
+ version: '5.0'
48
48
  - - "<="
49
49
  - !ruby/object:Gem::Version
50
50
  version: '8.0'
@@ -54,7 +54,7 @@ dependencies:
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: '6.0'
57
+ version: '5.0'
58
58
  - - "<="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '8.0'
@@ -92,7 +92,7 @@ metadata:
92
92
  homepage_uri: https://github.com/arid-software.com/party-bus-ruby
93
93
  source_code_uri: https://github.com/arid-software/party-bus-ruby
94
94
  changelog_uri: https://github.com/arid-software/party-bus-ruby/CHANGELOG.md
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubygems_version: 3.1.6
111
- signing_key:
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: Get on the PartyBus.
114
114
  test_files: []