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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaba984e7f2dd508d7f81eba275c575e3b256e394fbe513ea4620e1ec3631c3b
4
- data.tar.gz: 6614248f57ed83e1e96cc633eca53a0ce5bddb7fe2248173ed0fad2daa64472d
3
+ metadata.gz: 6a906047322b5ee01c3e8fe05e16d4ad9155032ad2d6ffa1756270de8f3339a2
4
+ data.tar.gz: 07d41acd512f19c0c0b0c03cd3be90261faada0789dc3db66c4f9b4fefc0c1be
5
5
  SHA512:
6
- metadata.gz: 9ab83eef1a77f864dff343f33c7570357dae4562be62707f375371e5fb48172357d293420eebeee123927f99ac1ebf54014293824768c2cb4401cbbd9612a864
7
- data.tar.gz: b3013f55f89da75acc3cbc387f97522dc0ebb8082ef40c0d044f395f901207d84fb767fd1ff57dd545c41e246bb8b745f20d996cddf26586ff5efe2122a0e6b6
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
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "bundler/setup"
5
4
  require "flatito"
6
5
  require "optparse"
7
6
 
@@ -3,6 +3,7 @@
3
3
  module Flatito
4
4
  class PrintItems
5
5
  include RegexFromSearch
6
+
6
7
  attr_reader :search
7
8
 
8
9
  def initialize(search)
@@ -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&.each do |match|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flatito
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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: 2024-03-24 00:00:00.000000000 Z
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: 3.5.3
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: []