dorian-all 0.1.1 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45c4a436da777e7aa764ba4d89acaf511fa43f7253c87b6b47912280522b86bc
4
- data.tar.gz: ec3399c93eff8b0e485a4d916cfa8950aa891b7733f70decef3dd16c731b0a46
3
+ metadata.gz: f9b7b1432af29defa8bf267ab7522e3ed121da0aeb0df16bbf4e399727d623b5
4
+ data.tar.gz: 8713286fd5d973f41fbe408cb68f16c07bae36150ef30169772192763cf403c0
5
5
  SHA512:
6
- metadata.gz: 8f864c3a93b6c0323be438f7d2525b8881052535208533114282c11edda7b04af4cdd555ec2182cec8b61513debbdd59dcf07215f628810113b5d1a83aa80d46
7
- data.tar.gz: 14b9915156962c085773d3efe7ee7437c70f7a85b8b86967c5bd76e16a77aa379842f5d6d68d4d3499e9aae56a7516c94e8e905ab9344ac6672771ddb9ac0222
6
+ metadata.gz: 0d4f9d0bd4bd74a4fb0e7997642410ab5a4f091b800b9c4db040a005590b74e94e70427ba3a20bbd662904461106665de12e2571a2c2f3586fdda6fec4cc776d
7
+ data.tar.gz: 045acaacac6700a241a3422cf12300f186b79ad39cac772b53e0bea28ce2395dc372a1569504f48095f73fe6e49f9ff9b81751db507009fe873a72df89dc079c
File without changes
data/lib/dorian/all.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Dorian
2
2
  class All
3
3
  def self.run
4
- if ARGV.size != 1
5
- puts "USAGE: dorian-all CODE"
4
+ if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: ... | all 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-all
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
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-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: e.g. `ls -l | dorian-each "puts l.split[4]" | dorian-all "puts lines.map(&:to_i).sum"`
13
+ description: |-
14
+ Evaluates some code on all lines of the input
15
+
16
+ e.g. `ls -l | each "puts l.split[4]" | all "puts lines.map(&:to_i).sum"`
14
17
  email: dorian@dorianmarie.fr
15
18
  executables:
16
- - dorian-all
19
+ - all
17
20
  extensions: []
18
21
  extra_rdoc_files: []
19
22
  files:
20
- - bin/dorian-all
23
+ - bin/all
21
24
  - lib/dorian/all.rb
22
25
  homepage: https://github.com/dorianmariefr/all
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 all lines of the input