washout_builder 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58ddc0ed8659194221302f8426799406d9d644f5
|
4
|
+
data.tar.gz: 0971efe12aa954bad70eab623c26d32f5fc50437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaad7cdf361ca750bb6fde10170eda3ebfa80d19f93dcf4264ef087651f78883cfda2f7ab2a633d506b699bf616283c4f9d6a53d111492ed4332e3edd8b475a6
|
7
|
+
data.tar.gz: b51660e711e44f976f3b99824872d2a6ae55978f94985e5ee8b208cca0ab6a029559b318681d699f96f42b3271fa08ea4db64e5bef778ad06565740a2a919a6e
|
@@ -3,7 +3,7 @@ module WashoutBuilder
|
|
3
3
|
# controller that is used to prit all available services or print the documentation for a specific service
|
4
4
|
class WashoutBuilderController < ActionController::Base
|
5
5
|
protect_from_forgery
|
6
|
-
|
6
|
+
before_action :check_env_available
|
7
7
|
|
8
8
|
|
9
9
|
# Will show all api services if no name parameter is receiverd
|
@@ -200,11 +200,7 @@ module WashoutBuilder
|
|
200
200
|
|
201
201
|
def check_env_available
|
202
202
|
env_checker = WashoutBuilder::EnvChecker.new(Rails.application)
|
203
|
-
|
204
|
-
yield
|
205
|
-
else
|
206
|
-
raise ActionController::RoutingError
|
207
|
-
end
|
203
|
+
raise ActionController::RoutingError unless env_checker.available_for_env?(Rails.env)
|
208
204
|
end
|
209
205
|
|
210
206
|
end
|
@@ -12,8 +12,8 @@ module WashoutBuilder
|
|
12
12
|
# the minor version of the gem
|
13
13
|
MINOR = 5
|
14
14
|
# the tiny version of the gem
|
15
|
-
TINY =
|
16
|
-
# if the version should be a
|
15
|
+
TINY = 4
|
16
|
+
# if the version should be a prerelease
|
17
17
|
PRE = nil
|
18
18
|
|
19
19
|
# the full version of the gem composed from major minor tiny and prerelease versions
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: washout_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
@@ -435,7 +435,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
435
|
version: '0'
|
436
436
|
requirements: []
|
437
437
|
rubyforge_project:
|
438
|
-
rubygems_version: 2.
|
438
|
+
rubygems_version: 2.4.8
|
439
439
|
signing_key:
|
440
440
|
specification_version: 4
|
441
441
|
summary: WashOut Soap Service HTML-Documentation generator (extends WashOut https://github.com/inossidabile/wash_out/)
|