aigu 0.3 → 0.3.1
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 +4 -4
- data/lib/aigu/cli.rb +4 -4
- data/lib/aigu/exporter.rb +2 -2
- data/lib/aigu/importer.rb +2 -2
- data/lib/aigu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b973b5aa391a17f4dc4d001e5a8ab7e0a286b32
|
4
|
+
data.tar.gz: 6d38f76e465218a22923333650a7e30650a27c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22e775bce2767935d0a5f260dd1f8e7a7ca4d6eea1dce18a6c2bff6ca4dfde13fe2b4711cd38bb7f828ec4041b62a4f0b361ca4ecf3616cf51d486a580697d63
|
7
|
+
data.tar.gz: 07c4cb7b0708431a4a38f3c399451121ee8f8c8287a16ca980a6ff80ea5f2c0f70f6a307d5d7295fda0d9b2b5fbfaa79cf03dce3355d09495ccab615b711378a
|
data/lib/aigu/cli.rb
CHANGED
@@ -49,19 +49,19 @@ module Aigu
|
|
49
49
|
opts.banner = 'Usage: aigu [options]'
|
50
50
|
|
51
51
|
opts.on('--input-directory=', 'The directory in which the Rails YAML localization files are stored.') do |directory|
|
52
|
-
options[:
|
52
|
+
options[:'input-directory'] = directory
|
53
53
|
end
|
54
54
|
|
55
55
|
opts.on('--output-directory=', 'The directory in which the Rails YAML localization files will be generated.') do |directory|
|
56
|
-
options[:
|
56
|
+
options[:'output-directory'] = directory
|
57
57
|
end
|
58
58
|
|
59
59
|
opts.on('--input-file=', 'The JSON file generated by Accent.') do |file|
|
60
|
-
options[:
|
60
|
+
options[:'input-file'] = file
|
61
61
|
end
|
62
62
|
|
63
63
|
opts.on('--output-file=', 'The JSON file that will be generated for Accent.') do |file|
|
64
|
-
options[:
|
64
|
+
options[:'output-file'] = file
|
65
65
|
end
|
66
66
|
|
67
67
|
opts.on('--locale=', 'The locale to use. Files will be processed/generated using the "<file>.<locale>.yml" pattern.') do |locale|
|
data/lib/aigu/exporter.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Aigu
|
2
2
|
class Exporter
|
3
3
|
def initialize(opts = {})
|
4
|
-
@output_file = opts[:
|
5
|
-
@input_directory = opts[:
|
4
|
+
@output_file = opts[:'output-file']
|
5
|
+
@input_directory = opts[:'input-directory']
|
6
6
|
@locale = opts[:locale]
|
7
7
|
@ignore = opts[:ignore]
|
8
8
|
end
|
data/lib/aigu/importer.rb
CHANGED
@@ -3,8 +3,8 @@ module Aigu
|
|
3
3
|
ARRAY_REGEX = /___KEY___(?<index>\d+)$/
|
4
4
|
|
5
5
|
def initialize(opts = {})
|
6
|
-
@input_file = opts[:
|
7
|
-
@output_directory = opts[:
|
6
|
+
@input_file = opts[:'input-file']
|
7
|
+
@output_directory = opts[:'output-directory']
|
8
8
|
@locale = opts[:locale]
|
9
9
|
end
|
10
10
|
|
data/lib/aigu/version.rb
CHANGED