waylon-slack 0.1.0 → 0.1.1

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: 909809c1f1e6121fb84667fb922a54cf22cbd801191ab646c9c9db5305c87e60
4
- data.tar.gz: d776dd6a040f8278862e8df2c176254acac8a2695e4965e8c06c3b56daef57e0
3
+ metadata.gz: 289f72080f0aa389679806018c4dd27ef23000b514e1c8641c50a7949cecf88d
4
+ data.tar.gz: f450aa3cc618f334a027cd04b0dd5c95baf690522a0da38c80199c928b17b1a7
5
5
  SHA512:
6
- metadata.gz: 56e572e2fbc880b4ce64f5a61ba888712282e54334705b07d8ecb671d8064fd5b2c217b7f789979bbc1e64ec09ca204b01e301b0b5c1d22766f74a6997c19661
7
- data.tar.gz: 5bfeadf428a8bc725c058955a5c0ca4987af49940d7c6523a02b8644e197ff495289f81aa8ea9fd9ef03d2126fa3431ec7ff9db46c5c2db2607f527bf4d33499
6
+ metadata.gz: 990149e52cdfcd179ef20c2df4b90c8a1b5498f141bc6582c87e132e594d765dadd91770848a0d4608933014b80478f827b137e0e5aa144019eb90a81ff97dd1
7
+ data.tar.gz: e964f0f201916edb7bd56119740a0b33a194d32e086afa9706a28598d6b7bc5623c384b57d1d97a52a98f6ae2481f1fef5e9134cf81b5cfd6de2bf6301714b4c
data/.roxanne.yml CHANGED
@@ -2,3 +2,7 @@ version: 1.0
2
2
  stages:
3
3
  test:
4
4
  image: ruby:3.1
5
+ release:
6
+ image: ruby:3.1
7
+ only:
8
+ - main
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.0
2
+ TargetRubyVersion: 3.1
3
3
  NewCops: enable
4
4
 
5
5
  Style/MixinUsage:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waylon-slack (0.1.0)
4
+ waylon-slack (0.1.1)
5
5
  slack-ruby-client (~> 1.0)
6
6
  waylon-core (~> 0.1)
7
7
 
@@ -11,10 +11,10 @@ GEM
11
11
  addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.2)
14
- concurrent-ruby (1.1.9)
14
+ concurrent-ruby (1.1.10)
15
15
  diff-lcs (1.5.0)
16
16
  docile (1.4.0)
17
- faraday (1.9.3)
17
+ faraday (1.10.0)
18
18
  faraday-em_http (~> 1.0)
19
19
  faraday-em_synchrony (~> 1.0)
20
20
  faraday-excon (~> 1.1)
@@ -41,65 +41,64 @@ GEM
41
41
  faraday (~> 1.0)
42
42
  gli (2.21.0)
43
43
  hashie (5.0.0)
44
- i18n (1.9.1)
44
+ i18n (1.10.0)
45
45
  concurrent-ruby (~> 1.0)
46
- json (2.6.1)
47
- moneta (1.4.2)
46
+ json (2.6.2)
47
+ moneta (1.5.1)
48
48
  mono_logger (1.1.1)
49
49
  multi_json (1.15.0)
50
- multipart-post (2.1.1)
50
+ multipart-post (2.2.0)
51
51
  mustermann (1.1.1)
52
52
  ruby2_keywords (~> 0.0.1)
53
53
  nio4r (2.5.8)
54
- parallel (1.21.0)
55
- parser (3.1.0.0)
54
+ parallel (1.22.1)
55
+ parser (3.1.2.0)
56
56
  ast (~> 2.4.1)
57
- public_suffix (4.0.6)
58
- puma (5.6.1)
57
+ public_suffix (4.0.7)
58
+ puma (5.6.4)
59
59
  nio4r (~> 2.0)
60
- rack (2.2.3)
61
- rack-protection (2.1.0)
60
+ rack (2.2.3.1)
61
+ rack-protection (2.2.0)
62
62
  rack
63
63
  rainbow (3.1.1)
64
64
  rake (13.0.6)
65
- redis (4.5.1)
66
- redis-namespace (1.8.1)
65
+ redis (4.6.0)
66
+ redis-namespace (1.8.2)
67
67
  redis (>= 3.0.4)
