nuget_helper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d1b96505b4d30dcdf9adc901a701e363e7d65bc
4
- data.tar.gz: 355be6f197920ffb13c0ac4790017263d79cbda3
3
+ metadata.gz: aeb3319d4ba195de67d307cc4606ee0f7fa823ab
4
+ data.tar.gz: 62746afe56a3125bbb5cbca9b4934e4673608295
5
5
  SHA512:
6
- metadata.gz: 01e1941e70977892fde834d61774d02324f5ffe9c799d4bd458e081e675f702219fcee290947dc5497e32252833c9acd3f914ad7b3e53952ad50122515a44c1e
7
- data.tar.gz: 5657d004e7a38f34589f60e716f61034462ff71c90a72abf66817d2b5eb8d6d5d963c3211d641d77c7953ce19631602f20391e80b659ed92e917f5db7b82e59d
6
+ metadata.gz: 64ee2baa32c3304e46512cba958cfd8e076d1aa7e57b3df525c104e9591b8e1016d760bbad6b3e05a2f44ae949cd295f0c087889ac5545d882d6af2f0b26e237
7
+ data.tar.gz: 93eb444abbedc81d4bfedafe34017d7268df5bcb8de17da57db6bd37aab9e95502c0e5ec6277e032cb0a33f85fba04e2ba2e153562e9cf255529e8a46807641b
data/lib/nuget_helper.rb CHANGED
@@ -40,7 +40,7 @@ module NugetHelper
40
40
  end
41
41
 
42
42
  def self.xunit_path
43
- self.command_path('xunit.runners', 'xunit.console.clr4.exe')
43
+ self.command_path('xunit.runners', 'xunit.console.exe')
44
44
  end
45
45
 
46
46
  def self.run_tool(command, parameters=nil)
@@ -55,4 +55,11 @@ module NugetHelper
55
55
  def self.version_of(file)
56
56
  file.gsub(/[a-zA-Z]\.?/,'').split(/\./).map do |i| i.to_i end
57
57
  end
58
+
59
+ def self.last_version(files)
60
+ files.max_by do |l|
61
+ self.version_of(l)
62
+ end
63
+ end
64
+
58
65
  end
@@ -1,3 +1,3 @@
1
1
  module NugetHelper
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuget_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oskar Gewalli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.6
115
+ rubygems_version: 2.4.5
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Helper Gem to simplify work with nuget.