dev 2.1.33 → 2.1.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apps/msbuild.rb +22 -18
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c89d9f1e027ef848be89f0e18a1a6d8b8cd26b17
4
- data.tar.gz: 1127aea458e8e0275403e5cc6efa0f08e67f79f3
3
+ metadata.gz: cc05f2fa37b71ffb47d67e2230a0a52d2f5eaf4b
4
+ data.tar.gz: b4a55279b972961af2501fe607501503625aa74f
5
5
  SHA512:
6
- metadata.gz: b4109b8ff803db500ae2168687244e43514685d16250fbcaccff3e28ba26bf15e30002d0d378e572b35cd3db152df01feef89eeb11fadbc2e2ce0a6359593a73
7
- data.tar.gz: 8a1358747fa838f8012504763b561963777f47a744c32d7094223a7a010c74b921435d2a867b49424c91d626c69e4bc226d464c004265689a20a29ae4b03fa2e
6
+ metadata.gz: fa483a393fc1d0f9c5575f92b2d71bfe06f3845cdb10bf4ea56921dd9fbc1f758cc17b5536e3a5f6660be69c6816a467858b0d57cd0f8dc6cae88edde1ae0e0c
7
+ data.tar.gz: 82322e1b539304d38b15594f358f127d08b4bdd48079b78979f76f571aed9c21db2b812b3ed69a00fef277eca4aad1077bd46910c5fa4e053a3728c0972da973
@@ -6,7 +6,7 @@ puts __FILE__ if defined?(DEBUG)
6
6
  # Visual Studio 2015 version 14.0, solution format version 12.00
7
7
  class MSBuild < Hash
8
8
 
9
- @@ignore_configurations=Array.new
9
+ #@@ignore_configurations=Array.new
10
10
  def initialize
11
11
  if(File.exists?("C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"))
12
12
  self[:vs14]="C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"
@@ -22,9 +22,9 @@ class MSBuild < Hash
22
22
  self[:vs12]="C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe" if(File.exists?("C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe"))
23
23
  end
24
24
 
25
- def self.ignore_configuration(configuration)
26
- @@ignore_configurations.add(configuration) if(!@@ignore_configurations.include?(configuration))
27
- end
25
+ #def self.ignore_configuration(configuration)
26
+ # @@ignore_configurations.add(configuration) if(!@@ignore_configurations.include?(configuration))
27
+ #end
28
28
 
29
29
  def self.has_version? version
30
30
  if(defined?(MSBUILD))
@@ -55,25 +55,29 @@ class MSBuild < Hash
55
55
  end
56
56
 
57
57
  def self.get_vs_version(sln_filename)
58
- sln_text=File.read(sln_filename,:encoding=>'UTF-8')
59
- return :vs9 if sln_text.include?('Format Version 10.00')
60
- return :vs12 if sln_text.include?('12.0.30723.0')
61
- return :vs12 if sln_text.include?('Visual Studio 2013')
62
- return :vs12 if sln_text.include?('12.0.31101.0')
63
- return :vs14
64
- end
58
+ sln_text=File.read(sln_filename,:encoding=>'UTF-8')
59
+ return :vs9 if sln_text.include?('Format Version 10.00')
60
+ return :vs12 if sln_text.include?('12.0.30723.0')
61
+ return :vs12 if sln_text.include?('Visual Studio 2013')
62
+ return :vs12 if sln_text.include?('12.0.31101.0')
63
+ return :vs14
64
+ end
65
65
 
66
- def self.get_configurations(sln_filename)
67
- configs=Array.new
68
- sln_text=File.read(sln_filename,:encoding=>'UTF-8')
69
- sln_text.scan( /= ([\w]+)\|/ ).each{|m|
70
- c=m.first.to_s
71
- if(!@@ignore_configurations.include?(c))
66
+ def self.get_configurations(sln_filename)
67
+ configs=Array.new
68
+ sln_text=File.read(sln_filename,:encoding=>'UTF-8')
69
+ sln_text.scan( /= ([\w]+)\|/ ).each{|m|
70
+ c=m.first.to_s
71
+ ignore = false
72
+ if(defined?(IGNORE_CONFIGURATIONS))
73
+ ignore = true if IGNORE_CONFIGURATIONS.include?(c)
74
+ end
75
+ if(!ignore)
72
76
  configs << c if !configs.include?(c)
73
77
  end
74
78
  }
75
79
  return configs
76
- end
80
+ end
77
81
 
78
82
  def self.get_platforms(sln_filename)
79
83
  platforms=Array.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.33
4
+ version: 2.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow