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 +4 -4
- data/lib/bibliotech/config.rb +4 -2
- data/lib/bibliotech/rake_lib.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 761c445f78f11c818de079f0dbb5510d29bed7d9
|
4
|
+
data.tar.gz: d2b39db8989b61e69b8c5bb90b752975b53dbb91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 647303450d28ec294209a89222b21bb8996dff93b2230ff33f52d9a283a9a42d615585bf97623198f4ec058e25f0985352c8d270ee9f8466f51ad913374c76bd
|
7
|
+
data.tar.gz: 66153dd8bbbc16444e0d21b4190646a0ddb7383de587b91005db5011778779e966b8eb4861000ae865019ee05eb5ac51ed2cf809312b46150e3e7ce91e75835b
|
data/lib/bibliotech/config.rb
CHANGED
@@ -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
|
data/lib/bibliotech/rake_lib.rb
CHANGED
@@ -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.
|
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-
|
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.
|
133
|
+
- bibliotech-0.5.1 Documentation
|
134
134
|
require_paths:
|
135
135
|
- lib/
|
136
136
|
required_ruby_version: !ruby/object:Gem::Requirement
|