dev_tasks 0.0.147 → 0.0.148

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.
data/lib/environment.rb CHANGED
@@ -19,8 +19,10 @@ class Environment < Hash
19
19
  Console.debug("Environment.copy_files([#{files.to_s}],'#{dest}'')")
20
20
  files.each{|f|
21
21
  if(File.directory?(dest))
22
- Console.debug "copying #{f} to #{dest}/#{f}"
23
- FileUtils.cp(f,dest + "/" + f)
22
+ dest_file = "#{dest}/#{f}"
23
+ Console.debug "copying #{f} to #{dest_file}"
24
+ FileUtis.mkdir_p(File.dirname(dest_file)) if(!File.exists?(File.dirname(dest_file)))
25
+ FileUtils.cp(f,dest_file)
24
26
  end
25
27
  }
26
28
  end
data/lib/publish.rb CHANGED
@@ -36,7 +36,7 @@ class Publish < Array
36
36
  add "<%Environment.copy_files(DEV_TASKS[:files][:artifact],'#{local_dir}')%>"
37
37
  add "<%Environment.svn_add_all('#{local_dir}')%>"
38
38
  add "svn commit #{local_dir}@ -m\"publish\""
39
- #add "<%FileUtils.rm_r('#{local_dir}')%>"
39
+ add "<%FileUtils.rm_r('#{local_dir}')%>"
40
40
  end
41
41
  end
42
42
  end
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.147"}
1
+ {"name":"dev_tasks","version":"0.0.148"}
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.147
4
+ version: 0.0.148
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: