bibliotech 0.5.0 → 0.5.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: b04dc447d4669ffeabae2e9ac1038121ff6f2708
4
- data.tar.gz: 2d77acb36eee2bca70ad337af529675423a498a0
3
+ metadata.gz: 761c445f78f11c818de079f0dbb5510d29bed7d9
4
+ data.tar.gz: d2b39db8989b61e69b8c5bb90b752975b53dbb91
5
5
  SHA512:
6
- metadata.gz: 02fff89fe07d885f4982bb14e740baabf6b0f6f2312e9754f6909dca820e7c5a92085f338be0ef93513d9dbfa960080889461e9f23104dc2317df831f67908fe
7
- data.tar.gz: e025eb2eb129bdfef117968848896a4a249f311986f2779b8d2b9d08c2932daf527161e581f3bdaddef0814a1cdcd257fc9d539e1d3c56a644ad7bae75e0cc25
6
+ metadata.gz: 647303450d28ec294209a89222b21bb8996dff93b2230ff33f52d9a283a9a42d615585bf97623198f4ec058e25f0985352c8d270ee9f8466f51ad913374c76bd
7
+ data.tar.gz: 66153dd8bbbc16444e0d21b4190646a0ddb7383de587b91005db5011778779e966b8eb4861000ae865019ee05eb5ac51ed2cf809312b46150e3e7ce91e75835b
@@ -270,8 +270,10 @@ module BiblioTech
270
270
 
271
271
  def db_get(field)
272
272
  local_get(field)
273
- rescue MissingConfig
274
- app_db_config.fetch(steps_for(field).last)
273
+ rescue MissingConfig => mc
274
+ app_db_config.fetch(steps_for(field).last) do
275
+ raise mc
276
+ end
275
277
  end
276
278
 
277
279
  #@group File management
@@ -44,6 +44,8 @@ module BiblioTech
44
44
  default_namespace :bibliotech
45
45
 
46
46
  def define
47
+ directory app.config.backup_path
48
+
47
49
  in_namespace do
48
50
  namespace :backups do
49
51
  desc "Restore from a named DB backup"
@@ -56,7 +58,7 @@ module BiblioTech
56
58
  app.import(options)
57
59
  end
58
60
 
59
- task :create, [:prefix] do |task, args|
61
+ task :create, [:prefix] => app.config.backup_path do |task, args|
60
62
  options = {}
61
63
  unless args[:prefix].nil?
62
64
  options[:backups] = {:prefix => args[:prefix]}
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Dorn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-19 00:00:00.000000000 Z
12
+ date: 2015-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caliph
@@ -130,7 +130,7 @@ rdoc_options:
130
130
  - --main
131
131
  - doc/README
132
132
  - --title
133
- - bibliotech-0.5.0 Documentation
133
+ - bibliotech-0.5.1 Documentation
134
134
  require_paths:
135
135
  - lib/
136
136
  required_ruby_version: !ruby/object:Gem::Requirement