rake-delphi 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-delphi (0.0.26)
4
+ rake-delphi (0.0.27)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,7 +12,7 @@ GEM
12
12
  minitest (4.7.5)
13
13
  rake (10.0.4)
14
14
  rubyzip (0.9.9)
15
- xml-simple (1.1.4)
15
+ xml-simple (1.1.5)
16
16
 
17
17
  PLATFORMS
18
18
  ruby
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/ashumkin/rake-delphi.svg?branch=master)](https://travis-ci.org/ashumkin/rake-delphi)
2
+
1
3
  # Rake::Delphi
2
4
 
3
5
  This gem adds an ability to compile automatically Delphi projects
data/Rakefile.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # vim: set shiftwidth=2 tabstop=2 expandtab:
2
3
 
3
4
  require 'bundler/gem_tasks'
4
5
  require 'bundler/setup'
@@ -11,9 +12,34 @@ task :"test:prerequisites" do
11
12
  + ' to run tests with appropriate Delphi compiler' unless ENV['DELPHI_VERSION']
12
13
  end
13
14
 
14
- Rake::TestTask.new('test') do |t|
15
+ Rake::TestTask.new('test:no:delphi') do |t|
16
+ t.ruby_opts << '-d' if Rake.application.options.trace
17
+ t.libs << 'test'
18
+ t.test_files = FileList['test/test*'].delete_if do |f|
19
+ # exclude "delphi" tests
20
+ /delphi/.match(f)
21
+ end
22
+ t.verbose = true
23
+ end
24
+
25
+
26
+ desc 'Test on Travis CI (with no Delphi tests)'
27
+ task 'travis' => 'test:no:delphi'
28
+
29
+ Rake::TestTask.new do |t|
15
30
  t.ruby_opts << '-d' if Rake.application.options.trace
16
31
  t.libs << 'test'
17
32
  t.verbose = true
18
33
  Rake::application[t.name].enhance([:"test:prerequisites"])
19
34
  end
35
+
36
+ desc 'Increase gem version'
37
+ task :'version:inc' do
38
+ next_version = Gem::Version.new(Rake::Delphi::VERSION + '.0').bump
39
+ puts "Version is #{next_version} now"
40
+ version_file = File.expand_path('../lib/rake/delphi/version.rb', __FILE__)
41
+ file_content = File.read(version_file).gsub(/(VERSION = )(.+)$/, "\\1'#{next_version}'")
42
+ File.open(version_file, 'w') do |f|
43
+ f.write(file_content)
44
+ end
45
+ end
@@ -21,7 +21,8 @@ module Rake
21
21
  @@symbols = [:quiet, :assertions, :build, :optimization, :debug, :defines,
22
22
  :debuginfo, :localsymbols, :console, :warnings, :hints, :altercfg,
23
23
  :includepaths, :writeableconst,
24
- :map, :dcuoutput, :bploutput, :aliases, :platform, :namespaces,
24
+ :map, :dcuoutput, :bploutput,
25
+ :aliases, :platform, :platform_configuration, :namespaces,
25
26
  :dcpoutput, :dcu, :uselibrarypath, :usecfg, :dcc_options]
26
27
  public
27
28
  @@symbols.map do |sym|
@@ -236,7 +237,7 @@ module Rake
236
237
  instance_variable_set("@#{key}", value)
237
238
  end
238
239
  end
239
- src = @_source.gsub('\\', '/')
240
+ src = @_source.dos2unix_separator
240
241
  # make sure to create dir for output dcu
241
242
  # for now default is <PROJECTDIR>/dcu
242
243
  self.dcu = src.pathmap('%d%sdcu') unless @dcu
@@ -53,7 +53,7 @@ module Rake
53
53
  end
54
54
 
55
55
  def put_args
56
- @deploymentfiles ||= @dccTask.createVersionInfo.deploymentfiles('Android')
56
+ @deploymentfiles ||= @dccTask.createVersionInfo.deploymentfiles('Android', @dccTask.platform_configuration)
57
57
  r = expand_vars(@deploymentfiles)
58
58
  @manifest_hash ||= { :manifest => ['.\\', '1'] }
59
59
  # add unless already added before
@@ -180,7 +180,7 @@ module Rake
180
180
  mkdir a_platform unless File.exists?(a_platform)
181
181
  end
182
182
  end
183
- a.gsub!('/', '\\')
183
+ a.unix2dos_separator!
184
184
  a.double_delimiters!
185
185
  a
186
186
  end
@@ -146,32 +146,44 @@ module Rake
146
146
  return false
147
147
  end
148
148
 
149
- def make_deployment(files, classes)
149
+ def make_deployment(files, classes, configuration)
150
150
  r = []
151
+ Logger.trace(Logger::TRACE, "Gathering deployment files for '#{configuration}'")
151
152
  files.each do |file, value|
153
+ next if value['Configuration'].to_s.casecmp(configuration.to_s) != 0
152
154
  value_class = value['Class']
153
155
  _class = classes[value_class]
154
- next if ['AndroidGDBServer', 'ProjectAndroidManifest'].include?(value_class)
156
+ if ['AndroidGDBServer', 'ProjectAndroidManifest'].include?(value_class)
157
+ Logger.trace(Logger::TRACE, "Skip #{file} of '#{value_class}'")
158
+ next
159
+ end
155
160
  if is_special_class_for_bds_path(value_class)
156
161
  # dirty hack for special classes
157
162
  # usually .dproj has full path to it
158
163
  # but we may have another path
159
164
  # so remove 'first' part
165
+ Logger.trace(Logger::TRACE, "#{file} of '#{value_class}' is a special case: prepend with $(BDS)")
160
166
  file = file.gsub(/^.+(\\lib\\android\\)/, '$(BDS)\1')
161
167
  end
162
- remote_name = value['Platform'] ? value['Platform']['RemoteName'] : file.pathmap('%f')
168
+ remote_name = value['Platform'] ? value['Platform']['RemoteName'] : file.dos2unix_separator.pathmap('%f')
163
169
  if value_class == 'ProjectOutput'
164
170
  file = :project_so
165
171
  elsif value_class == 'ProjectFile'
166
172
  _class = value
173
+ elsif _class['Platform']['Operation'].to_i == 0
174
+ Logger.trace(Logger::TRACE, "Operation=0 for '#{value_class}'")
175
+ next
167
176
  end
168
- r << { file => [_class['Platform']['RemoteDir'] + '\\', '1', remote_name] }
177
+ remote_dir = _class['Platform']['RemoteDir'].to_s
178
+ remote_dir = remote_dir.empty? ? '.' : remote_dir
179
+ remote_dir += '\\'
180
+ r << { file => [remote_dir, '1', remote_name] }
169
181
  end
170
182
  return r
171
183
  end
172
184
 
173
185
  public
174
- def deploymentfiles(platform)
186
+ def deploymentfiles(platform, configuration)
175
187
  deployment = @content
176
188
  raise 'There is no deployment info! Cannot continue.' unless deployment
177
189
  ['ProjectExtensions', 'BorlandProject', 'Deployment'].each do |section|
@@ -180,7 +192,7 @@ module Rake
180
192
  end
181
193
  warn "#{@file} have no deployment info" unless deployment
182
194
  files, classes = read_files_and_classes(deployment, platform)
183
- r = make_deployment(files, classes)
195
+ r = make_deployment(files, classes, configuration)
184
196
  return r
185
197
  end
186
198
  end
@@ -65,7 +65,7 @@ module Rake
65
65
  key_exists = true
66
66
  reg_typ, reg_val = reg.read(name)
67
67
  Logger.trace(Logger::TRACE, "Value: #{reg_val}")
68
- return reg_val.gsub('\\', '/')
68
+ return reg_val.dos2unix_separator
69
69
  end
70
70
  rescue ::Win32::Registry::Error => e
71
71
  Logger.trace(Logger::DEBUG, "No reg key '%s'?! %s" % \
@@ -116,7 +116,7 @@ module Rake
116
116
  Logger.trace(Logger::DEBUG, "Finding Delphi dir for #{ver}")
117
117
  regRoot.open(rootForVersion(ver)) do |reg|
118
118
  reg_typ, reg_val = reg.read('RootDir')
119
- return reg_val.gsub('\\', '/')
119
+ return reg_val.unix2dos_separator
120
120
  end
121
121
  rescue ::Win32::Registry::Error
122
122
  Logger.trace(Logger::DEBUG, "No reg key '#{regRoot}'?!")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rake
4
4
  module Delphi
5
- VERSION = '0.0.26'
5
+ VERSION = '0.0.27'
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ class File
10
10
  return @@separator if @@separator
11
11
  # Return `backlash` for Cygwin and Windows (ALT_SEPARATOR)
12
12
  # otherwise - system separator
13
- return @@separator = cygwin? ? '\\' : (ALT_SEPARATOR ? ALT_SEPARATOR : SEPARATOR)
13
+ return @@separator = cygwin? ? '\\' : (ALT_SEPARATOR || SEPARATOR)
14
14
  end
15
15
 
16
16
  def self.cygpath(path, flag = nil)
@@ -20,4 +20,20 @@ class String
20
20
  def double_delimiters!
21
21
  replace(self.double_delimiters)
22
22
  end
23
+
24
+ def dos2unix_separator
25
+ gsub('\\', '/')
26
+ end
27
+
28
+ def unix2dos_separator
29
+ gsub('/', '\\')
30
+ end
31
+
32
+ def dos2unix_separator!
33
+ replace(self.dos2unix_separator)
34
+ end
35
+
36
+ def unix2dos_separator!
37
+ replace(self.unix2dos_separator)
38
+ end
23
39
  end
@@ -30,6 +30,7 @@ module TestAndroidModule
30
30
  _task = Rake::Task['test_android:compile']
31
31
  dpr = Rake.application.define_task(Rake::Delphi::Project, (_task.name + ':delphi').to_sym)
32
32
  dpr[:resources_additional] = 'resources' if opts[:useresources]
33
+ dpr[:platform_configuration] = 'Debug'
33
34
  dpr[:platform] = 'Android32'
34
35
  # always use library path for Android
35
36
  dpr[:uselibrarypath] = true
@@ -291,6 +291,21 @@
291
291
  <RemoteName>ic_launcher.png</RemoteName>
292
292
  </Platform>
293
293
  </DeployFile>
294
+ <DeployFile LocalName="some\deployment\file\with\operation=0\class" Configuration="Debug" Class="File">
295
+ <Platform Name="Android">
296
+ <RemoteName>release.conf</RemoteName>
297
+ </Platform>
298
+ </DeployFile>
299
+ <DeployFile LocalName="some\disabled\deployment\file\from\disabled.release.conf" Configuration="Release" Class="FileOperation0">
300
+ <Platform Name="Android">
301
+ <RemoteName>disabled.release.conf.file</RemoteName>
302
+ </Platform>
303
+ </DeployFile>
304
+ <DeployFile LocalName="some\deployment\file\from\enabled.release.conf" Configuration="Release" Class="FileOperation1">
305
+ <Platform Name="Android">
306
+ <RemoteName>enabled.release.conf.file</RemoteName>
307
+ </Platform>
308
+ </DeployFile>
294
309
  <DeployClass Name="AndroidGDBServer">
295
310
  <Platform Name="Android">
296
311
  <RemoteDir>library\lib\armeabi</RemoteDir>
@@ -341,6 +356,22 @@
341
356
  <Operation>0</Operation>
342
357
  </Platform>
343
358
  </DeployClass>
359
+ <DeployClass Name="FileOperation0">
360
+ <Platform Name="Android">
361
+ <Operation>0</Operation>
362
+ </Platform>
363
+ <Platform Name="Win32">
364
+ <Operation>1</Operation>
365
+ </Platform>
366
+ </DeployClass>
367
+ <DeployClass Name="FileOperation1">
368
+ <Platform Name="Android">
369
+ <Operation>1</Operation>
370
+ </Platform>
371
+ <Platform Name="Win32">
372
+ <Operation>0</Operation>
373
+ </Platform>
374
+ </DeployClass>
344
375
  <DeployClass Name="Android_LauncherIcon36">
345
376
  <Platform Name="Android">
346
377
  <RemoteDir>res\drawable-ldpi</RemoteDir>
@@ -298,6 +298,21 @@
298
298
  <RemoteName>ic_launcher.png</RemoteName>
299
299
  </Platform>
300
300
  </DeployFile>
301
+ <DeployFile LocalName="some\deployment\file\with\operation=0\class" Configuration="Debug" Class="File">
302
+ <Platform Name="Android">
303
+ <RemoteName>release.conf</RemoteName>
304
+ </Platform>
305
+ </DeployFile>
306
+ <DeployFile LocalName="some\disabled\deployment\file\from\disabled.release.conf" Configuration="Release" Class="FileOperation0">
307
+ <Platform Name="Android">
308
+ <RemoteName>disabled.release.conf.file</RemoteName>
309
+ </Platform>
310
+ </DeployFile>
311
+ <DeployFile LocalName="some\deployment\file\from\enabled.release.conf" Configuration="Release" Class="FileOperation1">
312
+ <Platform Name="Android">
313
+ <RemoteName>enabled.release.conf.file</RemoteName>
314
+ </Platform>
315
+ </DeployFile>
301
316
  <DeployFile LocalName="external\module.ext" Configuration="Debug" Class="ProjectFile">
302
317
  <Platform Name="Android">
303
318
  <RemoteDir>.\assets\internal\</RemoteDir>
@@ -360,6 +375,22 @@
360
375
  <Operation>0</Operation>
361
376
  </Platform>
362
377
  </DeployClass>
378
+ <DeployClass Name="FileOperation0">
379
+ <Platform Name="Android">
380
+ <Operation>0</Operation>
381
+ </Platform>
382
+ <Platform Name="Win32">
383
+ <Operation>1</Operation>
384
+ </Platform>
385
+ </DeployClass>
386
+ <DeployClass Name="FileOperation1">
387
+ <Platform Name="Android">
388
+ <Operation>1</Operation>
389
+ </Platform>
390
+ <Platform Name="Win32">
391
+ <Operation>0</Operation>
392
+ </Platform>
393
+ </DeployClass>
363
394
  <DeployClass Name="Android_LauncherIcon36">
364
395
  <Platform Name="Android">
365
396
  <RemoteDir>res\drawable-ldpi</RemoteDir>
@@ -383,6 +414,11 @@
383
414
  <Operation>1</Operation>
384
415
  </Platform>
385
416
  </DeployClass>
417
+ <DeployClass Name="ProjectFile">
418
+ <Platform Name="Android">
419
+ <Operation>1</Operation>
420
+ </Platform>
421
+ </DeployClass>
386
422
  <DeployClass Name="AndroidLibnativeMipsFile">
387
423
  <Platform Name="Android">
388
424
  <RemoteDir>library\lib\mips</RemoteDir>
@@ -57,13 +57,13 @@ module DelphiAndroidTests
57
57
  Zip::ZipFile.open(apk) do |zip|
58
58
  zip.each do |entry|
59
59
  # test all files in .apk
60
- assert @required_files.include?(entry.to_s), entry.to_s
60
+ assert @required_files.include?(entry.to_s), 'Unexpected entry: ' + entry.to_s
61
61
  entries << entry.to_s
62
62
  end
63
63
  end
64
64
  @required_files.each do |file|
65
65
  # test all required file
66
- assert entries.include?(file), file
66
+ assert entries.include?(file), 'Missing entry: ' + file
67
67
  end
68
68
  xml = ApkXml.new(apk)
69
69
  manifest = xml.parse_xml('AndroidManifest.xml')
@@ -95,7 +95,7 @@ module DelphiAndroidTests
95
95
  prepare_args.delete(:useresources)
96
96
  prepare_args[:bin] = bin_dir
97
97
  prepare_args[:version] = '1.3.2.4'
98
- prepare_args[:dcu] = dcu_dir_rel.gsub('/', '\\')
98
+ prepare_args[:dcu] = dcu_dir_rel.unix2dos_separator
99
99
 
100
100
  prepare_task.invoke(useresources, prepare_args)
101
101
 
data/test/test-delphi.rb CHANGED
@@ -6,6 +6,7 @@ require 'test/unit'
6
6
  require 'rake/delphi'
7
7
  require 'rake/delphi/project'
8
8
  require 'rake/delphi/tool'
9
+ require 'rake/helpers/string'
9
10
  require 'rake/helpers/unittest'
10
11
  require 'rake/helpers/raketask'
11
12
  require 'helpers/consts'
@@ -34,7 +35,7 @@ private
34
35
  useresources = prepare_args[:useresources]
35
36
  prepare_args.delete(:useresources)
36
37
  prepare_args[:bin] = bin_dir
37
- prepare_args[:dcu] = dcu_dir_rel.gsub('/', '\\')
38
+ prepare_args[:dcu] = dcu_dir_rel.unix2dos_separator
38
39
 
39
40
  prepare_task.invoke(useresources, prepare_args)
40
41
 
@@ -57,7 +57,7 @@ module DelphiAndroidTests
57
57
  assert_equal 'Test project comment', @info['Comments']
58
58
  end
59
59
 
60
- def test_deploy_files
60
+ def test_deploy_files_Android_Debug
61
61
  tested_deploymentFiles = []
62
62
  tested_deploymentFiles_prefixes = { 36 => 'l', 48 => 'm', 72 => 'h', 96 => 'xh', 144 => 'xxh'}
63
63
  [36, 48, 72, 96, 144].each do |n|
@@ -68,7 +68,22 @@ module DelphiAndroidTests
68
68
  tested_deploymentFiles << 'external\module.ext,.\assets\internal\\\\,1,'
69
69
  tested_deploymentFiles << '$(BDS)\lib\android\debug\mips\libnative-activity.so,library\lib\mips\,1,libTestProject.so'
70
70
  tested_deploymentFiles << '$(BDS)\lib\android\debug\armeabi\libnative-activity.so,library\lib\armeabi\,1,libTestProject.so'
71
- deploymentfiles = @info.deploymentfiles('Android')
71
+ deploymentfiles = @info.deploymentfiles('Android', 'Debug')
72
+ assert deploymentfiles.kind_of?(Array), 'NOT an Array?!'
73
+ assert_not_equal 0, deploymentfiles.size, 'No files?!'
74
+ deploymentfiles.each do |dfile|
75
+ assert dfile.kind_of?(Hash), 'NOT a Hash?!'
76
+ assert_equal 1, dfile.keys.count, 'More than one value?!'
77
+ assert dfile.keys.first.kind_of?(String) || dfile.keys.first.kind_of?(Symbol), 'Key is NOT a String or Symbol?!'
78
+ assert dfile.values.first.kind_of?(Array), 'Value is NOT an Array?!'
79
+ assert tested_deploymentFiles.include?(dfile.to_a.join(',')), dfile.to_a.join(',')
80
+ end
81
+ end
82
+
83
+ def test_deploy_files_Android_Release
84
+ tested_deploymentFiles = []
85
+ tested_deploymentFiles << 'some\deployment\file\from\enabled.release.conf,.\,1,enabled.release.conf.file'
86
+ deploymentfiles = @info.deploymentfiles('Android', 'Release')
72
87
  assert deploymentfiles.kind_of?(Array), 'NOT an Array?!'
73
88
  assert_not_equal 0, deploymentfiles.size, 'No files?!'
74
89
  deploymentfiles.each do |dfile|
@@ -57,7 +57,7 @@ module DelphiAndroidTests
57
57
  assert_equal 'Test project comment', @info['Comments']
58
58
  end
59
59
 
60
- def test_deploy_files
60
+ def test_deploy_files_Android_Debug
61
61
  tested_deploymentFiles = []
62
62
  tested_deploymentFiles_prefixes = { 36 => 'l', 48 => 'm', 72 => 'h', 96 => 'xh', 144 => 'xxh'}
63
63
  [36, 48, 72, 96, 144].each do |n|
@@ -65,7 +65,22 @@ module DelphiAndroidTests
65
65
  end
66
66
  tested_deploymentFiles << 'project_so,library\lib\armeabi\,1,libTestProject.so'
67
67
  tested_deploymentFiles << '$(BDS)\lib\android\debug\classes.dex,classes\,1,classes.dex'
68
- deploymentfiles = @info.deploymentfiles('Android')
68
+ deploymentfiles = @info.deploymentfiles('Android', 'Debug')
69
+ assert deploymentfiles.kind_of?(Array), 'NOT an Array?!'
70
+ assert_not_equal 0, deploymentfiles.size, 'No files?!'
71
+ deploymentfiles.each do |dfile|
72
+ assert dfile.kind_of?(Hash), 'NOT a Hash?!'
73
+ assert_equal 1, dfile.keys.count, 'More than one value?!'
74
+ assert dfile.keys.first.kind_of?(String) || dfile.keys.first.kind_of?(Symbol), 'Key is NOT a String or Symbol?!'
75
+ assert dfile.values.first.kind_of?(Array), 'Value is NOT an Array?!'
76
+ assert tested_deploymentFiles.include?(dfile.to_a.join(',')), dfile.to_a.join(',')
77
+ end
78
+ end
79
+
80
+ def test_deploy_files_Android_Release
81
+ tested_deploymentFiles = []
82
+ tested_deploymentFiles << 'some\deployment\file\from\enabled.release.conf,.\,1,enabled.release.conf.file'
83
+ deploymentfiles = @info.deploymentfiles('Android', 'Release')
69
84
  assert deploymentfiles.kind_of?(Array), 'NOT an Array?!'
70
85
  assert_not_equal 0, deploymentfiles.size, 'No files?!'
71
86
  deploymentfiles.each do |dfile|
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-delphi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Alexey Shumkin
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
12
+ date: 2015-03-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: minitest
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,20 +62,23 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: xml-simple
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rubyzip
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,15 +94,17 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: apktools
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  description: Tasks for building Delphi projects
@@ -101,179 +114,184 @@ executables: []
101
114
  extensions: []
102
115
  extra_rdoc_files: []
103
116
  files:
104
- - Gemfile
105
- - Gemfile.lock
106
117
  - LICENSE.txt
107
- - README.md
118
+ - rake-delphi-cygwin.env.cmd
108
119
  - Rakefile.rb
120
+ - Gemfile.lock
121
+ - rake-delphi-cygwin.env.sh
122
+ - README.md
123
+ - Gemfile
124
+ - rake-delphi.gemspec
125
+ - lib/rake/common/ziptask.rb
126
+ - lib/rake/common/libstask.rb
127
+ - lib/rake/common/initask.rb
109
128
  - lib/rake/common/chdirtask.rb
110
- - lib/rake/common/classes.rb
111
- - lib/rake/common/dsl.rb
112
129
  - lib/rake/common/echotask.rb
130
+ - lib/rake/common/hashtask.rb
113
131
  - lib/rake/common/exectask.rb
132
+ - lib/rake/common/classes.rb
114
133
  - lib/rake/common/git.rb
115
- - lib/rake/common/hashtask.rb
116
- - lib/rake/common/initask.rb
117
- - lib/rake/common/libstask.rb
118
- - lib/rake/common/logger.rb
134
+ - lib/rake/common/dsl.rb
119
135
  - lib/rake/common/sendmailtask.rb
120
- - lib/rake/common/ziptask.rb
121
- - lib/rake/delphi.rb
122
- - lib/rake/delphi/androidmanifest.rb
136
+ - lib/rake/common/logger.rb
137
+ - lib/rake/helpers/file.rb
138
+ - lib/rake/helpers/string.rb
139
+ - lib/rake/helpers/rake.rb
140
+ - lib/rake/helpers/digest.rb
141
+ - lib/rake/helpers/gemversion.rb
142
+ - lib/rake/helpers/unittest.rb
143
+ - lib/rake/helpers/filelist.rb
144
+ - lib/rake/helpers/raketask.rb
145
+ - lib/rake/helpers/logger.rb
123
146
  - lib/rake/delphi/dcc32.rb
124
- - lib/rake/delphi/dcc32tool.rb
125
- - lib/rake/delphi/dccaarmtool.rb
126
- - lib/rake/delphi/envvariables.rb
127
- - lib/rake/delphi/liblist.rb
147
+ - lib/rake/delphi/rc.rb
128
148
  - lib/rake/delphi/paclient.rb
149
+ - lib/rake/delphi/tool.rb
129
150
  - lib/rake/delphi/paclienttool.rb
151
+ - lib/rake/delphi/envvariables.rb
152
+ - lib/rake/delphi/version.rb
130
153
  - lib/rake/delphi/project.rb
131
- - lib/rake/delphi/projectinfo.rb
132
- - lib/rake/delphi/rc.rb
154
+ - lib/rake/delphi/dccaarmtool.rb
155
+ - lib/rake/delphi/dcc32tool.rb
156
+ - lib/rake/delphi/androidmanifest.rb
157
+ - lib/rake/delphi/liblist.rb
133
158
  - lib/rake/delphi/resources.rb
134
- - lib/rake/delphi/tool.rb
135
- - lib/rake/delphi/version.rb
136
- - lib/rake/helpers/digest.rb
137
- - lib/rake/helpers/file.rb
138
- - lib/rake/helpers/filelist.rb
139
- - lib/rake/helpers/gemversion.rb
140
- - lib/rake/helpers/logger.rb
141
- - lib/rake/helpers/rake.rb
142
- - lib/rake/helpers/raketask.rb
143
- - lib/rake/helpers/string.rb
144
- - lib/rake/helpers/unittest.rb
159
+ - lib/rake/delphi/projectinfo.rb
160
+ - lib/rake/delphi.rb
145
161
  - lib/rake/templates/project.erb
146
- - rake-delphi-cygwin.env.cmd
147
- - rake-delphi-cygwin.env.sh
148
- - rake-delphi.gemspec
149
- - test/helpers/consts.rb
162
+ - test/test-zip.rb
163
+ - test/test-delphi-xe7-android.rb
164
+ - test/test-string.rb
165
+ - test/test-git.rb
166
+ - test/test-projectinfo-android-xe7.rb
167
+ - test/test-gemversion.rb
168
+ - test/test-libstask.rb
169
+ - test/test-echo.rb
170
+ - test/test-delphi-android.rb
171
+ - test/test-ini.rb
172
+ - test/test-projectinfo-android.rb
173
+ - test/test-delphi.rb
174
+ - test/test-projectinfo.rb
175
+ - test/test-hashes.rb
176
+ - test/test-envvariables.rb
150
177
  - test/helpers/verinfo.rb
151
- - test/resources/echo/file.in
178
+ - test/helpers/consts.rb
152
179
  - test/resources/echo/file.out
180
+ - test/resources/echo/file.in
181
+ - test/resources/testproject/testproject.xe7.dproj
182
+ - test/resources/testproject/lib/AnyLib/LibUnit.pas
183
+ - test/resources/testproject/release.dcc.cfg
184
+ - test/resources/testproject/Rakefile.rb
185
+ - test/resources/testproject/testproject.2006.bdsproj
186
+ - test/resources/testproject/testproject.2007.dproj
187
+ - test/resources/testproject/resources.rc
188
+ - test/resources/testproject/testproject.xe5.dproj
189
+ - test/resources/testproject/testproject.dpr
190
+ - test/resources/testproject/testproject.ico
191
+ - test/resources/testproject/ExplicitLib/ExplicitLibUnit.pas
192
+ - test/resources/testproject/local.resources.txt
193
+ - test/resources/testproject/testproject.2010.dproj
194
+ - test/resources/testproject/testproject.cfg
153
195
  - test/resources/hashes/hash.2.file
154
196
  - test/resources/hashes/hash.file
155
- - test/resources/ini/file.ini
156
- - test/resources/libstask/lib/level-1/level-2-1/level-3-1/.gitkeep
157
- - test/resources/libstask/lib/level-1/level-2-1/level-3-2/.gitkeep
158
- - test/resources/libstask/lib/level-1/level-2-2/.gitkeep
159
- - test/resources/testproject-android/AndroidManifest.erb
160
- - test/resources/testproject-android/ExplicitLib/ExplicitLibUnit.pas
197
+ - test/resources/testproject-android/TestProject.xe7.dproj
198
+ - test/resources/testproject-android/lib/AnyLib/LibUnit.pas
199
+ - test/resources/testproject-android/release.dcc.cfg
161
200
  - test/resources/testproject-android/Rakefile.rb
162
- - test/resources/testproject-android/TestProject.dpr
201
+ - test/resources/testproject-android/resources.rc
163
202
  - test/resources/testproject-android/TestProject.xe5.dproj
164
- - test/resources/testproject-android/TestProject.xe7.dproj
203
+ - test/resources/testproject-android/TestProject.dpr
204
+ - test/resources/testproject-android/ExplicitLib/ExplicitLibUnit.pas
205
+ - test/resources/testproject-android/AndroidManifest.erb
165
206
  - test/resources/testproject-android/external/module.ext
207
+ - test/resources/testproject-android/local.resources.txt
166
208
  - test/resources/testproject-android/fmTest.fmx
167
209
  - test/resources/testproject-android/fmTest.pas
168
- - test/resources/testproject-android/lib/AnyLib/LibUnit.pas
169
- - test/resources/testproject-android/local.resources.txt
170
- - test/resources/testproject-android/release.dcc.cfg
171
- - test/resources/testproject-android/resources.rc
172
- - test/resources/testproject/ExplicitLib/ExplicitLibUnit.pas
173
- - test/resources/testproject/Rakefile.rb
174
- - test/resources/testproject/lib/AnyLib/LibUnit.pas
175
- - test/resources/testproject/local.resources.txt
176
- - test/resources/testproject/release.dcc.cfg
177
- - test/resources/testproject/resources.rc
178
- - test/resources/testproject/testproject.2006.bdsproj
179
- - test/resources/testproject/testproject.2007.dproj
180
- - test/resources/testproject/testproject.2010.dproj
181
- - test/resources/testproject/testproject.cfg
182
- - test/resources/testproject/testproject.dpr
183
- - test/resources/testproject/testproject.ico
184
- - test/resources/testproject/testproject.rc
185
- - test/resources/testproject/testproject.xe5.dproj
186
- - test/resources/testproject/testproject.xe7.dproj
187
- - test/test-delphi-android.rb
188
- - test/test-delphi-xe7-android.rb
189
- - test/test-delphi.rb
190
- - test/test-echo.rb
191
- - test/test-envvariables.rb
192
- - test/test-gemversion.rb
193
- - test/test-git.rb
194
- - test/test-hashes.rb
195
- - test/test-ini.rb
196
- - test/test-libstask.rb
197
- - test/test-projectinfo-android-xe7.rb
198
- - test/test-projectinfo-android.rb
199
- - test/test-projectinfo.rb
200
- - test/test-string.rb
201
- - test/test-zip.rb
210
+ - test/resources/ini/file.ini
211
+ - test/resources/libstask/lib/level-1/level-2-2/.gitkeep
212
+ - test/resources/libstask/lib/level-1/level-2-1/level-3-1/.gitkeep
213
+ - test/resources/libstask/lib/level-1/level-2-1/level-3-2/.gitkeep
202
214
  homepage: http://github.com/ashumkin/rake-delphi.gem
203
215
  licenses:
204
216
  - MIT
205
- metadata: {}
206
217
  post_install_message:
207
218
  rdoc_options: []
208
219
  require_paths:
209
220
  - lib
210
221
  required_ruby_version: !ruby/object:Gem::Requirement
222
+ none: false
211
223
  requirements:
212
- - - '>='
224
+ - - ! '>='
213
225
  - !ruby/object:Gem::Version
214
226
  version: '0'
227
+ segments:
228
+ - 0
229
+ hash: -4362522987174946065
215
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
+ none: false
216
232
  requirements:
217
- - - '>='
233
+ - - ! '>='
218
234
  - !ruby/object:Gem::Version
219
235
  version: '0'
236
+ segments:
237
+ - 0
238
+ hash: -4362522987174946065
220
239
  requirements: []
221
240
  rubyforge_project:
222
- rubygems_version: 2.4.1
241
+ rubygems_version: 1.8.23
223
242
  signing_key:
224
- specification_version: 4
243
+ specification_version: 3
225
244
  summary: Tasks for building Delphi projects
226
245
  test_files:
227
- - test/helpers/consts.rb
246
+ - test/test-zip.rb
247
+ - test/test-delphi-xe7-android.rb
248
+ - test/test-string.rb
249
+ - test/test-git.rb
250
+ - test/test-projectinfo-android-xe7.rb
251
+ - test/test-gemversion.rb
252
+ - test/test-libstask.rb
253
+ - test/test-echo.rb
254
+ - test/test-delphi-android.rb
255
+ - test/test-ini.rb
256
+ - test/test-projectinfo-android.rb
257
+ - test/test-delphi.rb
258
+ - test/test-projectinfo.rb
259
+ - test/test-hashes.rb
260
+ - test/test-envvariables.rb
228
261
  - test/helpers/verinfo.rb
229
- - test/resources/echo/file.in
262
+ - test/helpers/consts.rb
230
263
  - test/resources/echo/file.out
264
+ - test/resources/echo/file.in
265
+ - test/resources/testproject/testproject.xe7.dproj
266
+ - test/resources/testproject/lib/AnyLib/LibUnit.pas
267
+ - test/resources/testproject/release.dcc.cfg
268
+ - test/resources/testproject/Rakefile.rb
269
+ - test/resources/testproject/testproject.2006.bdsproj
270
+ - test/resources/testproject/testproject.2007.dproj
271
+ - test/resources/testproject/resources.rc
272
+ - test/resources/testproject/testproject.xe5.dproj
273
+ - test/resources/testproject/testproject.dpr
274
+ - test/resources/testproject/testproject.ico
275
+ - test/resources/testproject/ExplicitLib/ExplicitLibUnit.pas
276
+ - test/resources/testproject/local.resources.txt
277
+ - test/resources/testproject/testproject.2010.dproj
278
+ - test/resources/testproject/testproject.cfg
231
279
  - test/resources/hashes/hash.2.file
232
280
  - test/resources/hashes/hash.file
233
- - test/resources/ini/file.ini
234
- - test/resources/libstask/lib/level-1/level-2-1/level-3-1/.gitkeep
235
- - test/resources/libstask/lib/level-1/level-2-1/level-3-2/.gitkeep
236
- - test/resources/libstask/lib/level-1/level-2-2/.gitkeep
237
- - test/resources/testproject-android/AndroidManifest.erb
238
- - test/resources/testproject-android/ExplicitLib/ExplicitLibUnit.pas
281
+ - test/resources/testproject-android/TestProject.xe7.dproj
282
+ - test/resources/testproject-android/lib/AnyLib/LibUnit.pas
283
+ - test/resources/testproject-android/release.dcc.cfg
239
284
  - test/resources/testproject-android/Rakefile.rb
240
- - test/resources/testproject-android/TestProject.dpr
285
+ - test/resources/testproject-android/resources.rc
241
286
  - test/resources/testproject-android/TestProject.xe5.dproj
242
- - test/resources/testproject-android/TestProject.xe7.dproj
287
+ - test/resources/testproject-android/TestProject.dpr
288
+ - test/resources/testproject-android/ExplicitLib/ExplicitLibUnit.pas
289
+ - test/resources/testproject-android/AndroidManifest.erb
243
290
  - test/resources/testproject-android/external/module.ext
291
+ - test/resources/testproject-android/local.resources.txt
244
292
  - test/resources/testproject-android/fmTest.fmx
245
293
  - test/resources/testproject-android/fmTest.pas
246
- - test/resources/testproject-android/lib/AnyLib/LibUnit.pas
247
- - test/resources/testproject-android/local.resources.txt
248
- - test/resources/testproject-android/release.dcc.cfg
249
- - test/resources/testproject-android/resources.rc
250
- - test/resources/testproject/ExplicitLib/ExplicitLibUnit.pas
251
- - test/resources/testproject/Rakefile.rb
252
- - test/resources/testproject/lib/AnyLib/LibUnit.pas
253
- - test/resources/testproject/local.resources.txt
254
- - test/resources/testproject/release.dcc.cfg
255
- - test/resources/testproject/resources.rc
256
- - test/resources/testproject/testproject.2006.bdsproj
257
- - test/resources/testproject/testproject.2007.dproj
258
- - test/resources/testproject/testproject.2010.dproj
259
- - test/resources/testproject/testproject.cfg
260
- - test/resources/testproject/testproject.dpr
261
- - test/resources/testproject/testproject.ico
262
- - test/resources/testproject/testproject.rc
263
- - test/resources/testproject/testproject.xe5.dproj
264
- - test/resources/testproject/testproject.xe7.dproj
265
- - test/test-delphi-android.rb
266
- - test/test-delphi-xe7-android.rb
267
- - test/test-delphi.rb
268
- - test/test-echo.rb
269
- - test/test-envvariables.rb
270
- - test/test-gemversion.rb
271
- - test/test-git.rb
272
- - test/test-hashes.rb
273
- - test/test-ini.rb
274
- - test/test-libstask.rb
275
- - test/test-projectinfo-android-xe7.rb
276
- - test/test-projectinfo-android.rb
277
- - test/test-projectinfo.rb
278
- - test/test-string.rb
279
- - test/test-zip.rb
294
+ - test/resources/ini/file.ini
295
+ - test/resources/libstask/lib/level-1/level-2-2/.gitkeep
296
+ - test/resources/libstask/lib/level-1/level-2-1/level-3-1/.gitkeep
297
+ - test/resources/libstask/lib/level-1/level-2-1/level-3-2/.gitkeep
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: abc299482fa6682f73b068821fef3ef80f01441c
4
- data.tar.gz: 3e1a9fd7c4a82e557e3b8531d2afb3ad20ce63f0
5
- SHA512:
6
- metadata.gz: 108a55b7f67d2a0dba3396da9d622e5a1106d38831f549d01e3b0e3444b674ad1c6beed58165d3c1f4037aad9250d50574d74a181e0164b8690250cf3956bec8
7
- data.tar.gz: b688db21b2a032e723873dd061e7adf5d2ed7f7885782ac0f0ef59da5e05ee2197503e50c46abae1693b88ee4a02ecec74cd5ea658fc5b3aef009dab2cdb252d
@@ -1,60 +0,0 @@
1
- #define VS_FF_DEBUG 0x00000001
2
- #define VS_FF_PRERELEASE 0x00000002
3
- #define VS_FF_PATCHED 0x00000004
4
- #define VS_FF_PRIVATEBUILD 0x00000008
5
- #define VS_FF_INFOINFERRED 0x00000010
6
- #define VS_FF_SPECIALBUILD 0x00000020
7
-
8
- #ifndef DEBUG
9
- #define VER_DEBUG 0
10
- #else
11
- #define VER_DEBUG VS_FF_DEBUG
12
- #endif
13
-
14
- #ifndef RC
15
- #define VER_PRERELEASE 0
16
- #else
17
- #define VER_PRERELEASE VS_FF_PRERELEASE
18
- #endif
19
-
20
-
21
- #define _FILEFLAGS (VER_PRERELEASE|VER_DEBUG)
22
-
23
- LANGUAGE 0x19, 0x01
24
- MAINICON ICON "C:/cygwin/home/ashu/v3_0/lib/rake-delphi/test/resources/testproject/testproject.ico"
25
- 1 VERSIONINFO
26
- FILEVERSION 0,0,0,0
27
- PRODUCTVERSION 1,2,3,4
28
- FILEOS 0x40004
29
- FILETYPE 0x1
30
- FILEFLAGSMASK _FILEFLAGS
31
- FILEFLAGS _FILEFLAGS
32
- BEGIN
33
- BLOCK "StringFileInfo"
34
- BEGIN
35
- BLOCK "041904E3"
36
- BEGIN
37
- VALUE "CompanyName", "Rake\0"
38
- VALUE "FileDescription", "Test rake-delphi project 2006 description\0"
39
- VALUE "FileVersion", "0.0.0.0\0"
40
- VALUE "InternalName", "testproject.exe\0"
41
- VALUE "LegalCopyright", "Copyright. ��������\0"
42
- VALUE "LegalTrademarks", "Trademark. �������� �����\0"
43
- VALUE "OriginalFilename", "testproject.exe\0"
44
- VALUE "ProductName", "Test rake-delphi project 2006 product name\0"
45
- VALUE "ProductVersion", "1.2.3.4\0"
46
- VALUE "Comments", "Test project comment\0"
47
- #ifdef DEBUG
48
- VALUE "DebugBuild", "DebugBuild\0"
49
- #endif
50
- #ifdef RC
51
- VALUE "ReleaseCandidate", "\0"
52
- #endif
53
- END
54
- END
55
-
56
- BLOCK "VarFileInfo"
57
- BEGIN
58
- VALUE "Translation", 0x0419 0x04E3
59
- END
60
- END