bibliotech 0.3.1 → 0.3.2

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: 2b565f226640897459abbea5d80f968910ed3cba
4
- data.tar.gz: df5a42aa8b3cca10f0a16bb8f8cab0d50ea777cc
3
+ metadata.gz: 690fcaf4bdcb23d62cdbde63f6765e4b3d43c07b
4
+ data.tar.gz: b34213d9b89e14fa12bc0bd13113b88e2ef3a869
5
5
  SHA512:
6
- metadata.gz: 16a03a1b5712a8d9302d0b269d906612e56d4a479fe821bf9673f38b11cb42ce301f4d87bc119d79318cea40ae60c9126b13939b3a3d6a4abe6a93dc5d11b20e
7
- data.tar.gz: 1b6e9cf119ea4fe238e2d2dc1e89a18b7c9f62d1f01068db76e26536f172572312c387ea9bab4ba912e2a8d6b7567ae34dca3a397e3926debca5e9ea624fe77e
6
+ metadata.gz: 0d7b36605be4d66e5de21698bea201607aec9aa6f3a099c1d3481fbd3e7173b246a4ce432b526755efee4e1295993f60d586991292b0a46e42a416230eb6f5ff
7
+ data.tar.gz: f2b891a399a6e8c8612a4b46bfdd7945d2583f635c30fc3206439903a3d0cafbf7a5bbc378e3f02cbc868c9957e8a1ca5aca1099c89ca685d5c1440ecb84a0b8
@@ -9,7 +9,8 @@ module BiblioTech
9
9
  attr_accessor :config_path, :config_hash
10
10
  attr_writer :shell
11
11
 
12
- def initialize
12
+ def initialize(config = nil)
13
+ @configs = config || {}
13
14
  @memos = {}
14
15
  @shell = Caliph.new
15
16
  @config_path = %w{/etc/bibliotech /usr/share/bibliotech ~/.bibliotech ./.bibliotech ./config/bibliotech}
@@ -31,7 +32,7 @@ module BiblioTech
31
32
  end
32
33
 
33
34
  def config
34
- @memos[:config] ||= Config.new(valise)
35
+ @memos[:config] ||= Config.new(valise).merge(@configs)
35
36
  end
36
37
 
37
38
  def log
@@ -5,7 +5,7 @@ module BiblioTech
5
5
  class CLI < Thor
6
6
  desc "latest", "Outputs the latest DB dump available locally"
7
7
  def latest
8
- app = App.new
8
+ app = App.new(:log => { :target => "/dev/null" })
9
9
  puts app.latest
10
10
  end
11
11
 
@@ -39,7 +39,7 @@ module BiblioTech
39
39
  options = config.merge(options || {})
40
40
  local_path = options.local_file(filename)
41
41
  cmd("mkdir") do |cmd|
42
- cmd.options << "--parents"
42
+ cmd.options << "-p" #ok Mac OS X doesn't have --parents in its mkdir
43
43
  cmd.options << File::dirname(local_path)
44
44
  end & cmd("scp") do |cmd|
45
45
  options.optionally{ cmd.options << "-i #{options.id_file(remote)}" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliotech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Dorn
@@ -129,7 +129,7 @@ rdoc_options:
129
129
  - --main
130
130
  - doc/README
131
131
  - --title
132
- - bibliotech-0.3.1 Documentation
132
+ - bibliotech-0.3.2 Documentation
133
133
  require_paths:
134
134
  - lib/
135
135
  required_ruby_version: !ruby/object:Gem::Requirement