dev 2.0.290 → 2.0.291

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: 5384a3b0921ae08670ed7c1ebadef5808f6f0d73
4
- data.tar.gz: f2a9c0d248e843f43b1b8873111f785f902f7727
3
+ metadata.gz: cf10a8ccd46e2868052d58cb2ef56dd27530dd46
4
+ data.tar.gz: e6376ceaf2b6dbdc9f83148fa58077993123690e
5
5
  SHA512:
6
- metadata.gz: aa9fd06c291ebac01df2e55f3f6c621cbcd1e23a6d0f96f9b26c6c3aa61f2380fe4f86df3404b8c99253de5c07ff3619ad6d8f8b19030fdc824cbaaf0fe1d3e4
7
- data.tar.gz: 4ba85242996d29f825b941f2435e3d1ae329b2003ec44653f81c4ba92f8f56387e19d1b171aaec43136e7de8c5febd0a33e3b3c86c126240ef2eb94751b3f31a
6
+ metadata.gz: 273f8e5b3eeac817fd09bca007e512a569aeaffcfbc3019cd74ee47c40325cddef6d9d4d4fe3cd33e3fcd78a0b177c5f2fe257362342478ca04e8fa832bffd32
7
+ data.tar.gz: c771fc4df1dc7604c9bca4c1b61ce809d483812ce4a8a1cc1a6861f2c72ba5a3bbf6188ac8e3e0e185370ce9d684548829b7e050bb448ad7805ba30c1f505b59
data/lib/tasks/publish.rb CHANGED
@@ -28,7 +28,7 @@ class Publish < Array
28
28
 
29
29
  Dir.glob("#{Rake.application.original_dir}/**/*.{nupkg,msi,gem}").each{|publish_file|
30
30
  dest="#{Environment.default.publish_dir}/#{File.basename(publish_file)}"
31
- add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest))
31
+ add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest) || dest.include?('0.0'))
32
32
  }
33
33
  end
34
34
  end
data/lib/tasks/push.rb CHANGED
@@ -3,11 +3,9 @@ task :push do Tasks.execute_task :push;end
3
3
 
4
4
  class Push < Array
5
5
  def update
6
- if(File.exists?('.git') && `git config --list`.include?('user.name='))
7
- if(`git branch`.include?('* master') || `git branch`.include?('* develop'))
8
- add_quiet 'git push'
9
- add_quiet 'git push --tags'
10
- end
6
+ if(File.exists?('.git') && `git config --list`.include?('user.name=') && `git branch`.include?('* master') )
7
+ add_quiet 'git push'
8
+ add_quiet 'git push --tags'
11
9
  end
12
10
  end
13
11
  end
data/lib/tasks/test.rb CHANGED
@@ -44,6 +44,15 @@ class Test < Array
44
44
  end
45
45
  end
46
46
 
47
+ def self.nunit3_console_in_path?
48
+ command=Command.new('nunit3-console')
49
+ command[:quiet]=true
50
+ command[:ignore_failure]=true
51
+ command.execute
52
+ return true if(command[:exit_code] == 0)
53
+ false
54
+ end
55
+
47
56
  def self.nunit_console_in_path?
48
57
  command=Command.new('nunit-console')
49
58
  command[:quiet]=true
@@ -54,6 +63,7 @@ class Test < Array
54
63
  end
55
64
  @@nunit_console=''
56
65
  def self.nunit_console
66
+ return "nunit3-console" if Test.nunit3_console_in_path?
57
67
  return "nunit-console" if Test.nunit_console_in_path?
58
68
  if(!File.exists?(@@nunit_console))
59
69
  if(defined?(NUNIT_CONSOLE))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.290
4
+ version: 2.0.291
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-29 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake