soap4r_es 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/wsdl2ruby_rails.rb +1 -1
- data/bin/xsd2ruby.rb +1 -1
- data/lib/soap/version.rb +1 -1
- data/lib/wsdl/soap/classDefCreator.rb +2 -1
- data/lib/wsdl/soap/complexType.rb +1 -0
- data/lib/wsdl/soap/mappingRegistryCreatorSupport.rb +1 -0
- data/lib/xsd/datatypes.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGM3MzQ1ZGZhMzE3ODk3MjVhMDY0YzdiYjI1ZTY0ODM3NzM4Y2ZmNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODQ0ZWI5ZWU3MTJhZmYzNmViMDJhMzAzYjMyNzkzMWI5ZDFiYTZiMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTllNTNmZTYyOGQ3NTFkMzU0MjUzYWEzMDNlOWJlZTgyMTk5ZGQwZDg3ZWVi
|
10
|
+
ZDAxZWM2ZWFjNWExMWQ3ZjllZDgwZTA0ZmFmMWEyNDQwNjE1NDVhNjNkOWI4
|
11
|
+
NjgzZDA1NDllZGNkZWFhNTkzMGI0Y2M3Njk5NzdkNTBkOTRjZTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTY2YWVjMzg2YjkzNzgyZjAzYmUwNTZhYTJjOWU3OTA5MTk3NjBiM2Y3MmRk
|
14
|
+
YTk0MDYxNTIxZWNkOTRmOWViODllNThhYTczYjRhMmUzMTM1NWUzYWJlNWEw
|
15
|
+
OWJlMGEyZjE5NjhjZjEyMTAzMGZkYjUzMWVjOWQ5N2E5ZGFmZGI=
|
data/bin/wsdl2ruby_rails.rb
CHANGED
data/bin/xsd2ruby.rb
CHANGED
data/lib/soap/version.rb
CHANGED
@@ -456,12 +456,13 @@ private
|
|
456
456
|
if element.respond_to?(:type)
|
457
457
|
element_type = @simpletypes[element.type]
|
458
458
|
unless element_type.nil?
|
459
|
+
minoccurs = (element.minoccurs == 0)
|
459
460
|
minlength = element_type.restriction.minlength
|
460
461
|
maxlength = element_type.restriction.maxlength
|
461
462
|
if minlength != nil && maxlength != nil
|
462
463
|
#ricavo ilnome dell'elemento
|
463
464
|
element_name = name_element(element).name
|
464
|
-
c.def_code("\n validates_length_of :#{element_name}, :in => #{minlength}..#{maxlength}")
|
465
|
+
c.def_code("\n validates_length_of :#{element_name}, :in => #{minlength}..#{maxlength}"+(minoccurs ? ", :allow_nil => true" : ""))
|
465
466
|
end
|
466
467
|
end
|
467
468
|
end
|
data/lib/xsd/datatypes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soap4r_es
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurence A. Lee, Hiroshi NAKAMURA, Fabiano Pavan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|