Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Herbgobbler -f doesn't work #24

Open
ceigel opened this issue Dec 5, 2014 · 3 comments · May be fixed by #27
Open

Herbgobbler -f doesn't work #24

ceigel opened this issue Dec 5, 2014 · 3 comments · May be fixed by #27

Comments

@ceigel
Copy link

ceigel commented Dec 5, 2014

The tool doesn't consider -f flag.

gobble i18n -f app/views/home/home.html.erb
***** HerbGobbler Usage *****

Options
tr8n | i18n : Use the normal rails i18n output format or use tr8n output
-a : Process an entire Rails Code Base
-f : Process a single file

Usage: gobble tr8n -a

@douglasjsellers
Copy link
Owner

This just all got rebuild, can you give it another try?

@camacho
Copy link

camacho commented Feb 25, 2015

I can confirm that that the file argument is not being respected

@thbar
Copy link

thbar commented Aug 20, 2015

This is still happening (both on the gem 0.3.11 and on master, after the rewrite).

The culprit is here.

We have:

path = options[:path] || "."

then later if path is not nil (and it never can be, in this cas), a global parse occurs rather than a single file parse.

@diegode diegode linked a pull request Nov 12, 2015 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants