dhall 0.5.1 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b0efbcf23922a25863898fa6ac51fc625f5ecd1590f7b95858ea736de8e091b
4
- data.tar.gz: 96685b1fca760158f9a84ca6c7b8a8fdc1d0203c1f25af94d989c492af82e533
3
+ metadata.gz: e4cc35f87d1a62857f622b3c26cd27d0a34d1de1bd6cc681168181fab08e3c61
4
+ data.tar.gz: aea06ef9068119acbc60ed9d1dc736d76257b3ccc992ebb4d9a9125a782b98de
5
5
  SHA512:
6
- metadata.gz: 1785d0b615378c128b3729b6d4d11df4f4c8da9beb07435b265cf1ff8f38583e4abb1ee5877029c474451acd465df1361175fdb8fab0d32358740765f339072e
7
- data.tar.gz: 1ab4e4a5bc480ca0774429ce56d6007c5efc8e3009e8219c91c71b18821e2453573d23d1ece119ebf9c36e369cacf0ffeb1d681e869044e98200354feed04d63
6
+ metadata.gz: d0ce0f4f07a91deaaec7b664870d84f5ddb9e4dad12c0278faa3734cd6f89fc024413849442c4c5eb0ae829b925a659b75dce2c2c4a6c8f4d7bc4bbf8f10b9ff
7
+ data.tar.gz: e34e5f9fd609de5f96beda0d24f77ba394442b672041b13e61289ccf8ff358e6176709b0da65dbfc6dbafe7e32c528f29bc5727000e4287a250c14856784501a
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 --dirty`
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"
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "cbor", "~> 0.5.9.3"
30
30
  spec.add_dependency "citrus", "~> 3.0"
31
31
  spec.add_dependency "lazy_object", "~> 0.0.3"
32
- spec.add_dependency "multihashes", "~> 0.1.3"
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"
35
35
 
data/lib/dhall/ast.rb CHANGED
@@ -581,9 +581,9 @@ module Dhall
581
581
  Builtins[:Natural]
582
582
  end
583
583
 
584
- def initialize(normalized: false, **attrs)
585
- @normalized = normalized
586
- super(**attrs)
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 arr
110
+ return to_a.map(&decode)
112
111
  end
113
- Hash[arr.map { |h| h.values_at("mapKey", "mapValue") }]
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
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "delegate"
3
4
  require "pathname"
4
5
  require "promise.rb"
5
6
  require "set"
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.1
4
+ version: 0.5.4
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: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base32
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.1.3
75
+ version: 0.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.1.3
82
+ version: 0.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: promise.rb
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -214,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubyforge_project:
218
- rubygems_version: 2.7.6.2
217
+ rubygems_version: 3.2.5
219
218
  signing_key:
220
219
  specification_version: 4
221
220
  summary: The non-repetitive alternative to YAML, in Ruby