haml-i18n-extractor 0.0.20 → 0.0.21
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 +8 -8
- data/TODO +4 -1
- data/bin/haml-i18n-extractor +13 -2
- data/lib/haml-i18n-extractor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTUxZGE3Mzk4ZWNhNTQ1NmI2ZmYzOGFkNTc0ZDYxMTM3Y2U3NDY3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTA1MDJlOWZiZmZjZWFkNTFiZmFjOWE3MWI2YzM4ZGIzZmYzZjA4YQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjJiYzFhZWNiZjhkODQxYTU3YTQ3MzhmYjJiY2I4MDA1ZmJjNzJmNTVhMDZi
|
10
|
+
ZGY3ODJlMDc1ZThmM2M1NDJlZWExODZlMzg2YThmMDM2Y2VmZDQ0ZGJlMTU1
|
11
|
+
NmYxNWIyNjgyNzJlNzA3N2JmYTJlMDYzZTE5MDYyNDVlMzQwMmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWVhMGQ0ZmIzZTE5NGI3YWMwYjk4YzFmYzQ1OTdmNjBiNjg5NGU4ZDI5Yjkw
|
14
|
+
OGY3ODA2ZWFkNTYzM2ZhYTJkNzg2MDYyZjFlMjJhNGM4Njk4NTQyZGVmNDU3
|
15
|
+
ZjE4MWY3NjA5YzJmMDRmNzZiODllYTA1MjI5YTcwNDdjNmUxM2E=
|
data/TODO
CHANGED
@@ -3,12 +3,15 @@
|
|
3
3
|
- Remove the ex1.output ex1.i18n-extractor duplication. (or move to tmp dir): Move to test/tmp a-la the way workflow is working.
|
4
4
|
- Add {} to disallowed characters
|
5
5
|
- Add yaml fixtures and compare those
|
6
|
-
- admin/bla should be namespaced such as: en.admin.bla vs just en.bla in the yml file?
|
7
6
|
- Refactor tests: split out what is integration vs unit, too much coupling.
|
8
7
|
- Prompter.new should just be a singleton.
|
9
8
|
- rm hax_shit, move to setup/teardown, shutdown/startup
|
10
9
|
- rm the :overwrite, :dump stuff to UserAction?
|
11
10
|
|
11
|
+
* Issues
|
12
|
+
|
13
|
+
- CLI options: Extractor.new accepts options. pass through workflow. First up: i18n_scope (issue#5)
|
14
|
+
|
12
15
|
* Ideas
|
13
16
|
|
14
17
|
- handled email suffixes (foo.en.html.haml etc)
|
data/bin/haml-i18n-extractor
CHANGED
@@ -5,6 +5,7 @@ require 'haml-i18n-extractor'
|
|
5
5
|
if ARGV.empty?
|
6
6
|
puts "Usage: <haml-i18n-extractor> --version"
|
7
7
|
puts "Usage: <haml-i18n-extractor> [path]"
|
8
|
+
puts "Usage: <haml-i18n-extractor> [filename] --no-prompt"
|
8
9
|
abort
|
9
10
|
end
|
10
11
|
|
@@ -13,5 +14,15 @@ if ARGV[0] == "--version"
|
|
13
14
|
abort
|
14
15
|
end
|
15
16
|
|
16
|
-
|
17
|
-
|
17
|
+
pth = File.expand_path(ARGV[0])
|
18
|
+
|
19
|
+
if File.directory?(pth)
|
20
|
+
workflow = Haml::I18n::Extractor::Workflow.new(pth)
|
21
|
+
workflow.run
|
22
|
+
elsif File.exists?(pth) && ARGV[1] == "--no-prompt"
|
23
|
+
extractor = Haml::I18n::Extractor.new(pth, :type => :overwrite, :prompt_per_line => false)
|
24
|
+
extractor.run
|
25
|
+
elsif File.exists?(pth)
|
26
|
+
extractor = Haml::I18n::Extractor.new(pth, :type => :overwrite, :prompt_per_line => true)
|
27
|
+
extractor.run
|
28
|
+
end
|