dev_tasks 0.0.123 → 0.0.124

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/publish.rb +6 -3
  2. data/lib/spec.json +1 -1
  3. metadata +1 -1
@@ -21,11 +21,14 @@ class Publish < Array
21
21
  if(DEV_TASKS).has_key?(:publish_path)
22
22
  if(DEV_TASKS[:publish_path].include?('svn://'))
23
23
  latestRev=Environment.svn_latest_revision
24
- svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_path]}@#{latestRev}"
25
- local_dir="#{Environment.dev_root}/tmp/#{DEV_TASKS[:relative_path]}@#{latestRev}"
24
+ svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_directory]}-#{latestRev}"
25
+ local_dir="#{Environment.dev_root}/tmp/#{DEV_TASKS[:relative_directory]}@#{latestRev}"
26
26
  FileUtils.mkdir_p(File.dirname(local_dir)) if(!File.exists?(File.dirname(local_dir)))
27
27
  dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}@"
28
- if(!`svn info #{svn_publish_uri}`.include?('URL:'))
28
+ puts "Publish.update, `svn info #{svn_publish_uri}`"
29
+ if(`svn info #{svn_publish_uri}`.include?('URL:'))
30
+ puts "#{svn_publish_uri} already exists."
31
+ else
29
32
  add "svn mkdir #{svn_publish_uri} --parents"
30
33
  add "svn checkout #{svn_publish_uri} #{local_dir}@"
31
34
  DEV_TASKS[:artifacts].each{|a|
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.123"}
1
+ {"name":"dev_tasks","version":"0.0.124"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.123
4
+ version: 0.0.124
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: