bake-toolkit 2.26.1 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/common/utils.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'rbconfig'
2
+
1
3
  module Bake
2
4
 
3
5
  module Utils
@@ -39,7 +41,26 @@ module Bake
39
41
 
40
42
  # Is it windows
41
43
  def OS.windows?
42
- (RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/) != nil
44
+ (RUBY_PLATFORM =~ /cygwin|mswin|msys|mingw|bccwin|wince|emx|emc/) != nil
45
+ end
46
+
47
+ def OS.name
48
+ @os ||= (
49
+ host_os = RbConfig::CONFIG['host_os']
50
+ case host_os
51
+ when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
52
+ "Windows"
53
+ when /darwin|mac os/
54
+ "Mac"
55
+ when /linux/
56
+ "Linux"
57
+ when /solaris|bsd/
58
+ "Unix"
59
+ else
60
+ Bake.formatter.printError("Unknown OS: #{host_os.inspect}")
61
+ ExitHelper.exit(1)
62
+ end
63
+ )
43
64
  end
44
65
 
45
66
  end
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.26.1"
4
+ "2.27.0"
5
5
  end
6
6
 
7
7
  def self.printBakeVersion(ry = "")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.26.1
4
+ version: 2.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-23 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext