riddl 0.99.227 → 0.99.228

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 531b59a0576b4c3c80c0982cc2cb3daa0a5c1937
4
- data.tar.gz: 9f9333e701a95a927c151861fa9f067adbd0a1f7
3
+ metadata.gz: 1d22bbf4806a2fa05b838ed0b68be447a6dd094f
4
+ data.tar.gz: 3fc1b7ef89aa5a9c64517f1162def81d38a1a349
5
5
  SHA512:
6
- metadata.gz: 71ae7b32aefc5e9c9f8a934d8c070fc4754c9cc0697f7e4ea54ac6f1e8cf0227a071e0f7ad2640b55b28ff821ae3568a0fa2ac005fc391813158506adb91fe88
7
- data.tar.gz: e80850aeef8cdd327af9aeaf3c0ded941a34eeb9f5a94386306459fc93bd71bbf2b15c92b26e5f7105ed7446befab36f561f69e273a99b62d09dc70cb6583157
6
+ metadata.gz: 0ff527ed10c19fabb08de1d516152a33e574bd74b8756efcda92c18140fb839115421c12b1b62b1a8dee3a69375f2a80b11b98997b148865e1e1caa56f7e82cf
7
+ data.tar.gz: e81e9c4a1cd5a6f24aefafd3f61242a45a789956fa082b43f3c7a26383b32325210d19d493a4962c5991be9f6205f246c5208ad3d800abd626ff5ca63313ac00
@@ -25,8 +25,8 @@ module Riddl
25
25
  @out = mout.nil? ? nil : Riddl::Wrapper::Description::Message.new(des,mout)
26
26
  end
27
27
  end
28
- def self.new_from_message(min,mout)
29
- RequestInOut.new(nil,min,mout,nil)
28
+ def self.new_from_message(min,mout,custom)
29
+ RequestInOut.new(nil,min,mout,nil,custom)
30
30
  end
31
31
  def hash
32
32
  @in.hash + (@out.nil? ? 0 : @out.hash)
@@ -46,11 +46,11 @@ module Riddl
46
46
  end
47
47
  @out = nil
48
48
  end
49
- def self.new_from_transformation(mtrans1,mtrans2)
49
+ def self.new_from_transformation(mtrans1,mtrans2,custom)
50
50
  tmp = XML::Smart::string("<transformation/>")
51
51
  tmp.root.add mtrans1.content.root.children
52
52
  tmp.root.add mtrans2.content.root.children
53
- RequestTransformation.new(nil,Riddl::Wrapper::Description::Transformation.new_from_xml("#{mtrans2.name}_#{mtrans2.name}_merged",tmp),nil)
53
+ RequestTransformation.new(nil,Riddl::Wrapper::Description::Transformation.new_from_xml("#{mtrans2.name}_#{mtrans2.name}_merged",tmp),nil,custom)
54
54
  end
55
55
  def transform(min)
56
56
  tmp = self.dup
@@ -77,8 +77,8 @@ module Riddl
77
77
  @out = mout.nil? ? nil : Riddl::Wrapper::Description::Message.new(des,mout)
78
78
  end
79
79
  end
80
- def self.new_from_message(mout)
81
- RequestStarOut.new(nil,mout,nil)
80
+ def self.new_from_message(mout,custom)
81
+ RequestStarOut.new(nil,mout,nil,custom)
82
82
  end
83
83
  attr_reader :out
84
84
  def hash
@@ -144,10 +144,10 @@ module Riddl
144
144
  success = true
145
145
  if teh_first.respond_to?(:in) && teh_last.respond_to?(:out)
146
146
  #1: responds first in + last out -> new InOut
147
- ret = RequestInOut.new_from_message(teh_first.in,teh_last.out)
147
+ ret = RequestInOut.new_from_message(teh_first.in,teh_last.out,teh_first.custom)
148
148
  elsif teh_first.class == RequestTransformation && teh_last.class == RequestTransformation && teh_last.out.nil?
149
149
  #2: first transform + last transform -> merge transformations
150
- ret = RequestTransformation.new_from_transformation(teh_first.trans,teh_last.trans)
150
+ ret = RequestTransformation.new_from_transformation(teh_first.trans,teh_last.trans,teh_first.custom)
151
151
  elsif teh_first.class == RequestPass
152
152
  if r.size > (fcount + 1)
153
153
  teh_first = r[fcount+=1]
@@ -157,7 +157,7 @@ module Riddl
157
157
  end
158
158
  elsif teh_last.respond_to?(:out)
159
159
  #3: responds last out only -> new StarOut
160
- ret = RequestStarOut.new_from_message(teh_last.out)
160
+ ret = RequestStarOut.new_from_message(teh_last.out,teh_last.custom)
161
161
  elsif teh_last.class == RequestPass
162
162
  #4: last pass -> remove last until #1 or #2 or #3 or size == 1
163
163
  if lcount - 1 > 0
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.227"
3
+ s.version = "0.99.228"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.227
4
+ version: 0.99.228
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen 'eTM' Mangler