Skip to content

Commit d4bd846

Browse files
committed
Upgraded dependencies, slack-ruby-bot-server 0.7.0.
1 parent 431246d commit d4bd846

File tree

5 files changed

+56
-86
lines changed

5 files changed

+56
-86
lines changed

.rubocop_todo.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2018-05-10 22:32:30 -0400 using RuboCop version 0.55.0.
3+
# on 2018-08-22 08:58:18 -0400 using RuboCop version 0.58.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -10,8 +10,9 @@
1010
Metrics/AbcSize:
1111
Max: 33
1212

13-
# Offense count: 14
13+
# Offense count: 12
1414
# Configuration parameters: CountComments, ExcludedMethods.
15+
# ExcludedMethods: refine
1516
Metrics/BlockLength:
1617
Max: 108
1718

@@ -28,13 +29,6 @@ Metrics/MethodLength:
2829
Metrics/PerceivedComplexity:
2930
Max: 11
3031

31-
# Offense count: 1
32-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
33-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
34-
Naming/FileName:
35-
Exclude:
36-
- 'slack-api-explorer.rb'
37-
3832
# Offense count: 2
3933
# Configuration parameters: Blacklist.
4034
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
@@ -43,7 +37,7 @@ Naming/HeredocDelimiterNaming:
4337
- 'slack-api-explorer/commands/help.rb'
4438
- 'slack-api-explorer/info.rb'
4539

46-
# Offense count: 63
40+
# Offense count: 61
4741
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
4842
# URISchemes: http, https
4943
Metrics/LineLength:

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
source 'http://rubygems.org'
32

43
ruby '2.3.1'
54

65
gem 'giphy'
7-
gem 'jsonpath'
6+
gem 'jsonpath', '0.9.0'
87
gem 'kaminari-grape'
98
gem 'mongoid'
109
gem 'mongoid-scroll'

