dhall 0.5.2 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dhall.gemspec +2 -2
- data/lib/dhall/ast.rb +3 -3
- data/lib/dhall/coder.rb +2 -3
- data/lib/dhall/resolve.rb +1 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e45376ae2dc24c407255f0c02878c8cc3ce4de87d6c844bc78f0ed745c42188
|
4
|
+
data.tar.gz: 13fc9458d8f118265a3005671940c69c9996c55a20a9f6fd25a08096ce201d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530b294084275118fc377db8824fef80b6fbf4a594718c082b1f314163080f86b44a254160561332bef40c151ff495c14525f806c6d368eec50daed39c7ba79c
|
7
|
+
data.tar.gz: bc34e002f082c5b0c77bba7754eb92c8257ca13367feda654013c32988c386f27861e52e8c07918f75621b233ceccefe9526c7e72e54e21bf7baed40bd04c95b
|
data/dhall.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "dhall"
|
5
|
-
spec.version = `git describe --always
|
5
|
+
spec.version = `git describe --always`
|
6
6
|
spec.authors = ["Stephen Paul Weber"]
|
7
7
|
spec.email = ["dev@singpolyma.net"]
|
8
8
|
spec.license = "GPL-3.0"
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "base32", "~> 0.3.2"
|
29
29
|
spec.add_dependency "cbor", "~> 0.5.9.3"
|
30
30
|
spec.add_dependency "citrus", "~> 3.0"
|
31
|
-
spec.add_dependency "lazy_object", "
|
31
|
+
spec.add_dependency "lazy_object", [">= 0.0.1", "< 0.2.0"]
|
32
32
|
spec.add_dependency "multihashes", "~> 0.2.0"
|
33
33
|
spec.add_dependency "promise.rb", "~> 0.7.4"
|
34
34
|
spec.add_dependency "value_semantics", "~> 3.0"
|
data/lib/dhall/ast.rb
CHANGED
@@ -581,9 +581,9 @@ module Dhall
|
|
581
581
|
Builtins[:Natural]
|
582
582
|
end
|
583
583
|
|
584
|
-
def initialize(
|
585
|
-
@normalized = normalized
|
586
|
-
super(
|
584
|
+
def initialize(attrs)
|
585
|
+
@normalized = attrs.delete(:normalized) || false
|
586
|
+
super(attrs)
|
587
587
|
end
|
588
588
|
|
589
589
|
def type
|
data/lib/dhall/coder.rb
CHANGED
@@ -105,12 +105,11 @@ module Dhall
|
|
105
105
|
|
106
106
|
refine List do
|
107
107
|
def to_ruby(&decode)
|
108
|
-
arr = to_a.map(&decode)
|
109
108
|
unless element_type.is_a?(RecordType) &&
|
110
109
|
element_type.keys == ["mapKey", "mapValue"]
|
111
|
-
return
|
110
|
+
return to_a.map(&decode)
|
112
111
|
end
|
113
|
-
Hash[
|
112
|
+
Hash[to_a.map { |r| [r["mapKey"].to_s, decode[r["mapValue"]]] }]
|
114
113
|
end
|
115
114
|
end
|
116
115
|
|
data/lib/dhall/resolve.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dhall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Paul Weber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base32
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: lazy_object
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.0.1
|
62
|
+
- - "<"
|
60
63
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0
|
64
|
+
version: 0.2.0
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.0.1
|
72
|
+
- - "<"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0
|
74
|
+
version: 0.2.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: multihashes
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,8 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
220
|
- !ruby/object:Gem::Version
|
215
221
|
version: '0'
|
216
222
|
requirements: []
|
217
|
-
|
218
|
-
rubygems_version: 2.7.6.2
|
223
|
+
rubygems_version: 3.2.5
|
219
224
|
signing_key:
|
220
225
|
specification_version: 4
|
221
226
|
summary: The non-repetitive alternative to YAML, in Ruby
|