rexe 1.0.2 → 1.0.3
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 -1
- data/README.md +6 -5
- data/copy-help-text +7 -0
- data/exe/rexe +6 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76e23653efa666a3b5ebf1b991614dd9b98bed082d54cda2f660e1991a62d7d8
|
4
|
+
data.tar.gz: d01960aa820c05b2a933f0cee0fa78f894afd43ae275da31b5efad96ae5ee89e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c57cc8ff200ae90c8d6d143b444f0c0b58ad91a93dc7027be280b5c0396b01da2a67f67f475db7108924b117f53e0d6f7ac3583502846a8c5941edeba6693f
|
7
|
+
data.tar.gz: 1e6227b7c651668a7ca306c3bb70fba18a80fd8c6018a3db9fdca2185b94f988fcf289898fa432b33af118261a6dcb9ca426c5cdb29ab31e2bb878929785edbd
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -73,7 +73,7 @@ Rexe is at https://github.com/keithrbennett/rexe and can be installed with `gem
|
|
73
73
|
Here is rexe's help text as of the time of this writing:
|
74
74
|
|
75
75
|
```
|
76
|
-
rexe -- Ruby Command Line Executor/Filter -- v1.0.
|
76
|
+
rexe -- Ruby Command Line Executor/Filter -- v1.0.3 -- https://github.com/keithrbennett/rexe
|
77
77
|
|
78
78
|
Executes Ruby code on the command line,
|
79
79
|
optionally automating management of standard input and standard output,
|
@@ -87,17 +87,18 @@ Options:
|
|
87
87
|
-f --input_file Use this file instead of stdin for preprocessed input;
|
88
88
|
if filespec has a YAML and JSON file extension,
|
89
89
|
sets input format accordingly and sets input mode to -mb
|
90
|
-
-g --log_format FORMAT Log format, logs to stderr, defaults to none
|
90
|
+
-g --log_format FORMAT Log format, logs to stderr, defaults to -gn (none)
|
91
91
|
(see -o for format options)
|
92
92
|
-h, --help Print help and exit
|
93
|
-
-i, --input_format FORMAT Input format
|
93
|
+
-i, --input_format FORMAT Input format, defaults to -in (None)
|
94
94
|
-ij JSON
|
95
95
|
-im Marshal
|
96
96
|
-in None (default)
|
97
97
|
-iy YAML
|
98
98
|
-l, --load RUBY_FILE(S) Ruby file(s) to load, comma separated;
|
99
99
|
! to clear all, or precede a name with '-' to remove
|
100
|
-
-m, --input_mode MODE Input preprocessing mode (determines what `self` will be)
|
100
|
+
-m, --input_mode MODE Input preprocessing mode (determines what `self` will be)
|
101
|
+
defaults to -mn (none)
|
101
102
|
-ml line; each line is ingested as a separate string
|
102
103
|
-me enumerator (each_line on STDIN or File)
|
103
104
|
-mb big string; all lines combined into one string
|
@@ -105,7 +106,7 @@ Options:
|
|
105
106
|
self is an Object.new
|
106
107
|
-n, --[no-]noop Do not execute the code (useful with -g);
|
107
108
|
For true: yes, true, y, +; for false: no, false, n
|
108
|
-
-o, --output_format FORMAT Output format
|
109
|
+
-o, --output_format FORMAT Output format, defaults to -on (no output):
|
109
110
|
-oi Inspect
|
110
111
|
-oj JSON
|
111
112
|
-oJ Pretty JSON
|
data/copy-help-text
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Here's a sample rexe script that I've been using in my development of rexe. It:
|
2
|
+
#
|
3
|
+
# 1) pipes the help output of rexe into another call to rexe, which
|
4
|
+
# 2) removes the first and last blank lines for easier pasting into the source code, and
|
5
|
+
# 3) pastes the result back into the clipboard for easy insertion into the editor.
|
6
|
+
|
7
|
+
rexe -h | rexe -mb -op 'self.split("\n")[1..-1]' | pbcopy
|
data/exe/rexe
CHANGED
@@ -12,7 +12,7 @@ require 'shellwords'
|
|
12
12
|
|
13
13
|
class Rexe
|
14
14
|
|
15
|
-
VERSION = '1.0.
|
15
|
+
VERSION = '1.0.3'
|
16
16
|
|
17
17
|
PROJECT_URL = 'https://github.com/keithrbennett/rexe'
|
18
18
|
|
@@ -189,17 +189,18 @@ class Rexe
|
|
189
189
|
-f --input_file Use this file instead of stdin for preprocessed input;
|
190
190
|
if filespec has a YAML and JSON file extension,
|
191
191
|
sets input format accordingly and sets input mode to -mb
|
192
|
-
-g --log_format FORMAT Log format, logs to stderr, defaults to none
|
192
|
+
-g --log_format FORMAT Log format, logs to stderr, defaults to -gn (none)
|
193
193
|
(see -o for format options)
|
194
194
|
-h, --help Print help and exit
|
195
|
-
-i, --input_format FORMAT Input format
|
195
|
+
-i, --input_format FORMAT Input format, defaults to -in (None)
|
196
196
|
-ij JSON
|
197
197
|
-im Marshal
|
198
198
|
-in None (default)
|
199
199
|
-iy YAML
|
200
200
|
-l, --load RUBY_FILE(S) Ruby file(s) to load, comma separated;
|
201
201
|
! to clear all, or precede a name with '-' to remove
|
202
|
-
-m, --input_mode MODE Input preprocessing mode (determines what `self` will be)
|
202
|
+
-m, --input_mode MODE Input preprocessing mode (determines what `self` will be)
|
203
|
+
defaults to -mn (none)
|
203
204
|
-ml line; each line is ingested as a separate string
|
204
205
|
-me enumerator (each_line on STDIN or File)
|
205
206
|
-mb big string; all lines combined into one string
|
@@ -207,7 +208,7 @@ class Rexe
|
|
207
208
|
self is an Object.new
|
208
209
|
-n, --[no-]noop Do not execute the code (useful with -g);
|
209
210
|
For true: yes, true, y, +; for false: no, false, n
|
210
|
-
-o, --output_format FORMAT Output format
|
211
|
+
-o, --output_format FORMAT Output format, defaults to -on (no output):
|
211
212
|
-oi Inspect
|
212
213
|
-oj JSON
|
213
214
|
-oJ Pretty JSON
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
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-04-
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- Rakefile
|
99
99
|
- bin/console
|
100
100
|
- bin/setup
|
101
|
+
- copy-help-text
|
101
102
|
- exe/rexe
|
102
103
|
- rexe.gemspec
|
103
104
|
- sample-data/eur_rates.json
|