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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07e130f15c7d64d6bd751f7663a913adb30a5551
4
- data.tar.gz: efc5d69b6b40c211c0959020bfaf7ab46044ec56
3
+ metadata.gz: 2b565f226640897459abbea5d80f968910ed3cba
4
+ data.tar.gz: df5a42aa8b3cca10f0a16bb8f8cab0d50ea777cc
5
5
  SHA512:
6
- metadata.gz: 95ac9c114a022bbbda10710e62a4f9191aa242f7f9c4b68aa8fd9576424c65309e168bbc5b0ed0e5727477af76be81017cd71ceeca87e2c25cd1488d57e0a2b3
7
- data.tar.gz: 88626b4a157c11e5d4294bfd3aa8a7b730db4f685c5e755a83f87935e27cd42a37b7fc00a44a95be0342489689e68278411b73ccd68d24d17c46d21d0f951a83
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
- begin
38
- Config.new(valise).tap do |config|
39
- setup_logger(config)
40
- end
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
- log.info("Started logging")
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.0
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.0 Documentation
132
+ - bibliotech-0.3.1 Documentation
133
133
  require_paths:
134
134
  - lib/
135
135
  required_ruby_version: !ruby/object:Gem::Requirement