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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d22bbf4806a2fa05b838ed0b68be447a6dd094f
|
4
|
+
data.tar.gz: 3fc1b7ef89aa5a9c64517f1162def81d38a1a349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/riddl.gemspec
CHANGED