dorian-each 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d899fea4d6ff935455cfe1e55204f6cd1163e8aae3eb09444aaf4d4ce001132a
4
- data.tar.gz: 8878217e2f40de46337b88cf1423693b34d5c8f5b8225b66ff6a6327a8f796cf
3
+ metadata.gz: 845c92960d2b59f826aa3b4e7c004519a74c68ce2df063c1269c660cb83a7e5c
4
+ data.tar.gz: ad41c4fe64dd7656a2a91dd648d4c629ef0d2de1d523b9f74f6b5cf746e71eff
5
5
  SHA512:
6
- metadata.gz: 87f095d0566521e47c5829326dcd02ee501f09c17ab3a46624d268822f53bd6608cf17464c5be419c4fdb5c866ddb4a416e80216f113e6bef5013420f68a9778
7
- data.tar.gz: 94b493a3eacbdf681ee79826ec5b57bf8c383e88008ac3f6a28b87dd3015b22255d33f9038789403d9620dd9950f505a8b768bb1f66473fa7b7d0aa2cdb11ede
6
+ metadata.gz: 00c4c38338531668b2474bded1739fa4bdfc950d4e3509e948d72824a040001752c7abfa67dbba110be25ad6a220c19f335082d4c1e355a5922ab87f14bb2f2f
7
+ data.tar.gz: a03942ebbaa10730192cd956e363565164f56c1d7a60350ca0dfd5d36d40e4a144b7a1cd8102c8a33cd779d57e66842e42a1155d747fcbf3be05eb90fbac782d
File without changes
data/lib/dorian/each.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Dorian
2
2
  class Each
3
3
  def self.run
4
- if ARGV.size != 1
5
- puts "USAGE: dorian-each CODE"
4
+ if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: ... | each CODE"
6
6
  exit
7
7
  end
8
8
 
metadata CHANGED
@@ -1,28 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-each
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-08 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: e.g. `ls -l | dorian-each "puts l.split.first"`
13
+ description: |-
14
+ Evaluates some code on each line of the input
15
+
16
+ e.g. `ls -l | each "puts l.split.first"`
14
17
  email: dorian@dorianmarie.fr
15
18
  executables:
16
- - dorian-each
19
+ - each
17
20
  extensions: []
18
21
  extra_rdoc_files: []
19
22
  files:
20
- - bin/dorian-each
23
+ - bin/each
21
24
  - lib/dorian/each.rb
22
25
  homepage: https://github.com/dorianmariefr/each
23
26
  licenses:
24
27
  - MIT
25
- metadata: {}
28
+ metadata:
29
+ rubygems_mfa_required: 'true'
26
30
  post_install_message:
27
31
  rdoc_options: []
28
32
  require_paths:
@@ -38,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
42
  - !ruby/object:Gem::Version
39
43
  version: '0'
40
44
  requirements: []
41
- rubygems_version: 3.2.19
45
+ rubygems_version: 3.2.22
42
46
  signing_key:
43
47
  specification_version: 4
44
48
  summary: Evaluates some code on each line of the input