l5m-tools 0.0.10 → 0.0.11

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
data/l5m-tools.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "l5m-tools"
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["RONGHAI"]
12
- s.date = "2013-11-28"
12
+ s.date = "2014-01-23"
13
13
  s.description = "A tool set for Lake5Media and QingheTech developer"
14
14
  s.email = "ronghai.wei@outlook.com"
15
15
  s.executables = ["duplicate-app", "l5m", "make-app", "set_env.sh", "svn.tool"]
@@ -19,7 +19,19 @@ module L5MTools
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
23
+ #read file list from file and delete them
24
+ def del(*args)
25
+ replacements = {args[1] => args[2]}
26
+ File.open(args[0], "r") do |infile|
27
+ while (line = infile.gets)
28
+ line = line.chomp.strip
29
+ if line.length > 0 && line[0] != '#'
30
+ FileUtils.rm(line, :force => true)
31
+ end
32
+ end
33
+ end
34
+ end
23
35
  def make_app(package, application, use_base_worker, &block)
24
36
  application[0] = application[0].capitalize
25
37
  replacements = {