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.
Files changed (3) hide show
  1. data/lib/msbuild.rb +5 -7
  2. data/lib/spec.json +1 -1
  3. metadata +1 -1
@@ -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.scan(/Format Version 10.00/).each{|m|
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").gsub!( /\P{ASCII}/ , '')
34
+ sln_text=File.read(sln_filename,:encoding=>"UTF-8")
37
35
  sln_text.scan( /= [\w]+\|([\w ]+)/ ).each{|m|
38
- p=m.first.to_s
39
- platforms << p if !platforms.include?(p)
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
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"1.0.20"}
1
+ {"name":"dev_tasks","version":"1.0.21"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: