dorian-all 0.1.1 → 0.3.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: 86dfa6f157032c72330d7dc47d29cf407541363540ec72bad03e2fad7b1cff38
4
+ data.tar.gz: 40365a4164082fd02b266c97ea3a26a373c80397c72dedbbb03fd88242afdbe8
5
5
  SHA512:
6
- metadata.gz: 8f864c3a93b6c0323be438f7d2525b8881052535208533114282c11edda7b04af4cdd555ec2182cec8b61513debbdd59dcf07215f628810113b5d1a83aa80d46
7
- data.tar.gz: 14b9915156962c085773d3efe7ee7437c70f7a85b8b86967c5bd76e16a77aa379842f5d6d68d4d3499e9aae56a7516c94e8e905ab9344ac6672771ddb9ac0222
6
+ metadata.gz: 21f4495139c276367aa453cc516f4022a4f399bfed37bccf0278d27f33b80fdd83d6832932ad05e33660b01fb15dcd4b2656538c95e175e93d1e3bf554482a9a
7
+ data.tar.gz: 7f51f7690dd4ec85b38b6e6b4b152d4914dbf9db943a5892974240d5a01ef5b213c09e9639060a697a8540a80ad0123a2ae0987e24829eb169827f4aa5a58f6c
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.3.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[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