dev 2.1.32 → 2.1.33

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apps/msbuild.rb +10 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2c6336e176c7a60bee5db1cbe1a4d8ec015bc36
4
- data.tar.gz: b983cae5c0126bb57f52165abc58f02fa11c16ac
3
+ metadata.gz: c89d9f1e027ef848be89f0e18a1a6d8b8cd26b17
4
+ data.tar.gz: 1127aea458e8e0275403e5cc6efa0f08e67f79f3
5
5
  SHA512:
6
- metadata.gz: 2a362faccbcc4774bd52481d50086474f00ba0118b5ba6714e8a0ccafd55ddb611bb613a059d324ea683a5e8b3c848ad9a6b3db3e448c8df766850b29766c924
7
- data.tar.gz: aea32e5e847c7e23ae5eb90ae56b347957c57880231a9a56434cb900e3cc3eb091eb86e6407a39cceb1e3ec74718ad4e04cd43f550be5c4489526dfa14e2fef2
6
+ metadata.gz: b4109b8ff803db500ae2168687244e43514685d16250fbcaccff3e28ba26bf15e30002d0d378e572b35cd3db152df01feef89eeb11fadbc2e2ce0a6359593a73
7
+ data.tar.gz: 8a1358747fa838f8012504763b561963777f47a744c32d7094223a7a010c74b921435d2a867b49424c91d626c69e4bc226d464c004265689a20a29ae4b03fa2e
data/lib/apps/msbuild.rb CHANGED
@@ -6,6 +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
10
  def initialize
10
11
  if(File.exists?("C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"))
11
12
  self[:vs14]="C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"
@@ -15,11 +16,16 @@ class MSBuild < Hash
15
16
  puts "MSBUILD[:vs14]='PATH_TO_MSBUILD' may be used to specify msbuild path."
16
17
  end
17
18
  end
19
+
18
20
  self[:vs9]="C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe" if(File.exists?("C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe"))
19
21
  self[:vs10]="C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe" if(File.exists?("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe"))
20
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"))
21
23
  end
22
-
24
+
25
+ def self.ignore_configuration(configuration)
26
+ @@ignore_configurations.add(configuration) if(!@@ignore_configurations.include?(configuration))
27
+ end
28
+
23
29
  def self.has_version? version
24
30
  if(defined?(MSBUILD))
25
31
  MSBUILD.has_key?(version)
@@ -62,7 +68,9 @@ class MSBuild < Hash
62
68
  sln_text=File.read(sln_filename,:encoding=>'UTF-8')
63
69
  sln_text.scan( /= ([\w]+)\|/ ).each{|m|
64
70
  c=m.first.to_s
65
- configs << c if !configs.include?(c)
71
+ if(!@@ignore_configurations.include?(c))
72
+ configs << c if !configs.include?(c)
73
+ end
66
74
  }
67
75
  return configs
68
76
  end
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.32
4
+ version: 2.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow