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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjY1NzdmYmQ5ZTFhYjQ1OTU2ZGIxMTJkM2U5MjQwOTBlNzRmYjAwNg==
4
+ MTk5MWM5OTYxNzU3YmI1NjI2ZTZkYTYxZWNjODkxMjk0ZWQwN2UwZA==
5
5
  data.tar.gz: !binary |-
6
- OGRkMGI5MzMwYWY3N2QzYzcxNTUzMDQxNmNiNTA2NzE0MDNhMmZlZQ==
6
+ ODU2MjM5ZjkxNmNkY2IxMGNkMzY3M2UyNmQ5OWFlMDhkMDU2MzAwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODQwYTM0YjM3MWJlMGY1ZDNhMDY0ZGZiNDNkM2UzNTQ0Yzk5M2IxZjQ0NTEy
10
- Mzk2N2QzNzA4YWY5YWJjZjRjMGUxYTRiNTM5OTE5MzQzYTZjYTM3N2Q4ZmY4
11
- ZjY2NTMzYTY4YjFkZDkyYzZhMDQ3ZDI4OGFmYzljYzdmZGEyYmY=
9
+ MDQyMjdlMjc4NjFlYTUyMWNkMjY2ZTg3NzM1NDhkYTdlMDA0MTM2YzU3ZWIx
10
+ Y2FiM2M3NGE0ZTI1ZTZlYmJkZTkxNzI0NDNiNTAwYzZiZTMzOWFmODNiYTBi
11
+ ZDFjOTNmOGRhZTEzNGM5YzNkMjViNjMzZGEyZjJiYzdlYjRjYzM=
12
12
  data.tar.gz: !binary |-
13
- MDU0NDUyMTRhYWE4ZTA2ZjJiODE5ZmYyNjA3YjA3Y2FhYjRiNjk5NGRlNTkw
14
- OTk1Mjc1OWQ1MzUzNGRlYWYxMTIzMzhmMzAwZjExODkwZjNiMGQ3NjdkNTFl
15
- MjZlNGYxZDEyZGY2YzU2ZWQ5YmM0OTIxNTcxN2NmZTdmYjFmOWQ=
13
+ YmE1NmI2NWUzYzYwNzU4MmVjZDc4NGYwMzY3ZDRhYTliNzFlZWNlMGNmNDI2
14
+ YjgxNWQ5NTMzYjdiZDBhY2JlNmJjMTU5ZDhkMjIwODQwNzkxYzdmNTVmNWRh
15
+ YjIyMWQwYWY2NGI2ZjhkNDg1MWY2ZGJiYTc0YTYyZTg5OTMyZWY=
@@ -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
- WashOut::Dispatcher::SOAPError.send :include, ActiveModel::MassAssignmentSecurity
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
- WashOut::SOAP::ClassMethods.class_eval do
35
- alias_method :original_soap_action, :soap_action
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
@@ -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
@@ -1,6 +1,5 @@
1
1
  module WashoutBuilder
2
- class Type < WashOut::Type
3
-
2
+ class Type
4
3
 
5
4
  BASIC_TYPES=[
6
5
  "string",
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
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: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada