slack-ruby-bot-server 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +8 -8
- data/lib/slack-ruby-bot-server/service.rb +7 -5
- data/lib/slack-ruby-bot-server/version.rb +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: fe48cdcb6c79a078efd57c77f7a4398fbf322c9f9d18273d034d5d03fee5e891
|
4
|
+
data.tar.gz: 7c191f0dde13331ef4c729d03c786f1bf204f707d5d70a671c9dd9c49260a786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31d2a6cb3ce5b0f4f4b15b42422f82ab5ac34ff34098c9bf6843da8473f669fe62b543d7b594d1fa831e205839a321824ebdcbc7dafd2d369a41ec23fec88c44
|
7
|
+
data.tar.gz: 934b76c1bbacad15e7988d4732ce3f904f6c872a3e36186d00d3833370831f318700a768098fa433410b3b0941c2387d6868849c9e4f20fef7f06f8618c84569
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
### Changelog
|
2
2
|
|
3
|
+
### 2.1.1 (2023/07/25)
|
4
|
+
|
5
|
+
* [#172](https://github.com/slack-ruby/slack-ruby-bot-server/pull/172): Fix: intervals may not always be started in an async block - [@dblock](https://github.com/dblock).
|
6
|
+
|
3
7
|
### 2.1.0 (2023/03/06)
|
4
8
|
|
5
9
|
* [#163](https://github.com/slack-ruby/slack-ruby-bot-server/pull/163): Updated releasing documentation - [@crazyoptimist](https://github.com/crazyoptimist).
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ A library that contains a web server and a RESTful [Grape](http://github.com/rub
|
|
40
40
|
|
41
41
|
## Stable Release
|
42
42
|
|
43
|
-
You're reading the documentation for the **stable** release of slack-ruby-bot-server, 2.1.
|
43
|
+
You're reading the documentation for the **stable** release of slack-ruby-bot-server, 2.1.1. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
|
44
44
|
|
45
45
|
## Make Your Own
|
46
46
|
|
@@ -101,13 +101,13 @@ production:
|
|
101
101
|
Establish a connection in your startup code.
|
102
102
|
|
103
103
|
```ruby
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
)
|
104
|
+
yml = ERB.new(File.read(File.expand_path('config/postgresql.yml', __dir__))).result
|
105
|
+
db_config = if Gem::Version.new(Psych::VERSION) >= Gem::Version.new('3.1.0.pre1')
|
106
|
+
::YAML.safe_load(yml, aliases: true)[ENV['RACK_ENV']]
|
107
|
+
else
|
108
|
+
::YAML.safe_load(yml, [], [], true)[ENV['RACK_ENV']]
|
109
|
+
end
|
110
|
+
ActiveRecord::Base.establish_connection(db_config)
|
111
111
|
```
|
112
112
|
|
113
113
|
### OAuth Version and Scopes
|
@@ -79,11 +79,13 @@ module SlackRubyBotServer
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def start_intervals!
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
82
|
+
::Async::Reactor.run do
|
83
|
+
@intervals.each_pair do |period, calls_with_options|
|
84
|
+
calls_with_options.each do |call_with_options|
|
85
|
+
call, options = *call_with_options
|
86
|
+
_every period, options do
|
87
|
+
call.call
|
88
|
+
end
|
87
89
|
end
|
88
90
|
end
|
89
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-ruby-bot-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -150,7 +150,7 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
-
description:
|
153
|
+
description:
|
154
154
|
email:
|
155
155
|
- dblock@dblock.org
|
156
156
|
executables: []
|
@@ -230,7 +230,7 @@ files:
|
|
230
230
|
homepage: https://github.com/slack-ruby/slack-ruby-bot-server
|
231
231
|
licenses: []
|
232
232
|
metadata: {}
|
233
|
-
post_install_message:
|
233
|
+
post_install_message:
|
234
234
|
rdoc_options: []
|
235
235
|
require_paths:
|
236
236
|
- lib
|
@@ -245,8 +245,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
- !ruby/object:Gem::Version
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
249
|
-
signing_key:
|
248
|
+
rubygems_version: 3.3.7
|
249
|
+
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: A Grape API serving a Slack bot to multiple teams.
|
252
252
|
test_files: []
|