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 +4 -4
- data/Gemfile.lock +49 -30
- data/lib/party_bus/events/create.rb +7 -10
- data/lib/party_bus/models/concerns/publishable.rb +1 -2
- data/lib/party_bus/version.rb +1 -1
- data/party_bus.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 832767f34752bd2bd03335ce1727ffdb3d0c0af92319265dfc3adb05787a38a7
|
4
|
+
data.tar.gz: ec013a5bb553786067450783419ed6cca83670586470a08e9eec1d5f73a6d391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
activerecord (>=
|
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.
|
13
|
-
activesupport (= 7.
|
14
|
-
activerecord (7.
|
15
|
-
activemodel (= 7.
|
16
|
-
activesupport (= 7.
|
17
|
-
|
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.
|
23
|
-
public_suffix (>= 2.0.2, <
|
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.
|
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.
|
49
|
+
i18n (1.14.7)
|
36
50
|
concurrent-ruby (~> 1.0)
|
37
|
-
|
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.
|
40
|
-
minitest (5.
|
55
|
+
mime-types-data (3.2025.0304)
|
56
|
+
minitest (5.25.4)
|
41
57
|
multi_xml (0.6.0)
|
42
|
-
|
43
|
-
|
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.
|
47
|
-
rspec-core (~> 3.
|
48
|
-
rspec-expectations (~> 3.
|
49
|
-
rspec-mocks (~> 3.
|
50
|
-
rspec-core (3.
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-expectations (3.
|
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.
|
55
|
-
rspec-mocks (3.
|
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.
|
58
|
-
rspec-support (3.
|
59
|
-
|
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.
|
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
|
-
|
8
|
-
|
9
|
-
timestamp: Time.now
|
7
|
+
timestamp: Time.now,
|
8
|
+
topic:
|
10
9
|
)
|
11
|
-
new(connection_id, payload,
|
10
|
+
new(connection_id, payload, topic, timestamp).perform
|
12
11
|
end
|
13
12
|
|
14
|
-
def initialize(connection_id, payload,
|
13
|
+
def initialize(connection_id, payload, topic, timestamp)
|
15
14
|
@connection_id = connection_id
|
16
|
-
@
|
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
|
-
|
28
|
-
resource_type: @resource_type
|
25
|
+
topic: @topic,
|
29
26
|
}
|
30
27
|
},
|
31
28
|
path: "/api/v1/connections/#{@connection_id}/events",
|
data/lib/party_bus/version.rb
CHANGED
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", ">=
|
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.
|
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:
|
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: '
|
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: '
|
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: []
|