0.0
A long-lived project that still receives updates
Set of small and standalone utilities in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0.10
~> 11.1, >= 11.1.3
~> 0.7, >= 0.7.1
~> 0.24
~> 0.3, >= 0.3.1
~> 0.1, >= 0.1.25
~> 2.6, >= 2.6.5
~> 13.3, >= 13.3.0
~> 6.5
~> 3.13, >= 3.13.1
~> 1.76, >= 1.76.1

Runtime

~> 2.22, >= 2.22.2
~> 0.6, >= 0.6.1
~> 2.14, >= 2.14.1
~> 1.9, >= 1.9.1
 Project Readme

QuickAndRuby

Gem to group utilities in ruby.

install

gem install quick_and_ruby

bin's

proxy

datetime

Used to manipulate date:

  • allow to compute all increment between 2 dates.
  • allow to compute a date starting form another/now.

Usage:

datetime -o <offset> -i <incr> -f "<format>" <from>|now <to>|now

datetime -o <offset> -i <incr> -f "<format>" <from>|now

epoch

Convert epoch and time.

Usage:

# time to epoch
epoch 2025-01-01T01:01:01.000Z
1735693261

# epoch to time UTC
epoch -u 1735693261
2025-01-01T01:01:01.000Z

# epoch to time (local time zone)
epoch 1735693261
2025-01-01T02:01:01.000+01:00

# time to epoch millis
epoch -m 2025-01-01T01:01:01.123Z
1735693261123

yaml2json

Convert yaml formated string, file or stdin to json format.

usage:

yaml2json file.json
# ... generates file.json

yaml2json 'msg: test'
# {
#   "msg": "test"
# }

echo 'msg: test' | yaml2json
# {
#   "msg": "test"
# }

json2yaml

Convert json formated string, file or stdin to yaml format.

usage:

json2yaml file.json
# ... generates file.yaml

json2yaml '{"msg": "test"}'
# ---
# msg: test

echo '{"msg": "test"}' | json2yaml
# ---
# msg: test