lex-slack 0.3.1 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81ffcbb38d6e5bb861f6aac18166ae6f9e26537b7a932b7948570a14c5f4b8d9
4
- data.tar.gz: 368709c51f5c3467c8c670bef76f2e07621b9b5789c769340b399357dce4ceb2
3
+ metadata.gz: 4b8196bc2057e484235a52cd82902455f2977354b005d5846bbbfd134abf6527
4
+ data.tar.gz: 3206478d6027e377bdeab627ffc746769ae00bbc4cd078e76e1487a792e3c510
5
5
  SHA512:
6
- metadata.gz: 6fe762e104e2dd5d379ee4a6a9a74aec0e9961ab756f18acc5ac902c1476e865e77a9efe83c6c7995abdde5d7248f05984111054b0553d9d5121b27c9ed85767
7
- data.tar.gz: 70dfd203cd04cbdf0ec78b3a5e28f6a41779d5f4ebbffc09b1678a55cbe06cf4e94b6ac91751d34de5462bd869463f69fdb0d9b16eea9d7ab8cfd36e14cc6c7b
6
+ metadata.gz: f7a90326efe207f3466b71e7ee4421be47ec42815f030cdd6ae4704900dfa77a1953651ffc62334eef752dd31bb559d43130c6d02a09e09c04a69f8d57af09e6
7
+ data.tar.gz: 24b19a62dccab09e3a793826f026081f4fe57aaaf2f4a0326388fc5c2bd6874d552567a5a9057d72ee441a32724de4c2cd71c2a39f5fd131a505570b4791e0d4
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+ ### Fixed
6
+ - Rewrite MessagePoller as proper Every actor with correct base class, method names, and self-contained runner_class
7
+ - Fix Settings access: use `Legion::Settings` directly instead of `Legion::Settings.to_h` (Settings is a module, not a Hash)
8
+
3
9
  ## [0.3.1] - 2026-03-22
4
10
 
5
11
  ### Changed
@@ -4,15 +4,21 @@ module Legion
4
4
  module Extensions
5
5
  module Slack
6
6
  module Actor
7
- class MessagePoller
7
+ class MessagePoller < Legion::Extensions::Actors::Every
8
8
  include Helpers::Client
9
- include Legion::Logging::Helper
10
9
 
11
- def initialize
10
+ def runner_class = self.class
11
+
12
+ def initialize(**)
12
13
  @hwm = {}
14
+ super
15
+ end
16
+
17
+ def time
18
+ settings.dig('lex-slack', 'poller', 'interval') || 30
13
19
  end
14
20
 
15
- def run
21
+ def action(**)
16
22
  return unless enabled?
17
23
  return if channels.empty?
18
24
 
@@ -24,10 +30,6 @@ module Legion
24
30
  end
25
31
  end
26
32
 
27
- def interval
28
- settings.dig('lex-slack', 'poller', 'interval') || 30
29
- end
30
-
31
33
  private
32
34
 
33
35
  def enabled?
@@ -69,7 +71,7 @@ module Legion
69
71
  end
70
72
 
71
73
  def settings
72
- return Legion::Settings.to_h if defined?(Legion::Settings)
74
+ return Legion::Settings if defined?(Legion::Settings)
73
75
 
74
76
  {}
75
77
  end
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Slack
6
- VERSION = '0.3.1'
6
+ VERSION = '0.3.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -135,7 +135,6 @@ files:
135
135
  - CHANGELOG.md
136
136
  - CLAUDE.md
137
137
  - Gemfile
138
- - Gemfile.lock
139
138
  - LICENSE.txt
140
139
  - README.md