68
- regexp_parser (2.2.0)
69
- resque (2.2.0)
68
+ regexp_parser (2.4.0)
69
+ resque (2.2.1)
70
70
  mono_logger (~> 1.0)
71
71
  multi_json (~> 1.0)
72
72
  redis-namespace (~> 1.6)
73
73
  sinatra (>= 0.9.2)
74
- vegas (~> 0.1.2)
75
74
  rexml (3.2.5)
76
- rspec (3.10.0)
77
- rspec-core (~> 3.10.0)
78
- rspec-expectations (~> 3.10.0)
79
- rspec-mocks (~> 3.10.0)
80
- rspec-core (3.10.2)
81
- rspec-support (~> 3.10.0)
82
- rspec-expectations (3.10.2)
75
+ rspec (3.11.0)
76
+ rspec-core (~> 3.11.0)
77
+ rspec-expectations (~> 3.11.0)
78
+ rspec-mocks (~> 3.11.0)
79
+ rspec-core (3.11.0)
80
+ rspec-support (~> 3.11.0)
81
+ rspec-expectations (3.11.0)
83
82
  diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.10.0)
85
- rspec-mocks (3.10.3)
83
+ rspec-support (~> 3.11.0)
84
+ rspec-mocks (3.11.1)
86
85
  diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.10.0)
88
- rspec-support (3.10.3)
89
- rubocop (1.25.0)
86
+ rspec-support (~> 3.11.0)
87
+ rspec-support (3.11.0)
88
+ rubocop (1.29.1)
90
89
  parallel (~> 1.10)
91
90
  parser (>= 3.1.0.0)
92
91
  rainbow (>= 2.2.2, < 4.0)
93
92
  regexp_parser (>= 1.8, < 3.0)
94
- rexml
95
- rubocop-ast (>= 1.15.1, < 2.0)
93
+ rexml (>= 3.2.5, < 4.0)
94
+ rubocop-ast (>= 1.17.0, < 2.0)
96
95
  ruby-progressbar (~> 1.7)
97
96
  unicode-display_width (>= 1.4.0, < 3.0)
98
- rubocop-ast (1.15.1)
99
- parser (>= 3.0.1.1)
97
+ rubocop-ast (1.18.0)
98
+ parser (>= 3.1.1.0)
100
99
  rubocop-rake (0.6.0)
101
100
  rubocop (~> 1.0)
102
- rubocop-rspec (2.8.0)
101
+ rubocop-rspec (2.11.1)
103
102
  rubocop (~> 1.19)
104
103
  ruby-progressbar (1.11.0)
105
104
  ruby2_keywords (0.0.5)
@@ -108,11 +107,11 @@ GEM
108
107
  simplecov-html (~> 0.11)
109
108
  simplecov_json_formatter (~> 0.1)
110
109
  simplecov-html (0.12.3)
111
- simplecov_json_formatter (0.1.3)
112
- sinatra (2.1.0)
110
+ simplecov_json_formatter (0.1.4)
111
+ sinatra (2.2.0)
113
112
  mustermann (~> 1.0)
114
113
  rack (~> 2.2)
115
- rack-protection (= 2.1.0)
114
+ rack-protection (= 2.2.0)
116
115
  tilt (~> 2.0)
117
116
  slack-ruby-client (1.0.0)
118
117
  faraday (>= 1.0)
@@ -122,9 +121,7 @@ GEM
122
121
  websocket-driver
123
122
  tilt (2.0.10)
124
123
  unicode-display_width (2.1.0)
125
- vegas (0.1.11)
126
- rack (>= 1.0.0)
127
- waylon-core (0.1.3)
124
+ waylon-core (0.1.4)
128
125
  addressable (~> 2.8)
129
126
  faraday (~> 1.8)
130
127
  i18n (~> 1.8)
@@ -141,6 +138,7 @@ GEM
141
138
 
142
139
  PLATFORMS
143
140
  arm64-darwin-21
141
+ x86_64-linux
144
142
 
145
143
  DEPENDENCIES
146
144
  bundler (~> 2.3)
@@ -39,7 +39,7 @@ module Waylon
39
39
  # @return [void]
40
40
  def self.private_reply(request, text)
41
41
  message = message_from_request(request)
42
- message.author.dm(text: text)
42
+ message.author.dm(text:)
43
43
  end
