bibliotech 0.3.0 → 0.3.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/application.rb +7 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b565f226640897459abbea5d80f968910ed3cba
|
4
|
+
data.tar.gz: df5a42aa8b3cca10f0a16bb8f8cab0d50ea777cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a03a1b5712a8d9302d0b269d906612e56d4a479fe821bf9673f38b11cb42ce301f4d87bc119d79318cea40ae60c9126b13939b3a3d6a4abe6a93dc5d11b20e
|
7
|
+
data.tar.gz: 1b6e9cf119ea4fe238e2d2dc1e89a18b7c9f62d1f01068db76e26536f172572312c387ea9bab4ba912e2a8d6b7567ae34dca3a397e3926debca5e9ea624fe77e
|
@@ -6,8 +6,6 @@ require 'bibliotech/logger'
|
|
6
6
|
|
7
7
|
module BiblioTech
|
8
8
|
class Application
|
9
|
-
include Logging
|
10
|
-
|
11
9
|
attr_accessor :config_path, :config_hash
|
12
10
|
attr_writer :shell
|
13
11
|
|
@@ -33,19 +31,19 @@ module BiblioTech
|
|
33
31
|
end
|
34
32
|
|
35
33
|
def config
|
36
|
-
@memos[:config] ||=
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
34
|
+
@memos[:config] ||= Config.new(valise)
|
35
|
+
end
|
36
|
+
|
37
|
+
def log
|
38
|
+
@memos[:log] ||= setup_logger(config)
|
42
39
|
end
|
43
40
|
|
44
41
|
def setup_logger(config)
|
45
42
|
logger = Logger.new(config.log_target)
|
46
43
|
logger.level = config.log_level
|
47
44
|
BiblioTech::Logging.logger = logger
|
48
|
-
|
45
|
+
logger.info("Started logging")
|
46
|
+
logger
|
49
47
|
end
|
50
48
|
|
51
49
|
def commands
|
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.
|
4
|
+
version: 0.3.1
|
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.
|
132
|
+
- bibliotech-0.3.1 Documentation
|
133
133
|
require_paths:
|
134
134
|
- lib/
|
135
135
|
required_ruby_version: !ruby/object:Gem::Requirement
|