washout_builder 0.5.4 → 0.6.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
- MTJkYTAyNTcwOTViZTU3MWY4YTU1YWFmYWUzMmJkZjc2NmQ1MmM5OA==
4
+ ZjdjNmVjMTFiNGEzOGNjZmMwNjJhMGMwZGQzN2ZiNjNhMGJmNWMxOA==
5
5
  data.tar.gz: !binary |-
6
- MGI3YTUzZTYzYTg5NTBiOWFmNGQzNWNmYjhlNDRhYWMzZmI5ZDI2Yw==
6
+ YWE0ZmU0MWQzYmZhMGQwZWM4MzUyNTkwOWY3N2Q3NzJjN2ViZTU3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTljZGQxNTIzMzFkMTVlZjk1YTkyZDY0MmE0OWJhMTVkYzMzMzI4MTM4NTJh
10
- Y2QwNDZiNjQ0YjFhYWY4NjE3MDk3ZTk4OWJiZTU4MWNmY2MzMDQ4MjRkYmRm
11
- OTEwY2VkYjllODkxMzFjOGEwOTZhZmQ0M2VkMWI5ZmMxN2Q1YmY=
9
+ NTk5ZDEwNDg1ZDMwYmVkYTI2YjY5ZGFkMmJkMTRiMDY2ZWViNjEyZTQ0YTdj
10
+ NGNkMTU2OTkwOTljZjY3ZTY0ZmU3MmE1Y2UwYzg2NGRhZGJjNjA0OWEwZDU0
11
+ ZTE4YjE2NmNkYmJhOTczMGNiOGJjMjI4YzY5YjhmNWUxMjZjYjM=
12
12
  data.tar.gz: !binary |-
13
- OWI0NzA3N2U5YTA0OGY5NGYyOGQyZWY0YjNmOTU2ODc5YmFlOWI5M2ViMDZl
14
- MzNlYzRhYzExYTg4ZDBiOTc0NWJlZDI1MDQ5NTU0MTgwMzdkMjcxM2IxODNh
15
- ZGI1NWQ3MTE4MDI2MjYyMGE2NjA0NzkwNzQ0OTdjZmE3ZWY3OTE=
13
+ YzIyZDAwN2IwZTczMGJhNDViOWJhZTkxMjdkYWY1YTQyNDRjMTU5NjYzNmNi
14
+ YjU2NGExNGNkYzM1NTEyZGEzNTIwNDlmZjU2MzcxNDZjNTQ4NWZiYWMwMDY1
15
+ OGYxNDVhNDk3ODJhMGUwZmY5ZDE1Mjk1NWM2NTkwMDQwMDNlMzY=
@@ -5,37 +5,33 @@ module WashoutBuilder
5
5
  # as a SOAP endpoint. It includes actions for generating WSDL and handling
6
6
  # SOAP requests.
7
7
  module Dispatcher
8
-
8
+
9
9
  def _generate_doc
10
10
  @map = self.class.soap_actions
11
11
  @namespace = soap_config.namespace
12
12
  @name = controller_path.gsub('/', '_')
13
13
  @service = self.class.name.underscore.gsub("_controller", "").camelize
14
14
  @endpoint = @namespace.gsub("/wsdl", "/action")
15
- @soap_config = soap_config
15
+ @soap_config = soap_config
16
16
 
17
17
  render :template => "wash_with_html/doc", :layout => false,
18
18
  :content_type => 'text/html'
19
19
  end
20
-
20
+
21
21
  def self.included(controller)
22
- controller.send :rescue_from, WashOut::Dispatcher::SOAPError, :with => :_render_soap_exception
23
- controller.send :helper, :wash_out, :washout_builder
24
- controller.send :before_filter, :_parse_soap_parameters, :except => [
25
- :_generate_wsdl, :_generate_doc, :_invalid_action ]
26
- controller.send :before_filter, :_authenticate_wsse, :except => [
27
- :_generate_wsdl,:_generate_doc,:_invalid_action ]
28
- controller.send :before_filter, :_map_soap_parameters, :except => [
22
+ controller.send :helper,:washout_builder
23
+ controller.send :before_filter, :_authenticate_wsse, :except => [
29
24
  :_generate_wsdl, :_generate_doc,:_invalid_action ]
30
- controller.send :skip_before_filter, :verify_authenticity_token
25
+ controller.send :before_filter, :_map_soap_parameters, :except => [
26
+ :_generate_wsdl,:_generate_doc, :_invalid_action ]
31
27
  controller.send :around_filter, :_catch_soap_faults
32
28
  end
33
-
29
+
34
30
  def _catch_soap_faults
35
31
  yield
36
32
  rescue => exception
37
33
  if exception.class <= WashOut::Dispatcher::SOAPError
38
- _render_soap_fault_exception(exception)
34
+ WashOut::Dispatcher.send(:render_soap_error,exception.message, exception.code)
39
35
  else
40
36
  raise exception
41
37
  end
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.5.4"
2
+ VERSION = "0.6.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.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada