Skip to content

Commit bff4097

Browse files
committed
Upgraded dependencies.
1 parent f991fbd commit bff4097

File tree

7 files changed

+61
-62
lines changed

7 files changed

+61
-62
lines changed

Gemfile.lock

Lines changed: 43 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
activemodel (5.0.2)
5-
activesupport (= 5.0.2)
6-
activesupport (5.0.2)
4+
activemodel (5.2.0)
5+
activesupport (= 5.2.0)
6+
activesupport (5.2.0)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
8-
i18n (~> 0.7)
8+
i18n (>= 0.7, < 2)
99
minitest (~> 5.1)
1010
tzinfo (~> 1.1)
1111
addressable (2.5.0)
@@ -15,7 +15,7 @@ GEM
1515
descendants_tracker (~> 0.0.4)
1616
ice_nine (~> 0.11.0)
1717
thread_safe (~> 0.3, >= 0.3.1)
18-
bson (4.2.1)
18+
bson (4.3.0)
1919
builder (3.2.3)
2020
celluloid (0.17.3)
2121
celluloid-essentials
@@ -44,7 +44,7 @@ GEM
4444
crack (0.4.3)
4545
safe_yaml (~> 1.0.0)
4646
database_cleaner (1.5.3)
47-
declarative (0.0.9)
47+
declarative (0.0.10)
4848
declarative-option (0.1.0)
4949
descendants_tracker (0.0.4)
5050
thread_safe (~> 0.3, >= 0.3.1)
@@ -67,32 +67,30 @@ GEM
6767
faraday (~> 0.9)
6868
faraday_middleware (>= 0.9.1, < 1.0)
6969
oj (~> 2.0)
70-
foreman (0.83.0)
70+
foreman (0.84.0)
7171
thor (~> 0.19.1)
7272
futuroscope (0.1.11)
7373
giphy (3.0.0)
7474
faraday (~> 0.9)
7575
faraday_middleware (~> 0.9)
7676
faraday_middleware-parse_oj (~> 0.3)
7777
launchy (~> 2.4)
78-
gli (2.15.0)
79-
grape (0.19.1)
78+
gli (2.17.1)
79+
grape (1.0.3)
8080
activesupport
8181
builder
82-
hashie (>= 2.1.0)
83-
multi_json (>= 1.3.2)
84-
multi_xml (>= 0.5.2)
85-
mustermann-grape (~> 0.4.0)
82+
mustermann-grape (~> 1.0.0)
8683
rack (>= 1.3.0)
8784
rack-accept
8885
virtus (>= 1.0.0)
89-
grape-roar (0.4.0)
86+
grape-roar (0.4.1)
9087
grape
88+
multi_json
9189
roar (~> 1.1.0)
92-
grape-swagger (0.26.1)
90+
grape-swagger (0.28.0)
9391
grape (>= 0.16.2)
9492
hashdiff (0.3.2)
95-
hashie (3.5.5)
93+
hashie (3.5.7)
9694
heroku (3.43.9999)
9795
heroku-api (= 0.4.2)
9896
launchy (= 2.4.3)
@@ -105,7 +103,7 @@ GEM
105103
heroku-api (0.4.2)
106104
excon (~> 0.45)
107105
multi_json (~> 1.8)
108-
hitimes (1.2.4)
106+
hitimes (1.2.6)
109107
hyperclient (0.8.2)
110108
faraday
111109
faraday-digestauth
@@ -114,43 +112,41 @@ GEM
114112
futuroscope
115113
net-http-digest_auth
116114
uri_template
117-
i18n (0.8.1)
115+
i18n (0.9.5)
116+
concurrent-ruby (~> 1.0)
118117
ice_nine (0.11.2)
119-
json (2.0.3)
120118
jsonpath (0.5.8)
121119
multi_json
122-
kaminari-core (1.0.1)
120+
kaminari-core (1.1.1)
123121
kaminari-grape (1.0.1)
124122
grape
125123
kaminari-core (~> 1.0)
126-
kgio (2.11.0)
124+
kgio (2.11.2)
127125
launchy (2.4.3)
128126
addressable (~> 2.3)
129127
mime-types (1.25.1)
130-
minitest (5.10.1)
131-
mongo (2.4.1)
132-
bson (>= 4.2.1, < 5.0.0)
133-
mongoid (6.1.0)
134-
activemodel (~> 5.0)
135-
mongo (>= 2.4.1, < 3.0.0)
136-
mongoid-compatibility (0.4.1)
128+
minitest (5.11.3)
129+
mongo (2.5.3)
130+
bson (>= 4.3.0, < 5.0.0)
131+
mongoid (7.0.1)
132+
activemodel (>= 5.1, < 6.0.0)
133+
mongo (>= 2.5.1, < 3.0.0)
134+
mongoid-compatibility (0.5.1)
137135
activesupport
138136
mongoid (>= 2.0)
139-
mongoid-scroll (0.3.5)
137+
mongoid-scroll (0.3.6)
140138
i18n
141139
mongoid (>= 3.0)
142140
mongoid-compatibility
143-
mongoid-shell (0.4.3)
141+
mongoid-shell (0.4.6)
144142
i18n
145143
mongoid (>= 3.0.0)
146144
mongoid-compatibility
147145
multi_json (1.11.2)
148-
multi_xml (0.6.0)
149146
multipart-post (2.0.0)
150-
mustermann (0.4.0)
151-
tool (~> 0.2)
152-
mustermann-grape (0.4.0)
153-
mustermann (= 0.4.0)
147+
mustermann (1.0.2)
148+
mustermann-grape (1.0.0)
149+
mustermann (~> 1.0.0)
154150
net-http-digest_auth (1.4.1)
155151
net-ssh (2.9.2)
156152
net-ssh-gateway (1.2.0)
@@ -160,17 +156,17 @@ GEM
160156
newrelic_rpm
161157
slack-ruby-bot
162158
newrelic_rpm (3.18.1.330)
163-
nio4r (2.0.0)
159+
nio4r (2.3.1)
164160
oj (2.18.3)
165161
parallel (1.12.1)
166162
parser (2.5.1.0)
167163
ast (~> 2.4.0)
168164
powerpack (0.1.1)
169165
public_suffix (2.0.5)
170-
rack (2.0.1)
166+
rack (2.0.5)
171167
rack-accept (0.4.5)
172168
rack (>= 0.4)
173-
rack-cors (0.4.1)
169+
rack-cors (1.0.2)
174170
rack-rewrite (1.5.1)
175171
rack-robotz (0.0.4)
176172
rack
@@ -179,10 +175,10 @@ GEM
179175
rack-test (0.6.3)
180176
rack (>= 1.0)
181177
rainbow (3.0.0)
182-
raindrops (0.17.0)
178+
raindrops (0.19.0)
183179
rake (12.0.0)
184180
rdoc (5.1.0)
185-
representable (3.0.3)
181+
representable (3.0.4)
186182
declarative (< 0.1.0)
187183
declarative-option (< 0.2.0)
188184
uber (< 0.2.0)
@@ -214,10 +210,10 @@ GEM
214210
ruby-progressbar (1.9.0)
215211
rubyzip (1.1.7)
216212
safe_yaml (1.0.4)
217-
slack-ruby-bot (0.10.1)
213+
slack-ruby-bot (0.11.1)
218214
hashie
219215
slack-ruby-client (>= 0.6.0)
220-
slack-ruby-bot-server (0.6.0)
216+
slack-ruby-bot-server (0.6.1)
221217
celluloid-io
222218
foreman
223219
grape
@@ -229,24 +225,22 @@ GEM
229225
rack-server-pages
230226
slack-ruby-bot
231227
unicorn
232-
slack-ruby-client (0.8.0)
228+
slack-ruby-client (0.11.1)
233229
activesupport
234230
faraday (>= 0.9)
235231
faraday_middleware
236232
gli
237233
hashie
238-
json
239234
websocket-driver
240235
thor (0.19.4)
241236
thread_safe (0.3.6)
242237
timers (4.1.2)
243238
hitimes
244-
tool (0.2.3)
245-
tzinfo (1.2.2)
239+
tzinfo (1.2.5)
246240
thread_safe (~> 0.1)
247241
uber (0.1.0)
248242
unicode-display_width (1.3.2)
249-
unicorn (5.2.0)
243+
unicorn (5.4.0)
250244
kgio (~> 2.6)
251245
raindrops (~> 0.7)
252246
uri_template (0.7.0)
@@ -260,9 +254,9 @@ GEM
260254
addressable (>= 2.3.6)
261255
crack (>= 0.3.2)
262256
hashdiff
263-
websocket-driver (0.6.5)
257+
websocket-driver (0.7.0)
264258
websocket-extensions (>= 0.1.0)
265-
websocket-extensions (0.1.2)
259+
websocket-extensions (0.1.3)
266260

267261
PLATFORMS
268262
ruby

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3>Whoa, an API explorer for the Slack Web API.</h3>
1515
</p>
1616
<p id='messages' />
1717
<p id='register'>
18-
<a href="https://slack.com/oauth/authorize?scope=bot&client_id=4657200833.17789106022"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x"></a>
18+
<a href="https://slack.com/oauth/authorize?scope=bot&client_id=4657200833.43554619095"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x"></a>
1919
</p>
2020
<p id='active_teams_count'>&nbsp;</p>
2121
<p>

slack-api-explorer.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
ENV['RACK_ENV'] ||= 'development'
2+
3+
require 'bundler/setup'
4+
Bundler.require :default, ENV['RACK_ENV']
5+
16
Dir[File.expand_path('../config/initializers', __FILE__) + '/**/*.rb'].each do |file|
27
require file
38
end

slack-api-explorer/api/endpoints/teams_endpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TeamsEndpoint < Grape::API
5959
)
6060
end
6161

62-
SlackApiExplorer::Service.start!(team)
62+
SlackApiExplorer::Service.instance.start!(team)
6363
present team, with: Api::Presenters::TeamPresenter
6464
end
6565
end

spec/api/cors_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
context 'CORS' do
77
it 'supports options' do
88
options '/api', {},
9-
'HTTP_ORIGIN' => 'http://cors.example.com',
9+
'HTTP_ORIGIN' => '*',
1010
'HTTP_ACCESS_CONTROL_REQUEST_HEADERS' => 'Origin, Accept, Content-Type',
1111
'HTTP_ACCESS_CONTROL_REQUEST_METHOD' => 'GET'
1212

