finitio 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +66 -0
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +34 -30
  5. data/finitio.gemspec +1 -1
  6. data/lib/finitio.rb +7 -39
  7. data/lib/finitio/errors.rb +14 -0
  8. data/lib/finitio/support.rb +4 -1
  9. data/lib/finitio/support/attribute.rb +13 -7
  10. data/lib/finitio/support/compilation.rb +55 -0
  11. data/lib/finitio/support/constraint.rb +46 -0
  12. data/lib/finitio/support/contract.rb +33 -0
  13. data/lib/finitio/support/dress_helper.rb +3 -2
  14. data/lib/finitio/support/heading.rb +57 -17
  15. data/lib/finitio/support/metadata.rb +20 -0
  16. data/lib/finitio/support/type_factory.rb +154 -41
  17. data/lib/finitio/syntax.rb +16 -31
  18. data/lib/finitio/syntax/expr.rb +56 -0
  19. data/lib/finitio/syntax/expr/arith_op.rb +22 -0
  20. data/lib/finitio/syntax/expr/comparison.rb +22 -0
  21. data/lib/finitio/syntax/expr/fn_call.rb +24 -0
  22. data/lib/finitio/syntax/expr/identifier.rb +18 -0
  23. data/lib/finitio/syntax/expr/literal.rb +19 -0
  24. data/lib/finitio/syntax/expr/logic_dyadic.rb +22 -0
  25. data/lib/finitio/syntax/expr/logic_not.rb +21 -0
  26. data/lib/finitio/syntax/expr/oo_call.rb +24 -0
  27. data/lib/finitio/syntax/expr/parenthesized.rb +20 -0
  28. data/lib/finitio/syntax/expr/unary_minus_op.rb +21 -0
  29. data/lib/finitio/syntax/expressions.citrus +129 -0
  30. data/lib/finitio/syntax/finitio.citrus +10 -208
  31. data/lib/finitio/syntax/finitio.sexp +5 -1
  32. data/lib/finitio/syntax/lexer.citrus +91 -0
  33. data/lib/finitio/syntax/literal.rb +16 -0
  34. data/lib/finitio/syntax/literal/boolean.rb +22 -0
  35. data/lib/finitio/syntax/literal/integer.rb +14 -0
  36. data/lib/finitio/syntax/literal/real.rb +14 -0
  37. data/lib/finitio/syntax/literal/string.rb +14 -0
  38. data/lib/finitio/syntax/literals.citrus +44 -0
  39. data/lib/finitio/syntax/node.rb +53 -0
  40. data/lib/finitio/syntax/type.rb +28 -0
  41. data/lib/finitio/syntax/type/ad_type.rb +29 -0
  42. data/lib/finitio/syntax/{any_type.rb → type/any_type.rb} +1 -1
  43. data/lib/finitio/syntax/type/attribute.rb +33 -0
  44. data/lib/finitio/syntax/{builtin_type.rb → type/builtin_type.rb} +3 -1
  45. data/lib/finitio/syntax/{constraint_def.rb → type/constraint_def.rb} +4 -3
  46. data/lib/finitio/syntax/type/constraints.rb +17 -0
  47. data/lib/finitio/syntax/{contract.rb → type/contract.rb} +9 -3
  48. data/lib/finitio/syntax/{definitions.rb → type/definitions.rb} +1 -0
  49. data/lib/finitio/syntax/{expression.rb → type/expression.rb} +2 -1
  50. data/lib/finitio/syntax/{external_pair.rb → type/external_pair.rb} +3 -1
  51. data/lib/finitio/syntax/type/heading.rb +30 -0
  52. data/lib/finitio/syntax/{inline_pair.rb → type/inline_pair.rb} +3 -1
  53. data/lib/finitio/syntax/{lambda_expr.rb → type/lambda_expr.rb} +3 -0
  54. data/lib/finitio/syntax/type/main_type.rb +18 -0
  55. data/lib/finitio/syntax/type/metadata.rb +18 -0
  56. data/lib/finitio/syntax/type/metadata_attr.rb +15 -0
  57. data/lib/finitio/syntax/{named_constraint.rb → type/named_constraint.rb} +10 -3
  58. data/lib/finitio/syntax/type/relation_type.rb +24 -0
  59. data/lib/finitio/syntax/{seq_type.rb → type/seq_type.rb} +3 -0
  60. data/lib/finitio/syntax/{set_type.rb → type/set_type.rb} +3 -0
  61. data/lib/finitio/syntax/type/struct_type.rb +17 -0
  62. data/lib/finitio/syntax/{sub_type.rb → type/sub_type.rb} +3 -0
  63. data/lib/finitio/syntax/{system.rb → type/system.rb} +5 -4
  64. data/lib/finitio/syntax/type/tuple_type.rb +24 -0
  65. data/lib/finitio/syntax/{type_def.rb → type/type_def.rb} +8 -3
  66. data/lib/finitio/syntax/{type_ref.rb → type/type_ref.rb} +4 -1
  67. data/lib/finitio/syntax/{union_type.rb → type/union_type.rb} +1 -0
  68. data/lib/finitio/syntax/{unnamed_constraint.rb → type/unnamed_constraint.rb} +7 -1
  69. data/lib/finitio/syntax/types.citrus +196 -0
  70. data/lib/finitio/system.rb +15 -15
  71. data/lib/finitio/type.rb +38 -6
  72. data/lib/finitio/type/ad_type.rb +41 -18
  73. data/lib/finitio/type/alias_type.rb +37 -0
  74. data/lib/finitio/type/any_type.rb +7 -3
  75. data/lib/finitio/type/builtin_type.rb +5 -4
  76. data/lib/finitio/{support → type}/collection_type.rb +3 -4
  77. data/lib/finitio/type/hash_based_type.rb +91 -0
  78. data/lib/finitio/type/heading_based_type.rb +28 -0
  79. data/lib/finitio/type/multi_relation_type.rb +34 -0
  80. data/lib/finitio/type/multi_tuple_type.rb +29 -0
  81. data/lib/finitio/type/proxy_type.rb +40 -0
  82. data/lib/finitio/type/rel_based_type.rb +42 -0
  83. data/lib/finitio/type/relation_type.rb +6 -47
  84. data/lib/finitio/type/seq_type.rb +4 -0
  85. data/lib/finitio/type/set_type.rb +4 -0
  86. data/lib/finitio/type/struct_type.rb +84 -0
  87. data/lib/finitio/type/sub_type.rb +25 -22
  88. data/lib/finitio/type/tuple_type.rb +6 -57
  89. data/lib/finitio/type/union_type.rb +12 -5
  90. data/lib/finitio/version.rb +2 -2
  91. data/spec/{unit/attribute → attribute}/test_equality.rb +8 -5
  92. data/spec/{unit/attribute → attribute}/test_fetch_on.rb +5 -5
  93. data/spec/attribute/test_initialize.rb +26 -0
  94. data/spec/attribute/test_optional.rb +18 -0
  95. data/spec/attribute/test_required.rb +18 -0
  96. data/spec/attribute/test_to_name.rb +20 -0
  97. data/spec/constraint/test_anonymous.rb +20 -0
  98. data/spec/constraint/test_equality.rb +39 -0
  99. data/spec/constraint/test_name.rb +20 -0
  100. data/spec/constraint/test_named.rb +20 -0
  101. data/spec/constraint/test_triple_equal.rb +13 -0
  102. data/spec/{unit/qrb/system.q → finitio/system.fio} +0 -0
  103. data/spec/{unit/qrb → finitio}/test_ast.rb +0 -0
  104. data/spec/finitio/test_parse.rb +23 -0
  105. data/spec/{unit/qrb/test_parse.rb → finitio/test_system.rb} +6 -6
  106. data/spec/heading/test_allow_extra.rb +24 -0
  107. data/spec/{unit/heading → heading}/test_each.rb +2 -2
  108. data/spec/heading/test_equality.rb +38 -0
  109. data/spec/heading/test_hash.rb +38 -0
  110. data/spec/heading/test_hash_get.rb +17 -0
  111. data/spec/{unit/heading → heading}/test_initialize.rb +2 -2
  112. data/spec/heading/test_multi.rb +57 -0
  113. data/spec/{unit/heading → heading}/test_size.rb +0 -0
  114. data/spec/heading/test_to_name.rb +58 -0
  115. data/spec/spec_helper.rb +17 -1
  116. data/spec/syntax/expr/test_free_variables.rb +46 -0
  117. data/spec/syntax/expr/test_to_proc_source.rb +43 -0
  118. data/spec/{unit/syntax → syntax}/nodes/test_ad_type.rb +26 -26
  119. data/spec/{unit/syntax → syntax}/nodes/test_any_type.rb +2 -2
  120. data/spec/syntax/nodes/test_attribute.rb +65 -0
  121. data/spec/{unit/syntax → syntax}/nodes/test_builtin_type.rb +5 -5
  122. data/spec/{unit/syntax → syntax}/nodes/test_comment.rb +1 -1
  123. data/spec/{unit/syntax → syntax}/nodes/test_constraint_def.rb +3 -8
  124. data/spec/{unit/syntax → syntax}/nodes/test_constraints.rb +21 -16
  125. data/spec/{unit/syntax → syntax}/nodes/test_contract.rb +28 -35
  126. data/spec/{unit/syntax → syntax}/nodes/test_expression.rb +13 -5
  127. data/spec/{unit/syntax → syntax}/nodes/test_heading.rb +25 -7
  128. data/spec/syntax/nodes/test_metadata.rb +28 -0
  129. data/spec/{unit/syntax → syntax}/nodes/test_named_constraint.rb +8 -8
  130. data/spec/syntax/nodes/test_relation_type.rb +84 -0
  131. data/spec/{unit/syntax → syntax}/nodes/test_seq_type.rb +4 -4
  132. data/spec/{unit/syntax → syntax}/nodes/test_set_type.rb +4 -4
  133. data/spec/{unit/syntax → syntax}/nodes/test_spacing.rb +1 -1
  134. data/spec/syntax/nodes/test_struct_type.rb +38 -0
  135. data/spec/{unit/syntax → syntax}/nodes/test_sub_type.rb +14 -14
  136. data/spec/{unit/syntax → syntax}/nodes/test_system.rb +3 -3
  137. data/spec/syntax/nodes/test_tuple_type.rb +94 -0
  138. data/spec/syntax/nodes/test_type_def.rb +57 -0
  139. data/spec/{unit/syntax → syntax}/nodes/test_type_ref.rb +3 -3
  140. data/spec/{unit/syntax → syntax}/nodes/test_union_type.rb +3 -3
  141. data/spec/{unit/syntax → syntax}/nodes/test_unnamed_constraint.rb +7 -7
  142. data/spec/syntax/test_compile.rb +41 -0
  143. data/spec/{unit/syntax → syntax}/test_compile_type.rb +1 -1
  144. data/spec/{unit/system → system}/test_add_type.rb +6 -6
  145. data/spec/{unit/system → system}/test_dsl.rb +2 -2
  146. data/spec/{unit/system → system}/test_dup.rb +4 -4
  147. data/spec/{unit/system → system}/test_fetch.rb +4 -4
  148. data/spec/{unit/system → system}/test_get_type.rb +2 -2
  149. data/spec/{unit/system → system}/test_initialize.rb +0 -0
  150. data/spec/test_finitio.rb +8 -0
  151. data/spec/{unit/type → type}/ad_type/test_default_name.rb +1 -2
  152. data/spec/{unit/type → type}/ad_type/test_dress.rb +19 -9
  153. data/spec/{unit/type → type}/ad_type/test_include.rb +3 -3
  154. data/spec/{unit/type → type}/ad_type/test_initialize.rb +15 -8
  155. data/spec/{unit/type → type}/ad_type/test_name.rb +2 -2
  156. data/spec/type/alias_type/test_default_name.rb +10 -0
  157. data/spec/type/alias_type/test_delegation.rb +29 -0
  158. data/spec/type/alias_type/test_name.rb +10 -0
  159. data/spec/{unit/type → type}/any_type/test_default_name.rb +1 -1
  160. data/spec/{unit/type → type}/any_type/test_dress.rb +0 -0
  161. data/spec/{unit/type → type}/any_type/test_equality.rb +4 -4
  162. data/spec/{unit/type → type}/any_type/test_include.rb +2 -2
  163. data/spec/{unit/type → type}/any_type/test_initialize.rb +0 -0
  164. data/spec/{unit/type → type}/any_type/test_name.rb +2 -2
  165. data/spec/{unit/type → type}/builtin_type/test_default_name.rb +1 -1
  166. data/spec/{unit/type → type}/builtin_type/test_dress.rb +3 -3
  167. data/spec/{unit/type → type}/builtin_type/test_equality.rb +4 -4
  168. data/spec/{unit/type → type}/builtin_type/test_include.rb +2 -2
  169. data/spec/{unit/type → type}/builtin_type/test_initialize.rb +1 -1
  170. data/spec/{unit/type → type}/builtin_type/test_name.rb +2 -2
  171. data/spec/type/multi_relation_type/test_default_name.rb +19 -0
  172. data/spec/type/multi_relation_type/test_dress.rb +206 -0
  173. data/spec/type/multi_relation_type/test_equality.rb +36 -0
  174. data/spec/type/multi_relation_type/test_include.rb +89 -0
  175. data/spec/type/multi_relation_type/test_initialize.rb +29 -0
  176. data/spec/type/multi_relation_type/test_name.rb +27 -0
  177. data/spec/type/multi_tuple_type/test_default_name.rb +17 -0
  178. data/spec/type/multi_tuple_type/test_dress.rb +146 -0
  179. data/spec/type/multi_tuple_type/test_equality.rb +32 -0
  180. data/spec/type/multi_tuple_type/test_include.rb +73 -0
  181. data/spec/type/multi_tuple_type/test_initialize.rb +30 -0
  182. data/spec/type/multi_tuple_type/test_name.rb +24 -0
  183. data/spec/type/proxy_type/test_delegation.rb +37 -0
  184. data/spec/type/proxy_type/test_resolve.rb +29 -0
  185. data/spec/{unit/type → type}/relation_type/test_default_name.rb +0 -0
  186. data/spec/{unit/type → type}/relation_type/test_dress.rb +24 -24
  187. data/spec/{unit/type → type}/relation_type/test_equality.rb +6 -6
  188. data/spec/{unit/type → type}/relation_type/test_include.rb +4 -4
  189. data/spec/{unit/type → type}/relation_type/test_initialize.rb +2 -2
  190. data/spec/{unit/type → type}/relation_type/test_name.rb +0 -0
  191. data/spec/{unit/type → type}/seq_type/test_default_name.rb +0 -0
  192. data/spec/{unit/type → type}/seq_type/test_dress.rb +5 -5
  193. data/spec/{unit/type → type}/seq_type/test_equality.rb +4 -4
  194. data/spec/{unit/type → type}/seq_type/test_include.rb +4 -4
  195. data/spec/{unit/type → type}/seq_type/test_initialize.rb +3 -3
  196. data/spec/{unit/type → type}/seq_type/test_name.rb +0 -0
  197. data/spec/{unit/type → type}/set_type/test_default_name.rb +0 -0
  198. data/spec/{unit/type → type}/set_type/test_dress.rb +8 -8
  199. data/spec/{unit/type → type}/set_type/test_equality.rb +4 -4
  200. data/spec/{unit/type → type}/set_type/test_include.rb +4 -4
  201. data/spec/{unit/type → type}/set_type/test_initialize.rb +3 -3
  202. data/spec/{unit/type → type}/set_type/test_name.rb +0 -0
  203. data/spec/type/struct_type/test_default_name.rb +10 -0
  204. data/spec/type/struct_type/test_dress.rb +105 -0
  205. data/spec/type/struct_type/test_equality.rb +28 -0
  206. data/spec/type/struct_type/test_include.rb +40 -0
  207. data/spec/type/struct_type/test_initialize.rb +22 -0
  208. data/spec/type/struct_type/test_name.rb +20 -0
  209. data/spec/{unit/type → type}/sub_type/test_default_name.rb +2 -2
  210. data/spec/{unit/type → type}/sub_type/test_dress.rb +14 -14
  211. data/spec/type/sub_type/test_equality.rb +46 -0
  212. data/spec/{unit/type → type}/sub_type/test_include.rb +6 -6
  213. data/spec/type/sub_type/test_initialize.rb +13 -0
  214. data/spec/{unit/type → type}/sub_type/test_name.rb +4 -4
  215. data/spec/{unit/type → type}/tuple_type/test_default_name.rb +0 -0
  216. data/spec/{unit/type → type}/tuple_type/test_dress.rb +18 -18
  217. data/spec/{unit/type → type}/tuple_type/test_equality.rb +6 -6
  218. data/spec/{unit/type → type}/tuple_type/test_include.rb +4 -4
  219. data/spec/{unit/type → type}/tuple_type/test_initialize.rb +4 -4
  220. data/spec/{unit/type → type}/tuple_type/test_name.rb +0 -0
  221. data/spec/{unit/type → type}/union_type/test_default_name.rb +0 -0
  222. data/spec/{unit/type → type}/union_type/test_dress.rb +7 -6
  223. data/spec/{unit/type → type}/union_type/test_equality.rb +7 -7
  224. data/spec/{unit/type → type}/union_type/test_include.rb +3 -3
  225. data/spec/{unit/type → type}/union_type/test_initialize.rb +3 -3
  226. data/spec/{unit/type → type}/union_type/test_name.rb +0 -0
  227. data/spec/{unit/type_factory → type_factory}/dsl/test_adt.rb +4 -4
  228. data/spec/{unit/type_factory → type_factory}/dsl/test_any.rb +1 -1
  229. data/spec/{unit/type_factory → type_factory}/dsl/test_attribute.rb +16 -2
  230. data/spec/{unit/type_factory → type_factory}/dsl/test_attributes.rb +1 -1
  231. data/spec/{unit/type_factory → type_factory}/dsl/test_builtin.rb +3 -3
  232. data/spec/type_factory/dsl/test_multi_relation.rb +39 -0
  233. data/spec/type_factory/dsl/test_multi_tuple.rb +37 -0
  234. data/spec/{unit/type_factory → type_factory}/dsl/test_relation.rb +6 -6
  235. data/spec/{unit/type_factory → type_factory}/dsl/test_seq.rb +4 -4
  236. data/spec/{unit/type_factory → type_factory}/dsl/test_set.rb +4 -4
  237. data/spec/type_factory/dsl/test_struct.rb +45 -0
  238. data/spec/{unit/type_factory → type_factory}/dsl/test_subtype.rb +10 -8
  239. data/spec/{unit/type_factory → type_factory}/dsl/test_tuple.rb +5 -5
  240. data/spec/{unit/type_factory → type_factory}/dsl/test_union.rb +6 -6
  241. data/spec/{unit/type_factory → type_factory}/factory/test_builtin.rb +1 -1
  242. data/spec/{unit/type_factory → type_factory}/factory/test_seq_type.rb +2 -2
  243. data/spec/{unit/type_factory → type_factory}/factory/test_set_type.rb +2 -2
  244. data/spec/type_factory/factory/test_struct_type.rb +18 -0
  245. data/spec/{unit/type_factory → type_factory}/factory/test_sub_type.rb +7 -7
  246. data/spec/{unit/type_factory → type_factory}/factory/test_tuple_type.rb +4 -4
  247. metadata +398 -286
  248. data/lib/finitio/data_type.rb +0 -29
  249. data/lib/finitio/syntax/ad_type.rb +0 -32
  250. data/lib/finitio/syntax/attribute.rb +0 -15
  251. data/lib/finitio/syntax/constraints.rb +0 -22
  252. data/lib/finitio/syntax/heading.rb +0 -19
  253. data/lib/finitio/syntax/relation_type.rb +0 -15
  254. data/lib/finitio/syntax/support.rb +0 -13
  255. data/lib/finitio/syntax/tuple_type.rb +0 -15
  256. data/spec/acceptance/Finitio/test_default.rb +0 -96
  257. data/spec/acceptance/Finitio/test_parsing.rb +0 -15
  258. data/spec/acceptance/ad_type/test_in_finitio.rb +0 -82
  259. data/spec/acceptance/ad_type/test_in_ruby.rb +0 -60
  260. data/spec/unit/attribute/test_initialize.rb +0 -13
  261. data/spec/unit/attribute/test_to_name.rb +0 -10
  262. data/spec/unit/heading/test_equality.rb +0 -28
  263. data/spec/unit/heading/test_to_name.rb +0 -32
  264. data/spec/unit/syntax/nodes/test_attribute.rb +0 -38
  265. data/spec/unit/syntax/nodes/test_relation_type.rb +0 -59
  266. data/spec/unit/syntax/nodes/test_tuple_type.rb +0 -59
  267. data/spec/unit/syntax/nodes/test_type_def.rb +0 -33
  268. data/spec/unit/test_finitio.rb +0 -15
  269. data/spec/unit/type/sub_type/test_equality.rb +0 -34
  270. data/spec/unit/type/sub_type/test_initialize.rb +0 -16
@@ -19,7 +19,7 @@ module Finitio
19
19
  it{ should eq(expected) }
20
20
 
21
21
  it 'should have the correct name' do
22
- subject.name.should eq("MySet")
22
+ expect(subject.name).to eq("MySet")
23
23
  end
24
24
  end
25
25
  end
@@ -36,7 +36,7 @@ module Finitio
36
36
  it{ should eq(expected) }
37
37
 
38
38
  it 'should have the correct name' do
39
- subject.name.should eq("MySet")
39
+ expect(subject.name).to eq("MySet")
40
40
  end
41
41
  end
42
42
 
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+ module Finitio
3
+ describe TypeFactory, "Factory#struct" do
4
+
5
+ let(:factory){ TypeFactory.new }
6
+
7
+ context 'when used with [Integer, Float]' do
8
+ subject{ factory.type([Integer, Float]) }
9
+
10
+ it{ should be_a(StructType) }
11
+
12
+ it 'should have the expected components' do
13
+ expect(subject.component_types).to eq([intType, floatType])
14
+ end
15
+ end
16
+
17
+ end
18
+ end
@@ -9,14 +9,14 @@ module Finitio
9
9
  it{ should be_a(SubType) }
10
10
 
11
11
  it 'should have the BuiltinType(Fixnum) super type' do
