From fc66613e69b9b52503a9e02ad8650bf3cc2cfbb4 Mon Sep 17 00:00:00 2001 From: namusyaka Date: Sun, 21 Jun 2015 17:29:36 +0900 Subject: [PATCH 1/2] Fix failing test related to compatibility between ruby2.1 and ruby2.2 --- mustermann/lib/mustermann/ast/compiler.rb | 2 ++ 1 file changed, 2 insertions(+) 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 From 95c5539fad5368661f4919e7c076526e22bdc988 Mon Sep 17 00:00:00 2001 From: namusyaka Date: Sun, 21 Jun 2015 17:45:44 +0900 Subject: [PATCH 2/2] Add ruby-2.2.2 support --- .travis.yml | 1 + 1 file changed, 1 insertion(+) 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