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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDA3YzkxNzU5MmEwYTRiYWIxYjI2MGNjMGVlNTM3MGY5NjQ4NGMwMw==
4
+ MGM3MzQ1ZGZhMzE3ODk3MjVhMDY0YzdiYjI1ZTY0ODM3NzM4Y2ZmNg==
5
5
  data.tar.gz: !binary |-
6
- MWIxMjA2NDFkZTZkOTFjYzI3NmYwYzlhYmU0MjUxNzg0OWIyODU2MA==
6
+ ODQ0ZWI5ZWU3MTJhZmYzNmViMDJhMzAzYjMyNzkzMWI5ZDFiYTZiMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODE2NGI5Mjk4YWFlZGJkNjczMjkzMjk5ZGM4ODQxZTJlZmY0ZDQxOGVlNGZj
10
- NGRkMGM5YThjODkyMTUyYTNmNWMwYzM2ZjQ3MTU5MzBjMzE2YjFlM2YxZGZh
11
- ZWM3NjQ2N2QyNmU3N2YzNzFiYjljZWQxYWVhNGMwMTdhNDNmOWI=
9
+ MTllNTNmZTYyOGQ3NTFkMzU0MjUzYWEzMDNlOWJlZTgyMTk5ZGQwZDg3ZWVi
10
+ ZDAxZWM2ZWFjNWExMWQ3ZjllZDgwZTA0ZmFmMWEyNDQwNjE1NDVhNjNkOWI4
11
+ NjgzZDA1NDllZGNkZWFhNTkzMGI0Y2M3Njk5NzdkNTBkOTRjZTI=
12
12
  data.tar.gz: !binary |-
13
- ZjgyOTg5Mjc4NTlhOWI4NWI1NWMyYzUwMmM1MDY1YTViYmE5MDc2NDI3NmZl
14
- ZjZhNmU1ZTgwMDY1YmRiZTc0MWE5MjcwZDQ2ODRlMmVmZjcyY2FiYzM3ZTlh
15
- NmFjNDBlN2JlMzY1Y2U2MmUxYWY5YzM1ZDZkMDQzNjIxYzlhN2E=
13
+ NTY2YWVjMzg2YjkzNzgyZjAzYmUwNTZhYTJjOWU3OTA5MTk3NjBiM2Y3MmRk
14
+ YTk0MDYxNTIxZWNkOTRmOWViODllNThhYTczYjRhMmUzMTM1NWUzYWJlNWEw
15
+ OWJlMGEyZjE5NjhjZjEyMTAzMGZkYjUzMWVjOWQ5N2E5ZGFmZGI=
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
- $:.unshift File.join(File.dirname(__FILE__),'../lib') if ENV['DEBUG_SOAP4R']
3
+ $:.unshift File.join(File.dirname(__FILE__),'../lib')# if ENV['DEBUG_SOAP4R']
4
4
 
5
5
  require 'getoptlong'
6
6
  require 'logger'
data/bin/xsd2ruby.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
- $:.unshift File.join(File.dirname(__FILE__),'../lib') if ENV['DEBUG_SOAP4R']
3
+ $:.unshift File.join(File.dirname(__FILE__),'../lib') #if ENV['DEBUG_SOAP4R']
4
4
 
5
5
  require 'getoptlong'
6
6
  require 'logger'
data/lib/soap/version.rb CHANGED
@@ -3,7 +3,7 @@ module SOAP
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 4
6
+ TINY = 5
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
9
9
  FORK = "SOAP4R-NG"
@@ -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
@@ -9,6 +9,7 @@
9
9
 
10
10
  require 'wsdl/xmlSchema/complexType'
11
11
  require 'soap/mapping'
12
+ require 'byebug'
12
13
 
13
14
  module WSDL
14
15
  module XMLSchema
@@ -12,6 +12,7 @@ require 'wsdl/soap/classDefCreatorSupport'
12
12
 
13
13
  module WSDL
14
14
  module SOAP
15
+ require 'byebug'
15
16
 
16
17
 
17
18
  # requires @defined_const = {}, @dump_with_inner, @modulepath
data/lib/xsd/datatypes.rb CHANGED
@@ -741,7 +741,8 @@ private
741
741
  def _to_s
742
742
  year = (@data.year > 0) ? @data.year : @data.year - 1
743
743
  s = format('%.4d-%02d-%02d', year, @data.mon, @data.mday)
744
- add_tz(s)
744
+ #add_tz(s) MODIFICATO, TOLTA RIGA
745
+ s #AGGIUNTO RITORNO DELLA DATA
745
746
  end
746
747
  end
747
748
 
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
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-05-30 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient