dorian-json-all 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/json-all +12 -0
  3. metadata +48 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7240b1bc29ae8d222d3af0d34cebc3d97b789707dc57f480e3275930bdeb1f35
4
+ data.tar.gz: c447b8c2f31782d2031229ae922eedc17bd71555d6994d219c145aa47f389f40
5
+ SHA512:
6
+ metadata.gz: 0a2409c80d9d06579468d05a4fb307ffb9c8ee201f35e16544551a7cb572563b47016727eefdf7e83cc62d0338efeb135fe9585a1029efc9494103bde712c5d6
7
+ data.tar.gz: 9886e86c01b29f8eff36af4c2fddcb462e787ef46190c16d29242adf118d3423077202dbc93f633ea6c3c713c4c985521762a9dd513ded9a3b4ee5fc9b32ee68
data/bin/json-all ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: ... | each CODE"
6
+ exit
7
+ end
8
+
9
+ $stdin.each_line do |it|
10
+ it.strip!
11
+ eval(ARGV.first)
12
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dorian-json-all
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Dorian Marié
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-08-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ Evaluates some code on json-all line of the input
15
+
16
+ e.g. `ls -l | json-all "puts it.split.first"`
17
+ email: dorian@dorianmarie.com
18
+ executables:
19
+ - json-all
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - bin/json-all
24
+ homepage: https://github.com/dorianmariecom/dorian-json-all
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ rubygems_mfa_required: 'true'
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.5.11
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Evaluates some code on json-all line of the input
48
+ test_files: []