dev 2.0.187 → 2.0.188
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/publish.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 541e9cc37395ccd91bc2df8ad83a5577d851d563
|
4
|
+
data.tar.gz: cc729e97285105dfc8805054cbe7a0692eda2417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545e85c27b2edbc491b7310ba5e5f4236dc272e09ddba1f02db57020afa544e745f1d34a8f533f4bf620c3adbd62b394cde16fede9994231d9593a9681e4a148
|
7
|
+
data.tar.gz: 63fb5f5dac053e849cae794331926e6ffcc85f6e151ed697cb3b9c73a132b9ec35e6cd9f1f553be7e64edae4e32c3c23b32499c80f08585a3a64b4a938cfdcc3
|
data/lib/tasks/publish.rb
CHANGED
@@ -6,6 +6,11 @@ task :publish do Tasks.execute_task :publish; end
|
|
6
6
|
|
7
7
|
class Publish < Array
|
8
8
|
def update
|
9
|
+
|
10
|
+
if(File.exists?('git') && defined?(VERSION))
|
11
|
+
add "<%Git.publish '#{Rake.application.original_dir}','#{VERSION}'%>"
|
12
|
+
end
|
13
|
+
|
9
14
|
if(Internet.available?)
|
10
15
|
if(File.exists?('.git'))
|
11
16
|
if(`git branch`.include?('* master'))
|
@@ -22,7 +27,7 @@ class Publish < Array
|
|
22
27
|
end
|
23
28
|
end
|
24
29
|
end
|
25
|
-
Dir.glob('**/*.{nupkg,msi}').each{|publish_file|
|
30
|
+
Dir.glob('**/*.{nupkg,msi,gem}').each{|publish_file|
|
26
31
|
dest="#{Environment.dev_root}/publish/#{File.basename(publish_file)}"
|
27
32
|
FileUtils.mkdir_p("#{Environment.dev_root}/publish") if !File.exists?("#{Environment.dev_root}/publish")
|
28
33
|
add "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest))
|