finitio 0.10.0 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +26 -27
- data/README.md +0 -1
- data/lib/finitio/json_schema/builtin_type.rb +5 -2
- data/lib/finitio/json_schema/proxy_type.rb +9 -0
- data/lib/finitio/json_schema/union_type.rb +13 -1
- data/lib/finitio/json_schema.rb +1 -0
- data/lib/finitio/syntax/lexer.citrus +1 -1
- data/lib/finitio/version.rb +2 -2
- data/spec/json_schema/test_builtin_type.rb +1 -1
- data/spec/json_schema/test_union_type.rb +64 -6
- data/spec/syntax/nodes/test_attribute.rb +13 -1
- metadata +161 -159
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1b4bcc2dab9afa958c597af1418553f339b726fb
|
4
|
+
data.tar.gz: 3140214a73d11d6733e770d9ca2950dae0c34650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ce81cd1bd6014172453ac187e0f2e78d3f6f8729f02e1e7875fdb06c324e926a660b3af25b8cea7e224dfbc3a2b45146106533ccb49f09627822ca595e4313
|
7
|
+
data.tar.gz: 76ef53792f483628ce1e9c786d99d324235a244da6696d05105666d2578859368de020104f7da4a1ee096b5d2d4b7c98ae87408bbac6042f7e74e891809ea650
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# 0.11.2 - 2023/01/06
|
2
|
+
|
3
|
+
* Fix json_schema generation on builtin_type NilClass. "null"
|
4
|
+
is not a valid value, we now use "string" instead.
|
5
|
+
|
6
|
+
# 0.11.1 - 2021/12/09
|
7
|
+
|
8
|
+
* Fix github actions and extend test grid.
|
9
|
+
|
10
|
+
# 0.11.0 - 2021/12/09
|
11
|
+
|
12
|
+
* Fix json schema generation of Boolean and union types with a |Nil
|
13
|
+
* Add support for dashses in attribute names (tuple & relation types).
|
14
|
+
|
1
15
|
# 0.10.0 - 2021/01/11
|
2
16
|
|
3
17
|
* Upgrade all dependencies.
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
finitio (0.
|
4
|
+
finitio (0.11.2)
|
5
5
|
citrus (>= 3.0, < 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (5.2.
|
10
|
+
activesupport (5.2.8.1)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 0.7, < 2)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
|
-
awesome_print (1.
|
15
|
+
awesome_print (1.9.2)
|
16
16
|
builder (3.2.4)
|
17
17
|
citrus (3.0.2)
|
18
|
-
concurrent-ruby (1.1.
|
18
|
+
concurrent-ruby (1.1.10)
|
19
19
|
coveralls (0.8.23)
|
20
20
|
json (>= 1.8, < 3)
|
21
21
|
simplecov (~> 0.16.1)
|
@@ -54,13 +54,13 @@ GEM
|
|
54
54
|
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
|
55
55
|
cucumber-messages (~> 12.2, >= 12.2.0)
|
56
56
|
diff-lcs (1.3)
|
57
|
-
docile (1.3.
|
58
|
-
ffi (1.
|
59
|
-
i18n (1.
|
57
|
+
docile (1.3.5)
|
58
|
+
ffi (1.15.5)
|
59
|
+
i18n (1.12.0)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
|
-
json (2.
|
61
|
+
json (2.6.3)
|
62
62
|
middleware (0.1.0)
|
63
|
-
minitest (5.
|
63
|
+
minitest (5.15.0)
|
64
64
|
multi_json (1.15.0)
|
65
65
|
multi_test (0.1.2)
|
66
66
|
path (2.0.1)
|
@@ -69,20 +69,20 @@ GEM
|
|
69
69
|
middleware
|
70
70
|
thor
|
71
71
|
thread_safe
|
72
|
-
rake (13.0.
|
73
|
-
rspec (3.
|
74
|
-
rspec-core (~> 3.
|
75
|
-
rspec-expectations (~> 3.
|
76
|
-
rspec-mocks (~> 3.
|
77
|
-
rspec-core (3.
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-expectations (3.
|
72
|
+
rake (13.0.6)
|
73
|
+
rspec (3.12.0)
|
74
|
+
rspec-core (~> 3.12.0)
|
75
|
+
rspec-expectations (~> 3.12.0)
|
76
|
+
rspec-mocks (~> 3.12.0)
|
77
|
+
rspec-core (3.12.0)
|
78
|
+
rspec-support (~> 3.12.0)
|
79
|
+
rspec-expectations (3.12.1)
|
80
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
-
rspec-support (~> 3.
|
82
|
-
rspec-mocks (3.
|
81
|
+
rspec-support (~> 3.12.0)
|
82
|
+
rspec-mocks (3.12.1)
|
83
83
|
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-support (3.
|
84
|
+
rspec-support (~> 3.12.0)
|
85
|
+
rspec-support (3.12.0)
|
86
86
|
simplecov (0.16.1)
|
87
87
|
docile (~> 1.1)
|
88
88
|
json (>= 1.8, < 3)
|
@@ -93,16 +93,15 @@ GEM
|
|
93
93
|
ffi (~> 1.1)
|
94
94
|
term-ansicolor (1.7.1)
|
95
95
|
tins (~> 1.0)
|
96
|
-
thor (1.
|
96
|
+
thor (1.2.1)
|
97
97
|
thread_safe (0.3.6)
|
98
|
-
tins (1.
|
98
|
+
tins (1.32.1)
|
99
99
|
sync
|
100
|
-
tzinfo (1.2.
|
100
|
+
tzinfo (1.2.10)
|
101
101
|
thread_safe (~> 0.1)
|
102
102
|
|
103
103
|
PLATFORMS
|
104
|
-
|
105
|
-
x86_64-darwin-18
|
104
|
+
x86_64-linux
|
106
105
|
|
107
106
|
DEPENDENCIES
|
108
107
|
awesome_print (~> 1.8)
|
@@ -115,4 +114,4 @@ DEPENDENCIES
|
|
115
114
|
rspec (~> 3.0)
|
116
115
|
|
117
116
|
BUNDLED WITH
|
118
|
-
2.
|
117
|
+
2.3.26
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/blambeau/finitio-rb.svg?branch=master)](https://travis-ci.org/blambeau/finitio-rb)
|
2
|
-
[![Dependency Status](https://gemnasium.com/blambeau/finitio-rb.png)](https://gemnasium.com/blambeau/finitio-rb)
|
3
2
|
[![Code Climate](https://codeclimate.com/github/blambeau/finitio-rb.png)](https://codeclimate.com/github/blambeau/finitio-rb)
|
4
3
|
[![Coverage Status](https://coveralls.io/repos/blambeau/finitio-rb/badge.png?branch=master)](https://coveralls.io/r/blambeau/finitio-rb)
|
5
4
|
|
@@ -2,13 +2,16 @@ module Finitio
|
|
2
2
|
module JsonSchema
|
3
3
|
|
4
4
|
BUILTIN_MAPPING = {
|
5
|
-
NilClass => "
|
5
|
+
NilClass => "string", # jsonapi does not support null
|
6
6
|
String => "string",
|
7
7
|
Integer => "integer",
|
8
8
|
Fixnum => "integer",
|
9
9
|
Bignum => "integer",
|
10
10
|
Float => "number",
|
11
|
-
Numeric => "number"
|
11
|
+
Numeric => "number",
|
12
|
+
TrueClass => "boolean",
|
13
|
+
FalseClass => "boolean",
|
14
|
+
Object => "object"
|
12
15
|
}
|
13
16
|
|
14
17
|
end
|
@@ -1,9 +1,21 @@
|
|
1
1
|
module Finitio
|
2
2
|
class UnionType
|
3
3
|
|
4
|
+
NIL_TYPE = BuiltinType.new(NilClass)
|
5
|
+
|
6
|
+
FALSE_TYPE = BuiltinType.new(TrueClass)
|
7
|
+
|
8
|
+
TRUE_TYPE = BuiltinType.new(FalseClass)
|
9
|
+
|
10
|
+
BOOLEAN_TYPE = UnionType.new([TRUE_TYPE, FALSE_TYPE])
|
11
|
+
|
4
12
|
def to_json_schema(*args, &bl)
|
13
|
+
cs = candidates.reject{|c| c == NIL_TYPE }
|
14
|
+
return { type: 'boolean'} if self == BOOLEAN_TYPE
|
15
|
+
return cs.first.to_json_schema(*args, &bl) if cs.size == 1
|
16
|
+
|
5
17
|
{
|
6
|
-
anyOf:
|
18
|
+
anyOf: cs.map{|c| c.to_json_schema(*args, &bl) }
|
7
19
|
}
|
8
20
|
end
|
9
21
|
|
data/lib/finitio/json_schema.rb
CHANGED
data/lib/finitio/version.rb
CHANGED
@@ -2,14 +2,72 @@ module Finitio
|
|
2
2
|
module JsonSchema
|
3
3
|
describe "UnionType" do
|
4
4
|
|
5
|
-
let(:
|
6
|
-
|
5
|
+
let(:string_type) {
|
6
|
+
BuiltinType.new(String)
|
7
7
|
}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
let(:int_type) {
|
10
|
+
BuiltinType.new(Integer)
|
11
|
+
}
|
12
|
+
|
13
|
+
let(:true_type) {
|
14
|
+
BuiltinType.new(TrueClass)
|
15
|
+
}
|
16
|
+
|
17
|
+
let(:false_type) {
|
18
|
+
BuiltinType.new(FalseClass)
|
19
|
+
}
|
20
|
+
|
21
|
+
let(:nil_type) {
|
22
|
+
BuiltinType.new(NilClass)
|
23
|
+
}
|
24
|
+
|
25
|
+
context 'when used with a single type' do
|
26
|
+
let(:union_type) {
|
27
|
+
UnionType.new([string_type])
|
28
|
+
}
|
29
|
+
|
30
|
+
it 'works as expected' do
|
31
|
+
expect(union_type.to_json_schema).to eql({
|
32
|
+
:type => "string"
|
33
|
+
})
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'when used with two types' do
|
38
|
+
let(:union_type) {
|
39
|
+
UnionType.new([string_type, int_type])
|
40
|
+
}
|
41
|
+
|
42
|
+
it 'works as expected' do
|
43
|
+
expect(union_type.to_json_schema).to eql({
|
44
|
+
anyOf: [{:type => "string"}, {:type => "integer"}]
|
45
|
+
})
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
context 'when used with a |Nil' do
|
50
|
+
let(:union_type) {
|
51
|
+
UnionType.new([string_type, int_type, nil_type])
|
52
|
+
}
|
53
|
+
|
54
|
+
it 'works as expected' do
|
55
|
+
expect(union_type.to_json_schema).to eql({
|
56
|
+
anyOf: [{:type => "string"}, {:type => "integer"}]
|
57
|
+
})
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
context 'when used with a TrueClass|FalseClass' do
|
62
|
+
let(:union_type) {
|
63
|
+
UnionType.new([true_type, false_type])
|
64
|
+
}
|
65
|
+
|
66
|
+
it 'works as expected' do
|
67
|
+
expect(union_type.to_json_schema).to eql({
|
68
|
+
:type => "boolean"
|
69
|
+
})
|
70
|
+
end
|
13
71
|
end
|
14
72
|
|
15
73
|
end
|
@@ -34,6 +34,18 @@ module Finitio
|
|
34
34
|
expect(compiled).not_to be_required
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
context 'when using dashes in attribute name' do
|
39
|
+
let(:input){ 'created-at : .Integer' }
|
40
|
+
|
41
|
+
it 'works' do
|
42
|
+
expect(compiled).to be_a(Attribute)
|
43
|
+
expect(compiled.name).to eq(:"created-at")
|
44
|
+
expect(compiled.type).to be_a(BuiltinType)
|
45
|
+
expect(compiled.type.ruby_type).to be(Integer)
|
46
|
+
expect(compiled).to be_required
|
47
|
+
end
|
48
|
+
end
|
37
49
|
end
|
38
50
|
|
39
51
|
describe 'AST' do
|
@@ -60,6 +72,6 @@ module Finitio
|
|
60
72
|
end
|
61
73
|
|
62
74
|
end
|
63
|
-
|
75
|
+
|
64
76
|
end
|
65
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finitio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: citrus
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- lib/finitio/json_schema/any_type.rb
|
176
176
|
- lib/finitio/json_schema/builtin_type.rb
|
177
177
|
- lib/finitio/json_schema/hash_based_type.rb
|
178
|
+
- lib/finitio/json_schema/proxy_type.rb
|
178
179
|
- lib/finitio/json_schema/rel_based_type.rb
|
179
180
|
- lib/finitio/json_schema/seq_type.rb
|
180
181
|
- lib/finitio/json_schema/set_type.rb
|
@@ -465,7 +466,7 @@ files:
|
|
465
466
|
homepage: https://github.com/blambeau/finitio
|
466
467
|
licenses: []
|
467
468
|
metadata: {}
|
468
|
-
post_install_message:
|
469
|
+
post_install_message:
|
469
470
|
rdoc_options: []
|
470
471
|
require_paths:
|
471
472
|
- lib
|
@@ -480,195 +481,196 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
480
481
|
- !ruby/object:Gem::Version
|
481
482
|
version: '0'
|
482
483
|
requirements: []
|
483
|
-
|
484
|
-
|
484
|
+
rubyforge_project:
|
485
|
+
rubygems_version: 2.6.14.4
|
486
|
+
signing_key:
|
485
487
|
specification_version: 4
|
486
488
|
summary: Finitio - in Ruby
|
487
489
|
test_files:
|
488
|
-
- spec/
|
490
|
+
- spec/regression/test_heading_extra_are_proxy_resolved.rb
|
491
|
+
- spec/test_finitio.rb
|
492
|
+
- spec/constraint/test_named.rb
|
493
|
+
- spec/constraint/test_anonymous.rb
|
494
|
+
- spec/constraint/test_equality.rb
|
495
|
+
- spec/constraint/test_name.rb
|
496
|
+
- spec/constraint/test_triple_equal.rb
|
497
|
+
- spec/inference/test_inference.rb
|
489
498
|
- spec/type_factory/factory/test_tuple_type.rb
|
490
|
-
- spec/type_factory/factory/test_builtin.rb
|
491
499
|
- spec/type_factory/factory/test_set_type.rb
|
492
|
-
- spec/type_factory/factory/
|
500
|
+
- spec/type_factory/factory/test_builtin.rb
|
493
501
|
- spec/type_factory/factory/test_sub_type.rb
|
494
502
|
- spec/type_factory/factory/test_seq_type.rb
|
503
|
+
- spec/type_factory/factory/test_struct_type.rb
|
504
|
+
- spec/type_factory/dsl/test_subtype.rb
|
505
|
+
- spec/type_factory/dsl/test_any.rb
|
495
506
|
- spec/type_factory/dsl/test_attributes.rb
|
507
|
+
- spec/type_factory/dsl/test_tuple.rb
|
508
|
+
- spec/type_factory/dsl/test_union.rb
|
496
509
|
- spec/type_factory/dsl/test_builtin.rb
|
497
|
-
- spec/type_factory/dsl/test_adt.rb
|
498
510
|
- spec/type_factory/dsl/test_multi_tuple.rb
|
511
|
+
- spec/type_factory/dsl/test_relation.rb
|
512
|
+
- spec/type_factory/dsl/test_set.rb
|
513
|
+
- spec/type_factory/dsl/test_struct.rb
|
499
514
|
- spec/type_factory/dsl/test_seq.rb
|
500
515
|
- spec/type_factory/dsl/test_multi_relation.rb
|
501
|
-
- spec/type_factory/dsl/
|
502
|
-
- spec/type_factory/dsl/test_set.rb
|
516
|
+
- spec/type_factory/dsl/test_adt.rb
|
503
517
|
- spec/type_factory/dsl/test_attribute.rb
|
504
|
-
- spec/
|
505
|
-
- spec/
|
506
|
-
- spec/
|
507
|
-
- spec/type_factory/dsl/test_relation.rb
|
508
|
-
- spec/type_factory/dsl/test_subtype.rb
|
509
|
-
- spec/attribute/test_initialize.rb
|
510
|
-
- spec/attribute/test_equality.rb
|
511
|
-
- spec/attribute/test_to_name.rb
|
512
|
-
- spec/attribute/test_fetch_on.rb
|
513
|
-
- spec/attribute/test_optional.rb
|
514
|
-
- spec/attribute/test_required.rb
|
515
|
-
- spec/json_schema/test_tuple_type.rb
|
516
|
-
- spec/json_schema/test_set_type.rb
|
517
|
-
- spec/json_schema/test_union_type.rb
|
518
|
-
- spec/json_schema/test_multi_relation_type.rb
|
519
|
-
- spec/json_schema/test_builtin_type.rb
|
520
|
-
- spec/json_schema/test_alias_type.rb
|
521
|
-
- spec/json_schema/test_multi_tuple_type.rb
|
522
|
-
- spec/json_schema/test_struct_type.rb
|
523
|
-
- spec/json_schema/test_sub_type.rb
|
524
|
-
- spec/json_schema/test_any_type.rb
|
525
|
-
- spec/json_schema/test_ad_type.rb
|
526
|
-
- spec/json_schema/test_relation_type.rb
|
527
|
-
- spec/json_schema/test_seq_type.rb
|
528
|
-
- spec/heading/test_hash_get.rb
|
529
|
-
- spec/heading/test_initialize.rb
|
530
|
-
- spec/heading/test_equality.rb
|
531
|
-
- spec/heading/test_to_name.rb
|
532
|
-
- spec/heading/test_multi.rb
|
533
|
-
- spec/heading/test_hash.rb
|
534
|
-
- spec/heading/test_suppremum.rb
|
535
|
-
- spec/heading/test_allow_extra.rb
|
536
|
-
- spec/heading/test_size.rb
|
537
|
-
- spec/heading/test_looks_similar.rb
|
538
|
-
- spec/heading/test_each.rb
|
539
|
-
- spec/test_finitio.rb
|
540
|
-
- spec/finitio/test_ast.rb
|
541
|
-
- spec/finitio/system.fio
|
542
|
-
- spec/finitio/test_system.rb
|
543
|
-
- spec/finitio/test_parse.rb
|
544
|
-
- spec/finitio/test_stdlib_memoization.rb
|
545
|
-
- spec/system/test_initialize.rb
|
546
|
-
- spec/system/test_get_type.rb
|
547
|
-
- spec/system/test_fetch.rb
|
548
|
-
- spec/system/test_dup.rb
|
549
|
-
- spec/system/test_add_type.rb
|
550
|
-
- spec/system/test_dsl.rb
|
551
|
-
- spec/system/fixtures/with-duplicates.fio
|
552
|
-
- spec/system/fixtures/system.fio
|
553
|
-
- spec/system/test_check_and_warn.rb
|
554
|
-
- spec/type/multi_relation_type/test_name.rb
|
555
|
-
- spec/type/multi_relation_type/test_initialize.rb
|
556
|
-
- spec/type/multi_relation_type/test_equality.rb
|
557
|
-
- spec/type/multi_relation_type/test_include.rb
|
558
|
-
- spec/type/multi_relation_type/test_default_name.rb
|
559
|
-
- spec/type/multi_relation_type/test_dress.rb
|
560
|
-
- spec/type/sub_type/test_name.rb
|
561
|
-
- spec/type/sub_type/test_initialize.rb
|
562
|
-
- spec/type/sub_type/test_equality.rb
|
563
|
-
- spec/type/sub_type/test_include.rb
|
564
|
-
- spec/type/sub_type/test_default_name.rb
|
565
|
-
- spec/type/sub_type/test_dress.rb
|
566
|
-
- spec/type/test_unconstrained.rb
|
567
|
-
- spec/type/test_suppremum.rb
|
568
|
-
- spec/type/ad_type/test_name.rb
|
569
|
-
- spec/type/ad_type/test_initialize.rb
|
570
|
-
- spec/type/ad_type/test_include.rb
|
571
|
-
- spec/type/ad_type/test_default_name.rb
|
572
|
-
- spec/type/ad_type/test_dress.rb
|
573
|
-
- spec/type/struct_type/test_name.rb
|
574
|
-
- spec/type/struct_type/test_initialize.rb
|
575
|
-
- spec/type/struct_type/test_equality.rb
|
518
|
+
- spec/type/alias_type/test_delegation.rb
|
519
|
+
- spec/type/alias_type/test_name.rb
|
520
|
+
- spec/type/alias_type/test_default_name.rb
|
576
521
|
- spec/type/struct_type/test_include.rb
|
577
|
-
- spec/type/struct_type/test_default_name.rb
|
578
522
|
- spec/type/struct_type/test_dress.rb
|
579
|
-
- spec/type/
|
580
|
-
- spec/type/
|
581
|
-
- spec/type/
|
582
|
-
- spec/type/
|
583
|
-
- spec/type/set_type/test_include.rb
|
584
|
-
- spec/type/set_type/test_default_name.rb
|
585
|
-
- spec/type/set_type/test_dress.rb
|
586
|
-
- spec/type/relation_type/test_name.rb
|
587
|
-
- spec/type/relation_type/test_initialize.rb
|
588
|
-
- spec/type/relation_type/test_equality.rb
|
589
|
-
- spec/type/relation_type/test_suppremum.rb
|
523
|
+
- spec/type/struct_type/test_equality.rb
|
524
|
+
- spec/type/struct_type/test_name.rb
|
525
|
+
- spec/type/struct_type/test_default_name.rb
|
526
|
+
- spec/type/struct_type/test_initialize.rb
|
590
527
|
- spec/type/relation_type/test_include.rb
|
591
|
-
- spec/type/relation_type/test_default_name.rb
|
592
528
|
- spec/type/relation_type/test_dress.rb
|
593
|
-
- spec/type/
|
594
|
-
- spec/type/
|
595
|
-
- spec/type/
|
596
|
-
- spec/type/
|
597
|
-
- spec/type/
|
598
|
-
- spec/type/
|
599
|
-
- spec/type/
|
600
|
-
- spec/type/
|
601
|
-
- spec/type/
|
529
|
+
- spec/type/relation_type/test_equality.rb
|
530
|
+
- spec/type/relation_type/test_name.rb
|
531
|
+
- spec/type/relation_type/test_default_name.rb
|
532
|
+
- spec/type/relation_type/test_suppremum.rb
|
533
|
+
- spec/type/relation_type/test_initialize.rb
|
534
|
+
- spec/type/seq_type/test_include.rb
|
535
|
+
- spec/type/seq_type/test_dress.rb
|
536
|
+
- spec/type/seq_type/test_equality.rb
|
537
|
+
- spec/type/seq_type/test_name.rb
|
538
|
+
- spec/type/seq_type/test_default_name.rb
|
539
|
+
- spec/type/seq_type/test_suppremum.rb
|
540
|
+
- spec/type/seq_type/test_initialize.rb
|
602
541
|
- spec/type/builtin_type/test_include.rb
|
603
|
-
- spec/type/builtin_type/test_default_name.rb
|
604
542
|
- spec/type/builtin_type/test_dress.rb
|
605
|
-
- spec/type/
|
606
|
-
- spec/type/
|
607
|
-
- spec/type/
|
608
|
-
- spec/type/
|
543
|
+
- spec/type/builtin_type/test_equality.rb
|
544
|
+
- spec/type/builtin_type/test_name.rb
|
545
|
+
- spec/type/builtin_type/test_default_name.rb
|
546
|
+
- spec/type/builtin_type/test_initialize.rb
|
547
|
+
- spec/type/multi_tuple_type/test_include.rb
|
548
|
+
- spec/type/multi_tuple_type/test_dress.rb
|
549
|
+
- spec/type/multi_tuple_type/test_equality.rb
|
550
|
+
- spec/type/multi_tuple_type/test_name.rb
|
551
|
+
- spec/type/multi_tuple_type/test_default_name.rb
|
552
|
+
- spec/type/multi_tuple_type/test_initialize.rb
|
553
|
+
- spec/type/ad_type/test_include.rb
|
554
|
+
- spec/type/ad_type/test_dress.rb
|
555
|
+
- spec/type/ad_type/test_name.rb
|
556
|
+
- spec/type/ad_type/test_default_name.rb
|
557
|
+
- spec/type/ad_type/test_initialize.rb
|
558
|
+
- spec/type/multi_relation_type/test_include.rb
|
559
|
+
- spec/type/multi_relation_type/test_dress.rb
|
560
|
+
- spec/type/multi_relation_type/test_equality.rb
|
561
|
+
- spec/type/multi_relation_type/test_name.rb
|
562
|
+
- spec/type/multi_relation_type/test_default_name.rb
|
563
|
+
- spec/type/multi_relation_type/test_initialize.rb
|
564
|
+
- spec/type/any_type/test_include.rb
|
565
|
+
- spec/type/any_type/test_dress.rb
|
566
|
+
- spec/type/any_type/test_equality.rb
|
567
|
+
- spec/type/any_type/test_name.rb
|
568
|
+
- spec/type/any_type/test_default_name.rb
|
569
|
+
- spec/type/any_type/test_initialize.rb
|
570
|
+
- spec/type/test_unconstrained.rb
|
609
571
|
- spec/type/union_type/test_include.rb
|
610
|
-
- spec/type/union_type/test_default_name.rb
|
611
572
|
- spec/type/union_type/test_dress.rb
|
612
|
-
- spec/type/
|
613
|
-
- spec/type/
|
614
|
-
- spec/type/
|
615
|
-
- spec/type/
|
573
|
+
- spec/type/union_type/test_equality.rb
|
574
|
+
- spec/type/union_type/test_name.rb
|
575
|
+
- spec/type/union_type/test_default_name.rb
|
576
|
+
- spec/type/union_type/test_suppremum.rb
|
577
|
+
- spec/type/union_type/test_initialize.rb
|
578
|
+
- spec/type/sub_type/test_include.rb
|
579
|
+
- spec/type/sub_type/test_dress.rb
|
580
|
+
- spec/type/sub_type/test_equality.rb
|
581
|
+
- spec/type/sub_type/test_name.rb
|
582
|
+
- spec/type/sub_type/test_default_name.rb
|
583
|
+
- spec/type/sub_type/test_initialize.rb
|
584
|
+
- spec/type/set_type/test_include.rb
|
585
|
+
- spec/type/set_type/test_dress.rb
|
586
|
+
- spec/type/set_type/test_equality.rb
|
587
|
+
- spec/type/set_type/test_name.rb
|
588
|
+
- spec/type/set_type/test_default_name.rb
|
589
|
+
- spec/type/set_type/test_suppremum.rb
|
590
|
+
- spec/type/set_type/test_initialize.rb
|
591
|
+
- spec/type/test_suppremum.rb
|
616
592
|
- spec/type/tuple_type/test_include.rb
|
617
|
-
- spec/type/tuple_type/test_default_name.rb
|
618
593
|
- spec/type/tuple_type/test_dress.rb
|
619
|
-
- spec/type/
|
620
|
-
- spec/type/
|
621
|
-
- spec/type/
|
622
|
-
- spec/type/
|
623
|
-
- spec/type/
|
624
|
-
- spec/type/seq_type/test_equality.rb
|
625
|
-
- spec/type/seq_type/test_suppremum.rb
|
626
|
-
- spec/type/seq_type/test_include.rb
|
627
|
-
- spec/type/seq_type/test_default_name.rb
|
628
|
-
- spec/type/seq_type/test_dress.rb
|
629
|
-
- spec/type/multi_tuple_type/test_name.rb
|
630
|
-
- spec/type/multi_tuple_type/test_initialize.rb
|
631
|
-
- spec/type/multi_tuple_type/test_equality.rb
|
632
|
-
- spec/type/multi_tuple_type/test_include.rb
|
633
|
-
- spec/type/multi_tuple_type/test_default_name.rb
|
634
|
-
- spec/type/multi_tuple_type/test_dress.rb
|
635
|
-
- spec/support/test_compare_attrs.rb
|
594
|
+
- spec/type/tuple_type/test_equality.rb
|
595
|
+
- spec/type/tuple_type/test_name.rb
|
596
|
+
- spec/type/tuple_type/test_default_name.rb
|
597
|
+
- spec/type/tuple_type/test_suppremum.rb
|
598
|
+
- spec/type/tuple_type/test_initialize.rb
|
636
599
|
- spec/support/test_proc_with_code.rb
|
637
|
-
- spec/
|
638
|
-
- spec/
|
600
|
+
- spec/support/test_compare_attrs.rb
|
601
|
+
- spec/heading/test_size.rb
|
602
|
+
- spec/heading/test_hash_get.rb
|
603
|
+
- spec/heading/test_hash.rb
|
604
|
+
- spec/heading/test_each.rb
|
605
|
+
- spec/heading/test_equality.rb
|
606
|
+
- spec/heading/test_multi.rb
|
607
|
+
- spec/heading/test_looks_similar.rb
|
608
|
+
- spec/heading/test_allow_extra.rb
|
609
|
+
- spec/heading/test_suppremum.rb
|
610
|
+
- spec/heading/test_initialize.rb
|
611
|
+
- spec/heading/test_to_name.rb
|
612
|
+
- spec/json_schema/test_tuple_type.rb
|
613
|
+
- spec/json_schema/test_alias_type.rb
|
614
|
+
- spec/json_schema/test_set_type.rb
|
615
|
+
- spec/json_schema/test_relation_type.rb
|
616
|
+
- spec/json_schema/test_ad_type.rb
|
617
|
+
- spec/json_schema/test_builtin_type.rb
|
618
|
+
- spec/json_schema/test_multi_relation_type.rb
|
619
|
+
- spec/json_schema/test_sub_type.rb
|
620
|
+
- spec/json_schema/test_any_type.rb
|
621
|
+
- spec/json_schema/test_seq_type.rb
|
622
|
+
- spec/json_schema/test_union_type.rb
|
623
|
+
- spec/json_schema/test_multi_tuple_type.rb
|
624
|
+
- spec/json_schema/test_struct_type.rb
|
625
|
+
- spec/system/test_dsl.rb
|
626
|
+
- spec/system/test_get_type.rb
|
627
|
+
- spec/system/test_add_type.rb
|
628
|
+
- spec/system/test_dup.rb
|
629
|
+
- spec/system/fixtures/system.fio
|
630
|
+
- spec/system/fixtures/with-duplicates.fio
|
631
|
+
- spec/system/test_check_and_warn.rb
|
632
|
+
- spec/system/test_fetch.rb
|
633
|
+
- spec/system/test_initialize.rb
|
634
|
+
- spec/attribute/test_required.rb
|
635
|
+
- spec/attribute/test_optional.rb
|
636
|
+
- spec/attribute/test_equality.rb
|
637
|
+
- spec/attribute/test_fetch_on.rb
|
638
|
+
- spec/attribute/test_initialize.rb
|
639
|
+
- spec/attribute/test_to_name.rb
|
640
|
+
- spec/syntax/nodes/test_unnamed_constraint.rb
|
641
|
+
- spec/syntax/nodes/test_constraints.rb
|
639
642
|
- spec/syntax/nodes/test_tuple_type.rb
|
640
643
|
- spec/syntax/nodes/test_set_type.rb
|
641
|
-
- spec/syntax/nodes/test_union_type.rb
|
642
644
|
- spec/syntax/nodes/test_heading.rb
|
643
|
-
- spec/syntax/nodes/
|
644
|
-
- spec/syntax/nodes/
|
645
|
-
- spec/syntax/nodes/
|
646
|
-
- spec/syntax/nodes/test_constraints.rb
|
645
|
+
- spec/syntax/nodes/test_comment.rb
|
646
|
+
- spec/syntax/nodes/test_spacing.rb
|
647
|
+
- spec/syntax/nodes/test_metadata.rb
|
647
648
|
- spec/syntax/nodes/test_type_ref.rb
|
648
|
-
- spec/syntax/nodes/
|
649
|
-
- spec/syntax/nodes/test_attribute.rb
|
649
|
+
- spec/syntax/nodes/test_relation_type.rb
|
650
650
|
- spec/syntax/nodes/test_contract.rb
|
651
|
+
- spec/syntax/nodes/test_ad_type.rb
|
652
|
+
- spec/syntax/nodes/test_constraint_def.rb
|
653
|
+
- spec/syntax/nodes/test_builtin_type.rb
|
654
|
+
- spec/syntax/nodes/test_system.rb
|
651
655
|
- spec/syntax/nodes/test_named_constraint.rb
|
652
|
-
- spec/syntax/nodes/test_metadata.rb
|
653
656
|
- spec/syntax/nodes/test_type_def.rb
|
654
|
-
- spec/syntax/nodes/
|
657
|
+
- spec/syntax/nodes/imported.fio
|
655
658
|
- spec/syntax/nodes/test_sub_type.rb
|
656
659
|
- spec/syntax/nodes/test_any_type.rb
|
657
|
-
- spec/syntax/nodes/test_constraint_def.rb
|
658
|
-
- spec/syntax/nodes/test_ad_type.rb
|
659
|
-
- spec/syntax/nodes/test_expression.rb
|
660
|
-
- spec/syntax/nodes/test_relation_type.rb
|
661
|
-
- spec/syntax/nodes/test_spacing.rb
|
662
|
-
- spec/syntax/nodes/test_comment.rb
|
663
660
|
- spec/syntax/nodes/test_seq_type.rb
|
664
|
-
- spec/syntax/nodes/
|
665
|
-
- spec/syntax/
|
661
|
+
- spec/syntax/nodes/test_union_type.rb
|
662
|
+
- spec/syntax/nodes/test_attribute.rb
|
663
|
+
- spec/syntax/nodes/test_import.rb
|
664
|
+
- spec/syntax/nodes/test_struct_type.rb
|
665
|
+
- spec/syntax/nodes/test_expression.rb
|
666
666
|
- spec/syntax/expr/test_free_variables.rb
|
667
|
-
- spec/syntax/
|
667
|
+
- spec/syntax/expr/test_to_proc_source.rb
|
668
668
|
- spec/syntax/test_compile_type.rb
|
669
|
+
- spec/syntax/test_compile.rb
|
670
|
+
- spec/spec_helper.rb
|
671
|
+
- spec/finitio/system.fio
|
672
|
+
- spec/finitio/test_ast.rb
|
673
|
+
- spec/finitio/test_stdlib_memoization.rb
|
674
|
+
- spec/finitio/test_parse.rb
|
675
|
+
- spec/finitio/test_system.rb
|
669
676
|
- spec/generation/test_generation.rb
|
670
|
-
- spec/constraint/test_name.rb
|
671
|
-
- spec/constraint/test_equality.rb
|
672
|
-
- spec/constraint/test_anonymous.rb
|
673
|
-
- spec/constraint/test_named.rb
|
674
|
-
- spec/constraint/test_triple_equal.rb
|