dev 2.0.290 → 2.0.291
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 +4 -4
- data/lib/tasks/publish.rb +1 -1
- data/lib/tasks/push.rb +3 -5
- data/lib/tasks/test.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf10a8ccd46e2868052d58cb2ef56dd27530dd46
|
|
4
|
+
data.tar.gz: e6376ceaf2b6dbdc9f83148fa58077993123690e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
8
|
-
|
|
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.
|
|
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
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|