babelish 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTYwYjA5YzUyN2Q2YTQ1YjZjMjljMmU3ZGNlYTgxODFhYzY4NjYyMg==
4
+ MzU1ODMxMGY0MGFhMWQ3MzZlMjI0N2MwZDNjODlkMTlkYjJlOWQ3ZQ==
5
5
  data.tar.gz: !binary |-
6
- NjkyYzg1ODVmYTUyNDdiNThmNTFiMjM2OWRmM2U4ZGRjOTIyNjdjZg==
6
+ ZDY1Y2E1NjU2YjAzYjJlOTBjMmJmYjhmNWQ1ZmMwYjA3NmViZmY3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTJiOGU1MGNhYmQ5OTI1NjZkM2JmNTcyYTRhY2M4ZGRjNzUyZDk1ZTQ4NjQ1
10
- NzM1ZTUzNzIxZjNmMzQ1OTZjMTA4MjU1MDkwOGYwZTg1MDdhYjU0MzA3Njhk
11
- OTNkOTc2MTc0MDQ1NTFmZjExOTFiOTkzZjNjN2Y5MjBlZTYxOTE=
9
+ ZWM2OWNiYmRjYjczZGY5MTUwN2Q0NGJjZDI1ZjdlMjc2M2MzZmU3ZjQ0MDgx
10
+ ZmMzNzkwOGVlNzc3NzMyNzk5YmViOWQyZTUzOTgzNzUzYTAyOTEzYTAzNmNl
11
+ NzNkZDhiNjU3OTkxNGU1NWQ2YWI1ZjY4NDRlNWRlZGY2N2Y5ZDY=
12
12
  data.tar.gz: !binary |-
13
- M2FlYmFlNzIzYTQ2YzVhYzU5ZTMyYWM0MmNmNDk1Mjg0Zjk2NmRmZDJmMjBk
14
- NDNhM2UyZGNkZDA3MzM3YjI3NWM0ZDk1YTQzZDFjYTM1MGY4ZmZmZWIxYmJi
15
- YThmMDI1YWI2Yjk1YjFlNzVlN2RhMWI3Y2NlNGM5Zjk4MWExZjg=
13
+ MWVlYWQ5NDljOTEyMTk5M2EwOTM0OWZlZjYwODJhNWMzYzllNjFkMDZmMThk
14
+ OGQzYmIyNzBlOTJjOTYxNGU5YzIwOTJhMDQ2ZjM4MjNjMGEyNDZlODE1NjBh
15
+ MjMyZDk0ZGEwMDNmZmMzNjA1MTc1OWQ4YTA1NTY0NTI5MzM5MTI=
@@ -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?(".babelish")
179
- defaults = ::YAML.load_file(".babelish") || {}
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
@@ -1,3 +1,3 @@
1
1
  module Babelish
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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: