rspectacular 0.30.0 → 0.31.0
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 +4 -4
- data/lib/rspectacular/plugins/bullet.rb +29 -0
- data/lib/rspectacular/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae8296d314dc3f827b91c8a70432ad65b9eda16b
|
|
4
|
+
data.tar.gz: 314ce8040adf0cbfb09b6f8a066d0fc68867e576
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 738b3cf2116e24aa16dc182a5fa6136c7634b1e37f4dea16b4a9c71f3fd93440973e2791372f6ca2a603f3bd4caea90f2175b4537f2402078731d87dcbdbada8
|
|
7
|
+
data.tar.gz: 19d6d07abe7cb82aea9b384a50161be4012a41af8cfd167ba6e7f5dea14556e9d61f5ed2973f45c74a55549dea9ffbcf00d895d89be744ec7f04ccdf744ff08f
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
# Bullet Plugin
|
|
3
|
+
##############################################################################
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
require 'bullet'
|
|
7
|
+
|
|
8
|
+
Bullet.enable = true
|
|
9
|
+
Bullet.bullet_logger = true
|
|
10
|
+
Bullet.raise = true
|
|
11
|
+
|
|
12
|
+
if defined?(Chamber) && Chamber.env.bugsnag
|
|
13
|
+
Bullet.bugsnag = { api_key: Chamber.env.bugsnag.api_key }
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
RSpec.configure do |config|
|
|
17
|
+
config.before(:each) do
|
|
18
|
+
Bullet.start_request if Bullet.enable?
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
config.after(:each) do
|
|
22
|
+
if Bullet.enable?
|
|
23
|
+
Bullet.perform_out_of_channel_notifications if Bullet.notification?
|
|
24
|
+
Bullet.end_request
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
rescue LoadError
|
|
29
|
+
end
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspectacular
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jfelchner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -72,6 +72,7 @@ files:
|
|
|
72
72
|
- lib/rspectacular/mock_authentications/omniauth/facebook.rb
|
|
73
73
|
- lib/rspectacular/mock_authentications/omniauth/twitter.rb
|
|
74
74
|
- lib/rspectacular/plugins.rb
|
|
75
|
+
- lib/rspectacular/plugins/bullet.rb
|
|
75
76
|
- lib/rspectacular/plugins/capybara.rb
|
|
76
77
|
- lib/rspectacular/plugins/carrier_wave.rb
|
|
77
78
|
- lib/rspectacular/plugins/code_climate.rb
|