rake-delphi 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rake/delphi/dcc32.rb +2 -2
- data/lib/rake/delphi/liblist.rb +20 -4
- data/lib/rake/delphi/version.rb +1 -1
- metadata +2 -2
data/lib/rake/delphi/dcc32.rb
CHANGED
@@ -22,7 +22,7 @@ module Rake
|
|
22
22
|
:debuginfo, :localsymbols, :console, :warnings, :hints, :altercfg,
|
23
23
|
:includepaths, :writeableconst,
|
24
24
|
:map, :dcuoutput, :bploutput, :aliases, :platform, :namespaces,
|
25
|
-
:dcpoutput, :dcu, :uselibrarypath, :
|
25
|
+
:dcpoutput, :dcu, :uselibrarypath, :usecfg, :dcc_options]
|
26
26
|
public
|
27
27
|
@@symbols.map do |sym|
|
28
28
|
attr_accessor sym unless method_defined?(sym)
|
@@ -129,7 +129,7 @@ module Rake
|
|
129
129
|
|
130
130
|
def implicitpaths
|
131
131
|
ipaths = ['.', '..']
|
132
|
-
Logger.trace(Logger::TRACE, 'Using library paths? %s'
|
132
|
+
Logger.trace(Logger::TRACE, 'Using library paths? %s' % (@uselibrarypath ? 'YES' : 'NO'))
|
133
133
|
ipaths |= delphilibs if @uselibrarypath
|
134
134
|
_paths(ipaths)
|
135
135
|
end
|
data/lib/rake/delphi/liblist.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'rake/helpers/filelist'
|
4
|
+
require 'rake/common/logger'
|
4
5
|
|
5
6
|
module Rake
|
6
7
|
module Delphi
|
@@ -8,10 +9,17 @@ module Rake
|
|
8
9
|
def read_ignored_libs
|
9
10
|
libs = []
|
10
11
|
file = (ENV['RAKE_DIR'] || Rake.original_dir) + '/.rake.ignored.libs'
|
11
|
-
|
12
|
+
unless File.exists?(file)
|
13
|
+
Logger.trace(Logger::TRACE, "File #{file} not found")
|
14
|
+
return libs
|
15
|
+
end
|
16
|
+
Logger.trace(Logger::TRACE, "Reading #{file}")
|
12
17
|
IO.readlines(file).each do |line|
|
13
18
|
# skip comment lines (started with # or ;)
|
14
|
-
|
19
|
+
if /^\s*[#;]/.match(line)
|
20
|
+
Logger.trace(Logger::TRACE, "Line #{line} ignored as a comment")
|
21
|
+
next
|
22
|
+
end
|
15
23
|
libs << FileList.get_ignored_dir_pattern(line.chomp)
|
16
24
|
end
|
17
25
|
libs
|
@@ -21,8 +29,16 @@ module Rake
|
|
21
29
|
|
22
30
|
def initialize(*patterns)
|
23
31
|
initialize_base(patterns)
|
24
|
-
@
|
25
|
-
@exclude_procs << proc
|
32
|
+
@exclude_patterns_libs = read_ignored_libs
|
33
|
+
@exclude_procs << proc do |fn|
|
34
|
+
! File.directory?(fn)
|
35
|
+
end << proc do |fn|
|
36
|
+
@exclude_patterns_libs.any? do |pat|
|
37
|
+
match = fn =~ pat
|
38
|
+
Logger.trace(Logger::TRACE, "Dir #{fn} match pattern /#{pat}/. Ignored") if match
|
39
|
+
match
|
40
|
+
end
|
41
|
+
end
|
26
42
|
end
|
27
43
|
end
|
28
44
|
end
|
data/lib/rake/delphi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-delphi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|