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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17aad36adb4d0454fd9820964db10c65950b2bc9
4
- data.tar.gz: 15357b077c547b6e54a250eddc3c6fcc31aa912e
3
+ metadata.gz: 5fb804d63b45ccf5d00be8491552e0d0948ea6db
4
+ data.tar.gz: d3fa064193900f0ded430ca19d24a05468dd853e
5
5
  SHA512:
6
- metadata.gz: d3314a410beb88e9aabbdd31238977240c6bcd3d8bdb8d920eedcd6f0450769eea15b03c8c31f9b0d64f5a5fceaefc25f82f0031f7a41ea26098c23f894f4f09
7
- data.tar.gz: '029f2f90e37574ae45149a810372e46650a9f9eb12f8cb8622ad0d4db6859d577407849477ae6bb25457275d95351b7d4526323045714e0d5b81fbe265dda855'
6
+ metadata.gz: 0d03845bde0b3d375a6dbe819c07a12233f257c0777854769aa9fd187d920c4cf9a343d11d1ee81ac6ccc6b7893f4febfbb7df7f0a488cf038c85273285a21d0
7
+ data.tar.gz: bc9288ca2c609e5572fdcf7d3fcee0d3e95fe204030c09401835a35c4755cdb2fe328a89b2eb0e09ad33c5305a1714db310f3f0c41fe6359178be64a80e81d49
@@ -1,3 +1,3 @@
1
1
  module PPSCommons
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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 = nil)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pps_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Phillipps