diff --git a/.travis.yml b/.travis.yml index f0690d6..9591073 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ rvm: - 2.1.2 - 2.1.5 +- 2.2.2 diff --git a/mustermann/lib/mustermann/ast/compiler.rb b/mustermann/lib/mustermann/ast/compiler.rb index d2362e4..f6b5b94 100644 --- a/mustermann/lib/mustermann/ast/compiler.rb +++ b/mustermann/lib/mustermann/ast/compiler.rb @@ -84,6 +84,8 @@ class Variable < Capture # @!visibility private def translate(**options) return super(**options) if explode or not options[:parametric] + # Remove this line after fixing broken compatibility between 2.1 and 2.2 + options.delete(:parametric) if options.has_key?(:parametric) parametric super(parametric: false, **options) end