perception 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/perception/logging.rb +6 -8
  2. data/version.rb +1 -1
  3. metadata +1 -1
@@ -42,13 +42,11 @@ module Perception
42
42
  smart_init if Drumherum.directory_main.empty?
43
43
  logdir = File.expand_path(File.join(Drumherum.directory_main, 'log'))
44
44
  # puts "logdir= #{logdir} size=#{logdir.split('/').size}"
45
- if ( logdir.nil? || logdir.empty? || logdir == 'test/log' || logdir.split('/').size <= 2)
46
- require 'tmpdir'
47
- logdir = Dir::tmpdir + '/log'
48
- end
49
- else # :linux
50
- logdir = "~/log"
51
- end
45
+ end # if windows
46
+ if ( Drumherum.host_os != :windows || logdir.nil? || logdir.empty? || logdir == 'test/log' || logdir.split('/').size <= 2 )
47
+ require 'tmpdir'
48
+ logdir = Dir::tmpdir + '/log'
49
+ end
52
50
 
53
51
  end # unless
54
52
 
@@ -62,7 +60,7 @@ module Perception
62
60
  begin
63
61
  # Dir erzeugen
64
62
  unless File.exist?(logdir)
65
- Dir.mkdir(logdir)
63
+ FileUtils.makedirs(logdir)
66
64
  puts "\n\nSeeSession#logger: Directory #{logdir} created\n\n"
67
65
  end
68
66
  # File erzeugen
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
3
  module Perception #:nodoc
4
- VERSION = '0.3.15'
4
+ VERSION = '0.3.16'
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perception
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: