ocra 1.3.7 → 1.3.8

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: 7b774a847e84fd8e197ad630a012bdd3386a4280
4
- data.tar.gz: 72df064fe3a99802db7d8c4fd2c1cc14b139db30
3
+ metadata.gz: 35f41c76f1adc5a5b46ce7ee53bb10da26f1471b
4
+ data.tar.gz: 1ffe2519a16aea51a66a1e3ae2cf2901313ad158
5
5
  SHA512:
6
- metadata.gz: a6f7624ec640b24294264231ca05851ea29c0688d96fc835819e90c2ab0fdcd4831eecf4a0be93b65b48198de6192cc12e1d0c96013c45ad4704cee95100baa0
7
- data.tar.gz: 5bdf2bc7cfd82acfe37621ac6882a85173ac3f12da805ecacad1cd101ed5891d2d3fb92c1591bf8ba30e1e2467d1ee6b63b4cc36a7d3b82f0b5535f6188a602c
6
+ metadata.gz: 7835c15dd3714c76abfcab1cd588b5aeb87e6910b6c19f86f6751b7fb21f9a6f663956b443f95538395614e535e1b7a2dd210d9a44fc73c527f6b1cbeca9bd11
7
+ data.tar.gz: 699fe3cedc9f647c1bd0848d1020bd5662d20b29c77d668df346db44a2f73506380d277579d3bb7c43e5403f87c3498f3356d8fb0e1151391212fe8741669784
@@ -1,3 +1,7 @@
1
+ === 1.3.8
2
+
3
+ * Use GetModuleFileNameW for DLL detection
4
+
1
5
  === 1.3.7
2
6
 
3
7
  * Workaround for handling of file names and directory name with
data/bin/ocra CHANGED
@@ -179,7 +179,7 @@ module Ocra
179
179
  a.sort.inject([]) { |r, e| r.last == e ? r : r << e }
180
180
  end
181
181
 
182
- VERSION = "1.3.7"
182
+ VERSION = "1.3.8"
183
183
 
184
184
  IGNORE_MODULES = /\/(enumerator.so|rational.so|complex.so|thread.rb)$/
185
185
 
@@ -960,7 +960,7 @@ EOF
960
960
  require 'Win32API'
961
961
 
962
962
  enumprocessmodules = Win32API.new('psapi', 'EnumProcessModules', ['L','P','L','P'], 'L')
963
- getmodulefilename = Win32API.new('kernel32', 'GetModuleFileName', ['L','P','L'], 'L')
963
+ getmodulefilename = Win32API.new('kernel32', 'GetModuleFileNameW', ['L','P','L'], 'L')
964
964
  getcurrentprocess = Win32API.new('kernel32', 'GetCurrentProcess', [], 'L')
965
965
 
966
966
  bytes_needed = 4 * 32
@@ -976,9 +976,10 @@ EOF
976
976
 
977
977
  handles = module_handle_buffer.unpack("I*")
978
978
  handles.select { |handle| handle > 0 }.map do |handle|
979
- str = "\x00" * 256
979
+ str = "\x00\x00" * 256
980
980
  modulefilename_length = getmodulefilename.call(handle, str, str.size)
981
- Ocra.Pathname(str[0,modulefilename_length])
981
+ modulefilename = str[0, modulefilename_length * 2].force_encoding('UTF-16LE').encode('UTF-8')
982
+ Ocra.Pathname(modulefilename)
982
983
  end
983
984
  end
984
985
 
@@ -1,3 +1,3 @@
1
1
  class Ocra
2
- VERSION = '1.3.7'
2
+ VERSION = '1.3.8'
3
3
  end
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.4'
19
+ version: '5.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.4'
26
+ version: '5.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.16'
47
+ version: '3.15'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.16'
54
+ version: '3.15'
55
55
  description: |-
56
56
  OCRA (One-Click Ruby Application) builds Windows executables from Ruby
57
57
  source code. The executable is a self-extracting, self-running
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.4.5.2
103
+ rubygems_version: 2.6.7
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: OCRA (One-Click Ruby Application) builds Windows executables from Ruby source