dorian-yaml-map 0.0.1

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 +7 -0
  2. data/bin/yaml-map +12 -0
  3. metadata +48 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4ac0c5a208a612ebf92f989d4cc4c78e09de1117712f44dce1c1391a168e4dc5
4
+ data.tar.gz: e5b374a182199d53a1a54060d13ce5578b04536d0625fd25f795fed450e503d1
5
+ SHA512:
6
+ metadata.gz: 8f6058f8a112a9cbb75ec27f6db147c5706a8b5a7ccb8e5245e6c8b2d98c1ace5489edcd310f911d6de7cc16335a9a12196833efaf949905eb499d5178677ee6
7
+ data.tar.gz: e5bea0a62d2832891894e05cd1591b01538742848c3badba737f0cb534fca00ed165afe391f1feaa4593f72c8afcd1dfe4db1a2f11b640e8f17c5646a08afb56
data/bin/yaml-map 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-yaml-map
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 yaml-map line of the input
15
+
16
+ e.g. `ls -l | yaml-map "puts it.split.first"`
17
+ email: dorian@dorianmarie.com
18
+ executables:
19
+ - yaml-map
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - bin/yaml-map
24
+ homepage: https://github.com/dorianmariecom/dorian-yaml-map
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 yaml-map line of the input
48
+ test_files: []