media_archiver 0.0.7.3 → 0.0.7.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a59903922658db34b8008cdf9472f38ad10ce19
4
- data.tar.gz: 1b2b4e47c9f794cf7b1c15238ce9f6bd60154bf9
3
+ metadata.gz: 04b93847882efe374b7a866c5fe23e9ce04cd51f
4
+ data.tar.gz: 2ea2780d6d0d30f6b7ff4b2c81b155278e41a3ea
5
5
  SHA512:
6
- metadata.gz: d4ba4254d37b130d32d54594ae6eb9781aaad39ed1036bede45ef7248e1da7088b44aa0989abdc9d860fa36b0f85d404113dca7c6dec34da8cf62188ebacf283
7
- data.tar.gz: c9ba29b30a73fe8bd545f8c69cc49dff21176210368073c71a322207dad401dd01f25ebf7cdd33502ce4bbccb5da9ba69b7faca1b94eecd65bbfe17b3b70db85
6
+ metadata.gz: 2060edd130553c3f20bf9e336c51b769482079e09c4e9d091351b80395de2cff130b7b02374c5a7d9f97116d2dc11b5cf09596431540df1cd4378cbe9852eee9
7
+ data.tar.gz: 53ea5eb281e05d2c53d1d4bd953092d533c0e84ec9f8e6cfd2c66ea6ee1ea24c3ff4f5c4f1f6ac4ac89f5217315d84dcfbb30859d26bfaa4dd1599fbf582c03d
@@ -16,7 +16,7 @@ module MediaArchiver
16
16
  method_option :recursive, aliases: :r, type: :boolean, default: true, desc: "Recursivelly scan input folder"
17
17
  method_option :output_template
18
18
  method_option :configuration_file, aliases: :c
19
- method_option :overwrite_extensions, type: :array, default: []
19
+ method_option :overwrite_extensions, type: :array
20
20
  def copy(path = Dir.pwd)
21
21
  config = configurations(options)
22
22
 
@@ -49,7 +49,8 @@ module MediaArchiver
49
49
  conf = system_configurations.merge symbolize_keys!(options)
50
50
 
51
51
  # Defaults that we don't want to set via Thor
52
- conf[:output_template] = DEFAULT_OUTPUT_TEMPLATE unless conf[:output_template]
52
+ conf[:output_template] ||= DEFAULT_OUTPUT_TEMPLATE
53
+ conf[:overwrite_extensions] ||= []
53
54
 
54
55
  # Sanity checks
55
56
  conf[:output_dir] = File.expand_path(conf[:output_dir]) if conf[:output_dir]
@@ -1,3 +1,3 @@
1
1
  module MediaArchiver
2
- VERSION = "0.0.7.3"
2
+ VERSION = "0.0.7.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: media_archiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.3
4
+ version: 0.0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ramalho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler