waylon-slack 0.1.1 → 0.1.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: 289f72080f0aa389679806018c4dd27ef23000b514e1c8641c50a7949cecf88d
4
- data.tar.gz: f450aa3cc618f334a027cd04b0dd5c95baf690522a0da38c80199c928b17b1a7
3
+ metadata.gz: 8a334379ea99d3b5f7946e90502a44c6edd6fcd9b2d5a7d28b3795ad0d943fee
4
+ data.tar.gz: 80c31fc47535da4645c02c55a80023071a03483dfd9979ed42742f0acd230355
5
5
  SHA512:
6
- metadata.gz: 990149e52cdfcd179ef20c2df4b90c8a1b5498f141bc6582c87e132e594d765dadd91770848a0d4608933014b80478f827b137e0e5aa144019eb90a81ff97dd1
7
- data.tar.gz: e964f0f201916edb7bd56119740a0b33a194d32e086afa9706a28598d6b7bc5623c384b57d1d97a52a98f6ae2481f1fef5e9134cf81b5cfd6de2bf6301714b4c
6
+ metadata.gz: 203c08e506188ff3128c7db54e8b85163ec179ebb671f733b1e45af6465182f3c635dff16e89d803f2296390b413303a22f70d732b2bfb5aa8cc7c461b38c631
7
+ data.tar.gz: f9891f817649bdf9ff4539acede3ec6b972ac191854b6090a081c2a977be136d7b2aa5e38b4c293834f0a19e3efbd1be2ede5bc58c37b1bde2ecd76a9f2cfa5f
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 3.1
3
3
  NewCops: enable
4
+ SuggestExtensions: false
4
5
 
5
6
  Style/MixinUsage:
6
7
  Exclude:
@@ -36,3 +37,6 @@ Metrics/BlockLength:
36
37
  Exclude:
37
38
  - "**/*_spec.rb"
38
39
  - "*.gemspec"
40
+
41
+ Gemspec/DevelopmentDependencies:
42
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,20 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waylon-slack (0.1.1)
4
+ waylon-slack (0.1.2)
5
5
  slack-ruby-client (~> 1.0)
6
6
  waylon-core (~> 0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.8.0)
12
- public_suffix (>= 2.0.2, < 5.0)
11
+ addressable (2.8.6)
12
+ public_suffix (>= 2.0.2, < 6.0)
13
13
  ast (2.4.2)
14
- concurrent-ruby (1.1.10)
14
+ concurrent-ruby (1.2.2)
15
+ connection_pool (2.4.1)
15
16
  diff-lcs (1.5.0)
16
17
  docile (1.4.0)
17
- faraday (1.10.0)
18
+ faraday (1.10.3)
18
19
  faraday-em_http (~> 1.0)
19
20
  faraday-em_synchrony (~> 1.0)
20
21
  faraday-excon (~> 1.1)
@@ -30,8 +31,8 @@ GEM
30
31
  faraday-em_synchrony (1.0.0)
31
32
  faraday-excon (1.1.0)
32
33
  faraday-httpclient (1.0.1)
33
- faraday-multipart (1.0.3)
34
- multipart-post (>= 1.2, < 3)
34
+ faraday-multipart (1.0.4)
35
+ multipart-post (~> 2)
35
36
  faraday-net_http (1.0.1)
36
37
  faraday-net_http_persistent (1.2.0)
37
38
  faraday-patron (1.0.0)
@@ -39,79 +40,96 @@ GEM
39
40
  faraday-retry (1.0.3)
40
41
  faraday_middleware (1.2.0)
41
42
  faraday (~> 1.0)
42
- gli (2.21.0)
43
+ ffi (1.16.3)
44
+ gli (2.21.1)
43
45
  hashie (5.0.0)
44
- i18n (1.10.0)
46
+ i18n (1.14.1)
45
47
  concurrent-ruby (~> 1.0)
46
- json (2.6.2)
47
- moneta (1.5.1)
48
- mono_logger (1.1.1)
48
+ json (2.7.1)
49
+ language_server-protocol (3.17.0.3)
50
+ moneta (1.6.0)
51
+ mono_logger (1.1.2)
49
52
  multi_json (1.15.0)
50
- multipart-post (2.2.0)
51
- mustermann (1.1.1)
53
+ multipart-post (2.3.0)
54
+ mustermann (3.0.0)
52
55
  ruby2_keywords (~> 0.0.1)
53
- nio4r (2.5.8)
54
- parallel (1.22.1)
55
- parser (3.1.2.0)
56
+ nio4r (2.7.0)
57
+ parallel (1.24.0)
58
+ parser (3.2.2.4)
56
59
  ast (~> 2.4.1)
57
- public_suffix (4.0.7)
58
- puma (5.6.4)
60
+ racc
61
+ public_suffix (5.0.4)
62
+ puma (5.6.7)
59
63
  nio4r (~> 2.0)
60
- rack (2.2.3.1)
61
- rack-protection (2.2.0)
62
- rack
64
+ racc (1.7.3)
65
+ rack (2.2.8)
66
+ rack-protection (3.1.0)
67
+ rack (~> 2.2, >= 2.2.4)
63
68
  rainbow (3.1.1)
64
- rake (13.0.6)
65
- redis (4.6.0)
66
- redis-namespace (1.8.2)
67
- redis (>= 3.0.4)
68
- regexp_parser (2.4.0)
69
- resque (2.2.1)
69
+ rake (13.1.0)
70
+ rbnacl (7.1.1)
71
+ ffi
72
+ redis (5.0.8)
73
+ redis-client (>= 0.17.0)
74
+ redis-client (0.19.0)
75
+ connection_pool
76
+ redis-namespace (1.11.0)
77
+ redis (>= 4)
78
+ regexp_parser (2.8.3)
79
+ resque (2.6.0)
70
80
  mono_logger (~> 1.0)
71
81
  multi_json (~> 1.0)
72
82
  redis-namespace (~> 1.6)
73
83
  sinatra (>= 0.9.2)
74
- rexml (3.2.5)
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)
84
+ rexml (3.2.6)
85
+ rspec (3.12.0)
86
+ rspec-core (~> 3.12.0)
87
+ rspec-expectations (~> 3.12.0)
88
+ rspec-mocks (~> 3.12.0)
89
+ rspec-core (3.12.2)
90
+ rspec-support (~> 3.12.0)
91
+ rspec-expectations (3.12.3)
82
92
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.11.0)
84
- rspec-mocks (3.11.1)
93
+ rspec-support (~> 3.12.0)
94
+ rspec-mocks (3.12.6)
85
95
  diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.11.0)
87
- rspec-support (3.11.0)
88
- rubocop (1.29.1)
96
+ rspec-support (~> 3.12.0)
97
+ rspec-support (3.12.1)
98
+ rubocop (1.59.0)
99
+ json (~> 2.3)
100
+ language_server-protocol (>= 3.17.0)
89
101
  parallel (~> 1.10)
90
- parser (>= 3.1.0.0)
102
+ parser (>= 3.2.2.4)
91
103
  rainbow (>= 2.2.2, < 4.0)
92
104
  regexp_parser (>= 1.8, < 3.0)
93
105
  rexml (>= 3.2.5, < 4.0)
94
- rubocop-ast (>= 1.17.0, < 2.0)
106
+ rubocop-ast (>= 1.30.0, < 2.0)
95
107
  ruby-progressbar (~> 1.7)
96
- unicode-display_width (>= 1.4.0, < 3.0)
97
- rubocop-ast (1.18.0)
98
- parser (>= 3.1.1.0)
108
+ unicode-display_width (>= 2.4.0, < 3.0)
109
+ rubocop-ast (1.30.0)
110
+ parser (>= 3.2.1.0)
111
+ rubocop-capybara (2.19.0)
112
+ rubocop (~> 1.41)
113
+ rubocop-factory_bot (2.24.0)
114
+ rubocop (~> 1.33)
99
115
  rubocop-rake (0.6.0)
100
116
  rubocop (~> 1.0)
