aigu 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f34d9e639e54249277066684afa8210846b03c2a
4
- data.tar.gz: b43f7b175e500d47cd191376e119045800017bab
3
+ metadata.gz: 6b973b5aa391a17f4dc4d001e5a8ab7e0a286b32
4
+ data.tar.gz: 6d38f76e465218a22923333650a7e30650a27c14
5
5
  SHA512:
6
- metadata.gz: 1a572a3c4e084f373cf129d51ba89993b3e593a5acc604142180f0e861c44dd9069400b8e9fd3c7799016af2e8eea3e5a46fc7b3bbc2efee0a0d460b1003426d
7
- data.tar.gz: 5716103f5a1a65685b52e54e6aa780c1a472ea605fc2df0032a200b08c8cb26bb0becf6261ae1d9c219fd94ee6c47d17ed89b7c52a0630aac8bfa15512a3e0e6
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[:input_directory] = directory
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[:output_directory] = directory
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[:input_file] = file
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[:output_file] = file
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[:output_file]
5
- @input_directory = opts[:input_directory]
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[:input_file]
7
- @output_directory = opts[:output_directory]
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
@@ -1,3 +1,3 @@
1
1
  module Aigu
2
- VERSION = '0.3'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aigu
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost