six-arma-builder 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/arma/builder.rb +1 -1
- data/lib/six/arma/builder/mod.rb +5 -6
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/six/arma/builder.rb
CHANGED
data/lib/six/arma/builder/mod.rb
CHANGED
@@ -53,7 +53,7 @@ module Six
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def process_change(change, path, stat)#, base)
|
56
|
-
if change.path[/\A#{path[:folder]}
|
56
|
+
if change.path[/\A#{path[:folder]}\//]
|
57
57
|
case path[:type]
|
58
58
|
when :addons
|
59
59
|
new = Hash.new
|
@@ -61,12 +61,11 @@ module Six
|
|
61
61
|
change.path[/\A(#{path[:folder]})\/(\w*)\/?(.*)/]
|
62
62
|
new[:base], new[:folder], new[:file] = $1, $2, $3
|
63
63
|
path = "#{new[:base]}/#{new[:folder]}"
|
64
|
-
|
65
|
-
unless stat[:changed].include?(path)
|
64
|
+
unless stat[:changed].include?(path) || !File.directory?(File.join(@config[:source], path))
|
66
65
|
#log.info "#{change.typ} #{change.path}"
|
67
66
|
case new[:type]
|
68
67
|
when 'deleted'
|
69
|
-
if FileTest.exist?(File.join(@config[:source],
|
68
|
+
if FileTest.exist?(File.join(@config[:source], path))
|
70
69
|
new[:type] = 'modified'
|
71
70
|
end
|
72
71
|
#when 'modified'
|
@@ -205,13 +204,13 @@ module Six
|
|
205
204
|
#puts content
|
206
205
|
#gets
|
207
206
|
File.open(file, 'w') {|f| f.puts content}
|
208
|
-
main = "
|
207
|
+
main = "#{path[:folder]}/main"
|
209
208
|
unless stat[:changed].include?(main)
|
210
209
|
stat[:changed] += [main]
|
211
210
|
end
|
212
211
|
|
213
212
|
if File.exist?(File.join(@config[:source], path[:folder], "version"))
|
214
|
-
version = "
|
213
|
+
version = "#{path[:folder]}/version"
|
215
214
|
unless stat[:changed].include?(version)
|
216
215
|
stat[:changed] += [version]
|
217
216
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six-arma-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sickboy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-16 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|