dev 2.0.160 → 2.0.161

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91114ec0da9dfbec0f2e8fd61af22dea9fa3ee46
4
- data.tar.gz: 7083e6e874d6c5def8591f11334641f31904749b
3
+ metadata.gz: a0a30d2857fcc9045e49ca2feaaa9d6422dfc339
4
+ data.tar.gz: 80a39a0f5c4da50d4cebd036947fb14e6544dcce
5
5
  SHA512:
6
- metadata.gz: d3dbb1b5fc2c2633704885049ef5d4fe521202c93bbc5dee95e2f73df7bd0b4622273c369d4a408a75c6fb13a2a927cfeb9cb71fd06028c7815a53b306eebbb4
7
- data.tar.gz: d69f86ab22c076448ee817be1424ad14bc452d6fe911f0d81f01da6702aa6d6bfc1fd151b3276a4618d676689784e1cc89ee4ed25924e8a6088e8bf480b35420
6
+ metadata.gz: 9019ca9c7f3549ff037f3eb29ee1181b9a89e054981a20acab48baa6c30b2fed2f488446153d2865a8973ce15549e455e17546081bb554d2934fe691c2c1f202
7
+ data.tar.gz: 3f2d4f6ca9010137a9a7e8693395b386a5c1eae39aa7cefe7fa36082d44178ce67095ee3f333a324d08ae6452953d5352cc6f98205cf6b783a8dcbc4d0c054ed
data/lib/apps/msbuild.rb CHANGED
@@ -88,7 +88,8 @@ class MSBuild < Hash
88
88
  sln_arg="\"#{sln_filename}\"" if sln_filename.include?(' ')
89
89
  platform_arg="/p:Platform=#{platform}"
90
90
  platform_arg="/p:Platform=\"#{platform}\"" if platform.include?(' ')
91
- build_commands << "#{msbuild_arg} #{sln_arg} /nologo /p:Configuration=#{configuration} #{platform_arg}"
91
+ #build_commands << "#{msbuild_arg} #{sln_arg} /nologo /p:Configuration=#{configuration} #{platform_arg}"
92
+ build_commands << "#{msbuild_arg} #{sln_arg} /p:Configuration=#{configuration} #{platform_arg}"
92
93
  }
93
94
  }
94
95
  end
data/lib/apps/nuget.rb CHANGED
@@ -1 +1,12 @@
1
1
  puts __FILE__ if defined?(DEBUG)
2
+
3
+ class Nuget
4
+ def self.get_build_commands nuspec_file
5
+ build_commands=nil
6
+ if(File.exists?(nuspec_file))
7
+ build_commands=Array.new if build_commands.nil?
8
+ build_commands << "nuget pack #{nuspec_file}"
9
+ end
10
+ build_commands
11
+ end
12
+ end
data/lib/tasks/build.rb CHANGED
@@ -4,6 +4,7 @@ desc 'performs build commands'
4
4
  task :build do Tasks.execute_task :build;end
5
5
 
6
6
  SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln')
7
+ NUGET_FILES=FileList.new('**/*.nuspec')
7
8
 
8
9
  class Build < Array
9
10
  def update
@@ -22,18 +23,15 @@ class Build < Array
22
23
  self.add c
23
24
  }
24
25
  end
25
- #vs_version=MSBuild.get_vs_version(sln_file)
26
- #if(MSBuild.has_version?(vs_version))
27
- # MSBuild.get_configurations(sln_file).each{ |configuration|
28
- # MSBuild.get_platforms(sln_file).each{|platform|
29
- # #Console.debug "configuration='#{configuration}', platform='#{platform}'"
30
- # self.add "\"#{MSBuild.get_version(vs_version)}\" \"#{sln_file}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
31
- # }
32
- # }
33
- #else
34
- # puts "version #{vs_version} not found for MsBuild"
35
- # puts "MSBUILD[:#{vs_version}]='PATH_TO_MSBUILD' may be used to specify msbuild path."
36
- #end
26
+ }
27
+
28
+ NUGET_FILES.each{|nuget_file|
29
+ build_commands = Nuget.get_build_commands nuget_file
30
+ if(!build_commands.nil?)
31
+ build_commands.each{|c|
32
+ self.add c
33
+ }
34
+ end
37
35
  }
38
36
  end
39
37
  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.0.160
4
+ version: 2.0.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow