Skip to content

Commit

Permalink
Fixes Rubinius build
Browse files Browse the repository at this point in the history
  • Loading branch information
leehambley committed Nov 17, 2014
1 parent d546af2 commit bc7c532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/configuration/filter.rb
Expand Up @@ -35,7 +35,7 @@ def initialize type, values = nil
end
end
end
@rex = Regexp.union av
@rex = Regexp.union av.collect { |avi| avi.class == Symbol ? avi.to_s : avi }
end
def filter servers
as = Array(servers)
Expand Down

1 comment on commit bc7c532

@leehambley
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @townsen @Kriechi

I know you both had problems with the rbx build, turns out this issue was being masked by travis's own internal failures (something about stdlib and rubysl gems on travis and rbx-2.x), this issue is a bit of a contentious issue, as the docs don't explicitly condone of prohibit passing symbols, but every interpreter except rbx seems to accept it - http://www.ruby-doc.org/core-1.9.3/Regexp.html#method-c-union

Anyway, easy enough, if inelegant fix.

Please sign in to comment.