finitio 0.10.0 → 0.11.1

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: 67c8e3434a57c9b94e5175d34f6a20078c3ea3cd
4
+ data.tar.gz: 18e6c0cfc68d0ce75ec91c9e000a1a80db551a2f
5
5
  SHA512:
6
- metadata.gz: 35105c22fb14360380bee7d2ac70d170ca46a5b6fd55c5e059bf1c38f96519157645fb2581a57013de2b56c8b5730fc9cd69afca79e4693f007219705ca525c9
7
- data.tar.gz: d17223fc24cd31c0cb4d56846f45403243b3921362a9fba15b6bc17b29a332480e3b90780dc5b0c3214c3f2087f4a911aee0463ca88a59a616e619a51708d214
6
+ metadata.gz: baa24a0c65ebe967e44dd30b6b0e381a7e9abcb2f43b3a27d1b3f573aa4f14aa718295f2efdd36846edcd87ca0920bf0f065add879d6058723ff13f93cad8ac6
7
+ data.tar.gz: dcb03256d1892b6c6f42321d53b7fedbf7a43219228c235f91643ab94fe22aee5d6d728c5e159817f3105dfa3aed2c20338ae6f6ba8c8a73ab186397b4674da4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 0.11.1 - 2021/12/09
2
+
3
+ * Fix github actions and extend test grid.
4
+
5
+ # 0.11.0 - 2021/12/09
6
+
7
+ * Fix json schema generation of Boolean and union types with a |Nil
8
+ * Add support for dashses in attribute names (tuple & relation types).
9
+
1
10
  # 0.10.0 - 2021/01/11
2
11
 
3
12
  * 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.1)
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.6)
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.9)
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.4)
59
+ i18n (1.8.11)
60
60
  concurrent-ruby (~> 1.0)
61
- json (2.5.1)
61
+ json (2.6.1)
62
62
  middleware (0.1.0)
63
- minitest (5.14.3)
63
+ minitest (5.14.4)
64
64
  multi_json (1.15.0)
65
65
  multi_test (0.1.2)
66
66
  path (2.0.1)
@@ -69,7 +69,7 @@ GEM
69
69
  middleware
70
70
  thor
71
71
  thread_safe
72
- rake (13.0.3)
72
+ rake (13.0.6)
73
73
  rspec (3.10.0)
74
74
  rspec-core (~> 3.10.0)
75
75
  rspec-expectations (~> 3.10.0)
@@ -79,10 +79,10 @@ GEM
79
79
  rspec-expectations (3.10.1)
80
80
  diff-lcs (>= 1.2.0, < 2.0)
81
81
  rspec-support (~> 3.10.0)
82
- rspec-mocks (3.10.1)
82
+ rspec-mocks (3.10.2)
83
83
  diff-lcs (>= 1.2.0, < 2.0)
84
84
  rspec-support (~> 3.10.0)
85
- rspec-support (3.10.1)
85
+ rspec-support (3.10.3)
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.1.0)
97
97
  thread_safe (0.3.6)
98
- tins (1.26.0)
98
+ tins (1.29.1)
99
99
  sync
100
100
  tzinfo (1.2.9)
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.2.33
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
 
@@ -8,7 +8,10 @@ module Finitio
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 = 1
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
@@ -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.1
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: 2021-12-09 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
489
- - spec/type_factory/factory/test_tuple_type.rb
490
- - spec/type_factory/factory/test_builtin.rb
491
- - spec/type_factory/factory/test_set_type.rb
492
- - spec/type_factory/factory/test_struct_type.rb
493
- - spec/type_factory/factory/test_sub_type.rb
494
- - spec/type_factory/factory/test_seq_type.rb
495
- - spec/type_factory/dsl/test_attributes.rb
496
- - spec/type_factory/dsl/test_builtin.rb
497
- - spec/type_factory/dsl/test_adt.rb
498
- - spec/type_factory/dsl/test_multi_tuple.rb
499
- - spec/type_factory/dsl/test_seq.rb
500
- - spec/type_factory/dsl/test_multi_relation.rb
501
- - spec/type_factory/dsl/test_tuple.rb
502
- - spec/type_factory/dsl/test_set.rb
503
- - 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
490
  - spec/heading/test_multi.rb
533
- - spec/heading/test_hash.rb
534
491
  - spec/heading/test_suppremum.rb