Gemfile.lock

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
activemodel (5.2.0)
5-
activesupport (= 5.2.0)
6-
activesupport (5.2.0)
4+
activemodel (5.2.1)
5+
activesupport (= 5.2.1)
6+
activesupport (5.2.1)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
88
i18n (>= 0.7, < 2)
99
minitest (~> 5.1)
@@ -17,13 +17,13 @@ GEM
1717
thread_safe (~> 0.3, >= 0.3.1)
1818
bson (4.3.0)
1919
builder (3.2.3)
20-
capybara (3.1.0)
20+
capybara (3.6.0)
2121
addressable
2222
mini_mime (>= 0.1.3)
2323
nokogiri (~> 1.8)
2424
rack (>= 1.6.0)
2525
rack-test (>= 0.6.3)
26-
xpath (~> 3.0)
26+
xpath (~> 3.1)
2727
celluloid (0.17.3)
2828
celluloid-essentials
2929
celluloid-extras
@@ -60,9 +60,9 @@ GEM
6060
diff-lcs (1.3)
6161
equalizer (0.0.11)
6262
fabrication (2.20.1)
63-
faker (1.8.7)
63+
faker (1.9.1)
6464
i18n (>= 0.7)
65-
faraday (0.15.1)
65+
faraday (0.15.2)
6666
multipart-post (>= 1.2, < 3)
6767
faraday-digestauth (0.3.0)
6868
faraday (~> 0.7)
@@ -75,16 +75,16 @@ GEM
7575
faraday (~> 0.9)
7676
faraday_middleware (>= 0.9.1, < 1.0)
7777
oj (>= 2.0, < 4.0)
78-
ffi (1.9.23)
79-
foreman (0.84.0)
78+
ffi (1.9.25)
79+
foreman (0.85.0)
8080
thor (~> 0.19.1)
8181
giphy (3.0.0)
8282
faraday (~> 0.9)
8383
faraday_middleware (~> 0.9)
8484
faraday_middleware-parse_oj (~> 0.3)
8585
launchy (~> 2.4)
86-
gli (2.17.1)
87-
grape (1.0.3)
86+
gli (2.17.2)
87+
grape (1.1.0)
8888
activesupport
8989
builder
9090
mustermann-grape (~> 1.0.0)
@@ -95,21 +95,22 @@ GEM
9595
grape
9696
multi_json
9797
roar (~> 1.1.0)
98-
grape-swagger (0.28.0)
98+
grape-swagger (0.31.0)
9999
grape (>= 0.16.2)
100100
hashdiff (0.3.7)
101-
hashie (3.5.7)
102-
hitimes (1.2.6)
101+
hashie (3.6.0)
102+
hitimes (1.3.0)
103103
hyperclient (0.9.0)
104104
faraday (>= 0.9.0)
105105
faraday-digestauth
106106
faraday_hal_middleware
107107
faraday_middleware
108108
net-http-digest_auth
109109
uri_template
110-
i18n (1.0.1)
110+
i18n (1.1.0)
111111
concurrent-ruby (~> 1.0)
112112
ice_nine (0.11.2)
113+
jaro_winkler (1.5.1)
113114
jsonpath (0.9.0)
114115
multi_json
115116
to_regexp (~> 0.2.1)
@@ -120,10 +121,10 @@ GEM
120121
kgio (2.11.2)
121122
launchy (2.4.3)
122123
addressable (~> 2.3)
123-
mini_mime (1.0.0)
124+
mini_mime (1.0.1)
124125
mini_portile2 (2.3.0)
125126
minitest (5.11.3)
126-
mongo (2.5.3)
127+
mongo (2.6.2)
127128
bson (>= 4.3.0, < 5.0.0)
128129
mongoid (7.0.1)
129130
activemodel (>= 5.1, < 6.0.0)
@@ -141,23 +142,23 @@ GEM
141142
mongoid-compatibility
142143
multi_json (1.13.1)
143144
multipart-post (2.0.0)
144-
mustermann (1.0.2)
145+
mustermann (1.0.3)
145146
mustermann-grape (1.0.0)
146147
mustermann (~> 1.0.0)
147148
net-http-digest_auth (1.4.1)
148149
newrelic-slack-ruby-bot (0.2.1)
149150
newrelic_rpm
150151
slack-ruby-bot (>= 0.10.5)
151-
newrelic_rpm (5.1.0.344)
152+
newrelic_rpm (5.3.0.346)
152153
nio4r (2.3.1)
153-
nokogiri (1.8.2)
154+
nokogiri (1.8.4)
154155
mini_portile2 (~> 2.3.0)
155-
oj (3.6.0)
156+
oj (3.6.6)
156157
parallel (1.12.1)
157-
parser (2.5.1.0)
158+
parser (2.5.1.2)
158159
ast (~> 2.4.0)
159-
powerpack (0.1.1)
160-
public_suffix (3.0.2)
160+
powerpack (0.1.2)
161+
public_suffix (3.0.3)
161162
rack (2.0.5)
162163
rack-accept (0.4.5)
163164
rack (>= 0.4)
@@ -167,7 +168,7 @@ GEM
167168
rack
168169
rack-server-pages (0.1.0)
169170
rack
170-
rack-test (1.0.0)
171+
rack-test (1.1.0)
171172
rack (>= 1.0, < 3)
172173
rainbow (3.0.0)
173174
raindrops (0.19.0)
@@ -178,36 +179,37 @@ GEM
178179
uber (< 0.2.0)
179180
roar (1.1.0)
180181
representable (~> 3.0.0)
181-
rspec (3.7.0)
182-
rspec-core (~> 3.7.0)
183-
rspec-expectations (~> 3.7.0)
184-
rspec-mocks (~> 3.7.0)
185-
rspec-core (3.7.1)
186-
rspec-support (~> 3.7.0)
187-
rspec-expectations (3.7.0)
182+
rspec (3.8.0)
183+
rspec-core (~> 3.8.0)
184+
rspec-expectations (~> 3.8.0)
185+
rspec-mocks (~> 3.8.0)
186+
rspec-core (3.8.0)
187+
rspec-support (~> 3.8.0)
188+
rspec-expectations (3.8.1)
188189
diff-lcs (>= 1.2.0, < 2.0)
189-
rspec-support (~> 3.7.0)
190-
rspec-mocks (3.7.0)
190+
rspec-support (~> 3.8.0)
191+
rspec-mocks (3.8.0)
191192
diff-lcs (>= 1.2.0, < 2.0)
192-
rspec-support (~> 3.7.0)
193-
rspec-support (3.7.1)
194-
rubocop (0.56.0)
193+
rspec-support (~> 3.8.0)
194+
rspec-support (3.8.0)
195+
rubocop (0.58.2)
196+
jaro_winkler (~> 1.5.1)
195197
parallel (~> 1.10)
196-
parser (>= 2.5)
198+
parser (>= 2.5, != 2.5.1.1)
197199
powerpack (~> 0.1)
198200
rainbow (>= 2.2.2, < 4.0)
199201
ruby-progressbar (~> 1.7)
200202
unicode-display_width (~> 1.0, >= 1.0.1)
201-
ruby-progressbar (1.9.0)
203+
ruby-progressbar (1.10.0)
202204
rubyzip (1.2.1)
203205
safe_yaml (1.0.4)
204-
selenium-webdriver (3.12.0)
206+
selenium-webdriver (3.14.0)
205207
childprocess (~> 0.5)
206208
rubyzip (~> 1.2)
207209
slack-ruby-bot (0.11.1)
208210
hashie
209211
slack-ruby-client (>= 0.6.0)
210-
slack-ruby-bot-server (0.6.1)
212+
slack-ruby-bot-server (0.7.0)
211213
celluloid-io
212214
foreman
213215
grape
@@ -219,7 +221,7 @@ GEM
219221
rack-server-pages
220222
slack-ruby-bot
221223
unicorn
222-
slack-ruby-client (0.11.1)
224+
slack-ruby-client (0.12.0)
223225
activesupport
224226
faraday (>= 0.9)
225227
faraday_middleware
@@ -234,8 +236,8 @@ GEM
234236
tzinfo (1.2.5)
235237
thread_safe (~> 0.1)
236238
uber (0.1.0)
237-
unicode-display_width (1.3.2)
238-
unicorn (5.4.0)
239+
unicode-display_width (1.4.0)
240+
unicorn (5.4.1)
239241
kgio (~> 2.6)
240242
raindrops (~> 0.7)
241243
uri_template (0.7.0)
@@ -245,14 +247,14 @@ GEM
245247
coercible (~> 1.0)
246248
descendants_tracker (~> 0.0, >= 0.0.3)
247249
equalizer (~> 0.0, >= 0.0.9)
248-
webmock (3.4.1)
250+
webmock (3.4.2)
249251
addressable (>= 2.3.6)
250252
crack (>= 0.3.2)
251253
hashdiff
252254
websocket-driver (0.7.0)
253255
websocket-extensions (>= 0.1.0)
254256
websocket-extensions (0.1.3)
255-
xpath (3.0.0)
257+
xpath (3.1.0)
256258
nokogiri (~> 1.8)
257259

