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" 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