Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only Ruby 1.9 is supported

  • Loading branch information...
commit 4a416a443cc0f923a232c68c9428f5fa2ea0c7b1 1 parent 38332bc
@iain authored
View
8 .travis.yml
@@ -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
View
10 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:
@@ -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
@@ -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
View
1  lib/scripted/formatters/announcer.rb
@@ -1,5 +1,6 @@
# encoding: utf-8
require "scripted/formatters/blank"
+require 'thread'
module Scripted
module Formatters
View
2  lib/scripted/formatters/table.rb
@@ -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)
View
2  lib/scripted/group.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.