finitio 0.10.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: f1f480aeb4db3e1d01d3a5d17306557bde03f0bc6fe6525f919b4bf1419026f8
4
- data.tar.gz: 910e20fadff426a69d4a42299290b198cfdbc36c238b54e6e7a0b2e4777d0798
2
+ SHA1:
3
+ metadata.gz: 1b4bcc2dab9afa958c597af1418553f339b726fb
4
+ data.tar.gz: 3140214a73d11d6733e770d9ca2950dae0c34650
5
5
  SHA512:
6
- metadata.gz: 35105c22fb14360380bee7d2ac70d170ca46a5b6fd55c5e059bf1c38f96519157645fb2581a57013de2b56c8b5730fc9cd69afca79e4693f007219705ca525c9
7
- data.tar.gz: d17223fc24cd31c0cb4d56846f45403243b3921362a9fba15b6bc17b29a332480e3b90780dc5b0c3214c3f2087f4a911aee0463ca88a59a616e619a51708d214
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.10.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.4.4)
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.8.0)
15
+ awesome_print (1.9.2)
16
16
  builder (3.2.4)
17
17
  citrus (3.0.2)
18
- concurrent-ruby (1.1.7)
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.4)
58
- ffi (1.14.2)
59
- i18n (1.8.7)
57
+ docile (1.3.5)
58
+ ffi (1.15.5)
59
+ i18n (1.12.0)
60
60
  concurrent-ruby (~> 1.0)
61
- json (2.5.1)
61
+ json (2.6.3)
62
62
  middleware (0.1.0)
63
- minitest (5.14.3)
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.3)
73
- rspec (3.10.0)
74
- rspec-core (~> 3.10.0)
75
- rspec-expectations (~> 3.10.0)
76
- rspec-mocks (~> 3.10.0)
77
- rspec-core (3.10.1)
78
- rspec-support (~> 3.10.0)
79
- rspec-expectations (3.10.1)
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.10.0)
82
- rspec-mocks (3.10.1)
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.10.0)
85
- rspec-support (3.10.1)
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.0.1)
96
+ thor (1.2.1)
97
97
  thread_safe (0.3.6)
98
- tins (1.26.0)
98
+ tins (1.32.1)
99
99
  sync
100
- tzinfo (1.2.9)
100
+ tzinfo (1.2.10)
101
101
  thread_safe (~> 0.1)
102
102
 
103
103
  PLATFORMS
104
- ruby
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.2.4
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 => "null",
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
@@ -0,0 +1,9 @@
1
+ module Finitio
2
+ class ProxyType
3
+
4
+ def to_json_schema(*args, &bl)
5
+ @target.to_json_schema(*args, &bl) if @target
6
+ end
7
+
8
+ end # module ProxyType
9
+ end # module UnionType
@@ -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: candidates.map{|c| c.to_json_schema(*args, &bl) }
18
+ anyOf: cs.map{|c| c.to_json_schema(*args, &bl) }
7
19
  }
8
20
  end
9
21
 
@@ -14,3 +14,4 @@ require_relative 'json_schema/set_type'
14
14
  require_relative 'json_schema/struct_type'
15
15
  require_relative 'json_schema/sub_type'
16
16
  require_relative 'json_schema/union_type'
17
+ require_relative 'json_schema/proxy_type'
@@ -21,7 +21,7 @@ grammar Finitio::Syntax::Lexer
21
21
  end
22
22
 
23
23
  rule attribute_name
24
- /[a-z_][a-zA-Z0-9_]*/
24
+ /[a-z_][a-zA-Z0-9_\-]*/
25
25
  end
26
26
 
27
27
  rule type_name
@@ -2,8 +2,8 @@ module Finitio
2
2
  module Version
3
3
 
4
4
  MAJOR = 0
5
- MINOR = 10
6
- TINY = 0
5
+ MINOR = 11
6
+ TINY = 2
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
@@ -14,7 +14,7 @@ module Finitio
14
14
  let(:ruby_type){ NilClass }
15
15
 
16
16
  it 'works' do
17
- expect(subject).to eql({ type: "null" })
17
+ expect(subject).to eql({ type: "string" })
18
18
  end
19
19
  end
20
20
 
@@ -2,14 +2,72 @@ module Finitio
2
2
  module JsonSchema
3
3
  describe "UnionType" do
4
4
 
5
- let(:union_type) {
6
- UnionType.new([anyType])
5
+ let(:string_type) {
6
+ BuiltinType.new(String)
7
7
  }
8
8
 
9
- it 'works as expected' do
10
- expect(union_type.to_json_schema).to eql({
11
- anyOf: [{}]
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.10.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: 2021-01-11 00:00:00.000000000 Z
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
- rubygems_version: 3.1.4
484
- signing_key:
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/spec_helper.rb
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/test_struct_type.rb
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/test_tuple.rb
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/type_factory/dsl/test_any.rb
505
- - spec/type_factory/dsl/test_union.rb
506
- - spec/type_factory/dsl/test_struct.rb
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/set_type/test_name.rb
580
- - spec/type/set_type/test_initialize.rb
581
- - spec/type/set_type/test_equality.rb
582
- - spec/type/set_type/test_suppremum.rb
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/any_type/test_name.rb
594
- - spec/type/any_type/test_initialize.rb
595
- - spec/type/any_type/test_equality.rb
596
- - spec/type/any_type/test_include.rb
597
- - spec/type/any_type/test_default_name.rb
598
- - spec/type/any_type/test_dress.rb
599
- - spec/type/builtin_type/test_name.rb
600
- - spec/type/builtin_type/test_initialize.rb
601
- - spec/type/builtin_type/test_equality.rb
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/union_type/test_name.rb
606
- - spec/type/union_type/test_initialize.rb
607
- - spec/type/union_type/test_equality.rb
608
- - spec/type/union_type/test_suppremum.rb
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/tuple_type/test_name.rb
613
- - spec/type/tuple_type/test_initialize.rb
614
- - spec/type/tuple_type/test_equality.rb
615
- - spec/type/tuple_type/test_suppremum.rb
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/alias_type/test_name.rb
620
- - spec/type/alias_type/test_default_name.rb
621
- - spec/type/alias_type/test_delegation.rb
622
- - spec/type/seq_type/test_name.rb
623
- - spec/type/seq_type/test_initialize.rb
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/inference/test_inference.rb
638
- - spec/regression/test_heading_extra_are_proxy_resolved.rb
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/test_builtin_type.rb
644
- - spec/syntax/nodes/imported.fio
645
- - spec/syntax/nodes/test_import.rb
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/test_system.rb
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/test_struct_type.rb
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/test_unnamed_constraint.rb
665
- - spec/syntax/expr/test_to_proc_source.rb
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/test_compile.rb
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