tourmaline 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/bin/rb +2 -2
- data/tourmaline.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c1eb9fca6b97c2e8a848edc7db6c97dd2e96b19
|
4
|
+
data.tar.gz: 2d6241798fc1e10e64334d139a1bd41bf716a762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d368ad91534446e2611979fa58c9d462c4422260c7bb4513164e0a13a109ac74976fc42e7a024a9749b873431b0c9251b97f076788876905d316440227a6aaa6
|
7
|
+
data.tar.gz: e596d013e1e2eaae2a50d9eba5368f88b61b09727c1a0176e8ebc53ee7f8b860a2a7b7b4383ed068e8d502da74697ec66df7a4f7347a5252b8e1c5042b7a5ed1
|
data/README.md
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
#Tourmaline
|
2
|
+
[](http://badge.fury.io/rb/tourmaline)
|
3
|
+
|
2
4
|

|
3
5
|
|
4
6
|
A configurable ruby interpreter for the command line
|
5
7
|
|
6
8
|
### Setup
|
7
|
-
|
8
|
-
|
9
|
-
|
9
|
+
`gem install tourmaline`
|
10
|
+
|
11
|
+
### Plugins
|
12
|
+
Tourmaline's functionality can be extended via ruby scripts (`*.rb` files). Just place them inside the `~/.tourmaline/lib` folder.
|
13
|
+
|
14
|
+
As an example, create the file `~/.tourmaline/lib/plugin_file.rb` with the code:
|
15
|
+
```ruby
|
16
|
+
def execute_plugin
|
17
|
+
puts "plugin executed!"
|
18
|
+
end
|
19
|
+
```
|
20
|
+
|
21
|
+
And with that, you will be able to run `rb 'execute_plugin'`
|
10
22
|
|
11
23
|
### Examples
|
12
24
|
`ping www.google.com | rb 'lines.include?("time=").split("time=")[1].puts.each'`
|
data/bin/rb
CHANGED
data/tourmaline.gemspec
CHANGED