rexe 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/exe/rexe +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e722054c78d64b4423f008c6c4e24e9d47b16fa4e07450f28d5a835246cd9810
|
4
|
+
data.tar.gz: 4624fe6eacd8e6052b78a9410c2ac7ad9a527ffbd0977225cf0b91de41f90184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f48114e7ff0e47fa6551e30b42aa0bc7326984bb68b5fec588d4cb4d2b1f0c246bc710aa709e9214dbcb52c18e0c9cae39bf89fec4f67c9a3e8fe44ea96621
|
7
|
+
data.tar.gz: 64a01dcfa2daf21325f42203c4e74a090e6650aefb8bf6fec453f6c36b1a7f0e6ba38c05cd6a4f260cc4c4cb6ac7bac55ad3a6832ee00b927ea7a749d2ecc756
|
data/CHANGELOG.md
CHANGED
data/exe/rexe
CHANGED
@@ -9,7 +9,7 @@ require 'shellwords'
|
|
9
9
|
|
10
10
|
class Rexe < Struct.new(:input_mode, :loads, :requires, :verbose, :noop)
|
11
11
|
|
12
|
-
VERSION = '0.8.
|
12
|
+
VERSION = '0.8.1'
|
13
13
|
|
14
14
|
def initialize
|
15
15
|
clear_options
|
@@ -29,7 +29,7 @@ class Rexe < Struct.new(:input_mode, :loads, :requires, :verbose, :noop)
|
|
29
29
|
def help_text
|
30
30
|
<<~HEREDOC
|
31
31
|
|
32
|
-
rexe -- Ruby Command Line Filter
|
32
|
+
rexe -- Ruby Command Line Executor/Filter -- v#{VERSION} -- https://github.com/keithrbennett/rexe
|
33
33
|
|
34
34
|
Executes Ruby code on the command line, optionally taking standard input and writing to standard output.
|
35
35
|
|
@@ -38,14 +38,14 @@ class Rexe < Struct.new(:input_mode, :loads, :requires, :verbose, :noop)
|
|
38
38
|
-c --clear_options Clear all previous command line options specified up to now
|
39
39
|
-h, --help Print help and exit
|
40
40
|
-l, --load RUBY_FILE(S) Ruby file(s) to load, comma separated, or ! to clear
|
41
|
-
-m, --mode MODE Mode with which to handle input (i.e. what `self` will be in
|
42
|
-
-ms for each line to be handled
|
41
|
+
-m, --mode MODE Mode with which to handle input (i.e. what `self` will be in your code):
|
42
|
+
-ms for each line to be handled as a separate string
|
43
43
|
-me for an enumerator of lines (least memory consumption for big data)
|
44
44
|
-mb for 1 big string (all lines combined into single multiline string)
|
45
45
|
-mn don't do special handling of input; self is not the input (default)
|
46
|
-
-n
|
46
|
+
-n, --[no-]noop Do not execute the code (useful with -v); see note (1) below
|
47
47
|
-r, --require REQUIRES Gems and built-in libraries to require, comma separated, or ! to clear
|
48
|
-
-v, --[no-]verbose verbose mode (logs to stderr);
|
48
|
+
-v, --[no-]verbose verbose mode (logs to stderr); see note (1) below
|
49
49
|
|
50
50
|
If there is an .rexerc file in your home directory, it will be run as Ruby code
|
51
51
|
before processing the input.
|
@@ -53,7 +53,7 @@ class Rexe < Struct.new(:input_mode, :loads, :requires, :verbose, :noop)
|
|
53
53
|
If there is a REXE_OPTIONS environment variable, its content will be prepended to the command line
|
54
54
|
so that you can specify options implicitly (e.g. `export REXE_OPTIONS="-r awesome_print,yaml"`)
|
55
55
|
|
56
|
-
For boolean verbose and noop options, the following are valid:
|
56
|
+
(1) For boolean verbose and noop options, the following are valid:
|
57
57
|
-v no, -v yes, -v false, -v true, -v n, -v y, -v +, but not -v -
|
58
58
|
|
59
59
|
HEREDOC
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Bennett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|