babelish 0.4.0 → 0.4.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 +8 -8
- data/lib/babelish/commandline.rb +3 -2
- data/lib/babelish/version.rb +1 -1
- metadata +1 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MzU1ODMxMGY0MGFhMWQ3MzZlMjI0N2MwZDNjODlkMTlkYjJlOWQ3ZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDY1Y2E1NjU2YjAzYjJlOTBjMmJmYjhmNWQ1ZmMwYjA3NmViZmY3Nw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZWM2OWNiYmRjYjczZGY5MTUwN2Q0NGJjZDI1ZjdlMjc2M2MzZmU3ZjQ0MDgx
|
|
10
|
+
ZmMzNzkwOGVlNzc3NzMyNzk5YmViOWQyZTUzOTgzNzUzYTAyOTEzYTAzNmNl
|
|
11
|
+
NzNkZDhiNjU3OTkxNGU1NWQ2YWI1ZjY4NDRlNWRlZGY2N2Y5ZDY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MWVlYWQ5NDljOTEyMTk5M2EwOTM0OWZlZjYwODJhNWMzYzllNjFkMDZmMThk
|
|
14
|
+
OGQzYmIyNzBlOTJjOTYxNGU5YzIwOTJhMDQ2ZjM4MjNjMGEyNDZlODE1NjBh
|
|
15
|
+
MjMyZDk0ZGEwMDNmZmMzNjA1MTc1OWQ4YTA1NTY0NTI5MzM5MTI=
|
data/lib/babelish/commandline.rb
CHANGED
|
@@ -2,6 +2,7 @@ require 'thor'
|
|
|
2
2
|
class Commandline < Thor
|
|
3
3
|
include Thor::Actions
|
|
4
4
|
class_option :verbose, :type => :boolean
|
|
5
|
+
class_option :config, :type => :string, :aliases => "-c", :desc => "Read configuration from given file", :default => ".babelish"
|
|
5
6
|
map "-v" => :version
|
|
6
7
|
|
|
7
8
|
CSVCLASSES = [
|
|
@@ -175,8 +176,8 @@ class Commandline < Thor
|
|
|
175
176
|
|
|
176
177
|
def options
|
|
177
178
|
original_options = super
|
|
178
|
-
return original_options unless File.exists?("
|
|
179
|
-
defaults = ::YAML.load_file("
|
|
179
|
+
return original_options unless File.exists?(original_options["config"])
|
|
180
|
+
defaults = ::YAML.load_file(original_options["config"]) || {}
|
|
180
181
|
Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options))
|
|
181
182
|
end
|
|
182
183
|
end
|
data/lib/babelish/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: babelish
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- François Benaiteau
|
|
@@ -240,4 +240,3 @@ signing_key:
|
|
|
240
240
|
specification_version: 4
|
|
241
241
|
summary: CSV converter for localization files
|
|
242
242
|
test_files: []
|
|
243
|
-
has_rdoc:
|