yerba 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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +12 -0
- data/exe/yerba +6 -0
- data/lib/yerba/version.rb +5 -0
- data/lib/yerba.rb +6 -0
- data/sig/yerba.rbs +3 -0
- data/yerba.gemspec +43 -0
- metadata +56 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: c08b7856bb2b32202e93b0b4eea2fc7c71042d21e89d4d3c017d79ba9a9f7061
|
|
4
|
+
data.tar.gz: 6a94420f78812a624126ec21780f23e4055ec9f8774ab8a66c122da2dd79cb43
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b3383aed6b4bbc105c47bb7d2bc1ba1aab533e08700233ecbc0a74af755a7ad0a133806c84462cdbe6a0b81c64ef775511f587638d98fd32c04d80317127ba01
|
|
7
|
+
data.tar.gz: 32fb5df0480c8b4a91b742012fd5267f637eb1ff39193a16453ec679839221ed1e47576fe49193a3ed474956dd75ae677380e69e5b56749b671d67e16a620481
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marco Roth
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<h2 align="center">🧉 Yerba</h2>
|
|
2
|
+
|
|
3
|
+
<h4 align="center"><u>Y</u>AML <u>E</u>diting and <u>R</u>efactoring with <u>B</u>etter <u>A</u>ccuracy</h4>
|
|
4
|
+
|
|
5
|
+
<div align="center">A CLI tool for editing YAML while preserving structure, comments, and format.</div><br/>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://rubygems.org/gems/yerba"><img alt="Gem Version" src="https://img.shields.io/gem/v/yerba"></a>
|
|
9
|
+
<a href="https://crates.io/crates/yerba"><img alt="Crates.io Version" src="https://img.shields.io/crates/v/yerba"></a>
|
|
10
|
+
<a href="https://github.com/marcoroth/yerba/blob/main/LICENSE.txt"><img alt="License" src="https://img.shields.io/github/license/marcoroth/yerba"></a>
|
|
11
|
+
<a href="https://github.com/marcoroth/yerba/issues"><img alt="Issues" src="https://img.shields.io/github/issues/marcoroth/yerba"></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<br/>
|
|
15
|
+
|
|
16
|
+
### What is Yerba?
|
|
17
|
+
|
|
18
|
+
**Yerba** is a lossless YAML editing tool that lets you programmatically modify YAML files while preserving their original structure, comments, and formatting.
|
|
19
|
+
|
|
20
|
+
### Command-Line Usage
|
|
21
|
+
|
|
22
|
+
Install the Yerba gem via RubyGems:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
gem install yerba
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Examples
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
yerba set config.yml path.to.key value
|
|
32
|
+
yerba get config.yml path.to.key
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Development
|
|
36
|
+
|
|
37
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
|
|
38
|
+
|
|
39
|
+
### Rust
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cd rust
|
|
43
|
+
cargo build
|
|
44
|
+
cargo test
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### License
|
|
48
|
+
|
|
49
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/exe/yerba
ADDED
data/lib/yerba.rb
ADDED
data/sig/yerba.rbs
ADDED
data/yerba.gemspec
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require_relative "lib/yerba/version"
|
|
5
|
+
rescue LoadError
|
|
6
|
+
puts "WARNING: Could not load Yerba::VERSION"
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
Gem::Specification.new do |spec|
|
|
10
|
+
spec.name = "yerba"
|
|
11
|
+
spec.version = defined?(Yerba::VERSION) ? Yerba::VERSION : "0.0.0"
|
|
12
|
+
spec.authors = ["Marco Roth"]
|
|
13
|
+
spec.email = ["marco.roth@intergga.ch"]
|
|
14
|
+
|
|
15
|
+
spec.summary = "YAML Editing and Refactoring with Better Accuracy"
|
|
16
|
+
spec.description = "A CLI tool for editing YAML while preserving structure, comments, and format."
|
|
17
|
+
spec.homepage = "https://github.com/marcoroth/yerba"
|
|
18
|
+
spec.license = "MIT"
|
|
19
|
+
|
|
20
|
+
spec.required_ruby_version = ">= 3.2.0"
|
|
21
|
+
spec.require_paths = ["lib"]
|
|
22
|
+
|
|
23
|
+
spec.files = Dir[
|
|
24
|
+
"yerba.gemspec",
|
|
25
|
+
"LICENSE.txt",
|
|
26
|
+
"Rakefile",
|
|
27
|
+
"README.md",
|
|
28
|
+
"lib/**/*.rb",
|
|
29
|
+
"sig/**/*.rbs",
|
|
30
|
+
"exe/*"
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
spec.bindir = "exe"
|
|
34
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
35
|
+
|
|
36
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
37
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
38
|
+
|
|
39
|
+
spec.metadata["homepage_uri"] = "https://github.com/marcoroth/yerba"
|
|
40
|
+
spec.metadata["changelog_uri"] = "https://github.com/marcoroth/yerba/releases"
|
|
41
|
+
spec.metadata["source_code_uri"] = "https://github.com/marcoroth/yerba"
|
|
42
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/marcoroth/yerba/issues"
|
|
43
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: yerba
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Marco Roth
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: A CLI tool for editing YAML while preserving structure, comments, and
|
|
13
|
+
format.
|
|
14
|
+
email:
|
|
15
|
+
- marco.roth@intergga.ch
|
|
16
|
+
executables:
|
|
17
|
+
- yerba
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE.txt
|
|
22
|
+
- README.md
|
|
23
|
+
- Rakefile
|
|
24
|
+
- exe/yerba
|
|
25
|
+
- lib/yerba.rb
|
|
26
|
+
- lib/yerba/version.rb
|
|
27
|
+
- sig/yerba.rbs
|
|
28
|
+
- yerba.gemspec
|
|
29
|
+
homepage: https://github.com/marcoroth/yerba
|
|
30
|
+
licenses:
|
|
31
|
+
- MIT
|
|
32
|
+
metadata:
|
|
33
|
+
allowed_push_host: https://rubygems.org
|
|
34
|
+
rubygems_mfa_required: 'true'
|
|
35
|
+
homepage_uri: https://github.com/marcoroth/yerba
|
|
36
|
+
changelog_uri: https://github.com/marcoroth/yerba/releases
|
|
37
|
+
source_code_uri: https://github.com/marcoroth/yerba
|
|
38
|
+
bug_tracker_uri: https://github.com/marcoroth/yerba/issues
|
|
39
|
+
rdoc_options: []
|
|
40
|
+
require_paths:
|
|
41
|
+
- lib
|
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 3.2.0
|
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
- - ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
52
|
+
requirements: []
|
|
53
|
+
rubygems_version: 4.0.6
|
|
54
|
+
specification_version: 4
|
|
55
|
+
summary: YAML Editing and Refactoring with Better Accuracy
|
|
56
|
+
test_files: []
|