492
+ - spec/heading/test_each.rb
535
493
  - spec/heading/test_allow_extra.rb
494
+ - spec/heading/test_equality.rb
536
495
  - spec/heading/test_size.rb
496
+ - spec/heading/test_hash_get.rb
497
+ - spec/heading/test_initialize.rb
498
+ - spec/heading/test_to_name.rb
499
+ - spec/heading/test_hash.rb
537
500
  - 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
501
  - spec/system/test_get_type.rb
547
- - spec/system/test_fetch.rb
548
- - spec/system/test_dup.rb
549
502
  - spec/system/test_add_type.rb
503
+ - spec/system/test_dup.rb
550
504
  - spec/system/test_dsl.rb
505
+ - spec/system/test_check_and_warn.rb
551
506
  - spec/system/fixtures/with-duplicates.fio
552
507
  - 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
508
+ - spec/system/test_fetch.rb
509
+ - spec/system/test_initialize.rb
510
+ - spec/support/test_compare_attrs.rb
511
+ - spec/support/test_proc_with_code.rb
512
+ - spec/constraint/test_name.rb
513
+ - spec/constraint/test_equality.rb
514
+ - spec/constraint/test_triple_equal.rb
515
+ - spec/constraint/test_named.rb
516
+ - spec/constraint/test_anonymous.rb
517
+ - spec/finitio/system.fio
518
+ - spec/finitio/test_ast.rb
519
+ - spec/finitio/test_system.rb
520
+ - spec/finitio/test_parse.rb
521
+ - spec/finitio/test_stdlib_memoization.rb
522
+ - spec/type/alias_type/test_name.rb
523
+ - spec/type/alias_type/test_default_name.rb
524
+ - spec/type/alias_type/test_delegation.rb
525
+ - spec/type/sub_type/test_dress.rb
560
526
  - spec/type/sub_type/test_name.rb
561
- - spec/type/sub_type/test_initialize.rb
562
527
  - spec/type/sub_type/test_equality.rb
563
528
  - spec/type/sub_type/test_include.rb
564
529
  - spec/type/sub_type/test_default_name.rb
565
- - spec/type/sub_type/test_dress.rb
566
- - spec/type/test_unconstrained.rb
530
+ - spec/type/sub_type/test_initialize.rb
567
531
  - 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
576
- - spec/type/struct_type/test_include.rb
577
- - spec/type/struct_type/test_default_name.rb
578
- - 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
590
- - spec/type/relation_type/test_include.rb
591
- - spec/type/relation_type/test_default_name.rb
592
- - spec/type/relation_type/test_dress.rb
532
+ - spec/type/any_type/test_dress.rb
593
533
  - spec/type/any_type/test_name.rb
594
- - spec/type/any_type/test_initialize.rb
595
534
  - spec/type/any_type/test_equality.rb
596
535
  - spec/type/any_type/test_include.rb
597
536
  - 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
602
- - spec/type/builtin_type/test_include.rb
603
- - spec/type/builtin_type/test_default_name.rb
604
- - 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
609
- - spec/type/union_type/test_include.rb
610
- - spec/type/union_type/test_default_name.rb
611
- - spec/type/union_type/test_dress.rb
537
+ - spec/type/any_type/test_initialize.rb
538
+ - spec/type/multi_tuple_type/test_dress.rb
539
+ - spec/type/multi_tuple_type/test_name.rb
540
+ - spec/type/multi_tuple_type/test_equality.rb
541
+ - spec/type/multi_tuple_type/test_include.rb
542
+ - spec/type/multi_tuple_type/test_default_name.rb
543
+ - spec/type/multi_tuple_type/test_initialize.rb
544
+ - spec/type/ad_type/test_dress.rb
545
+ - spec/type/ad_type/test_name.rb
546
+ - spec/type/ad_type/test_include.rb
547
+ - spec/type/ad_type/test_default_name.rb
548
+ - spec/type/ad_type/test_initialize.rb
549
+ - spec/type/tuple_type/test_suppremum.rb
550
+ - spec/type/tuple_type/test_dress.rb
612
551
  - spec/type/tuple_type/test_name.rb
613
- - spec/type/tuple_type/test_initialize.rb
614
552
  - spec/type/tuple_type/test_equality.rb
615
- - spec/type/tuple_type/test_suppremum.rb
616
553
  - spec/type/tuple_type/test_include.rb
617
554
  - spec/type/tuple_type/test_default_name.rb
618
- - 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
555
+ - spec/type/tuple_type/test_initialize.rb
556
+ - spec/type/union_type/test_suppremum.rb
557
+ - spec/type/union_type/test_dress.rb
558
+ - spec/type/union_type/test_name.rb
559
+ - spec/type/union_type/test_equality.rb
560
+ - spec/type/union_type/test_include.rb
561
+ - spec/type/union_type/test_default_name.rb
562
+ - spec/type/union_type/test_initialize.rb
563
+ - spec/type/seq_type/test_suppremum.rb
564
+ - spec/type/seq_type/test_dress.rb
622
565
  - spec/type/seq_type/test_name.rb
623
- - spec/type/seq_type/test_initialize.rb
624
566
  - spec/type/seq_type/test_equality.rb
625
- - spec/type/seq_type/test_suppremum.rb
626
567
  - spec/type/seq_type/test_include.rb
627
568
  - 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
636
- - spec/support/test_proc_with_code.rb
569
+ - spec/type/seq_type/test_initialize.rb
570
+ - spec/type/builtin_type/test_dress.rb
571
+ - spec/type/builtin_type/test_name.rb
572
+ - spec/type/builtin_type/test_equality.rb
573
+ - spec/type/builtin_type/test_include.rb
574
+ - spec/type/builtin_type/test_default_name.rb
575
+ - spec/type/builtin_type/test_initialize.rb
576
+ - spec/type/set_type/test_suppremum.rb
577
+ - spec/type/set_type/test_dress.rb
578
+ - spec/type/set_type/test_name.rb
579
+ - spec/type/set_type/test_equality.rb
580
+ - spec/type/set_type/test_include.rb
581
+ - spec/type/set_type/test_default_name.rb
582
+ - spec/type/set_type/test_initialize.rb
583
+ - spec/type/relation_type/test_suppremum.rb
584
+ - spec/type/relation_type/test_dress.rb
585
+ - spec/type/relation_type/test_name.rb
586
+ - spec/type/relation_type/test_equality.rb
587
+ - spec/type/relation_type/test_include.rb
588
+ - spec/type/relation_type/test_default_name.rb
589
+ - spec/type/relation_type/test_initialize.rb
590
+ - spec/type/multi_relation_type/test_dress.rb
591
+ - spec/type/multi_relation_type/test_name.rb
592
+ - spec/type/multi_relation_type/test_equality.rb
593
+ - spec/type/multi_relation_type/test_include.rb
594
+ - spec/type/multi_relation_type/test_default_name.rb
595
+ - spec/type/multi_relation_type/test_initialize.rb
596
+ - spec/type/test_unconstrained.rb
597
+ - spec/type/struct_type/test_dress.rb
598
+ - spec/type/struct_type/test_name.rb
599
+ - spec/type/struct_type/test_equality.rb
600
+ - spec/type/struct_type/test_include.rb
601
+ - spec/type/struct_type/test_default_name.rb
602
+ - spec/type/struct_type/test_initialize.rb
603
+ - spec/attribute/test_optional.rb
604
+ - spec/attribute/test_equality.rb
605
+ - spec/attribute/test_required.rb
606
+ - spec/attribute/test_fetch_on.rb
607
+ - spec/attribute/test_initialize.rb
608
+ - spec/attribute/test_to_name.rb
637
609
  - spec/inference/test_inference.rb
638
610
  - spec/regression/test_heading_extra_are_proxy_resolved.rb
639
- - spec/syntax/nodes/test_tuple_type.rb
640
- - spec/syntax/nodes/test_set_type.rb
611
+ - spec/spec_helper.rb
612
+ - spec/type_factory/factory/test_sub_type.rb
613
+ - spec/type_factory/factory/test_builtin.rb
614
+ - spec/type_factory/factory/test_struct_type.rb
615
+ - spec/type_factory/factory/test_tuple_type.rb
616
+ - spec/type_factory/factory/test_seq_type.rb
617
+ - spec/type_factory/factory/test_set_type.rb
618
+ - spec/type_factory/dsl/test_builtin.rb
619
+ - spec/type_factory/dsl/test_subtype.rb
620
+ - spec/type_factory/dsl/test_multi_relation.rb
621
+ - spec/type_factory/dsl/test_adt.rb
622
+ - spec/type_factory/dsl/test_union.rb
623
+ - spec/type_factory/dsl/test_attributes.rb
624
+ - spec/type_factory/dsl/test_attribute.rb
625
+ - spec/type_factory/dsl/test_relation.rb
626
+ - spec/type_factory/dsl/test_set.rb
627
+ - spec/type_factory/dsl/test_seq.rb
628
+ - spec/type_factory/dsl/test_struct.rb
629
+ - spec/type_factory/dsl/test_any.rb
630
+ - spec/type_factory/dsl/test_multi_tuple.rb
631
+ - spec/type_factory/dsl/test_tuple.rb
632
+ - spec/generation/test_generation.rb
633
+ - spec/json_schema/test_sub_type.rb
634
+ - spec/json_schema/test_alias_type.rb
635
+ - spec/json_schema/test_union_type.rb
636
+ - spec/json_schema/test_multi_tuple_type.rb
637
+ - spec/json_schema/test_multi_relation_type.rb
638
+ - spec/json_schema/test_builtin_type.rb
639
+ - spec/json_schema/test_struct_type.rb
640
+ - spec/json_schema/test_ad_type.rb
641
+ - spec/json_schema/test_tuple_type.rb
642
+ - spec/json_schema/test_any_type.rb
643
+ - spec/json_schema/test_relation_type.rb
644
+ - spec/json_schema/test_seq_type.rb
645
+ - spec/json_schema/test_set_type.rb
646
+ - spec/test_finitio.rb
647
+ - spec/syntax/nodes/test_sub_type.rb
648
+ - spec/syntax/nodes/test_type_def.rb
649
+ - spec/syntax/nodes/test_unnamed_constraint.rb
650
+ - spec/syntax/nodes/test_spacing.rb
651
+ - spec/syntax/nodes/test_type_ref.rb
641
652
  - spec/syntax/nodes/test_union_type.rb
653
+ - spec/syntax/nodes/test_comment.rb
654
+ - spec/syntax/nodes/test_import.rb
642
655
  - spec/syntax/nodes/test_heading.rb
643
656
  - 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
647
- - spec/syntax/nodes/test_type_ref.rb
648
- - spec/syntax/nodes/test_system.rb
649
- - spec/syntax/nodes/test_attribute.rb
650
- - spec/syntax/nodes/test_contract.rb
651
657
  - spec/syntax/nodes/test_named_constraint.rb
652
658
  - spec/syntax/nodes/test_metadata.rb
653
- - spec/syntax/nodes/test_type_def.rb
654
659
  - spec/syntax/nodes/test_struct_type.rb
655
- - spec/syntax/nodes/test_sub_type.rb
656
- - spec/syntax/nodes/test_any_type.rb
657
- - spec/syntax/nodes/test_constraint_def.rb
660
+ - spec/syntax/nodes/test_attribute.rb
658
661
  - spec/syntax/nodes/test_ad_type.rb
659
- - spec/syntax/nodes/test_expression.rb
662
+ - spec/syntax/nodes/test_tuple_type.rb
663
+ - spec/syntax/nodes/test_any_type.rb
660
664
  - spec/syntax/nodes/test_relation_type.rb
661
- - spec/syntax/nodes/test_spacing.rb
662
- - spec/syntax/nodes/test_comment.rb
663
665
  - spec/syntax/nodes/test_seq_type.rb
664
- - spec/syntax/nodes/test_unnamed_constraint.rb
665
- - spec/syntax/expr/test_to_proc_source.rb
666
+ - spec/syntax/nodes/test_system.rb
667
+ - spec/syntax/nodes/test_contract.rb
668
+ - spec/syntax/nodes/test_expression.rb
669
+ - spec/syntax/nodes/test_set_type.rb
670
+ - spec/syntax/nodes/test_constraint_def.rb
671
+ - spec/syntax/nodes/imported.fio
672
+ - spec/syntax/nodes/test_constraints.rb
666
673
  - spec/syntax/expr/test_free_variables.rb
674
+ - spec/syntax/expr/test_to_proc_source.rb
667
675
  - spec/syntax/test_compile.rb
668
676
  - spec/syntax/test_compile_type.rb
669
- - 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