141
140
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,158 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- lex-slack (0.3.1)
5
- faraday (>= 2.0)
6
- legion-cache (>= 1.3.11)
7
- legion-crypt (>= 1.4.9)
8
- legion-data (>= 1.4.17)
9
- legion-json (>= 1.2.1)
10
- legion-logging (>= 1.3.2)
11
- legion-settings (>= 1.3.14)
12
- legion-transport (>= 1.3.9)
13
-
14
- GEM
15
- remote: https://rubygems.org/
16
- specs:
17
- addressable (2.8.9)
18
- public_suffix (>= 2.0.2, < 8.0)
19
- amq-protocol (2.5.1)
20
- ast (2.4.3)
21
- aws-eventstream (1.4.0)
22
- aws-sigv4 (1.12.1)
23
- aws-eventstream (~> 1, >= 1.0.2)
24
- base64 (0.3.0)
25
- bigdecimal (4.0.1)
26
- bunny (2.24.0)
27
- amq-protocol (~> 2.3)
28
- sorted_set (~> 1, >= 1.0.2)
29
- concurrent-ruby (1.3.6)
30
- connection_pool (2.5.5)
31
- dalli (5.0.2)
32
- logger
33
- diff-lcs (1.6.2)
34
- ed25519 (1.4.0)
35
- faraday (2.14.1)
36
- faraday-net_http (>= 2.0, < 3.5)
37
- json
38
- logger
39
- faraday-net_http (3.4.2)
40
- net-http (~> 0.5)
41
- json (2.19.1)
42
- json-schema (6.2.0)
43
- addressable (~> 2.8)
44
- bigdecimal (>= 3.1, < 5)
45
- json_pure (2.8.1)
46
- jwt (3.1.2)
47
- base64
48
- language_server-protocol (3.17.0.5)
49
- legion-cache (1.3.11)
50
- connection_pool (>= 2.4)
51
- dalli (>= 3.0)
52
- legion-logging (>= 1.2.8)
53
- legion-settings (>= 1.3.12)
54
- redis (>= 5.0)
55
- legion-crypt (1.4.9)
56
- ed25519 (~> 1.3)
57
- jwt (>= 2.7)
58
- vault (>= 0.17)
59
- legion-data (1.4.17)
60
- legion-logging (>= 1.2.8)
61
- legion-settings (>= 1.3.12)
62
- sequel (>= 5.70)
63
- sqlite3 (>= 2.0)
64
- legion-json (1.2.1)
65
- json_pure
66
- multi_json
67
- legion-logging (1.3.2)
68
- logger
69
- rainbow (~> 3)
70
- legion-settings (1.3.14)
71
- legion-json (>= 1.2.0)
72
- legion-transport (1.3.9)
73
- bunny (>= 2.23)
74
- concurrent-ruby (>= 1.2)
75
- legion-json (>= 1.2.0)
76
- legion-settings (>= 1.3.12)
77
- logger
78
- lint_roller (1.1.0)
79
- logger (1.7.0)
80
- mcp (0.8.0)
81
- json-schema (>= 4.1)
82
- multi_json (1.19.1)
83
- net-http (0.9.1)
84
- uri (>= 0.11.1)
85
- net-http-persistent (4.0.8)
86
- connection_pool (>= 2.2.4, < 4)
87
- parallel (1.27.0)
88
- parser (3.3.10.2)
89
- ast (~> 2.4.1)
90
- racc
91
- prism (1.9.0)
92
- public_suffix (7.0.5)
93
- racc (1.8.1)
94
- rainbow (3.1.1)
95
- rake (12.3.3)
96
- rbtree (0.4.6)
97
- redis (5.4.1)
98
- redis-client (>= 0.22.0)
99
- redis-client (0.28.0)
100
- connection_pool
101
- regexp_parser (2.11.3)
102
- rspec (3.13.2)
103
- rspec-core (~> 3.13.0)
104
- rspec-expectations (~> 3.13.0)
105
- rspec-mocks (~> 3.13.0)
106
- rspec-core (3.13.6)
107
- rspec-support (~> 3.13.0)
108
- rspec-expectations (3.13.5)
109
- diff-lcs (>= 1.2.0, < 2.0)
110
- rspec-support (~> 3.13.0)
111
- rspec-mocks (3.13.8)
112
- diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.13.0)
114
- rspec-support (3.13.7)
115
- rubocop (1.85.1)
116
- json (~> 2.3)
117
- language_server-protocol (~> 3.17.0.2)
118
- lint_roller (~> 1.1.0)
119
- mcp (~> 0.6)
120
- parallel (~> 1.10)
121
- parser (>= 3.3.0.2)
122
- rainbow (>= 2.2.2, < 4.0)
123
- regexp_parser (>= 2.9.3, < 3.0)
124
- rubocop-ast (>= 1.49.0, < 2.0)
125
- ruby-progressbar (~> 1.7)
126
- unicode-display_width (>= 2.4.0, < 4.0)
127
- rubocop-ast (1.49.1)
128
- parser (>= 3.3.7.2)
129
- prism (~> 1.7)
130
- ruby-progressbar (1.13.0)
131
- sequel (5.102.0)
132
- bigdecimal
133
- sorted_set (1.1.0)
134
- rbtree
135
- sqlite3 (2.9.2-arm64-darwin)
136
- unicode-display_width (3.2.0)
137
- unicode-emoji (~> 4.1)
138
- unicode-emoji (4.2.0)
139
- uri (1.1.1)
140
- vault (0.20.0)
141
- aws-sigv4
142
- base64
143
- connection_pool (~> 2.4)
144
- net-http-persistent (~> 4.0, >= 4.0.2)
145
-
146
- PLATFORMS
147
- arm64-darwin-25
148
- ruby
149
-
150
- DEPENDENCIES
151
- bundler (>= 2)
152
- lex-slack!
153
- rake
154
- rspec
155
- rubocop
156
-
157
- BUNDLED WITH
158
- 2.6.9