~singpolyma/dhall-xml-ruby

a68367460d47a07d49fa87cec5fe7d240262156e — Stephen Paul Weber 8 months ago f566059
Update to work with latest dhall gem
3 files changed, 9 insertions(+), 3 deletions(-)

M Gemfile
M lib/dhall/xml/as_dhall.rb
M test/test_coder.rb
M Gemfile => Gemfile +7 -1
@@ 2,6 2,12 @@

source "https://rubygems.org"

gem "dhall"
system <<~GIT
	git clone --recursive https://git.sr.ht/~singpolyma/dhall-ruby && \\
	cd dhall-ruby && \\
	bundle install --path=.gems && make
GIT

gem "dhall", path: "./dhall-ruby"
gem "nokogiri"
gem "simplecov"

M lib/dhall/xml/as_dhall.rb => lib/dhall/xml/as_dhall.rb +1 -1
@@ 45,7 45,7 @@ module Dhall
				def dhallish_attributes
					List.of(*attributes.to_a.map do |(attr, val)|
						{ mapKey: attr.to_s, mapValue: val.to_s }.as_dhall
					end, type: Types::MAP_ENTRY)
					end, type: Types::MAP_ENTRY())
				end

				def dhallish_children

M test/test_coder.rb => test/test_coder.rb +1 -1
@@ 111,7 111,7 @@ class TestFromDhall < Minitest::Test
									record: {
										"name"       => Dhall::Text.new(value: "five"),
										"attributes" => Dhall::EmptyList.new(
											element_type: Dhall::Types::MAP_ENTRY
											element_type: Dhall::Types::MAP_ENTRY()
										),
										"content"    => Dhall::EmptyList.new(
											element_type: Dhall::Variable["_", 1]