washout_builder 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/washout_builder.rb +15 -4
- data/lib/washout_builder/engine.rb +2 -1
- data/lib/washout_builder/soap.rb +4 -3
- data/lib/washout_builder/type.rb +1 -2
- data/lib/washout_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTk5MWM5OTYxNzU3YmI1NjI2ZTZkYTYxZWNjODkxMjk0ZWQwN2UwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODU2MjM5ZjkxNmNkY2IxMGNkMzY3M2UyNmQ5OWFlMDhkMDU2MzAwZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDQyMjdlMjc4NjFlYTUyMWNkMjY2ZTg3NzM1NDhkYTdlMDA0MTM2YzU3ZWIx
|
10
|
+
Y2FiM2M3NGE0ZTI1ZTZlYmJkZTkxNzI0NDNiNTAwYzZiZTMzOWFmODNiYTBi
|
11
|
+
ZDFjOTNmOGRhZTEzNGM5YzNkMjViNjMzZGEyZjJiYzdlYjRjYzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE1NmI2NWUzYzYwNzU4MmVjZDc4NGYwMzY3ZDRhYTliNzFlZWNlMGNmNDI2
|
14
|
+
YjgxNWQ5NTMzYjdiZDBhY2JlNmJjMTU5ZDhkMjIwODQwNzkxYzdmNTVmNWRh
|
15
|
+
YjIyMWQwYWY2NGI2ZjhkNDg1MWY2ZGJiYTc0YTYyZTg5OTMyZWY=
|
data/lib/washout_builder.rb
CHANGED
@@ -28,11 +28,22 @@ end
|
|
28
28
|
|
29
29
|
|
30
30
|
Mime::Type.register "application/soap+xml", :soap
|
31
|
-
ActiveRecord::Base.send :extend, WashOut::Model if defined?(ActiveRecord)
|
32
|
-
|
31
|
+
ActiveRecord::Base.send :extend, WashOut::Model if defined?(ActiveRecord) && defined?(WashOut::Model)
|
32
|
+
ActiveRecord::Base.send :extend, WashOut::Rails::ActiveRecord if defined?(ActiveRecord) && defined?(WashOut::Rails::ActiveRecord)
|
33
|
+
WashOut::Dispatcher::SOAPError.send :include, ActiveModel::MassAssignmentSecurity if defined?(WashOut::Dispatcher)
|
34
|
+
WashOut::SOAPError.send :include, ActiveModel::MassAssignmentSecurity if defined?(WashOut::SOAPError)
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
+
|
37
|
+
if defined?(WashOut::Soap)
|
38
|
+
WashOut::SOAP::ClassMethods.class_eval do
|
39
|
+
alias_method :original_soap_action, :soap_action
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
if defined?(WashOut::Rails::Controller)
|
44
|
+
WashOut::Rails::Controller::ClassMethods.class_eval do
|
45
|
+
alias_method :original_soap_action, :soap_action
|
46
|
+
end
|
36
47
|
end
|
37
48
|
|
38
49
|
ActionController::Renderers.add :soap do |what, options|
|
@@ -6,7 +6,8 @@ module WashoutBuilder
|
|
6
6
|
match "/washout" => "washout_builder#all", :via => :get, :format => false
|
7
7
|
end
|
8
8
|
if app.config.wash_out[:catch_xml_errors]
|
9
|
-
app.config.middleware.insert_after 'ActionDispatch::ShowExceptions', WashOut::Middleware
|
9
|
+
app.config.middleware.insert_after 'ActionDispatch::ShowExceptions', WashOut::Middleware if defined?(WashOut::Middleware)
|
10
|
+
app.config.middleware.insert_after 'ActionDispatch::ShowExceptions', WashOut::Middlewares::Catcher if defined?(WashOut::Middlewares::Catcher)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
data/lib/washout_builder/soap.rb
CHANGED
@@ -3,7 +3,8 @@ require 'active_support/concern'
|
|
3
3
|
module WashoutBuilder
|
4
4
|
module SOAP
|
5
5
|
extend ActiveSupport::Concern
|
6
|
-
include WashOut::SOAP
|
6
|
+
include WashOut::SOAP if defined?(WashOut::SOAP)
|
7
|
+
include WashOut::Rails::Controller if defined?(WashOut::Rails::Controller)
|
7
8
|
|
8
9
|
|
9
10
|
module ClassMethods
|
@@ -27,8 +28,8 @@ module WashoutBuilder
|
|
27
28
|
|
28
29
|
|
29
30
|
included do
|
30
|
-
include WashOut::Configurable
|
31
|
-
include WashOut::Dispatcher
|
31
|
+
include WashOut::Configurable if defined?(WashOut::Configurable)
|
32
|
+
include WashOut::Dispatcher if defined?(WashOut::Dispatcher)
|
32
33
|
include WashoutBuilder::Dispatcher
|
33
34
|
self.soap_actions = {}
|
34
35
|
end
|
data/lib/washout_builder/type.rb
CHANGED