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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ese +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1cd3880a86e4719d542ceeddc30057bdb946414
4
- data.tar.gz: 91733c7b6715bd6a3360384422f59aabb7bb5671
3
+ metadata.gz: 900d05d3f9a47f94c18449833d9b5153fb93ae61
4
+ data.tar.gz: 18c5e37337277eed001b5634d00fe4b9fa8d1dae
5
5
  SHA512:
6
- metadata.gz: 7336d042ff72092261f2f5dbb98a02828ebf82b051b42302b8e9643b00fac9fdeeb2eae46ce22c5f42e889c10a8b6a595a30c139ffa5f993a88f244588813cd1
7
- data.tar.gz: df3f08912851c7f5828f18b4f25dd0d94e072bdc549d23973d2553691145013e9fc8e8b8b7a8770be7506c2ec65793a94dab2ca7342e2286db4aa716ea6f68eb
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(--x):
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 and puts(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.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: {}