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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -3
  3. data/bin/rb +2 -2
  4. data/tourmaline.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5112bb6fe8c0929d526eb0cae41cd8dca8ea8b16
4
- data.tar.gz: bcb7f62a181627788f5d10deb849b8d9c693d978
3
+ metadata.gz: 2c1eb9fca6b97c2e8a848edc7db6c97dd2e96b19
4
+ data.tar.gz: 2d6241798fc1e10e64334d139a1bd41bf716a762
5
5
  SHA512:
6
- metadata.gz: 70612f91ef9353ee58950eb781f9ee434f6ac08a2dfe7ad2ac0d202960c0a65366a36253e517116eca2d1f3b5d19ce11167b069d6c711d89e20dd2b227a8b0e9
7
- data.tar.gz: ee1c7c84566d7124d81bf5b9ec5346d6ae6ad684ffaef4e2a623e94ea2aaf02e3503095bb43cf0c8949c07acc21d699bab76a4c5ebadbaba29a75c7f4c6b8823
6
+ metadata.gz: d368ad91534446e2611979fa58c9d462c4422260c7bb4513164e0a13a109ac74976fc42e7a024a9749b873431b0c9251b97f076788876905d316440227a6aaa6
7
+ data.tar.gz: e596d013e1e2eaae2a50d9eba5368f88b61b09727c1a0176e8ebc53ee7f8b860a2a7b7b4383ed068e8d502da74697ec66df7a4f7347a5252b8e1c5042b7a5ed1
data/README.md CHANGED
@@ -1,12 +1,24 @@
1
1
  #Tourmaline
2
+ [![Gem Version](https://badge.fury.io/rb/tourmaline.svg)](http://badge.fury.io/rb/tourmaline)
3
+
2
4
  ![Tourmaline logo](https://raw.githubusercontent.com/demonh3x/tourmaline/master/img/logo200.jpg)
3
5
 
4
6
  A configurable ruby interpreter for the command line
5
7
 
6
8
  ### Setup
7
- * Clone this repo.
8
- * Make sure the `rb` script has execution permissions by running `chmod +x rb` if necessary.
9
- * Make sure the `rb` script is accessible in one of the execution paths in your `$PATH`. More information can be found [here](http://stackoverflow.com/questions/1234424/add-a-single-bash-command).
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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
- require 'io/console'
2
+ Dir[File.expand_path("~/.tourmaline/lib/*.rb")].each{|file|require file}
3
+
3
4
  require "doing"
4
5
  include Doing
5
-
6
6
  def lines
7
7
  doing{STDIN.gets}.map{|l|l.chomp}
8
8
  end
data/tourmaline.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "tourmaline"
7
- gem.version = "0.1.1"
7
+ gem.version = "0.1.2"
8
8
  gem.authors = ["Mateu Adsuara"]
9
9
  gem.email = ["mateuadsuara@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tourmaline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateu Adsuara