pps_commons 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pps_commons/version.rb +1 -1
- data/lib/pps_commons.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb804d63b45ccf5d00be8491552e0d0948ea6db
|
4
|
+
data.tar.gz: d3fa064193900f0ded430ca19d24a05468dd853e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d03845bde0b3d375a6dbe819c07a12233f257c0777854769aa9fd187d920c4cf9a343d11d1ee81ac6ccc6b7893f4febfbb7df7f0a488cf038c85273285a21d0
|
7
|
+
data.tar.gz: bc9288ca2c609e5572fdcf7d3fcee0d3e95fe204030c09401835a35c4755cdb2fe328a89b2eb0e09ad33c5305a1714db310f3f0c41fe6359178be64a80e81d49
|
data/lib/pps_commons/version.rb
CHANGED
data/lib/pps_commons.rb
CHANGED
@@ -25,8 +25,10 @@ module WGU
|
|
25
25
|
|
26
26
|
# Common instance methods
|
27
27
|
module InstanceMethods
|
28
|
-
def logger(file =
|
28
|
+
def logger(file = ENV['PPS_COMMONS_DEFAULT_LOG_LOCATION'])
|
29
29
|
if @logger.nil?
|
30
|
+
file ||= File.join('logs', 'log.log')
|
31
|
+
puts "PPSCommons created a log file at #{file}"
|
30
32
|
log = ::File.expand_path(file)
|
31
33
|
unless ::File.exist?(log)
|
32
34
|
log_dir = File.dirname(log)
|