Browse files

Alright, Rubinius is in

  • Loading branch information...
1 parent 4a416a4 commit 5a5e3351b01c26335b74c3f55688b301692dc640 @iain committed Jul 21, 2012
Showing with 11 additions and 7 deletions.
  1. +1 −1 .gitignore
  2. +1 −0 .travis.yml
  3. +1 −2 README.md
  4. +4 −0 features/support/aruba.rb
  5. +2 −2 lib/scripted/formatters/announcer.rb
  6. +2 −2 lib/scripted/formatters/table.rb
View
2 .gitignore
@@ -1,5 +1,5 @@
*.gem
-*.rbc
+.rbx
.bundle
.config
.yardoc
View
1 .travis.yml
@@ -2,3 +2,4 @@ language: ruby
rvm:
- 1.9.3
- 1.9.2
+ - rbx-19mode
View
3 README.md
@@ -399,9 +399,8 @@ contact me if you have any questions or ideas for improvements. Mention me on
### Known issues
-* Only works on Ruby 1.9: MRI.
+* Only works on MRI 1.9 and Rubinius in 1.9 mode.
* JRuby and Ruby 1.8 don't play well with some Unix related stuff.
-* Rubinius doesn't play nice with character encoding of the table and announcer.
## Contributing
View
4 features/support/aruba.rb
@@ -1 +1,5 @@
require 'aruba/cucumber'
+
+Before do
+ @aruba_timeout_seconds = 5
+end
View
4 lib/scripted/formatters/announcer.rb
@@ -19,9 +19,9 @@ def start(commands, runner)
def execute(command)
@semaphore.synchronize do
puts ""
- puts cyan("" + ("" * (@length - 2)) + "")
+ puts cyan("" + ("" * (@length - 2)).force_encoding('utf-8') + "")
puts "#{cyan("")} #{command.name.center(@length - 4)} #{cyan("")}"
- puts cyan("" + ("" * (@length - 2)) + "")
+ puts cyan("" + ("" * (@length - 2)).force_encoding('utf-8') + "")
puts ""
end
end
View
4 lib/scripted/formatters/table.rb
@@ -30,11 +30,11 @@ def stop(commands, runner)
private
def separator(widths, left, middle, right)
- cyan(left) + widths.map { |width| (cyan("") * (width + 2)) }.join(cyan(middle)) + cyan(right)
+ cyan(left) + widths.map { |width| (cyan("") * (width + 2)).force_encoding('utf-8') }.join(cyan(middle)) + cyan(right)
end
def report_line(line, widths)
- cyan("") + line.zip(widths).map { |(column, width)| column.aligned(width) }.join(cyan("")) + cyan("")
+ cyan("") + line.zip(widths).map { |(column, width)| column.aligned(width) }.join(cyan("")).force_encoding('utf-8') + cyan("")
end
def report_lines

0 comments on commit 5a5e335

Please sign in to comment.