12
- subject.super_type.should be_a(BuiltinType)
13
- subject.super_type.ruby_type.should be(Fixnum)
12
+ expect(subject.super_type).to be_a(BuiltinType)
13
+ expect(subject.super_type.ruby_type).to be(Fixnum)
14
14
  end
15
15
 
16
16
  it 'should have the correct constraint' do
17
- subject.dress(10).should eq(10)
18
- ->{ subject.dress(-12) }.should raise_error(TypeError)
19
- ->{ subject.dress(12) }.should raise_error(TypeError)
17
+ expect(subject.dress(10)).to eq(10)
18
+ expect{ subject.dress(-12) }.to raise_error(TypeError)
19
+ expect{ subject.dress(12) }.to raise_error(TypeError)
20
20
  end
21
21
  end
22
22
 
@@ -44,8 +44,8 @@ module Finitio
44
44
  it { should be_a(SubType) }
45
45
 
46
46
  it 'should have the correct constraint' do
47
- subject.dress('abc').should eq('abc')
48
- ->{ subject.dress('123') }.should raise_error(TypeError)
47
+ expect(subject.dress('abc')).to eq('abc')
48
+ expect{ subject.dress('123') }.to raise_error(TypeError)
49
49
  end
50
50
  end
51
51
 
@@ -18,7 +18,7 @@ module Finitio
18
18
  it{ should eq(expected) }
19
19
 
20
20
  it 'should have the correct name' do
21
- subject.name.should eq("MyTuple")
21
+ expect(subject.name).to eq("MyTuple")
22
22
  end
23
23
  end
24
24
 
@@ -29,13 +29,13 @@ module Finitio
29
29
 
30
30
  it 'should have the correct constraint on r' do
31
31
  subject.dress(r: 36)
32
- ->{
32
+ expect{
33
33
  subject.dress(r: 543)
34
- }.should raise_error(TypeError)
34
+ }.to raise_error(TypeError)
35
35
  end
36
36
 
37
37
  it 'should have the correct name' do
38
- subject.name.should eq("MyTuple")
38
+ expect(subject.name).to eq("MyTuple")
39
39
  end
40
40
  end
41
41
 
metadata CHANGED
@@ -1,32 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finitio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bernard Lambeau
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: citrus
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.4'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
30
33
  description: Implements the Finitio information language in Ruby.
31
34
  email:
32
35
  - blambeau@gmail.com
@@ -40,323 +43,432 @@ files:
40
43
  - CHANGELOG.md
41
44
  - Gemfile
42
45
  - Gemfile.lock
43
- - lib/finitio/data_type.rb
44
- - lib/finitio/errors.rb
46
+ - LICENCE.md
47
+ - Manifest.txt
48
+ - README.md
49
+ - Rakefile
50
+ - finitio.gemspec
51
+ - lib/finitio.rb
45
52
  - lib/finitio/Finitio/default.fio
53
+ - lib/finitio/errors.rb
54
+ - lib/finitio/support.rb
46
55
  - lib/finitio/support/attribute.rb
47
- - lib/finitio/support/collection_type.rb
56
+ - lib/finitio/support/compilation.rb
57
+ - lib/finitio/support/constraint.rb
58
+ - lib/finitio/support/contract.rb
48
59
  - lib/finitio/support/dress_helper.rb
49
60
  - lib/finitio/support/heading.rb
61
+ - lib/finitio/support/metadata.rb
50
62
  - lib/finitio/support/type_factory.rb
51
- - lib/finitio/support.rb
52
- - lib/finitio/syntax/ad_type.rb
53
- - lib/finitio/syntax/any_type.rb
54
- - lib/finitio/syntax/attribute.rb
55
- - lib/finitio/syntax/builtin_type.rb
56
- - lib/finitio/syntax/constraint_def.rb
57
- - lib/finitio/syntax/constraints.rb
58
- - lib/finitio/syntax/contract.rb
59
- - lib/finitio/syntax/definitions.rb
60
- - lib/finitio/syntax/expression.rb
61
- - lib/finitio/syntax/external_pair.rb
63
+ - lib/finitio/syntax.rb
64
+ - lib/finitio/syntax/expr.rb
65
+ - lib/finitio/syntax/expr/arith_op.rb
66
+ - lib/finitio/syntax/expr/comparison.rb
67
+ - lib/finitio/syntax/expr/fn_call.rb
68
+ - lib/finitio/syntax/expr/identifier.rb
69
+ - lib/finitio/syntax/expr/literal.rb
70
+ - lib/finitio/syntax/expr/logic_dyadic.rb
71
+ - lib/finitio/syntax/expr/logic_not.rb
72
+ - lib/finitio/syntax/expr/oo_call.rb
73
+ - lib/finitio/syntax/expr/parenthesized.rb
74
+ - lib/finitio/syntax/expr/unary_minus_op.rb
75
+ - lib/finitio/syntax/expressions.citrus
62
76
  - lib/finitio/syntax/finitio.citrus
63
77
  - lib/finitio/syntax/finitio.sexp
64
- - lib/finitio/syntax/heading.rb
65
- - lib/finitio/syntax/inline_pair.rb
66
- - lib/finitio/syntax/lambda_expr.rb
67
- - lib/finitio/syntax/named_constraint.rb
68
- - lib/finitio/syntax/relation_type.rb
69
- - lib/finitio/syntax/seq_type.rb
70
- - lib/finitio/syntax/set_type.rb
71
- - lib/finitio/syntax/sub_type.rb
72
- - lib/finitio/syntax/support.rb
73
- - lib/finitio/syntax/system.rb
74
- - lib/finitio/syntax/tuple_type.rb
75
- - lib/finitio/syntax/type_def.rb
76
- - lib/finitio/syntax/type_ref.rb
77
- - lib/finitio/syntax/union_type.rb
78
- - lib/finitio/syntax/unnamed_constraint.rb
79
- - lib/finitio/syntax.rb
78
+ - lib/finitio/syntax/lexer.citrus
79
+ - lib/finitio/syntax/literal.rb
80
+ - lib/finitio/syntax/literal/boolean.rb
81
+ - lib/finitio/syntax/literal/integer.rb
82
+ - lib/finitio/syntax/literal/real.rb
83
+ - lib/finitio/syntax/literal/string.rb
84
+ - lib/finitio/syntax/literals.citrus
85
+ - lib/finitio/syntax/node.rb
86
+ - lib/finitio/syntax/type.rb
87
+ - lib/finitio/syntax/type/ad_type.rb
88
+ - lib/finitio/syntax/type/any_type.rb
89
+ - lib/finitio/syntax/type/attribute.rb
90
+ - lib/finitio/syntax/type/builtin_type.rb
91
+ - lib/finitio/syntax/type/constraint_def.rb
92
+ - lib/finitio/syntax/type/constraints.rb
93
+ - lib/finitio/syntax/type/contract.rb
94
+ - lib/finitio/syntax/type/definitions.rb
95
+ - lib/finitio/syntax/type/expression.rb
96
+ - lib/finitio/syntax/type/external_pair.rb
97
+ - lib/finitio/syntax/type/heading.rb
98
+ - lib/finitio/syntax/type/inline_pair.rb
99
+ - lib/finitio/syntax/type/lambda_expr.rb
100
+ - lib/finitio/syntax/type/main_type.rb
101
+ - lib/finitio/syntax/type/metadata.rb
102
+ - lib/finitio/syntax/type/metadata_attr.rb
103
+ - lib/finitio/syntax/type/named_constraint.rb
104
+ - lib/finitio/syntax/type/relation_type.rb
105
+ - lib/finitio/syntax/type/seq_type.rb
106
+ - lib/finitio/syntax/type/set_type.rb
107
+ - lib/finitio/syntax/type/struct_type.rb
108
+ - lib/finitio/syntax/type/sub_type.rb
109
+ - lib/finitio/syntax/type/system.rb
110
+ - lib/finitio/syntax/type/tuple_type.rb
111
+ - lib/finitio/syntax/type/type_def.rb
112
+ - lib/finitio/syntax/type/type_ref.rb
113
+ - lib/finitio/syntax/type/union_type.rb
114
+ - lib/finitio/syntax/type/unnamed_constraint.rb
115
+ - lib/finitio/syntax/types.citrus
80
116
  - lib/finitio/system.rb
117
+ - lib/finitio/type.rb
81
118
  - lib/finitio/type/ad_type.rb
119
+ - lib/finitio/type/alias_type.rb
82
120
  - lib/finitio/type/any_type.rb
83
121
  - lib/finitio/type/builtin_type.rb
122
+ - lib/finitio/type/collection_type.rb
123
+ - lib/finitio/type/hash_based_type.rb
124
+ - lib/finitio/type/heading_based_type.rb
125
+ - lib/finitio/type/multi_relation_type.rb
126
+ - lib/finitio/type/multi_tuple_type.rb
127
+ - lib/finitio/type/proxy_type.rb
128
+ - lib/finitio/type/rel_based_type.rb
84
129
  - lib/finitio/type/relation_type.rb
85
130
  - lib/finitio/type/seq_type.rb
86
131
  - lib/finitio/type/set_type.rb
132
+ - lib/finitio/type/struct_type.rb
87
133
  - lib/finitio/type/sub_type.rb
88
134
  - lib/finitio/type/tuple_type.rb
89
135
  - lib/finitio/type/union_type.rb
90
- - lib/finitio/type.rb
91
136
  - lib/finitio/version.rb
92
- - lib/finitio.rb
93
- - LICENCE.md
94
- - Manifest.txt
95
- - finitio.gemspec
96
- - Rakefile
97
- - README.md
98
- - spec/acceptance/ad_type/test_in_finitio.rb
99
- - spec/acceptance/ad_type/test_in_ruby.rb
100
- - spec/acceptance/Finitio/test_default.rb
101
- - spec/acceptance/Finitio/test_parsing.rb
137
+ - spec/attribute/test_equality.rb
138
+ - spec/attribute/test_fetch_on.rb
139
+ - spec/attribute/test_initialize.rb
140
+ - spec/attribute/test_optional.rb
141
+ - spec/attribute/test_required.rb
142
+ - spec/attribute/test_to_name.rb
143
+ - spec/constraint/test_anonymous.rb
144
+ - spec/constraint/test_equality.rb
145
+ - spec/constraint/test_name.rb
146
+ - spec/constraint/test_named.rb
147
+ - spec/constraint/test_triple_equal.rb
148
+ - spec/finitio/system.fio
149
+ - spec/finitio/test_ast.rb
150
+ - spec/finitio/test_parse.rb
151
+ - spec/finitio/test_system.rb
152
+ - spec/heading/test_allow_extra.rb
153
+ - spec/heading/test_each.rb
154
+ - spec/heading/test_equality.rb
155
+ - spec/heading/test_hash.rb
156
+ - spec/heading/test_hash_get.rb
157
+ - spec/heading/test_initialize.rb
158
+ - spec/heading/test_multi.rb
159
+ - spec/heading/test_size.rb
160
+ - spec/heading/test_to_name.rb
102
161
  - spec/spec_helper.rb
103
- - spec/unit/attribute/test_equality.rb
104
- - spec/unit/attribute/test_fetch_on.rb
105
- - spec/unit/attribute/test_initialize.rb
106
- - spec/unit/attribute/test_to_name.rb
107
- - spec/unit/heading/test_each.rb
108
- - spec/unit/heading/test_equality.rb
109
- - spec/unit/heading/test_initialize.rb
110
- - spec/unit/heading/test_size.rb
111
- - spec/unit/heading/test_to_name.rb
112
- - spec/unit/qrb/system.q
113
- - spec/unit/qrb/test_ast.rb
114
- - spec/unit/qrb/test_parse.rb
115
- - spec/unit/syntax/nodes/test_ad_type.rb
116
- - spec/unit/syntax/nodes/test_any_type.rb
117
- - spec/unit/syntax/nodes/test_attribute.rb
118
- - spec/unit/syntax/nodes/test_builtin_type.rb
119
- - spec/unit/syntax/nodes/test_comment.rb
120
- - spec/unit/syntax/nodes/test_constraint_def.rb
121
- - spec/unit/syntax/nodes/test_constraints.rb
122
- - spec/unit/syntax/nodes/test_contract.rb
123
- - spec/unit/syntax/nodes/test_expression.rb
124
- - spec/unit/syntax/nodes/test_heading.rb
125
- - spec/unit/syntax/nodes/test_named_constraint.rb
126
- - spec/unit/syntax/nodes/test_relation_type.rb
127
- - spec/unit/syntax/nodes/test_seq_type.rb
128
- - spec/unit/syntax/nodes/test_set_type.rb
129
- - spec/unit/syntax/nodes/test_spacing.rb
130
- - spec/unit/syntax/nodes/test_sub_type.rb
131
- - spec/unit/syntax/nodes/test_system.rb
132
- - spec/unit/syntax/nodes/test_tuple_type.rb
133
- - spec/unit/syntax/nodes/test_type_def.rb
134
- - spec/unit/syntax/nodes/test_type_ref.rb
135
- - spec/unit/syntax/nodes/test_union_type.rb
136
- - spec/unit/syntax/nodes/test_unnamed_constraint.rb
137
- - spec/unit/syntax/test_compile_type.rb
138
- - spec/unit/system/test_add_type.rb
139
- - spec/unit/system/test_dsl.rb
140
- - spec/unit/system/test_dup.rb
141
- - spec/unit/system/test_fetch.rb
142
- - spec/unit/system/test_get_type.rb
143
- - spec/unit/system/test_initialize.rb
144
- - spec/unit/test_finitio.rb
145
- - spec/unit/type/ad_type/test_default_name.rb
146
- - spec/unit/type/ad_type/test_dress.rb
147
- - spec/unit/type/ad_type/test_include.rb
148
- - spec/unit/type/ad_type/test_initialize.rb
149
- - spec/unit/type/ad_type/test_name.rb
150
- - spec/unit/type/any_type/test_default_name.rb
151
- - spec/unit/type/any_type/test_dress.rb
152
- - spec/unit/type/any_type/test_equality.rb
153
- - spec/unit/type/any_type/test_include.rb
154
- - spec/unit/type/any_type/test_initialize.rb
155
- - spec/unit/type/any_type/test_name.rb
156
- - spec/unit/type/builtin_type/test_default_name.rb
157
- - spec/unit/type/builtin_type/test_dress.rb
158
- - spec/unit/type/builtin_type/test_equality.rb
159
- - spec/unit/type/builtin_type/test_include.rb
160
- - spec/unit/type/builtin_type/test_initialize.rb
161
- - spec/unit/type/builtin_type/test_name.rb
162
- - spec/unit/type/relation_type/test_default_name.rb
163
- - spec/unit/type/relation_type/test_dress.rb
164
- - spec/unit/type/relation_type/test_equality.rb
165
- - spec/unit/type/relation_type/test_include.rb
166
- - spec/unit/type/relation_type/test_initialize.rb
167
- - spec/unit/type/relation_type/test_name.rb
168
- - spec/unit/type/seq_type/test_default_name.rb
169
- - spec/unit/type/seq_type/test_dress.rb
170
- - spec/unit/type/seq_type/test_equality.rb
171
- - spec/unit/type/seq_type/test_include.rb
172
- - spec/unit/type/seq_type/test_initialize.rb
173
- - spec/unit/type/seq_type/test_name.rb
174
- - spec/unit/type/set_type/test_default_name.rb
175
- - spec/unit/type/set_type/test_dress.rb
176
- - spec/unit/type/set_type/test_equality.rb
177
- - spec/unit/type/set_type/test_include.rb
178
- - spec/unit/type/set_type/test_initialize.rb
179
- - spec/unit/type/set_type/test_name.rb
180
- - spec/unit/type/sub_type/test_default_name.rb
181
- - spec/unit/type/sub_type/test_dress.rb
182
- - spec/unit/type/sub_type/test_equality.rb
183
- - spec/unit/type/sub_type/test_include.rb
184
- - spec/unit/type/sub_type/test_initialize.rb
185
- - spec/unit/type/sub_type/test_name.rb
186
- - spec/unit/type/tuple_type/test_default_name.rb
187
- - spec/unit/type/tuple_type/test_dress.rb
188
- - spec/unit/type/tuple_type/test_equality.rb
189
- - spec/unit/type/tuple_type/test_include.rb
190
- - spec/unit/type/tuple_type/test_initialize.rb
191
- - spec/unit/type/tuple_type/test_name.rb
192
- - spec/unit/type/union_type/test_default_name.rb
193
- - spec/unit/type/union_type/test_dress.rb
194
- - spec/unit/type/union_type/test_equality.rb
195
- - spec/unit/type/union_type/test_include.rb
196
- - spec/unit/type/union_type/test_initialize.rb
197
- - spec/unit/type/union_type/test_name.rb
198
- - spec/unit/type_factory/dsl/test_adt.rb
199
- - spec/unit/type_factory/dsl/test_any.rb
200
- - spec/unit/type_factory/dsl/test_attribute.rb
201
- - spec/unit/type_factory/dsl/test_attributes.rb
202
- - spec/unit/type_factory/dsl/test_builtin.rb
203
- - spec/unit/type_factory/dsl/test_relation.rb
204
- - spec/unit/type_factory/dsl/test_seq.rb
205
- - spec/unit/type_factory/dsl/test_set.rb
206
- - spec/unit/type_factory/dsl/test_subtype.rb
207
- - spec/unit/type_factory/dsl/test_tuple.rb
208
- - spec/unit/type_factory/dsl/test_union.rb
209
- - spec/unit/type_factory/factory/test_builtin.rb
210
- - spec/unit/type_factory/factory/test_seq_type.rb
211
- - spec/unit/type_factory/factory/test_set_type.rb
212
- - spec/unit/type_factory/factory/test_sub_type.rb
213
- - spec/unit/type_factory/factory/test_tuple_type.rb
162
+ - spec/syntax/expr/test_free_variables.rb
163
+ - spec/syntax/expr/test_to_proc_source.rb
164
+ - spec/syntax/nodes/test_ad_type.rb
165
+ - spec/syntax/nodes/test_any_type.rb
166
+ - spec/syntax/nodes/test_attribute.rb
167
+ - spec/syntax/nodes/test_builtin_type.rb
168
+ - spec/syntax/nodes/test_comment.rb
169
+ - spec/syntax/nodes/test_constraint_def.rb
170
+ - spec/syntax/nodes/test_constraints.rb
171
+ - spec/syntax/nodes/test_contract.rb
172
+ - spec/syntax/nodes/test_expression.rb
173
+ - spec/syntax/nodes/test_heading.rb
174
+ - spec/syntax/nodes/test_metadata.rb
175
+ - spec/syntax/nodes/test_named_constraint.rb
176
+ - spec/syntax/nodes/test_relation_type.rb
177
+ - spec/syntax/nodes/test_seq_type.rb
178
+ - spec/syntax/nodes/test_set_type.rb
179
+ - spec/syntax/nodes/test_spacing.rb
180
+ - spec/syntax/nodes/test_struct_type.rb
181
+ - spec/syntax/nodes/test_sub_type.rb
182
+ - spec/syntax/nodes/test_system.rb
183
+ - spec/syntax/nodes/test_tuple_type.rb
184
+ - spec/syntax/nodes/test_type_def.rb
185
+ - spec/syntax/nodes/test_type_ref.rb
186
+ - spec/syntax/nodes/test_union_type.rb
187
+ - spec/syntax/nodes/test_unnamed_constraint.rb
188
+ - spec/syntax/test_compile.rb
189
+ - spec/syntax/test_compile_type.rb
190
+ - spec/system/test_add_type.rb
191
+ - spec/system/test_dsl.rb
192
+ - spec/system/test_dup.rb
193
+ - spec/system/test_fetch.rb
194
+ - spec/system/test_get_type.rb
195
+ - spec/system/test_initialize.rb
196
+ - spec/test_finitio.rb
197
+ - spec/type/ad_type/test_default_name.rb
198
+ - spec/type/ad_type/test_dress.rb
199
+ - spec/type/ad_type/test_include.rb
200
+ - spec/type/ad_type/test_initialize.rb
201
+ - spec/type/ad_type/test_name.rb
202
+ - spec/type/alias_type/test_default_name.rb
203
+ - spec/type/alias_type/test_delegation.rb
204
+ - spec/type/alias_type/test_name.rb
205
+ - spec/type/any_type/test_default_name.rb
206
+ - spec/type/any_type/test_dress.rb
207
+ - spec/type/any_type/test_equality.rb
208
+ - spec/type/any_type/test_include.rb
209
+ - spec/type/any_type/test_initialize.rb
210
+ - spec/type/any_type/test_name.rb
211
+ - spec/type/builtin_type/test_default_name.rb
212
+ - spec/type/builtin_type/test_dress.rb
213
+ - spec/type/builtin_type/test_equality.rb
214
+ - spec/type/builtin_type/test_include.rb
215
+ - spec/type/builtin_type/test_initialize.rb
216
+ - spec/type/builtin_type/test_name.rb
217
+ - spec/type/multi_relation_type/test_default_name.rb
218
+ - spec/type/multi_relation_type/test_dress.rb
219
+ - spec/type/multi_relation_type/test_equality.rb
220
+ - spec/type/multi_relation_type/test_include.rb
221
+ - spec/type/multi_relation_type/test_initialize.rb
222
+ - spec/type/multi_relation_type/test_name.rb
223
+ - spec/type/multi_tuple_type/test_default_name.rb
224
+ - spec/type/multi_tuple_type/test_dress.rb
225
+ - spec/type/multi_tuple_type/test_equality.rb
226
+ - spec/type/multi_tuple_type/test_include.rb
227
+ - spec/type/multi_tuple_type/test_initialize.rb
228
+ - spec/type/multi_tuple_type/test_name.rb
229
+ - spec/type/proxy_type/test_delegation.rb
230
+ - spec/type/proxy_type/test_resolve.rb
231
+ - spec/type/relation_type/test_default_name.rb
232
+ - spec/type/relation_type/test_dress.rb
233
+ - spec/type/relation_type/test_equality.rb
234
+ - spec/type/relation_type/test_include.rb
235
+ - spec/type/relation_type/test_initialize.rb
236
+ - spec/type/relation_type/test_name.rb
237
+ - spec/type/seq_type/test_default_name.rb
238
+ - spec/type/seq_type/test_dress.rb
239
+ - spec/type/seq_type/test_equality.rb
240
+ - spec/type/seq_type/test_include.rb
241
+ - spec/type/seq_type/test_initialize.rb
242
+ - spec/type/seq_type/test_name.rb
243
+ - spec/type/set_type/test_default_name.rb
244
+ - spec/type/set_type/test_dress.rb
245
+ - spec/type/set_type/test_equality.rb
246
+ - spec/type/set_type/test_include.rb
247
+ - spec/type/set_type/test_initialize.rb
248
+ - spec/type/set_type/test_name.rb
249
+ - spec/type/struct_type/test_default_name.rb
250
+ - spec/type/struct_type/test_dress.rb
251
+ - spec/type/struct_type/test_equality.rb
252
+ - spec/type/struct_type/test_include.rb
253
+ - spec/type/struct_type/test_initialize.rb
254
+ - spec/type/struct_type/test_name.rb
255
+ - spec/type/sub_type/test_default_name.rb
256
+ - spec/type/sub_type/test_dress.rb
257
+ - spec/type/sub_type/test_equality.rb
258
+ - spec/type/sub_type/test_include.rb
259
+ - spec/type/sub_type/test_initialize.rb
260
+ - spec/type/sub_type/test_name.rb
261
+ - spec/type/tuple_type/test_default_name.rb
262
+ - spec/type/tuple_type/test_dress.rb
263
+ - spec/type/tuple_type/test_equality.rb
264
+ - spec/type/tuple_type/test_include.rb
265
+ - spec/type/tuple_type/test_initialize.rb
266
+ - spec/type/tuple_type/test_name.rb
267
+ - spec/type/union_type/test_default_name.rb
268
+ - spec/type/union_type/test_dress.rb
269
+ - spec/type/union_type/test_equality.rb
270
+ - spec/type/union_type/test_include.rb
271
+ - spec/type/union_type/test_initialize.rb
272
+ - spec/type/union_type/test_name.rb
273
+ - spec/type_factory/dsl/test_adt.rb
274
+ - spec/type_factory/dsl/test_any.rb
275
+ - spec/type_factory/dsl/test_attribute.rb
276
+ - spec/type_factory/dsl/test_attributes.rb
277
+ - spec/type_factory/dsl/test_builtin.rb
278
+ - spec/type_factory/dsl/test_multi_relation.rb
279
+ - spec/type_factory/dsl/test_multi_tuple.rb
280
+ - spec/type_factory/dsl/test_relation.rb
281
+ - spec/type_factory/dsl/test_seq.rb
282
+ - spec/type_factory/dsl/test_set.rb
283
+ - spec/type_factory/dsl/test_struct.rb
284
+ - spec/type_factory/dsl/test_subtype.rb
285
+ - spec/type_factory/dsl/test_tuple.rb
286
+ - spec/type_factory/dsl/test_union.rb
287
+ - spec/type_factory/factory/test_builtin.rb
288
+ - spec/type_factory/factory/test_seq_type.rb
289
+ - spec/type_factory/factory/test_set_type.rb
290
+ - spec/type_factory/factory/test_struct_type.rb
291
+ - spec/type_factory/factory/test_sub_type.rb
292
+ - spec/type_factory/factory/test_tuple_type.rb
214
293
  - tasks/gem.rake
215
294
  - tasks/test.rake
216
295
  homepage: https://github.com/blambeau/finitio
217
296
  licenses: []
297
+ metadata: {}
218
298
  post_install_message:
219
299
  rdoc_options: []
220
300
  require_paths:
221
301
  - lib
222
302
  required_ruby_version: !ruby/object:Gem::Requirement
223
- none: false
224
303
  requirements:
225
- - - ! '>='
304
+ - - ">="
226
305
  - !ruby/object:Gem::Version
227
306
  version: '0'
228
- segments:
229
- - 0
230
- hash: 2377554315646118506
231
307
  required_rubygems_version: !ruby/object:Gem::Requirement
232
- none: false
233
308
  requirements:
234
- - - ! '>='
309
+ - - ">="
235
310
  - !ruby/object:Gem::Version
236
311
  version: '0'
237
- segments:
238
- - 0
239
- hash: 2377554315646118506
240
312
  requirements: []
241
313
  rubyforge_project:
242
- rubygems_version: 1.8.25
314
+ rubygems_version: 2.4.5
243
315
  signing_key:
244
- specification_version: 3
316
+ specification_version: 4
245
317
  summary: Finitio - in Ruby
246
318
  test_files:
247
- - spec/acceptance/ad_type/test_in_finitio.rb
248
- - spec/acceptance/ad_type/test_in_ruby.rb
249
- - spec/acceptance/Finitio/test_default.rb
250
- - spec/acceptance/Finitio/test_parsing.rb
319
+ - spec/attribute/test_equality.rb
320
+ - spec/attribute/test_fetch_on.rb
321
+ - spec/attribute/test_initialize.rb
322
+ - spec/attribute/test_optional.rb
323
+ - spec/attribute/test_required.rb
324
+ - spec/attribute/test_to_name.rb
325
+ - spec/constraint/test_anonymous.rb
326
+ - spec/constraint/test_equality.rb
327
+ - spec/constraint/test_name.rb
328
+ - spec/constraint/test_named.rb
329
+ - spec/constraint/test_triple_equal.rb
330
+ - spec/finitio/system.fio
331
+ - spec/finitio/test_ast.rb
332
+ - spec/finitio/test_parse.rb
333
+ - spec/finitio/test_system.rb
334
+ - spec/heading/test_allow_extra.rb
335
+ - spec/heading/test_each.rb
336
+ - spec/heading/test_equality.rb
337
+ - spec/heading/test_hash.rb
338
+ - spec/heading/test_hash_get.rb
339
+ - spec/heading/test_initialize.rb
340
+ - spec/heading/test_multi.rb
341
+ - spec/heading/test_size.rb
342
+ - spec/heading/test_to_name.rb
251
343
  - spec/spec_helper.rb
252
- - spec/unit/attribute/test_equality.rb
253
- - spec/unit/attribute/test_fetch_on.rb
254
- - spec/unit/attribute/test_initialize.rb
255
- - spec/unit/attribute/test_to_name.rb
256
- - spec/unit/heading/test_each.rb
257
- - spec/unit/heading/test_equality.rb
258
- - spec/unit/heading/test_initialize.rb
259
- - spec/unit/heading/test_size.rb
260
- - spec/unit/heading/test_to_name.rb
261
- - spec/unit/qrb/system.q
262
- - spec/unit/qrb/test_ast.rb
263
- - spec/unit/qrb/test_parse.rb
264
- - spec/unit/syntax/nodes/test_ad_type.rb
265
- - spec/unit/syntax/nodes/test_any_type.rb
266
- - spec/unit/syntax/nodes/test_attribute.rb
267
- - spec/unit/syntax/nodes/test_builtin_type.rb
268
- - spec/unit/syntax/nodes/test_comment.rb
269
- - spec/unit/syntax/nodes/test_constraint_def.rb
270
- - spec/unit/syntax/nodes/test_constraints.rb
271
- - spec/unit/syntax/nodes/test_contract.rb
272
- - spec/unit/syntax/nodes/test_expression.rb
273
- - spec/unit/syntax/nodes/test_heading.rb
274
- - spec/unit/syntax/nodes/test_named_constraint.rb
275
- - spec/unit/syntax/nodes/test_relation_type.rb
276
- - spec/unit/syntax/nodes/test_seq_type.rb
277
- - spec/unit/syntax/nodes/test_set_type.rb
278
- - spec/unit/syntax/nodes/test_spacing.rb
279
- - spec/unit/syntax/nodes/test_sub_type.rb
280
- - spec/unit/syntax/nodes/test_system.rb
281
- - spec/unit/syntax/nodes/test_tuple_type.rb
282
- - spec/unit/syntax/nodes/test_type_def.rb
283
- - spec/unit/syntax/nodes/test_type_ref.rb
284
- - spec/unit/syntax/nodes/test_union_type.rb
285
- - spec/unit/syntax/nodes/test_unnamed_constraint.rb
286
- - spec/unit/syntax/test_compile_type.rb
287
- - spec/unit/system/test_add_type.rb
288
- - spec/unit/system/test_dsl.rb
289
- - spec/unit/system/test_dup.rb
290
- - spec/unit/system/test_fetch.rb
291
- - spec/unit/system/test_get_type.rb
292
- - spec/unit/system/test_initialize.rb
293
- - spec/unit/test_finitio.rb
294
- - spec/unit/type/ad_type/test_default_name.rb
295
- - spec/unit/type/ad_type/test_dress.rb
296
- - spec/unit/type/ad_type/test_include.rb
297
- - spec/unit/type/ad_type/test_initialize.rb
298
- - spec/unit/type/ad_type/test_name.rb
299
- - spec/unit/type/any_type/test_default_name.rb
300
- - spec/unit/type/any_type/test_dress.rb
301
- - spec/unit/type/any_type/test_equality.rb
302
- - spec/unit/type/any_type/test_include.rb
303
- - spec/unit/type/any_type/test_initialize.rb
304
- - spec/unit/type/any_type/test_name.rb
305
- - spec/unit/type/builtin_type/test_default_name.rb
306
- - spec/unit/type/builtin_type/test_dress.rb
307
- - spec/unit/type/builtin_type/test_equality.rb
308
- - spec/unit/type/builtin_type/test_include.rb
309
- - spec/unit/type/builtin_type/test_initialize.rb
310
- - spec/unit/type/builtin_type/test_name.rb
311
- - spec/unit/type/relation_type/test_default_name.rb
312
- - spec/unit/type/relation_type/test_dress.rb
313
- - spec/unit/type/relation_type/test_equality.rb
314
- - spec/unit/type/relation_type/test_include.rb
315
- - spec/unit/type/relation_type/test_initialize.rb
316
- - spec/unit/type/relation_type/test_name.rb
317
- - spec/unit/type/seq_type/test_default_name.rb
318
- - spec/unit/type/seq_type/test_dress.rb
319
- - spec/unit/type/seq_type/test_equality.rb
320
- - spec/unit/type/seq_type/test_include.rb
321
- - spec/unit/type/seq_type/test_initialize.rb
322
- - spec/unit/type/seq_type/test_name.rb
323
- - spec/unit/type/set_type/test_default_name.rb
324
- - spec/unit/type/set_type/test_dress.rb
325
- - spec/unit/type/set_type/test_equality.rb
326
- - spec/unit/type/set_type/test_include.rb
327
- - spec/unit/type/set_type/test_initialize.rb
328
- - spec/unit/type/set_type/test_name.rb
329
- - spec/unit/type/sub_type/test_default_name.rb
330
- - spec/unit/type/sub_type/test_dress.rb
331
- - spec/unit/type/sub_type/test_equality.rb
332
- - spec/unit/type/sub_type/test_include.rb
333
- - spec/unit/type/sub_type/test_initialize.rb
334
- - spec/unit/type/sub_type/test_name.rb
335
- - spec/unit/type/tuple_type/test_default_name.rb
336
- - spec/unit/type/tuple_type/test_dress.rb
337
- - spec/unit/type/tuple_type/test_equality.rb
338
- - spec/unit/type/tuple_type/test_include.rb
339
- - spec/unit/type/tuple_type/test_initialize.rb
340
- - spec/unit/type/tuple_type/test_name.rb
341
- - spec/unit/type/union_type/test_default_name.rb
342
- - spec/unit/type/union_type/test_dress.rb
343
- - spec/unit/type/union_type/test_equality.rb
344
- - spec/unit/type/union_type/test_include.rb
345
- - spec/unit/type/union_type/test_initialize.rb
346
- - spec/unit/type/union_type/test_name.rb
347
- - spec/unit/type_factory/dsl/test_adt.rb
348
- - spec/unit/type_factory/dsl/test_any.rb
349
- - spec/unit/type_factory/dsl/test_attribute.rb
350
- - spec/unit/type_factory/dsl/test_attributes.rb
351
- - spec/unit/type_factory/dsl/test_builtin.rb
352
- - spec/unit/type_factory/dsl/test_relation.rb
353
- - spec/unit/type_factory/dsl/test_seq.rb
354
- - spec/unit/type_factory/dsl/test_set.rb
355
- - spec/unit/type_factory/dsl/test_subtype.rb
356
- - spec/unit/type_factory/dsl/test_tuple.rb
357
- - spec/unit/type_factory/dsl/test_union.rb
358
- - spec/unit/type_factory/factory/test_builtin.rb
359
- - spec/unit/type_factory/factory/test_seq_type.rb
360
- - spec/unit/type_factory/factory/test_set_type.rb
361
- - spec/unit/type_factory/factory/test_sub_type.rb
362
- - spec/unit/type_factory/factory/test_tuple_type.rb
344
+ - spec/syntax/expr/test_free_variables.rb
345
+ - spec/syntax/expr/test_to_proc_source.rb
346
+ - spec/syntax/nodes/test_ad_type.rb
347
+ - spec/syntax/nodes/test_any_type.rb
348
+ - spec/syntax/nodes/test_attribute.rb
349
+ - spec/syntax/nodes/test_builtin_type.rb
350
+ - spec/syntax/nodes/test_comment.rb
351
+ - spec/syntax/nodes/test_constraint_def.rb
352
+ - spec/syntax/nodes/test_constraints.rb
353
+ - spec/syntax/nodes/test_contract.rb
354
+ - spec/syntax/nodes/test_expression.rb
355
+ - spec/syntax/nodes/test_heading.rb
356
+ - spec/syntax/nodes/test_metadata.rb
357
+ - spec/syntax/nodes/test_named_constraint.rb
358
+ - spec/syntax/nodes/test_relation_type.rb
359
+ - spec/syntax/nodes/test_seq_type.rb
360
+ - spec/syntax/nodes/test_set_type.rb
361
+ - spec/syntax/nodes/test_spacing.rb
362
+ - spec/syntax/nodes/test_struct_type.rb
363
+ - spec/syntax/nodes/test_sub_type.rb
364
+ - spec/syntax/nodes/test_system.rb
365
+ - spec/syntax/nodes/test_tuple_type.rb
366
+ - spec/syntax/nodes/test_type_def.rb
367
+ - spec/syntax/nodes/test_type_ref.rb
368
+ - spec/syntax/nodes/test_union_type.rb
369
+ - spec/syntax/nodes/test_unnamed_constraint.rb
370
+ - spec/syntax/test_compile.rb
371
+ - spec/syntax/test_compile_type.rb
372
+ - spec/system/test_add_type.rb
373
+ - spec/system/test_dsl.rb
374
+ - spec/system/test_dup.rb
375
+ - spec/system/test_fetch.rb
376
+ - spec/system/test_get_type.rb
377
+ - spec/system/test_initialize.rb
378
+ - spec/test_finitio.rb
379
+ - spec/type/ad_type/test_default_name.rb
380
+ - spec/type/ad_type/test_dress.rb
381
+ - spec/type/ad_type/test_include.rb
382
+ - spec/type/ad_type/test_initialize.rb
383
+ - spec/type/ad_type/test_name.rb
384
+ - spec/type/alias_type/test_default_name.rb
385
+ - spec/type/alias_type/test_delegation.rb
386
+ - spec/type/alias_type/test_name.rb
387
+ - spec/type/any_type/test_default_name.rb
388
+ - spec/type/any_type/test_dress.rb
389
+ - spec/type/any_type/test_equality.rb
390
+ - spec/type/any_type/test_include.rb
391
+ - spec/type/any_type/test_initialize.rb
392
+ - spec/type/any_type/test_name.rb
393
+ - spec/type/builtin_type/test_default_name.rb
394
+ - spec/type/builtin_type/test_dress.rb
395
+ - spec/type/builtin_type/test_equality.rb
396
+ - spec/type/builtin_type/test_include.rb
397
+ - spec/type/builtin_type/test_initialize.rb
398
+ - spec/type/builtin_type/test_name.rb
399
+ - spec/type/multi_relation_type/test_default_name.rb
400
+ - spec/type/multi_relation_type/test_dress.rb
401
+ - spec/type/multi_relation_type/test_equality.rb
402
+ - spec/type/multi_relation_type/test_include.rb
403
+ - spec/type/multi_relation_type/test_initialize.rb
404
+ - spec/type/multi_relation_type/test_name.rb
405
+ - spec/type/multi_tuple_type/test_default_name.rb
406
+ - spec/type/multi_tuple_type/test_dress.rb
407
+ - spec/type/multi_tuple_type/test_equality.rb
408
+ - spec/type/multi_tuple_type/test_include.rb
409
+ - spec/type/multi_tuple_type/test_initialize.rb
410
+ - spec/type/multi_tuple_type/test_name.rb
411
+ - spec/type/proxy_type/test_delegation.rb
412
+ - spec/type/proxy_type/test_resolve.rb
413
+ - spec/type/relation_type/test_default_name.rb
414
+ - spec/type/relation_type/test_dress.rb
415
+ - spec/type/relation_type/test_equality.rb
416
+ - spec/type/relation_type/test_include.rb
417
+ - spec/type/relation_type/test_initialize.rb
418
+ - spec/type/relation_type/test_name.rb
419
+ - spec/type/seq_type/test_default_name.rb
420
+ - spec/type/seq_type/test_dress.rb
421
+ - spec/type/seq_type/test_equality.rb
422
+ - spec/type/seq_type/test_include.rb
423
+ - spec/type/seq_type/test_initialize.rb
424
+ - spec/type/seq_type/test_name.rb
425
+ - spec/type/set_type/test_default_name.rb
426
+ - spec/type/set_type/test_dress.rb
427
+ - spec/type/set_type/test_equality.rb
428
+ - spec/type/set_type/test_include.rb
429
+ - spec/type/set_type/test_initialize.rb
430
+ - spec/type/set_type/test_name.rb
431
+ - spec/type/struct_type/test_default_name.rb
432
+ - spec/type/struct_type/test_dress.rb
433
+ - spec/type/struct_type/test_equality.rb
434
+ - spec/type/struct_type/test_include.rb
435
+ - spec/type/struct_type/test_initialize.rb
436
+ - spec/type/struct_type/test_name.rb
437
+ - spec/type/sub_type/test_default_name.rb
438
+ - spec/type/sub_type/test_dress.rb
439
+ - spec/type/sub_type/test_equality.rb
440
+ - spec/type/sub_type/test_include.rb
441
+ - spec/type/sub_type/test_initialize.rb
442
+ - spec/type/sub_type/test_name.rb
443
+ - spec/type/tuple_type/test_default_name.rb
444
+ - spec/type/tuple_type/test_dress.rb
445
+ - spec/type/tuple_type/test_equality.rb
446
+ - spec/type/tuple_type/test_include.rb
447
+ - spec/type/tuple_type/test_initialize.rb
448
+ - spec/type/tuple_type/test_name.rb
449
+ - spec/type/union_type/test_default_name.rb
450
+ - spec/type/union_type/test_dress.rb
451
+ - spec/type/union_type/test_equality.rb
452
+ - spec/type/union_type/test_include.rb
453
+ - spec/type/union_type/test_initialize.rb
454
+ - spec/type/union_type/test_name.rb
455
+ - spec/type_factory/dsl/test_adt.rb
456
+ - spec/type_factory/dsl/test_any.rb
457
+ - spec/type_factory/dsl/test_attribute.rb
458
+ - spec/type_factory/dsl/test_attributes.rb
459
+ - spec/type_factory/dsl/test_builtin.rb
460
+ - spec/type_factory/dsl/test_multi_relation.rb
461
+ - spec/type_factory/dsl/test_multi_tuple.rb
462
+ - spec/type_factory/dsl/test_relation.rb
463
+ - spec/type_factory/dsl/test_seq.rb
464
+ - spec/type_factory/dsl/test_set.rb
465
+ - spec/type_factory/dsl/test_struct.rb
466
+ - spec/type_factory/dsl/test_subtype.rb
467
+ - spec/type_factory/dsl/test_tuple.rb
468
+ - spec/type_factory/dsl/test_union.rb
469
+ - spec/type_factory/factory/test_builtin.rb
470
+ - spec/type_factory/factory/test_seq_type.rb
471
+ - spec/type_factory/factory/test_set_type.rb
472
+ - spec/type_factory/factory/test_struct_type.rb
473
+ - spec/type_factory/factory/test_sub_type.rb
474
+ - spec/type_factory/factory/test_tuple_type.rb