README.md in ru-0.0.2 vs README.md in ru-0.0.3
- old
+ new
@@ -2,10 +2,12 @@
=====
Ruby in your shell!
<img src="https://raw.github.com/tombenner/ru/master/doc/logo.png" />
+[<img src="https://secure.travis-ci.org/tombenner/ru.png" />](http://travis-ci.org/tombenner/ru)
+
Overview
--------
Ru brings Ruby's expressiveness, cleanliness, and readability to the command line.
@@ -31,11 +33,11 @@
```bash
awk '{s+=$1} END {print s}' myfile
```
-Any method from Ruby Core and Active Support can be used. Ru also provides some new methods to make transformations easier. Here are some variations on the above example:
+Any method from Ruby Core and Active Support can be used. Ru also provides new methods to make transformations easier. Here are some variations on the above example:
```bash
ru 'map(:to_i, 10).sum' myfile
ru 'map(:to_i).reduce(&:+)' myfile
ru 'each_line.to_i.to_a.sum' myfile
@@ -90,10 +92,12 @@
```bash
$ ru '! 2 + 3'
5
```
+The code argument is run as if it has `$stdin.each_line.map(&:chomp).` prepended to it. The result is converted to a string and printed. So, if you run `ru 'map(&:to_i).sum'`, you can think of it as running `puts $stdin.each_line.map(&:chomp).map(&:to_i).sum`.
+
In addition to the methods provided by Ruby Core and Active Support, Ru provides other methods for performing transformations, like `each_line`, `files`, and `grep`. See [Methods](#methods) for more.
Examples
--------
@@ -264,10 +268,10 @@
Testing
-------
-Nested Hstore is tested against ActiveRecord 3 and 4. If you'd like to submit a PR, please be sure to use [Appraisal](https://github.com/thoughtbot/appraisal) to test your changes in both contexts:
+Ru is tested against Active Support 3 and 4. If you'd like to submit a PR, please be sure to use [Appraisal](https://github.com/thoughtbot/appraisal) to test your changes in both contexts:
```bash
appraisal rspec
```