perception 0.3.14 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile.rb CHANGED
@@ -20,7 +20,7 @@ $hoe = Hoe.spec Drumherum.project_name do |p|
20
20
 
21
21
  p.summary = 'Beautiful and readable printouts for console and logs.'
22
22
  p.description = 'Beautiful and readable printouts for console and logs.'
23
- p.extra_deps << ['drumherum', '>= 0.1.29']
23
+ p.extra_deps << ['drumherum', '>= 0.1.31']
24
24
  p.extra_deps << ['kyanite', '>= 0.7.2']
25
25
  p.extra_deps << ['highline', '>= 1.6.15']
26
26
  p.extra_dev_deps << ['yard_klippstein_template', '>= 0.0.37']
@@ -37,14 +37,21 @@ module Perception
37
37
 
38
38
  # Logfile festlegen
39
39
  unless logdir
40
- smart_init if Drumherum.directory_main.empty?
41
- logdir = File.expand_path(File.join(Drumherum.directory_main, 'log'))
42
- # puts "logdir= #{logdir} size=#{logdir.split('/').size}"
43
- end
44
- if ( logdir.nil? || logdir.empty? || logdir == 'test/log' || logdir.split('/').size <= 2)
45
- require 'tmpdir'
46
- logdir = Dir::tmpdir + '/log'
47
- end
40
+
41
+ if Drumherum.host_os == :windows
42
+ smart_init if Drumherum.directory_main.empty?
43
+ logdir = File.expand_path(File.join(Drumherum.directory_main, 'log'))
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
52
+
53
+ end # unless
54
+
48
55
  mycaller = CallerUtils.mycaller(:skip => ['perception', 'ruby\gems', 'ruby/gems', 'test/unit'])
49
56
  logfile = File.join(logdir, filename)
50
57
  #puts "mycaller=#{mycaller.inspect_pp}"
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
3
  module Perception #:nodoc
4
- VERSION = '0.3.14'
4
+ VERSION = '0.3.15'
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.14
4
+ version: 0.3.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.29
21
+ version: 0.1.31
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.29
29
+ version: 0.1.31
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: kyanite
32
32
  requirement: !ruby/object:Gem::Requirement