dev_tasks 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/msbuild.rb +5 -7
- data/lib/spec.json +1 -1
- metadata +1 -1
data/lib/msbuild.rb
CHANGED
@@ -15,9 +15,7 @@ class MSBuild < Hash
|
|
15
15
|
|
16
16
|
def self.get_vs_version(sln_filename)
|
17
17
|
sln_text=File.read(sln_filename,:encoding=>'UTF-8')
|
18
|
-
sln_text.
|
19
|
-
return :vs9
|
20
|
-
}
|
18
|
+
return :vs9 if sln_text.include?('Format Version 10.00')
|
21
19
|
return :vs12
|
22
20
|
end
|
23
21
|
|
@@ -33,11 +31,11 @@ class MSBuild < Hash
|
|
33
31
|
|
34
32
|
def self.get_platforms(sln_filename)
|
35
33
|
platforms=Array.new
|
36
|
-
sln_text=File.read(sln_filename,:encoding=>"UTF-8")
|
34
|
+
sln_text=File.read(sln_filename,:encoding=>"UTF-8")
|
37
35
|
sln_text.scan( /= [\w]+\|([\w ]+)/ ).each{|m|
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
p=m.first.to_s
|
37
|
+
platforms << p if !platforms.include?(p)
|
38
|
+
}
|
41
39
|
return platforms
|
42
40
|
end
|
43
41
|
end
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"1.0.
|
1
|
+
{"name":"dev_tasks","version":"1.0.21"}
|