washout_builder 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjBhNzE2NTAxZjVhY2I4OGY4YTQ2YjNiY2E4ZWQ4ZTMwYTQ2NzlhMA==
4
+ NDQxMzc2MTZmOGUwNzAyMTIxNWZkM2Y3YjUxYTMzOWMyNDg0YTI1ZQ==
5
5
  data.tar.gz: !binary |-
6
- MWMyNGZkMWQ0YjI4M2UyNjQyY2IyZDg0YTFlYjkwNjcxNTk5NGQ2Yg==
6
+ YTU1MmZjNDA5MDVmYzQyZWI1NTdiYjc1ZTA3NTRmMDJhY2M2NzVjOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGIwN2FkYTAzYzBlN2NjNGI1YmVjMTQ2MTZlMTc3OWM0NmE3ZjliYmI4YzMz
10
- ZDA3M2ZjYWJkMTYwNmZmZDcwYTUxN2MzMDVmZGU5ZmY5NmZmNmYwOWVjYmYy
11
- NjU2OTZiNDI0ZmFjMjU1YThkNWUzNTc1ODYyYmQzYjcxYjJjMjA=
9
+ MzE4NGRiOGViYTcyZmM1MzcxZjY0N2FmMzI3N2I2Zjg3ZDM0NDUzNTlkMWQ2
10
+ OTI4MjExZTBhMmEwN2VjZTQ1YjM1Yzk4MjI0OGQ3MTlmOGY0ZWY1ZWRjMGUw
11
+ Mzg5OWNmMzkzYWI5N2ExMjg3MGMxYmQxM2ZjMjkyY2QzNjBjYzg=
12
12
  data.tar.gz: !binary |-
13
- ZjRjZTBjMjQ2ZWViNDdjZTk4MjRjMGE3YTIyNGM5M2NhNmNhMDlhYjQyMjIw
14
- YWViYWM5Y2UwNzJlNjg4NWRiMjEyNTgyNWJiN2Q4MWQwMzg1YWRjMmJmOTRj
15
- Yjg1ZWFmYzhhNDQ2NTcwZmNhODQzZjRjYzQyMWIzNjhkYjM4ZGY=
13
+ MTc5ZDAzM2ExNDcwM2MzNjJmODQ5YjIyZWNhZGFlYWVmOWE3Y2MyNjFjMTAw
14
+ Y2ZkMzkwZWQ0ODFjMmQ2NDQ5NjhkNTRiNTRlOGI4YmM3YTQ2MjY1OTZiZGRi
15
+ OWVkNDg4ZGViZDY3YTVjZWEyZGMzNzYzNDc2M2I4YmJlNjFmMjI=
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
+ language: ruby
1
2
  before_install:
3
+ - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
2
4
  - gem install bundler
3
5
  rvm:
4
6
  - 1.9.3
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' # The documentation will only be available in development mode.
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, MySecondExceptionClass ] ,
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
- top_ancestors = get_class_ancestors(ancestor_class, defined)
55
- defined << {:class =>ancestor_class.to_s, :obj =>ancestor_object , :ancestors => top_ancestors }
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
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
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.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada