finitio 0.5.0 → 0.5.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
2
  SHA1:
3
- metadata.gz: cae1bbbd04a1136243171e987246538c9b575800
4
- data.tar.gz: d1de82b9707e8969bad9b51297fd8ebc62f18d27
3
+ metadata.gz: 01d0b7cc775a7a49d837efeb5649b844b495a324
4
+ data.tar.gz: 6ba20d99543010822f871f13c7134d458000fabb
5
5
  SHA512:
6
- metadata.gz: 1511839793f7c4595e158494d8a879f8edad4331c1e0774836bbaf752ca325f1769d62c7a6c03fd966b8ad09d23b78f4ba67117b94981ac0977ebd162f9c8e92
7
- data.tar.gz: 519e91f7ba489a200cfd05c462fc0014d836211efcce7b69cbae44c77ca4a3044a36984022153e083d929f7373da5778f593c87f3dd14150d07f259a12739008
6
+ metadata.gz: c0ae0a3ddfb5f74be525b87d6aa6f70b766b67528f6971a03ac578260736d411793d18498b851477669b85b174c1a53d43bca4bbd56ce6983669ead477869e0c
7
+ data.tar.gz: 187708343da19fb59b3cb711c94fc58f14dff12dfef6435525d455704edc5c7af403dddd76772cf54591467ae79ba47e9eb3bdee1af2560436d961e536cda1c4
@@ -1,4 +1,9 @@
1
- # 0.5.0 / HEAD
1
+ # 0.5.1 / 2015-09-22
2
+
3
+ * Enabled memoization in parser to avoid very long parsing time on complex
4
+ schemas.
5
+
6
+ # 0.5.0 / 2015-09-18
2
7
 
3
8
  * Breaking changes on public API
4
9
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- finitio (0.5.0)
4
+ finitio (0.5.1)
5
5
  citrus (>= 2.4, < 4.0)
6
6
 
7
7
  GEM
@@ -17,18 +17,18 @@ module Finitio
17
17
  end
18
18
 
19
19
  def self.ast(source)
20
- parse(source, root: "system").to_ast
20
+ parse(source, root: "system", memoize: true).to_ast
21
21
  end
22
22
 
23
23
  def self.compile(source, cpl = nil)
24
24
  cpl = Compilation.coerce(cpl)
25
- parse(source, root: "system").compile(cpl)
25
+ parse(source, root: "system", memoize: true).compile(cpl)
26
26
  cpl.resolve_proxies!.system
27
27
  end
28
28
 
29
29
  def self.compile_type(source, cpl = nil)
30
30
  cpl = Compilation.coerce(cpl)
31
- parse(source, root: "type").compile(cpl)
31
+ parse(source, root: "type", memoize: true).compile(cpl)
32
32
  end
33
33
 
34
34
  end # module Syntax
@@ -3,7 +3,7 @@ module Finitio
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citrus