vcs2json 2.2.3 → 2.2.4

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: 0e0a032fcdc94d5d130848e4e6bdfcec06ab80e9
4
- data.tar.gz: b2cc27cfedaae73b08d519f0868c202f4fb7d504
3
+ metadata.gz: 16eb57bedbd48bc94c5b73477ac784f40d8be16b
4
+ data.tar.gz: b2dcb78c8e63bc71c098f9b6642364c99bb65e2a
5
5
  SHA512:
6
- metadata.gz: ea640caaa51188460002836e4223eee9d1cda055aa6b1a71c4fb0825c858121a2b8c8738b20301a1af290221dbd2569902a3ca1818c5b53fb1b87d230f7f2d41
7
- data.tar.gz: c6f71233de06484893f68f042699a700b5e490c38b766a18406fd63fb54f13ecefc42bc6d19f283fe6f0af4f346c0fce510a45369f4797af01c86905c5c4e258
6
+ metadata.gz: bd1b15c85e038ae87965aae44837349c380f89eb5dda91fc91a56c6c4ed3b90159b93c70c978421e4b382c8d34c4a0faaf9e7e4e388b7d470b7e61df3cdae567
7
+ data.tar.gz: e74a46888aefc4cc02d30cb23b8064c3185e140e51f9d0845ee66b9abdb434e33d63edb299e1e80b89cc5eb3218403c116250eb41c64899e4bf7a499431c0e1e
@@ -18,9 +18,10 @@ module Logging
18
18
  begin
19
19
  logger = Logger.new(@logger_location,'daily')
20
20
  rescue Errno::EACCES
21
- $stderr.puts "Tried to create a logging file here: #{@logger_location}, but didn't have permission, defaulting to /tmp/log"
21
+ tmp = Tempfile.new('vcs2json')
22
+ $stderr.puts "Tried to create a logging file here: '#{@logger_location}', but didn't have permission, defaulting to OS temp firectory: #{tmp.path}"
23
+ logger = Logger.new(tmp,'daily')
22
24
  end
23
- logger = Logger.new("/tmp/log_vcs2son",'daily')
24
25
  logger.progname = classname
25
26
  logger.level = const_get('Logger::'+@logger_level.upcase)
26
27
  logger
@@ -1,3 +1,3 @@
1
1
  module Vcs2Json
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
@@ -8,5 +8,6 @@ require 'logger' # leveled logging
8
8
  require 'nokogiri' # better/faster xml library
9
9
  require 'open3' # make system calls and capture stdout/stderr/exitcodes easily
10
10
  require 'yaml' # parse yaml files
11
+ require 'tempfile'
11
12
  require 'require_all'
12
13
  require_rel '/**/*.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcs2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Rolfsnes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler