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 CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-arma-builder'
15
- s.version = '0.1.4'
15
+ s.version = '0.1.5'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -18,7 +18,7 @@ require 'six/arma/builder/mod'
18
18
  module Six
19
19
  module Arma
20
20
  module Builder
21
- VERSION = '0.1.4'
21
+ VERSION = '0.1.5'
22
22
  COMPONENT = 'six-arma-builder'
23
23
  BASE_PATH = Dir.pwd
24
24
 
@@ -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], new[:base], new[:folder]))
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 = "Addons/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 = "Addons/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
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-13 00:00:00 +01:00
12
+ date: 2010-02-16 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency