atp 0.5.0 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/atp/ast/builder.rb +18 -5
- data/lib/atp/flow.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f62f7363f60de549fcdd62079d15f1a2a15d1080
|
4
|
+
data.tar.gz: f8c1f9056501a2df6d68726081a2d6a214150e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb5cc42b0edf32d97e331a98ec302f145e98e48eddf292161916c79ee00e8bfc0b50c3e8eadbed7868fc326aed95c83e1ea63cbbc83036f0ef74dd1622197cd
|
7
|
+
data.tar.gz: b5efe45ab648a39ce0e785fff92d11203aee8f351907f5ae4ecd9aacd6c7b02e4dcc9ecd67b9746900cee8d23cf96443549f4ac04d3785405a48de7c83f85273
|
data/config/version.rb
CHANGED
data/lib/atp/ast/builder.rb
CHANGED
@@ -230,7 +230,10 @@ module ATP
|
|
230
230
|
def on_fail(options = {})
|
231
231
|
children = []
|
232
232
|
if options[:bin] || options[:softbin]
|
233
|
-
|
233
|
+
fail_opts = { bin: options[:bin], softbin: options[:softbin] }
|
234
|
+
fail_opts[:bin_description] = options[:bin_description] if options[:bin_description]
|
235
|
+
fail_opts[:softbin_description] = options[:softbin_description] if options[:softbin_description]
|
236
|
+
children << set_result(:fail, fail_opts)
|
234
237
|
end
|
235
238
|
if options[:set_run_flag] || options[:set_flag]
|
236
239
|
children << set_run_flag(options[:set_run_flag] || options[:set_flag])
|
@@ -243,7 +246,10 @@ module ATP
|
|
243
246
|
def on_pass(options = {})
|
244
247
|
children = []
|
245
248
|
if options[:bin] || options[:softbin]
|
246
|
-
|
249
|
+
pass_opts = { bin: options[:bin], softbin: options[:softbin] }
|
250
|
+
pass_opts[:bin_description] = options[:bin_description] if options[:bin_description]
|
251
|
+
pass_opts[:softbin_description] = options[:softbin_description] if options[:softbin_description]
|
252
|
+
children << set_result(:pass, pass_opts)
|
247
253
|
end
|
248
254
|
if options[:set_run_flag] || options[:set_flag]
|
249
255
|
children << set_run_flag(options[:set_run_flag] || options[:set_flag])
|
@@ -256,9 +262,16 @@ module ATP
|
|
256
262
|
def set_result(type, options = {})
|
257
263
|
children = []
|
258
264
|
children << type
|
259
|
-
|
260
|
-
|
261
|
-
|
265
|
+
if options[:bin] && options[:bin_description]
|
266
|
+
children << n(:bin, options[:bin], options[:bin_description])
|
267
|
+
else
|
268
|
+
children << n(:bin, options[:bin]) if options[:bin]
|
269
|
+
end
|
270
|
+
if options[:softbin] && options[:softbin_description]
|
271
|
+
children << n(:softbin, options[:softbin], options[:softbin_description])
|
272
|
+
else
|
273
|
+
children << n(:softbin, options[:softbin]) if options[:softbin]
|
274
|
+
end
|
262
275
|
result = n(:set_result, *children)
|
263
276
|
|
264
277
|
if options[:conditions]
|
data/lib/atp/flow.rb
CHANGED
@@ -74,10 +74,18 @@ module ATP
|
|
74
74
|
options[:on_fail] ||= {}
|
75
75
|
options[:on_fail][:bin] = b
|
76
76
|
end
|
77
|
+
if b = options.delete(:bin_description)
|
78
|
+
options[:on_fail] ||= {}
|
79
|
+
options[:on_fail][:bin_description] = b
|
80
|
+
end
|
77
81
|
if b = options.delete(:softbin) || b = options.delete(:sbin) || b = options.delete(:soft_bin)
|
78
82
|
options[:on_fail] ||= {}
|
79
83
|
options[:on_fail][:softbin] = b
|
80
84
|
end
|
85
|
+
if b = options.delete(:softbin_description) || options.delete(:sbin_description) || options.delete(:soft_bin_description)
|
86
|
+
options[:on_fail] ||= {}
|
87
|
+
options[:on_fail][:softbin_description] = b
|
88
|
+
end
|
81
89
|
if options.delete(:continue)
|
82
90
|
options[:on_fail] ||= {}
|
83
91
|
options[:on_fail][:continue] = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|