Project

yamlook

0.0
No commit activity in last 3 years
No release in over 3 years
Search occurrences of dot-notated yaml keys.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.15.0, < 3.0
>= 5.8

Runtime

~> 3.0
 Project Readme

Yamlook

Yamlook searches for dot-notated yaml keys occurrences in yaml files. It might be handy if you have localization or deep configs and you don't know where one or another value comes from.

For instance you have such code:

<%= link_to t("admin.marketing.reports.some_report.title"), some_report_path(format: "csv") %>

Run yamlook admin.marketing.reports.some_report.title in terminal and it will show up all occurrences of that value in your internationalization yaml files. If you have all the internationalization in one yaml file, you will likely have to specify some root key as well, e.g. yamlook en.admin.marketing.reports.some_report.title.

Installation

$ gem install yamlook

Usage

Run yamlook in terminal with dot-notated yaml keys as argument:

$ yamlook some.deep.key.in.you.yaml.file

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sl4vr/yamlook.

License

The gem is available as open source under the terms of the MIT License.