flatito 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +8 -1
- data/exe/flatito +0 -1
- data/lib/flatito/print_items.rb +1 -0
- data/lib/flatito/renderer.rb +1 -1
- data/lib/flatito/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a906047322b5ee01c3e8fe05e16d4ad9155032ad2d6ffa1756270de8f3339a2
|
|
4
|
+
data.tar.gz: 07d41acd512f19c0c0b0c03cd3be90261faada0789dc3db66c4f9b4fefc0c1be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3be43b0a5232da51a840cf9cc5b79de24dc0159af605255552299a4bd988f6ec1e9b1a2d2df0d1c450df0d354a8bb8f43d9c9f257cc02307be20a77352de0a0d
|
|
7
|
+
data.tar.gz: 7e04d4621eee22bac06148cad9cebf83de29b1b3d299bd0cd5c162a797c447e6ae922f903784ecfc8678781121852593326d21f07545528b2d64237db15e5578
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ A kind of grep for YAML and JSON files. It allows you to search for a key and ge
|
|
|
6
6
|
|
|
7
7
|
## Meaning
|
|
8
8
|
|
|
9
|
-
[Esperanto](https://en.wiktionary.org/wiki/flatito): singular past nominal passive participle of flati.
|
|
9
|
+
[Esperanto](https://en.wiktionary.org/wiki/flatito): singular past nominal passive participle of flati ('to flatter').
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -18,6 +18,13 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
|
18
18
|
|
|
19
19
|
$ gem install flatito
|
|
20
20
|
|
|
21
|
+
### Nixpkgs package
|
|
22
|
+
|
|
23
|
+
It is also available as [nixpkgs](https://search.nixos.org/packages?channel=unstable&show=flatito) thanks to [@Rucadi](https://github.com/Rucadi)
|
|
24
|
+
|
|
25
|
+
$ nix run nixpkgs#flatito
|
|
26
|
+
|
|
27
|
+
|
|
21
28
|
## Usage
|
|
22
29
|
|
|
23
30
|
```sh
|
data/exe/flatito
CHANGED
data/lib/flatito/print_items.rb
CHANGED
data/lib/flatito/renderer.rb
CHANGED
|
@@ -60,7 +60,7 @@ module Flatito
|
|
|
60
60
|
def matched_string(string)
|
|
61
61
|
return string if search.nil? || no_color?
|
|
62
62
|
|
|
63
|
-
regex.match(string).to_a
|
|
63
|
+
regex.match(string).to_a.each do |match|
|
|
64
64
|
string = string.gsub(/#{match}/, match.colorize(:light_red))
|
|
65
65
|
end
|
|
66
66
|
string
|
data/lib/flatito/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flatito
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- José Galisteo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: colorize
|
|
@@ -58,7 +57,6 @@ metadata:
|
|
|
58
57
|
homepage_uri: https://github.com/ceritium/flatito
|
|
59
58
|
source_code_uri: https://github.com/ceritium/flatito
|
|
60
59
|
rubygems_mfa_required: 'true'
|
|
61
|
-
post_install_message:
|
|
62
60
|
rdoc_options: []
|
|
63
61
|
require_paths:
|
|
64
62
|
- lib
|
|
@@ -73,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
73
71
|
- !ruby/object:Gem::Version
|
|
74
72
|
version: '0'
|
|
75
73
|
requirements: []
|
|
76
|
-
rubygems_version:
|
|
77
|
-
signing_key:
|
|
74
|
+
rubygems_version: 4.0.3
|
|
78
75
|
specification_version: 4
|
|
79
76
|
summary: Grep for YAML and JSON files
|
|
80
77
|
test_files: []
|