From cbc23546e02695ff57f9808fbe98ec938bbccd3f Mon Sep 17 00:00:00 2001 From: Eddie Rubeiz Date: Tue, 14 Jun 2022 14:57:57 -0400 Subject: [PATCH 1/2] tests pass on ruby 3.0.3 --- lib/ldpath/program.rb | 2 +- lib/ldpath/transform.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ldpath/program.rb b/lib/ldpath/program.rb index 99a3870..27f2028 100644 --- a/lib/ldpath/program.rb +++ b/lib/ldpath/program.rb @@ -6,7 +6,7 @@ class << self def parse(program, transform_context = {}) ast = transform.apply load(program), transform_context - Ldpath::Program.new ast.compact, transform_context + Ldpath::Program.new ast.compact, **transform_context end def load(program) diff --git a/lib/ldpath/transform.rb b/lib/ldpath/transform.rb index 216fc59..6be8bd5 100644 --- a/lib/ldpath/transform.rb +++ b/lib/ldpath/transform.rb @@ -71,7 +71,7 @@ def apply(obj, context = nil) # Mappings rule(mapping: subtree(:mapping)) do - FieldMapping.new mapping + FieldMapping.new **mapping end ## Selectors From 408585c6fd766a91c8c790204a26761470579523 Mon Sep 17 00:00:00 2001 From: Eddie Rubeiz Date: Tue, 14 Jun 2022 16:43:16 -0400 Subject: [PATCH 2/2] actually adding 3.0 tests --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b06f8c8..2a71b63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,9 +34,9 @@ workflows: version: 2 ci: jobs: - # - test: - # name: "ruby3-0" - # ruby_version: "3.0.0" + - test: + name: "ruby3-0" + ruby_version: "3.0.0" - test: name: "ruby2-7" ruby_version: "2.7.0"