44
44
 
45
45
  # Provides a simple means to privately reply to the author of a Message using Blocks
@@ -48,7 +48,7 @@ module Waylon
48
48
  # @return [void]
49
49
  def self.private_reply_with_blocks(request, blocks)
50
50
  message = message_from_request(request)
51
- message.author.dm(blocks: blocks)
51
+ message.author.dm(blocks:)
52
52
  end
53
53
 
54
54
  # Allows reacting to a request via the Sense's own mechanism
@@ -66,7 +66,7 @@ module Waylon
66
66
  # @return [void]
67
67
  def self.reply(request, text)
68
68
  message = message_from_request(request)
69
- message.channel.post(text: text)
69
+ message.channel.post(text:)
70
70
  end
71
71
 
72
72
  # Reply to a Message in a Channel with some blocks
@@ -75,7 +75,7 @@ module Waylon
75
75
  # @return [void]
76
76
  def self.reply_with_blocks(request, blocks)
77
77
  message = message_from_request(request)
78
- message.channel.post(blocks: blocks)
78
+ message.channel.post(blocks:)
79
79
  end
80
80
 
81
81
  # Executed by Resque, this is how this Sense determines what to do with an incoming request
@@ -106,7 +106,7 @@ module Waylon
106
106
  # @return [void]
107
107
  def self.threaded_reply(request, text)
108
108
  message = message_from_request(request)
109
- message.channel.post(text: text, thread: message.thread_parent)
109
+ message.channel.post(text:, thread: message.thread_parent)
110
110
  end
111
111
 
112
112
  # Required by the Waylon framework, this provides the Sense's own Message class
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Waylon
4
4
  module Slack
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
data/lib/waylon/slack.rb CHANGED
@@ -4,7 +4,7 @@ require "waylon/core"
4
4
  require "slack-ruby-client"
5
5
 
6
6
  ::Slack.configure do |conf|
7
- conf.token = ENV["SLACK_OAUTH_TOKEN"]
7
+ conf.token = ENV.fetch("SLACK_OAUTH_TOKEN", nil)
8
8
  conf.logger = Waylon::Logger.logger
9
9
  end
10
10
 
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+
3
+ gem install bundler -v '~> 2.3'
4
+ bundle install
5
+ rm -rf pkg/*.gem
6
+ bundle exec rake build
7
+ bundle exec gem push pkg/*.gem
data/waylon-slack.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Full Slack integration for the Waylon Bot Framework"
13
13
  spec.homepage = "https://github.com/jgnagy/waylon-slack"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = "~> 3.0"
15
+ spec.required_ruby_version = "~> 3.1"
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = "https://github.com/jgnagy/waylon-slack"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waylon-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-client
@@ -183,6 +183,7 @@ files:
183
183
  - lib/waylon/slack/user.rb
184
184
  - lib/waylon/slack/version.rb
185
185
  - lib/waylon/webhooks/slack.rb
186
+ - scripts/release.sh
186
187
  - scripts/test.sh
187
188
  - waylon-slack.gemspec
188
189
  homepage: https://github.com/jgnagy/waylon-slack
@@ -192,7 +193,7 @@ metadata:
192
193
  homepage_uri: https://github.com/jgnagy/waylon-slack
193
194
  source_code_uri: https://github.com/jgnagy/waylon-slack
194
195
  changelog_uri: https://github.com/jgnagy/waylon-slack/blob/main/CHANGELOG.md
195
- post_install_message:
196
+ post_install_message:
196
197
  rdoc_options: []
197
198
  require_paths:
198
199
  - lib
@@ -200,15 +201,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
201
  requirements:
201
202
  - - "~>"
202
203
  - !ruby/object:Gem::Version
203
- version: '3.0'
204
+ version: '3.1'
204
205
  required_rubygems_version: !ruby/object:Gem::Requirement
205
206
  requirements:
206
207
  - - ">="
207
208
  - !ruby/object:Gem::Version
208
209
  version: '0'
209
210
  requirements: []
210
- rubygems_version: 3.3.3
211
- signing_key:
211
+ rubygems_version: 3.3.7
212
+ signing_key:
212
213
  specification_version: 4
213
214
  summary: Slack Sense for the Waylon Bot Framework
214
215
  test_files: []