washout_builder 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +2 -0
- data/README.rdoc +10 -2
- data/app/helpers/washout_builder_helper.rb +2 -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
|
+
NDQxMzc2MTZmOGUwNzAyMTIxNWZkM2Y3YjUxYTMzOWMyNDg0YTI1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTU1MmZjNDA5MDVmYzQyZWI1NTdiYjc1ZTA3NTRmMDJhY2M2NzVjOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzE4NGRiOGViYTcyZmM1MzcxZjY0N2FmMzI3N2I2Zjg3ZDM0NDUzNTlkMWQ2
|
10
|
+
OTI4MjExZTBhMmEwN2VjZTQ1YjM1Yzk4MjI0OGQ3MTlmOGY0ZWY1ZWRjMGUw
|
11
|
+
Mzg5OWNmMzkzYWI5N2ExMjg3MGMxYmQxM2ZjMjkyY2QzNjBjYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc5ZDAzM2ExNDcwM2MzNjJmODQ5YjIyZWNhZGFlYWVmOWE3Y2MyNjFjMTAw
|
14
|
+
Y2ZkMzkwZWQ0ODFjMmQ2NDQ5NjhkNTRiNTRlOGI4YmM3YTQ2MjY1OTZiZGRi
|
15
|
+
OWVkNDg4ZGViZDY3YTVjZWEyZGMzNzYzNDc2M2I4YmJlNjFmMjI=
|
data/.travis.yml
CHANGED
data/README.rdoc
CHANGED
@@ -49,7 +49,7 @@ Or if you want this to be available only in development mode , you can do someth
|
|
49
49
|
gem 'wash_out' # The WashOut gem would be used also in production
|
50
50
|
|
51
51
|
group :development, :test do
|
52
|
-
gem 'washout_builder' #
|
52
|
+
gem 'washout_builder' # only available in development mode.
|
53
53
|
end
|
54
54
|
|
55
55
|
|
@@ -86,7 +86,7 @@ Here is an example :
|
|
86
86
|
soap_action "find",
|
87
87
|
:args => {:number => :integer} ,
|
88
88
|
:return => :boolean,
|
89
|
-
:raises => [MyCustomSoapError,
|
89
|
+
:raises => [MyCustomSoapError, MyOtherCustomSoapError ] ,
|
90
90
|
:description => "some description about this method to show in the documentation"
|
91
91
|
|
92
92
|
|
@@ -113,6 +113,14 @@ You can also specify complex types like this:
|
|
113
113
|
|
114
114
|
<b>The class MyCustomModel must include +Virtus.model+ if you want it to show up in the documentation!</b>
|
115
115
|
|
116
|
+
You can also use aggregation with another fault class exception like this:
|
117
|
+
|
118
|
+
class MyCustomSoapError < WashOut::SOAPError
|
119
|
+
|
120
|
+
attribute :errors, Array[MyOtherCustomSoapError]
|
121
|
+
|
122
|
+
end
|
123
|
+
|
116
124
|
And you can also use inheritance between custom exception classes like this:
|
117
125
|
|
118
126
|
class MySecondCustomSoapError < MyCustomSoapError
|
@@ -51,8 +51,8 @@ module WashoutBuilderHelper
|
|
51
51
|
ancestor_object = WashOut::Param.parse_def(@soap_config,ancestor_structure)[0]
|
52
52
|
bool_the_same = same_structure_as_ancestor?(param, ancestor_object)
|
53
53
|
unless bool_the_same
|
54
|
-
|
55
|
-
defined << {:class =>
|
54
|
+
top_ancestors = get_class_ancestors(ancestor_object,ancestors[0], defined)
|
55
|
+
defined << {:class =>ancestors[0], :obj =>ancestor_object , :ancestors => top_ancestors }
|
56
56
|
end
|
57
57
|
end
|
58
58
|
ancestors unless bool_the_same
|