ese 1.1 → 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/bin/ese +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 900d05d3f9a47f94c18449833d9b5153fb93ae61
|
|
4
|
+
data.tar.gz: 18c5e37337277eed001b5634d00fe4b9fa8d1dae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e688a97e0df38a4d377dcc0f026d5997a214e940ec59f07cccb00cd9eb0716bdb6472b461692345853353c0dc7623666dd56b903496bf286e91dbdf969a84475
|
|
7
|
+
data.tar.gz: da3c0020a2711bb7a1739445ca43e0fc0a5fd41ba1ddf5efe11fec5d447a58b43c6dff2c48517c97b423bce00bc45f30d7651404c51b3c59ac51781be73cea3d
|
data/bin/ese
CHANGED
|
@@ -13,7 +13,7 @@ EXPLANATION OF COMMANDS
|
|
|
13
13
|
~> ese -i '/foo$/' test.txt
|
|
14
14
|
# print all lines of test.txt ending with "foo"
|
|
15
15
|
|
|
16
|
-
exclude(
|
|
16
|
+
exclude(-x):
|
|
17
17
|
print all lines not matching REGEXP
|
|
18
18
|
~> ese exclude '/^bar.*baz$/i' test.txt
|
|
19
19
|
# don't print the lines of test.txt starting
|
|
@@ -109,7 +109,7 @@ while (l=gets)
|
|
|
109
109
|
|
|
110
110
|
when :find
|
|
111
111
|
m = l.match($REGEX)
|
|
112
|
-
m
|
|
112
|
+
m&&(m.to_a.length>1 ? puts(m.to_a[1]) : puts(m))
|
|
113
113
|
|
|
114
114
|
when :sub
|
|
115
115
|
larr = [l]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ese
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sesshomariu
|
|
@@ -18,7 +18,7 @@ extensions: []
|
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
20
|
- bin/ese
|
|
21
|
-
homepage:
|
|
21
|
+
homepage: https://gist.github.com/sesshomariu/05e71ebafea4360a2b74dc19fd2faf8b
|
|
22
22
|
licenses:
|
|
23
23
|
- GPL-3.0
|
|
24
24
|
metadata: {}
|