258260
PLATFORMS
@@ -266,7 +268,7 @@ DEPENDENCIES
266268
foreman
267269
giphy
268270
hyperclient
269-
jsonpath
271+
jsonpath (= 0.9.0)
270272
kaminari-grape
271273
mongoid
272274
mongoid-scroll
@@ -288,4 +290,4 @@ RUBY VERSION
288290
ruby 2.3.1p112
289291

290292
BUNDLED WITH
291-
1.16.1
293+
1.16.3

slack-api-explorer/app.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,10 @@ def prepare!
77
purge_inactive_teams!
88
end
99

10-
def after_start!
11-
every 60 * 3 do
12-
ping_teams!
13-
end
14-
end
15-
1610
private
1711

1812
def purge_inactive_teams!
1913
Team.purge!
2014
end
21-
22-
def ping_teams!
23-
Team.active.each do |team|
24-
begin
25-
ping = team.ping!
26-
next if ping[:presence].online
27-
logger.warn "DOWN: #{team}"
28-
after 60 do
29-
ping = team.ping!
30-
unless ping[:presence].online
31-
logger.info "RESTART: #{team}"
32-
SlackApiExplorer::Service.instance.start!(team)
33-
end
34-
end
35-
rescue StandardError => e
36-
logger.warn "Error pinging team #{team}, #{e.message}."
37-
end
38-
end
39-
end
4015
end
4116
end

slack-api-explorer/commands/help.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def self.help_for(expression = nil)
2020
#{`slack help`.gsub(/.*?(COMMANDS)/m, '').gsub(/^( )/, '')}
2121
Most commands contain subcommands, try "help <command>" (eg. "help api") to get a list of subcommands.
2222
```
23-
EOS
23+
EOS
2424

2525
def self.call(client, data, match)
2626
expression = match['expression'] if match.names.include?('expression')

0 commit comments

Comments
 (0)