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: 91157233aaf3c81b35092f75d78eb3ebab06a9f0d93c40a9b098283cec571add
4
- data.tar.gz: f9b0de48655ee41174628f26d6683caca5b35aa4e3e54664d79ae859086fa670
3
+ metadata.gz: 763fcbfe5b98eb8dcddb9e512f782ce3c8ff994f2581e0b5a18767a52e109515
4
+ data.tar.gz: cf71a8ec3f33ea722e6c3b0217e05585d2c70b07816875f602ad1bf74f054cc8
5
5
  SHA512:
6
- metadata.gz: 13a5cf30e83f2b665cd52fd110b4d2bf1ae4bb95a41586e8fa8c670c0cc2370c8bfbff16d835aacf4d8b484ea2cd59096fc542b5bc5643d060dbf307c2f00502
7
- data.tar.gz: bc74041cc3d86999d9113a6c4e6a273aeef54f6ba3682981b180b5c3006ab7c6bd85f4049461cb908253ae1471a78f62245bddd8f3b099be715548c4761ebc7a
6
+ metadata.gz: e6e3925d13d2708cd4b6e7e1280a3c1bfc275ad8accb353f37b7f9ea73e4886e7d69622c52bd984d307f592cdbd93482707892f5a7e64deed369296ef3b91be2
7
+ data.tar.gz: c61243b17caafb3a3752b1381526ebba8995b0b6033bbc1e84584b4785cc4dcc5acb59bc5a5352ee725380721fc50fbe15ab4b1bfd69f2f2e764a61c627d9d89
@@ -4,13 +4,13 @@ require 'rails/engine'
4
4
 
5
5
  module ActiveMatrix
6
6
  class Engine < Rails::Engine
7
- engine_name 'activematrix'
7
+ engine_name 'active_matrix'
8
8
 
9
- initializer 'activematrix.configure_logger' do
9
+ initializer 'active_matrix.configure_logger' do
10
10
  ActiveMatrix.logger = Rails.logger
11
11
  end
12
12
 
13
- initializer 'activematrix.initialize_metrics', after: 'activematrix.configure_logger' do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveMatrix
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  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.8
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