async-matrix 0.1.0 → 0.1.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 +4 -4
- data/lib/async/matrix/application_service/config.rb +1 -1
- data/lib/async/matrix/application_service/dispatcher.rb +1 -1
- data/lib/async/matrix/application_service/error_response.rb +1 -0
- data/lib/async/matrix/application_service/event.rb +1 -0
- data/lib/async/matrix/application_service/server.rb +2 -3
- data/lib/async/matrix/application_service/transaction.rb +1 -1
- data/lib/async/matrix/application_service/transaction_store.rb +1 -0
- data/lib/async/matrix/client.rb +1 -4
- data/lib/async/matrix/connection.rb +1 -0
- data/lib/async/matrix/endpoint.rb +1 -0
- data/lib/async/matrix/notifier.rb +1 -0
- data/lib/async/matrix/stream.rb +2 -1
- data/lib/async/matrix/version.rb +1 -1
- data/lib/async/matrix.rb +1 -3
- metadata +7 -8
- data/lib/async.rb +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd9817ec44e2e9845feb1ef66bc8f6c4073c6c1373eb7c479e657cd565f81d72
|
|
4
|
+
data.tar.gz: 6d8ce8ca5a92514678eadfff44d5282e37aaf2c5fea9a11183a83a7707c8bf45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57dae3207bcfd2bffe03369fb2b507d08a04ccd939b5ed6408cc3b3f9f3c3790d5ead8e1406bbd3c233bf03fe7f55ed997aa2e1913dfca24268dc89938017ae2
|
|
7
|
+
data.tar.gz: a67111159269974ccac1fb8519664f252e4db06ee4f7b22deba3e29800ab871c70c50602d29e5ab96b2336c1d53d2308f3494ac4507d1ff081dc4da618c9d4b5
|
|
@@ -7,6 +7,7 @@ require "bundler/setup"
|
|
|
7
7
|
require "json"
|
|
8
8
|
require "rack"
|
|
9
9
|
require "console"
|
|
10
|
+
require "async/matrix"
|
|
10
11
|
|
|
11
12
|
module Async
|
|
12
13
|
module Matrix
|
|
@@ -123,9 +124,7 @@ end
|
|
|
123
124
|
|
|
124
125
|
test do
|
|
125
126
|
require "stringio"
|
|
126
|
-
|
|
127
|
-
require_relative "dispatcher"
|
|
128
|
-
require_relative "event"
|
|
127
|
+
require "async/matrix"
|
|
129
128
|
|
|
130
129
|
describe "Async::Matrix::ApplicationService::Server" do
|
|
131
130
|
def build_server(hs_token: "secret")
|
data/lib/async/matrix/client.rb
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
require "bundler/setup"
|
|
7
7
|
require "async/http/internet"
|
|
8
|
+
require "async/matrix"
|
|
8
9
|
require "json"
|
|
9
10
|
require "erb"
|
|
10
11
|
require "console"
|
|
11
12
|
require "securerandom"
|
|
12
|
-
require_relative "error"
|
|
13
|
-
require_relative "application_service/error_response"
|
|
14
13
|
|
|
15
14
|
module Async
|
|
16
15
|
module Matrix
|
|
@@ -150,8 +149,6 @@ module Async
|
|
|
150
149
|
end
|
|
151
150
|
|
|
152
151
|
test do
|
|
153
|
-
require_relative "version"
|
|
154
|
-
|
|
155
152
|
describe "Async::Matrix::Client" do
|
|
156
153
|
it "sets authorization header from config" do
|
|
157
154
|
config = Struct.new(:homeserver_url, :as_token, :bot_mxid).new(
|
data/lib/async/matrix/stream.rb
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the Apache License, Version 2.0.
|
|
4
|
-
Copyright, 2026, by General Intelligence Systems.
|
|
4
|
+
# Copyright, 2026, by General Intelligence Systems.
|
|
5
5
|
|
|
6
6
|
require "bundler/setup"
|
|
7
7
|
require "async/http"
|
|
8
|
+
require "async/matrix"
|
|
8
9
|
|
|
9
10
|
module Async
|
|
10
11
|
module Matrix
|
data/lib/async/matrix/version.rb
CHANGED
data/lib/async/matrix.rb
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
# Released under the Apache License, Version 2.0.
|
|
4
4
|
# Copyright, 2026, by General Intelligence Systems.
|
|
5
5
|
|
|
6
|
-
# @namespace
|
|
7
6
|
module Async
|
|
8
|
-
# @namespace
|
|
9
7
|
module Matrix
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
|
|
13
|
-
Dir.glob("#{__dir__}/
|
|
11
|
+
Dir.glob("#{__dir__}/matrix/**/*.rb").sort.each do |path|
|
|
14
12
|
require path
|
|
15
13
|
end
|
|
16
14
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-matrix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Kidd
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '2.
|
|
18
|
+
version: '2.39'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '2.
|
|
25
|
+
version: '2.39'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: async-http
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '0.
|
|
32
|
+
version: '0.95'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0.
|
|
39
|
+
version: '0.95'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: scampi
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -57,14 +57,14 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0.
|
|
60
|
+
version: '0.55'
|
|
61
61
|
type: :development
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0.
|
|
67
|
+
version: '0.55'
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: logger
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -88,7 +88,6 @@ extensions: []
|
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
90
|
- LICENSE
|
|
91
|
-
- lib/async.rb
|
|
92
91
|
- lib/async/matrix.rb
|
|
93
92
|
- lib/async/matrix/application_service/config.rb
|
|
94
93
|
- lib/async/matrix/application_service/dispatcher.rb
|