1313
expect(last_response.status).to eq 200
14-
expect(last_response.headers['Access-Control-Allow-Origin']).to eq 'http://cors.example.com'
14+
expect(last_response.headers['Access-Control-Allow-Origin']).to eq '*'
1515
expect(last_response.headers['Access-Control-Expose-Headers']).to eq ''
1616
end
1717
it 'includes Access-Control-Allow-Origin in the response' do
18-
get '/api', {}, 'HTTP_ORIGIN' => 'http://cors.example.com'
18+
get '/api', {}, 'HTTP_ORIGIN' => '*'
1919
expect(last_response.status).to eq 200
20-
expect(last_response.headers['Access-Control-Allow-Origin']).to eq 'http://cors.example.com'
20+
expect(last_response.headers['Access-Control-Allow-Origin']).to eq '*'
2121
end
2222
it 'includes Access-Control-Allow-Origin in errors' do
23-
get '/api/invalid', {}, 'HTTP_ORIGIN' => 'http://cors.example.com'
23+
get '/api/invalid', {}, 'HTTP_ORIGIN' => '*'
2424
expect(last_response.status).to eq 404
25-
expect(last_response.headers['Access-Control-Allow-Origin']).to eq 'http://cors.example.com'
25+
expect(last_response.headers['Access-Control-Allow-Origin']).to eq '*'
2626
end
2727
end
2828
end

spec/api/endpoints/teams_endpoint_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
ENV.delete('SLACK_CLIENT_SECRET')
7272
end
7373
it 'creates a team' do
74-
expect(SlackApiExplorer::Service).to receive(:start!)
74+
expect(SlackApiExplorer::Service.instance).to receive(:start!)
7575
expect do
7676
team = client.teams._post(code: 'code')
7777
expect(team.team_id).to eq 'team_id'
@@ -81,7 +81,7 @@
8181
end.to change(Team, :count).by(1)
8282
end
8383
it 'reactivates a deactivated team' do
84-
expect(SlackApiExplorer::Service).to receive(:start!)
84+
expect(SlackApiExplorer::Service.instance).to receive(:start!)
8585
existing_team = Fabricate(:team, token: 'token', active: false)
8686
expect do
8787
team = client.teams._post(code: 'code')
@@ -101,7 +101,7 @@
101101
end
102102
end
103103
it 'reactivates a deactivated team with a different code' do
104-
expect(SlackApiExplorer::Service).to receive(:start!)
104+
expect(SlackApiExplorer::Service.instance).to receive(:start!)
105105
existing_team = Fabricate(:team, token: 'old', team_id: 'team_id', active: false)
106106
expect do
107107
team = client.teams._post(code: 'code')

spec/api/swagger_documentation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
JSON.parse(last_response.body)
1010
end
1111
it 'documents root level apis' do
12-
expect(subject['paths'].keys).to eq ['/api/status', '/api/teams/{id}', '/api/teams']
12+
expect(subject['paths'].keys.sort).to eq ['/api/status', '/api/teams/{id}', '/api/teams'].sort
1313
end
1414
end
1515

@@ -19,7 +19,7 @@
1919
JSON.parse(last_response.body)
2020
end
2121
it 'documents teams apis' do
22-
expect(subject['paths'].keys).to eq ['/api/teams/{id}', '/api/teams']
22+
expect(subject['paths'].keys.sort).to eq ['/api/teams/{id}', '/api/teams'].sort
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)