101
- rubocop-rspec (2.11.1)
102
- rubocop (~> 1.19)
103
- ruby-progressbar (1.11.0)
117
+ rubocop-rspec (2.25.0)
118
+ rubocop (~> 1.40)
119
+ rubocop-capybara (~> 2.17)
120
+ rubocop-factory_bot (~> 2.22)
121
+ ruby-progressbar (1.13.0)
104
122
  ruby2_keywords (0.0.5)
105
- simplecov (0.21.2)
123
+ simplecov (0.22.0)
106
124
  docile (~> 1.1)
107
125
  simplecov-html (~> 0.11)
108
126
  simplecov_json_formatter (~> 0.1)
109
127
  simplecov-html (0.12.3)
110
128
  simplecov_json_formatter (0.1.4)
111
- sinatra (2.2.0)
112
- mustermann (~> 1.0)
113
- rack (~> 2.2)
114
- rack-protection (= 2.2.0)
129
+ sinatra (3.1.0)
130
+ mustermann (~> 3.0)
131
+ rack (~> 2.2, >= 2.2.4)
132
+ rack-protection (= 3.1.0)
115
133
  tilt (~> 2.0)
116
134
  slack-ruby-client (1.0.0)
117
135
  faraday (>= 1.0)
@@ -119,22 +137,21 @@ GEM
119
137
  gli
120
138
  hashie
121
139
  websocket-driver
122
- tilt (2.0.10)
123
- unicode-display_width (2.1.0)
124
- waylon-core (0.1.4)
140
+ tilt (2.3.0)
141
+ unicode-display_width (2.5.0)
142
+ waylon-core (0.2.6)
125
143
  addressable (~> 2.8)
126
144
  faraday (~> 1.8)
127
145
  i18n (~> 1.8)
128
146
  json (~> 2.6)
129
147
  moneta (~> 1.4)
130
148
  puma (~> 5.5)
149
+ rbnacl (~> 7.1)
131
150
  resque (~> 2.2)
132
- webrick (1.7.0)
133
- websocket-driver (0.7.5)
151
+ websocket-driver (0.7.6)
134
152
  websocket-extensions (>= 0.1.0)
135
153
  websocket-extensions (0.1.5)
136
- yard (0.9.27)
137
- webrick (~> 1.7.0)
154
+ yard (0.9.34)
138
155
 
139
156
  PLATFORMS
140
157
  arm64-darwin-21
@@ -10,7 +10,7 @@ module Waylon
10
10
  # @raise [Slack::Web::Api::Errors::ChannelNotFound] When the channel doesn't exist
11
11
  # @return [Channel]
12
12
  def self.from_name(name)
13
- name = name.start_with?("#") ? name : "##{name}"
13
+ name = "##{name}" unless name.start_with?("#")
14
14
  raw = sense.client.conversations_info(channel: name)
15
15
  new(raw["channel"]["id"], data: raw["channel"])
16
16
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Waylon
4
4
  module Slack
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
data/lib/waylon/slack.rb CHANGED
@@ -3,12 +3,12 @@
3
3
  require "waylon/core"
4
4
  require "slack-ruby-client"
5
5
 
6
- ::Slack.configure do |conf|
6
+ Slack.configure do |conf|
7
7
  conf.token = ENV.fetch("SLACK_OAUTH_TOKEN", nil)
8
8
  conf.logger = Waylon::Logger.logger
9
9
  end
10
10
 
11
- ::Slack::Web::Client.configure do |conf|
11
+ Slack::Web::Client.configure do |conf|
12
12
  conf.user_agent = "Waylon/#{Waylon::Core::VERSION}"
13
13
  conf.logger = Waylon::Logger.logger
14
14
  end
data/scripts/release.sh CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
+ apt-get update && apt-get install -y libsodium-dev
4
+
3
5
  gem install bundler -v '~> 2.3'
4
6
  bundle install
5
7
  rm -rf pkg/*.gem
data/scripts/test.sh CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
- gem install bundler -v '~> 2.2'
3
+ apt-get update && apt-get install -y libsodium-dev
4
+
5
+ gem install bundler -v '~> 2.3'
4
6
  bundle install
5
7
  bundle exec rake
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2023-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-client