activematrix 0.0.8 → 0.0.9
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 763fcbfe5b98eb8dcddb9e512f782ce3c8ff994f2581e0b5a18767a52e109515
|
|
4
|
+
data.tar.gz: cf71a8ec3f33ea722e6c3b0217e05585d2c70b07816875f602ad1bf74f054cc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6e3925d13d2708cd4b6e7e1280a3c1bfc275ad8accb353f37b7f9ea73e4886e7d69622c52bd984d307f592cdbd93482707892f5a7e64deed369296ef3b91be2
|
|
7
|
+
data.tar.gz: c61243b17caafb3a3752b1381526ebba8995b0b6033bbc1e84584b4785cc4dcc5acb59bc5a5352ee725380721fc50fbe15ab4b1bfd69f2f2e764a61c627d9d89
|
data/lib/active_matrix/engine.rb
CHANGED
|
@@ -4,13 +4,13 @@ require 'rails/engine'
|
|
|
4
4
|
|
|
5
5
|
module ActiveMatrix
|
|
6
6
|
class Engine < Rails::Engine
|
|
7
|
-
engine_name '
|
|
7
|
+
engine_name 'active_matrix'
|
|
8
8
|
|
|
9
|
-
initializer '
|
|
9
|
+
initializer 'active_matrix.configure_logger' do
|
|
10
10
|
ActiveMatrix.logger = Rails.logger
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
initializer '
|
|
13
|
+
initializer 'active_matrix.initialize_metrics', after: 'active_matrix.configure_logger' do
|
|
14
14
|
# Eagerly initialize Metrics singleton to subscribe to notifications
|
|
15
15
|
ActiveMatrix::Metrics.instance
|
|
16
16
|
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ActiveMatrix Connection Configuration
|
|
2
|
+
# Each key defines a named connection that can be referenced by agents.
|
|
3
|
+
#
|
|
4
|
+
# Usage:
|
|
5
|
+
# ActiveMatrix.client # Uses :primary connection
|
|
6
|
+
# ActiveMatrix.client(:notifications) # Uses :notifications connection
|
|
7
|
+
#
|
|
8
|
+
# Agents can reference connections via connection_name column,
|
|
9
|
+
# or provide inline credentials for user-uploaded/dynamic bots.
|
|
10
|
+
|
|
11
|
+
default: &default
|
|
12
|
+
# Sync filter limit for Matrix sync requests
|
|
13
|
+
sync_filter_limit: 20
|
|
14
|
+
|
|
15
|
+
primary:
|
|
16
|
+
<<: *default
|
|
17
|
+
homeserver_url: <%= ENV.fetch('MATRIX_HOMESERVER_URL', 'https://matrix.example.com') %>
|
|
18
|
+
access_token: <%= ENV['MATRIX_ACCESS_TOKEN'] %>
|
|
19
|
+
# Or use Rails credentials:
|
|
20
|
+
# access_token: <%%= Rails.application.credentials.dig(:matrix, :access_token) %>
|
|
21
|
+
|
|
22
|
+
# Example additional connections:
|
|
23
|
+
#
|
|
24
|
+
# notifications:
|
|
25
|
+
# <<: *default
|
|
26
|
+
# homeserver_url: <%= ENV.fetch('MATRIX_HOMESERVER_URL', 'https://matrix.example.com') %>
|
|
27
|
+
# access_token: <%= ENV['MATRIX_NOTIFICATIONS_TOKEN'] %>
|
|
28
|
+
#
|
|
29
|
+
# support:
|
|
30
|
+
# <<: *default
|
|
31
|
+
# homeserver_url: <%= ENV['SUPPORT_MATRIX_HOMESERVER'] %>
|
|
32
|
+
# access_token: <%%= Rails.application.credentials.dig(:matrix, :support_token) %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activematrix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abdelkader Boudih
|
|
@@ -477,6 +477,7 @@ files:
|
|
|
477
477
|
- lib/generators/active_matrix/install/install_generator.rb
|
|
478
478
|
- lib/generators/active_matrix/install/templates/README
|
|
479
479
|
- lib/generators/active_matrix/install/templates/active_matrix.rb
|
|
480
|
+
- lib/generators/active_matrix/install/templates/active_matrix.yml
|
|
480
481
|
homepage: https://github.com/seuros/activematrix
|
|
481
482
|
licenses:
|
|
482
483
|
- MIT
|