Skip to content

Commit

Permalink
Only Ruby 1.9 is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
iain committed Jul 21, 2012
1 parent 38332bc commit 4a416a4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .travis.yml
Expand Up @@ -2,11 +2,3 @@ language: ruby
rvm:
- 1.9.3
- 1.9.2
- jruby-18mode
- jruby-19mode
- rbx-18mode
- rbx-19mode
- ruby-head
- jruby-head
- 1.8.7
- ree
10 changes: 7 additions & 3 deletions README.md
@@ -1,5 +1,7 @@
# Scripted

[![Build Status](https://secure.travis-ci.org/iain/scripted.png?branch=master)](http://travis-ci.org/iain/scripted)

Scripted is a framework for organizing scripts.

Among its features are:
Expand Down Expand Up @@ -82,9 +84,6 @@ run "some ruby code" do
end
```

Please note that both rake and ruby might have problems when running in
parellel, especially if you're running on MRI.

### Running scripts in parallel

You can really win some time by running certain commands in parallel. Doing
Expand Down Expand Up @@ -398,6 +397,11 @@ I'm putting this out there to get some feedback. Please don't hesitate to
contact me if you have any questions or ideas for improvements. Mention me on
[Twitter](https://twitter.com/iain_nl), or open an issue on Github.

### Known issues

* Only works on Ruby 1.9: MRI.
* 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

Expand Down
1 change: 1 addition & 0 deletions lib/scripted/formatters/announcer.rb
@@ -1,5 +1,6 @@
# encoding: utf-8
require "scripted/formatters/blank"
require 'thread'

module Scripted
module Formatters
Expand Down
2 changes: 1 addition & 1 deletion lib/scripted/formatters/table.rb
Expand Up @@ -30,7 +30,7 @@ def stop(commands, runner)
private

def separator(widths, left, middle, right)
cyan(left) + widths.map { |width| (cyan("─") * (width + 2)).force_encoding('utf-8') }.join(cyan(middle)) + cyan(right)
cyan(left) + widths.map { |width| (cyan("─") * (width + 2)) }.join(cyan(middle)) + cyan(right)
end

def report_line(line, widths)
Expand Down
2 changes: 1 addition & 1 deletion lib/scripted/group.rb
Expand Up @@ -14,7 +14,7 @@ def define(&block)
end

def run(name, &block)
commands << Command.new(name, parallel: @parallel, &block)
commands << Command.new(name, :parallel => @parallel, &block)
end

def parallel(&block)
Expand Down

0 comments on commit 4a416a4

Please sign in to comment.