rake-delphi 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eca8384876329fb4725a0a2dfe448daeee168868
4
- data.tar.gz: 05a2efd6373a367c07998bdb8e78e48fb1fc26cb
3
+ metadata.gz: 6c119e5e4ece30a32ff3711de76435085b2537a5
4
+ data.tar.gz: e5637e98253cd6c1a19f5d4ea0618c81beb4f501
5
5
  SHA512:
6
- metadata.gz: 8a7f1a1943b60d27d5f653108f757c54fb257f1b100dea5800d823be5d0f73df7316700c244e25826b889bba4bc9d772f8855adc94ca4e212d5620876fe029c0
7
- data.tar.gz: 045a1be7b49a0ba772d95866aaf4db51b2c04912968f28bf0147b97dc03166ab3e0cb6e87f06514d5abaf3bf3d0dd953ae422e1035619497ee82aec84882452f
6
+ metadata.gz: b4cd5c00f5acd60e9ca67e94fe2af7ac18ccb5e49a9c5f9b391f2a33a7836d8b0f39d77d68c35f6caf89986d732145902e269a51c1a9fd972eae3b8a3c44f97b
7
+ data.tar.gz: 1e6222bc2efdf3b4dbbba47658764860f221c3c26922320eb1607ab1c3b5fd24edb0b253302f53c213f4d86ac464449b35eb4bc7ad684ecea2ad4aa229f04b30
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-delphi (0.0.32)
4
+ rake-delphi (0.0.33)
5
5
  bundler (~> 1.3)
6
6
  inifile
7
7
  rake (~> 10.0.4)
@@ -19,9 +19,6 @@ module Rake
19
19
  :zipalign => 'SDKZipAlignPath',
20
20
  :jdk_path => 'JDKJarsignerPath'
21
21
  }
22
- REG_KEYS = {::Win32::Registry::HKEY_CURRENT_USER => 'HKCU',
23
- ::Win32::Registry::HKEY_LOCAL_MACHINE => 'HKLM'}
24
-
25
22
  PROPERTIES.keys.each do |prop|
26
23
  attr_accessor prop
27
24
  end
@@ -34,11 +31,14 @@ module Rake
34
31
  def read_default_config
35
32
  begin
36
33
  require 'win32/registry'
34
+ @reg_keys = {::Win32::Registry::HKEY_CURRENT_USER => 'HKCU',
35
+ ::Win32::Registry::HKEY_LOCAL_MACHINE => 'HKLM'}
36
+
37
37
  [::Win32::Registry::HKEY_CURRENT_USER, \
38
38
  ::Win32::Registry::HKEY_LOCAL_MACHINE].each do |regRoot|
39
39
  begin
40
40
  key = 'Default_Android'
41
- Logger.trace(Logger::DEBUG, "Finding #{REG_KEYS[regRoot]}\\#{@platform_SDKs}\\#{key}")
41
+ Logger.trace(Logger::DEBUG, "Finding #{@reg_keys[regRoot]}\\#{@platform_SDKs}\\#{key}")
42
42
  regRoot.open(@platform_SDKs) do |reg|
43
43
  reg_typ, reg_val = reg.read(key)
44
44
  Logger.trace(Logger::DEBUG, "Found '#{reg_val}'")
@@ -61,14 +61,13 @@ module Rake
61
61
  return unless default_android
62
62
  reg_default = @platform_SDKs + '\\' + default_android
63
63
  begin
64
- require 'win32/registry'
65
64
  PROPERTIES.each do |prop, reg_key|
66
65
  next unless reg_key
67
66
  # current user values have precedence over local machine
68
67
  [::Win32::Registry::HKEY_CURRENT_USER, \
69
68
  ::Win32::Registry::HKEY_LOCAL_MACHINE].each do |regRoot|
70
69
  begin
71
- Logger.trace(Logger::DEBUG, "Finding '#{reg_key}' for '#{prop}' in '#{REG_KEYS[regRoot]}\\#{reg_default}'")
70
+ Logger.trace(Logger::DEBUG, "Finding '#{reg_key}' for '#{prop}' in '#{@reg_keys[regRoot]}\\#{reg_default}'")
72
71
  regRoot.open(reg_default) do |reg|
73
72
  reg_typ, reg_val = reg.read(reg_key)
74
73
  Logger.trace(Logger::DEBUG, "Value=#{reg_val}")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rake
4
4
  module Delphi
5
- VERSION = '0.0.32'
5
+ VERSION = '0.0.33'
6
6
  end
7
7
  end
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.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Shumkin