stupidedi 1.2.14 → 1.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/ruby/jruby_hack.rb +683 -0
- data/lib/stupidedi.rb +4 -0
- data/lib/stupidedi/config.rb +1 -0
- data/lib/stupidedi/contrib/004010/guides.rb +1 -0
- data/lib/stupidedi/contrib/004010/guides/GF990.rb +6 -1
- data/lib/stupidedi/contrib/004010/guides/IM210.rb +267 -0
- data/lib/stupidedi/contrib/004010/guides/QM214.rb +17 -5
- data/lib/stupidedi/contrib/004010/guides/SM204.rb +252 -57
- data/lib/stupidedi/contrib/004010/transaction_set_defs.rb +3 -0
- data/lib/stupidedi/contrib/004010/transaction_set_defs/IM210.rb +47 -0
- data/lib/stupidedi/contrib/004010/transaction_set_defs/SM204.rb +20 -2
- data/lib/stupidedi/version.rb +1 -1
- data/lib/stupidedi/versions/functional_groups/004010/element_defs.rb +115 -4
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs.rb +31 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B3.rb +31 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/C3.rb +22 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/H3.rb +25 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L0.rb +34 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L1.rb +42 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L3.rb +1 -1
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L4.rb +25 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L7.rb +35 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LAD.rb +39 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MEA.rb +1 -1
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N9.rb +7 -7
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/OID.rb +33 -0
- data/lib/stupidedi/versions/functional_groups/004010/segment_defs/R3.rb +28 -0
- data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HI.rb +2 -2
- data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HC837.rb +2 -1
- data/spec/examples/ruby/symbol.example +20 -23
- data/spec/examples/stupidedi/versions/005010/element_types/nn.example +4 -3
- data/spec/examples/stupidedi/versions/005010/element_types/r.example +5 -4
- metadata +34 -46
- data/spec/coverage/assets/0.10.0/application.css +0 -799
- data/spec/coverage/assets/0.10.0/application.js +0 -1707
- data/spec/coverage/assets/0.10.0/colorbox/border.png +0 -0
- data/spec/coverage/assets/0.10.0/colorbox/controls.png +0 -0
- data/spec/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
- data/spec/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
- data/spec/coverage/assets/0.10.0/favicon_green.png +0 -0
- data/spec/coverage/assets/0.10.0/favicon_red.png +0 -0
- data/spec/coverage/assets/0.10.0/favicon_yellow.png +0 -0
- data/spec/coverage/assets/0.10.0/loading.gif +0 -0
- data/spec/coverage/assets/0.10.0/magnify.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/spec/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/spec/coverage/index.html +0 -72
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
C3 = s::SegmentDef.build(:C3, "Currency",
|
13
|
+
"To Specify the currency being used in the transaction set",
|
14
|
+
e::E100 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
|
15
|
+
e::E280 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
16
|
+
e::E100 .simple_use(r::Optional, s::RepeatCount.bounded(1)))
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
H3 = s::SegmentDef.build(:H3, "Line Item - Quantity and Weight",
|
13
|
+
"To specify quantity, weight, volume, and type of service for a line item including applicable 'quantity/rate-as' data",
|
14
|
+
e::E152 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
15
|
+
e::E153 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E241 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
17
|
+
e::E242 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
18
|
+
e::E257 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
|
+
SyntaxNotes::E.build(1, 2))
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
L0 = s::SegmentDef.build(:L0, "Line Item - Quantity and Weight",
|
13
|
+
"To specify quantity, weight, volume, and type of service for a line item including applicable 'quantity/rate-as' data",
|
14
|
+
e::E213 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
15
|
+
e::E220 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E221 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
|
+
e::E81 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
+
e::E187 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
|
+
e::E183 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::E184 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
21
|
+
e::E80 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
22
|
+
e::E211 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
23
|
+
|
24
|
+
SyntaxNotes::P.build(2, 3),
|
25
|
+
SyntaxNotes::P.build(2, 3),
|
26
|
+
SyntaxNotes::P.build(4, 5),
|
27
|
+
SyntaxNotes::P.build(6, 7),
|
28
|
+
SyntaxNotes::P.build(8, 9))
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
L1 = s::SegmentDef.build(:L1, "Rate and Charges",
|
13
|
+
"To specify rate and charges detail relative to a line item including freight charges, advances, special charges, and entitlements.",
|
14
|
+
e::E213 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
15
|
+
e::E60 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E122 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
|
+
e::E58 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
+
e::E191 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
|
+
e::E117 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::E120 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
21
|
+
e::E150 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
22
|
+
e::E121 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
23
|
+
e::E39 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
24
|
+
e::E16 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
25
|
+
e::E276 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
26
|
+
e::E257 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
27
|
+
e::E74 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
28
|
+
e::E122 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
29
|
+
e::E372 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
30
|
+
e::E220 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
31
|
+
e::E221 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
32
|
+
e::E954 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
33
|
+
SyntaxNotes::R.build(4, 5, 6),
|
34
|
+
SyntaxNotes::P.build(2, 3),
|
35
|
+
SyntaxNotes::P.build(14, 15),
|
36
|
+
SyntaxNotes::P.build(17, 18))
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -15,7 +15,7 @@ module Stupidedi
|
|
15
15
|
e::E187.simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
16
|
e::E60 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
17
|
e::E122.simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
-
e::E58 .simple_use(r::Optional
|
18
|
+
e::E58 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
19
|
e::E191.simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
20
20
|
e::E117.simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
21
21
|
e::E150.simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
L4 = s::SegmentDef.build(:L4, "Measurement",
|
13
|
+
"To describe physical dimensions and quantities",
|
14
|
+
e::E82 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
15
|
+
e::E189 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
16
|
+
e::E65 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
17
|
+
e::E90 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
18
|
+
e::E380 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
|
+
SyntaxNotes::P.build(1, 2, 3, 4, 5))
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
L7 = s::SegmentDef.build(:L7, "Tariff Reference",
|
13
|
+
"To reference details of the tariff used to arrive at applicable rates or charges.",
|
14
|
+
e::E213 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
15
|
+
e::E168 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
16
|
+
e::E171 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
17
|
+
e::E172 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
+
e::E169 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
|
+
e::E170 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::E59 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
21
|
+
e::E173 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
22
|
+
e::E46 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
23
|
+
e::E373 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
24
|
+
e::E119 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
25
|
+
e::E227 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
26
|
+
e::E294 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
27
|
+
e::E295 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
28
|
+
e::E19 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
29
|
+
e::E156 .simple_use(r::Optional, s::RepeatCount.bounded(1)))
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
LAD = s::SegmentDef.build(:LAD, "Lading Detail",
|
13
|
+
"Order Identification Detail",
|
14
|
+
e::E211 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
15
|
+
e::E80 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E188 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
|
+
e::E395 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
+
e::E188 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
|
+
e::E81 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::E235 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
21
|
+
e::E234 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
22
|
+
e::E235 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
23
|
+
e::E234 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
24
|
+
e::E235 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
25
|
+
e::E234 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
26
|
+
e::E79 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
27
|
+
|
28
|
+
SyntaxNotes::P.build(1, 2),
|
29
|
+
SyntaxNotes::P.build(3, 4),
|
30
|
+
SyntaxNotes::P.build(5, 6),
|
31
|
+
SyntaxNotes::P.build(7, 8),
|
32
|
+
SyntaxNotes::P.build(9, 10),
|
33
|
+
SyntaxNotes::P.build(11, 12))
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -13,7 +13,7 @@ module Stupidedi
|
|
13
13
|
"To specify physical measurements or counts, including dimensions, tolerances, variances, and weights(See Figures Appendix for example of use of C001)",
|
14
14
|
e::E737 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
15
15
|
e::E738 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
16
|
-
e::
|
16
|
+
e::E739 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
17
|
e::C001 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
18
|
e::E740 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
19
|
e::E741 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
@@ -11,13 +11,13 @@ module Stupidedi
|
|
11
11
|
|
12
12
|
N9 = s::SegmentDef.build(:N9 , "Reference Identification",
|
13
13
|
"To transmit identifying information as specified by the Reference Identification Qualifier",
|
14
|
-
e::E128 .simple_use(r::Mandatory,
|
15
|
-
e::E127 .simple_use(r::
|
16
|
-
e::E369 .simple_use(r::
|
17
|
-
e::E373 .simple_use(r::Optional,
|
18
|
-
e::E337 .simple_use(r::Optional,
|
19
|
-
e::E623 .simple_use(r::
|
20
|
-
e::C040 .simple_use(r::Optional,
|
14
|
+
e::E128 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
|
15
|
+
e::E127 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E369 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
|
+
e::E373 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
18
|
+
e::E337 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
|
+
e::E623 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::C040 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
21
21
|
|
22
22
|
SyntaxNotes::R.build(2, 3),
|
23
23
|
SyntaxNotes::C.build(6, 5))
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
OID = s::SegmentDef.build(:OID, "Order identification",
|
13
|
+
"Order Identification Detail",
|
14
|
+
e::E127 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
15
|
+
e::E324 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
16
|
+
e::E355 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
17
|
+
e::E380 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
18
|
+
e::E188 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
19
|
+
e::E81 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
20
|
+
e::E184 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
21
|
+
e::E183 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
|
22
|
+
|
23
|
+
SyntaxNotes::R.build(1, 2),
|
24
|
+
SyntaxNotes::C.build(3, 2),
|
25
|
+
SyntaxNotes::P.build(4, 5),
|
26
|
+
SyntaxNotes::P.build(6, 7),
|
27
|
+
SyntaxNotes::P.build(8, 9))
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Stupidedi
|
3
|
+
module Versions
|
4
|
+
module FunctionalGroups
|
5
|
+
module FortyTen
|
6
|
+
module SegmentDefs
|
7
|
+
|
8
|
+
s = Schema
|
9
|
+
e = ElementDefs
|
10
|
+
r = ElementReqs
|
11
|
+
|
12
|
+
R3 = s::SegmentDef.build(:R3, "Route Information - Motor",
|
13
|
+
"To specify carrier and routing sequences and details.",
|
14
|
+
e::E140 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
|
15
|
+
e::E133 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
|
16
|
+
e::E19 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
17
|
+
e::E91 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
18
|
+
e::E154 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
|
+
e::E76 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
20
|
+
e::E373 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
21
|
+
e::E610 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
22
|
+
e::E369 .simple_use(r::Optional, s::RepeatCount.bounded(1)))
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -14,11 +14,11 @@ module Stupidedi
|
|
14
14
|
e::C022 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
|
15
15
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
16
16
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
17
|
-
e::C022 .simple_use(r::
|
17
|
+
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
18
18
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
19
19
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
20
20
|
|
21
|
-
e::C022 .simple_use(r::
|
21
|
+
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
22
22
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
23
23
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
24
24
|
e::C022 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
|
@@ -155,8 +155,9 @@ module Stupidedi
|
|
155
155
|
|
156
156
|
d::LoopDef.build("2440", d::RepeatCount.unbounded,
|
157
157
|
s:: LQ.use(5510, r::Optional, d::RepeatCount.bounded(1)),
|
158
|
-
s::FRM.use(5520, r::Mandatory, d::RepeatCount.bounded(99)))))),
|
158
|
+
s::FRM.use(5520, r::Mandatory, d::RepeatCount.bounded(99))))))),
|
159
159
|
|
160
|
+
d::TableDef.summary("Table 3 - Summary",
|
160
161
|
s:: SE.use(5550, r::Mandatory, d::RepeatCount.bounded(1))))
|
161
162
|
|
162
163
|
end
|
@@ -49,29 +49,26 @@ describe "Symbol#to_proc" do
|
|
49
49
|
:call.to_proc.call(lambda{|*bs| bs.length }, *as).should == as.length
|
50
50
|
end
|
51
51
|
|
52
|
-
pending "shortens the syntax when passing n-ary blocks"
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
"ab".length]
|
73
|
-
list[2].should == true
|
74
|
-
end
|
52
|
+
pending "shortens the syntax when passing n-ary blocks",
|
53
|
+
unless: RUBY_VERSION >= "2.4" || RUBY_PLATFORM == "java" do
|
54
|
+
list = []
|
55
|
+
|
56
|
+
# avert your eyes, lisp haters!
|
57
|
+
[[:zero?, 1 ], #=> 1.__send__(:zero?) == 1.zero?
|
58
|
+
[:length, "string"], #=> "string".__send__(:length) == "string".length
|
59
|
+
[:+, "a", "b"], #=> "a".__send__(:+, "b") == "a" + "b"
|
60
|
+
[:fetch, {}, "a", "b"], #=> {}.__send__(:fetch, "a", "b") == {}.fetch("a","b")
|
61
|
+
[:[]=, list, 2, true], #=> list.__send__(:[]=, 2, true) == list[2] = true
|
62
|
+
[:call, :length, "ab"]]. #=> :length.__send__(:call, "ab") == "ab".length
|
63
|
+
|
64
|
+
map{|n,*as| n.call(*as) }.should ==
|
65
|
+
[1.zero?,
|
66
|
+
"string".length,
|
67
|
+
("a" + "b"),
|
68
|
+
{}.fetch("a","b"),
|
69
|
+
true,
|
70
|
+
"ab".length]
|
71
|
+
list[2].should == true
|
75
72
|
end
|
76
73
|
end
|
77
74
|
|
@@ -158,9 +158,10 @@ describe Stupidedi::Versions::FunctionalGroups::FiftyTen::ElementTypes do
|
|
158
158
|
specify { (a + b).should == "12.5".to_d }
|
159
159
|
|
160
160
|
specify { (a.to_d - b.to_d).should == "8.5".to_d }
|
161
|
-
specify { (a - b.to_d).should == "8.5".to_d
|
162
|
-
specify { (a.to_d - b).should == "8.5".to_d
|
163
|
-
|
161
|
+
specify { (a - b.to_d).should == "8.5".to_d }
|
162
|
+
specify("", unless: RUBY_PLATFORM == "java") { (a.to_d - b).should == "8.5".to_d }
|
163
|
+
pending("", if: RUBY_PLATFORM == "java") { (a.to_d - b).should == "8.5".to_d }
|
164
|
+
specify { (a - b).should == "8.5".to_d }
|
164
165
|
|
165
166
|
specify { (a.to_d % b.to_d).should == "0.5".to_d }
|
166
167
|
specify { (a % b.to_d).should == "0.5".to_d }
|
@@ -157,10 +157,11 @@ describe Stupidedi::Versions::FunctionalGroups::FiftyTen::ElementTypes do
|
|
157
157
|
specify { (a.to_d + b).should == "12.5".to_d }
|
158
158
|
specify { (a + b).should == "12.5".to_d }
|
159
159
|
|
160
|
-
specify { (a.to_d - b.to_d).should == "8.5".to_d
|
161
|
-
specify { (a - b.to_d).should == "8.5".to_d
|
162
|
-
specify { (a.to_d - b).should == "8.5".to_d
|
163
|
-
|
160
|
+
specify { (a.to_d - b.to_d).should == "8.5".to_d }
|
161
|
+
specify { (a - b.to_d).should == "8.5".to_d }
|
162
|
+
specify("", unless: RUBY_PLATFORM == "java") { (a.to_d - b).should == "8.5".to_d }
|
163
|
+
pending("", if: RUBY_PLATFORM == "java") { (a.to_d - b).should == "8.5".to_d }
|
164
|
+
specify { (a - b).should == "8.5".to_d }
|
164
165
|
|
165
166
|
specify { (a.to_d % b.to_d).should == "0.5".to_d }
|
166
167
|
specify { (a % b.to_d).should == "0.5".to_d }
|