Skip to content

Commit

Permalink
Merge pull request #44 from namusyaka/fix-test
Browse files Browse the repository at this point in the history
Fix failing test related to compatibility between ruby2.1 and ruby2.2
  • Loading branch information
rkh committed Jan 30, 2016
2 parents 3a02ff1 + 95c5539 commit 9ed222e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,3 +1,4 @@
rvm:
- 2.1.2
- 2.1.5
- 2.2.2
2 changes: 2 additions & 0 deletions mustermann/lib/mustermann/ast/compiler.rb
Expand Up @@ -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

Expand Down

0 comments on commit 9ed222e

Please sign in to comment.