win32-api 1.9.1-universal-mingw32 → 1.9.2-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +3 -0
- data/Dockerfile.trunk +5 -5
- data/README.md +2 -0
- data/RELEASE.md +9 -0
- data/Rakefile +7 -7
- data/ext/win32/api.c +22 -16
- data/lib/win32/api.rb +4 -4
- data/lib/win32/ruby21_32/win32/api.so +0 -0
- data/lib/win32/ruby21_64/win32/api.so +0 -0
- data/lib/win32/ruby22_32/win32/api.so +0 -0
- data/lib/win32/ruby22_64/win32/api.so +0 -0
- data/lib/win32/ruby23_32/win32/api.so +0 -0
- data/lib/win32/ruby23_64/win32/api.so +0 -0
- data/lib/win32/ruby24_32/win32/api.so +0 -0
- data/lib/win32/ruby24_64/win32/api.so +0 -0
- data/lib/win32/ruby25_32/win32/api.so +0 -0
- data/lib/win32/ruby25_64/win32/api.so +0 -0
- data/lib/win32/ruby26_32/win32/api.so +0 -0
- data/lib/win32/ruby26_64/win32/api.so +0 -0
- data/lib/win32/ruby27_32/win32/api.so +0 -0
- data/lib/win32/ruby27_64/win32/api.so +0 -0
- data/lib/win32/ruby2_32/win32/api.so +0 -0
- data/lib/win32/ruby2_64/win32/api.so +0 -0
- data/lib/win32/ruby30_32/win32/api.so +0 -0
- data/lib/win32/ruby30_64/win32/api.so +0 -0
- data/test/test_win32_api.rb +1 -1
- data/win32-api.gemspec +2 -2
- metadata +9 -8
- data/lib/win32/ruby28_64/win32/api.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbda787ddee639f0586e7661d07814ec87374373feb4b0e0be0db1123dcce9cd
|
4
|
+
data.tar.gz: 34c0c1da9f2d7d7ba24b53fdfbf6b07953769dc7e8d963e803debf0f39fa0d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 982edadad844e9bfbe6f3012f959ca2df820a16bce05d70594c1e45901e54d445afae627613455706a719bc99274efc91c08d4fe11e9649ac136ad299c053e68
|
7
|
+
data.tar.gz: 5f46486f077ddfda70c4ebebfd5fe2bc060b70fdc7d45a30357f2d4adf1d282eafef4b010967550ffa2dc9cf8dbe6ba23959253fde68302f9a7f5d343f7867aa
|
data/CHANGES
CHANGED
data/Dockerfile.trunk
CHANGED
@@ -2,15 +2,15 @@ FROM cosmo0920/win32-api:latest
|
|
2
2
|
LABEL maintainer "Hiroshi Hatake <cosmo0920.wp@gmail.com>"
|
3
3
|
LABEL Description="win32-api building docker image"
|
4
4
|
|
5
|
-
# Ruby
|
5
|
+
# Ruby 3.0
|
6
6
|
RUN powershell \
|
7
7
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
8
|
-
Invoke-WebRequest -OutFile C:\rubyinstaller-head-x86-
|
9
|
-
RUN cmd /c "C:\rubyinstaller-head-x86-
|
8
|
+
Invoke-WebRequest -OutFile C:\rubyinstaller-head-x86-20200911.exe https://ci.appveyor.com/api/buildjobs/trvw8cisuqismasc/artifacts/packages%2Fri%2Frecipes%2Finstaller-inno%2Frubyinstaller-head-x86.exe
|
9
|
+
RUN cmd /c "C:\rubyinstaller-head-x86-20200911.exe" /silent /dir=c:\ruby30
|
10
10
|
RUN powershell \
|
11
11
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
12
|
-
Invoke-WebRequest -OutFile C:\rubyinstaller-head-x64-
|
13
|
-
RUN cmd /c "C:\rubyinstaller-head-x64-
|
12
|
+
Invoke-WebRequest -OutFile C:\rubyinstaller-head-x64-20200911.exe https://ci.appveyor.com/api/buildjobs/ufndgf49pysdvpt9/artifacts/packages%2Fri%2Frecipes%2Finstaller-inno%2Frubyinstaller-head-x64.exe
|
13
|
+
RUN cmd /c "C:\rubyinstaller-head-x64-20200911.exe" /silent /dir=c:\ruby30-x64
|
14
14
|
|
15
15
|
RUN mkdir C:\pkg
|
16
16
|
COPY build-gem.bat C:\\build-gem.bat
|
data/README.md
CHANGED
data/RELEASE.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
### Release step
|
6
6
|
|
7
|
+
#### Fat GEM
|
8
|
+
|
7
9
|
Check the latest ruby-head-YYYYmmDD image:
|
8
10
|
https://hub.docker.com/r/cosmo0920/win32-api/tags?page=1&name=ruby-head
|
9
11
|
|
@@ -30,3 +32,10 @@ Then, exit and push built gem:
|
|
30
32
|
> exit
|
31
33
|
> gem push win32-api-*.gem
|
32
34
|
```
|
35
|
+
|
36
|
+
#### Non Fat GEM
|
37
|
+
|
38
|
+
```cmd
|
39
|
+
> rake gem:create
|
40
|
+
> gem push win32-api-*.gem
|
41
|
+
```
|
data/Rakefile
CHANGED
@@ -59,7 +59,7 @@ namespace 'gem' do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
desc 'Build a binary gem'
|
62
|
-
task :binary, :ruby2_32, :ruby2_64, :ruby21, :ruby21_64, :ruby22, :ruby22_64, :ruby23_32, :ruby23_64, :ruby24_32, :ruby24_64, :ruby25_32, :ruby25_64, :ruby_26_32, :ruby26_64, :ruby27_32, :ruby27_64, :
|
62
|
+
task :binary, :ruby2_32, :ruby2_64, :ruby21, :ruby21_64, :ruby22, :ruby22_64, :ruby23_32, :ruby23_64, :ruby24_32, :ruby24_64, :ruby25_32, :ruby25_64, :ruby_26_32, :ruby26_64, :ruby27_32, :ruby27_64, :ruby30_32, :ruby30_64 do |task, args|
|
63
63
|
# These are just what's on my system at the moment. Adjust as needed.
|
64
64
|
# ri refers to RubyInstaller, ruby 2.3 and prev were built with RubyInstaller (:ri),
|
65
65
|
# 2.4 and later with RubyInstaller2 (:ri2)
|
@@ -98,8 +98,8 @@ namespace 'gem' do
|
|
98
98
|
:ruby26_64 => {:path => "#{pre}/ruby26-x64/bin", :ri => :ri2_64, :omit => false},
|
99
99
|
:ruby27_32 => {:path => "#{pre}/ruby27/bin", :ri => :ri2, :omit => true},
|
100
100
|
:ruby27_64 => {:path => "#{pre}/ruby27-x64/bin", :ri => :ri2_64, :omit => true},
|
101
|
-
:
|
102
|
-
:
|
101
|
+
:ruby30_32 => {:path => "#{pre}/ruby30/bin", :ri => :ri2, :omit => true},
|
102
|
+
:ruby30_64 => {:path => "#{pre}/ruby30-x64/bin", :ri => :ri2_64, :omit => true},
|
103
103
|
}
|
104
104
|
)
|
105
105
|
|
@@ -196,12 +196,12 @@ begin
|
|
196
196
|
require File.join(File.dirname(__FILE__), 'ruby27_32/win32/api')
|
197
197
|
end
|
198
198
|
end
|
199
|
-
|
200
|
-
if RbConfig::CONFIG['MINOR'] == '
|
199
|
+
when '3'
|
200
|
+
if RbConfig::CONFIG['MINOR'] == '0'
|
201
201
|
if RbConfig::CONFIG['arch'] =~ /x64/i
|
202
|
-
require File.join(File.dirname(__FILE__), '
|
202
|
+
require File.join(File.dirname(__FILE__), 'ruby30_64/win32/api')
|
203
203
|
else
|
204
|
-
require File.join(File.dirname(__FILE__), '
|
204
|
+
require File.join(File.dirname(__FILE__), 'ruby30_32/win32/api')
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
data/ext/win32/api.c
CHANGED
@@ -16,28 +16,34 @@
|
|
16
16
|
#define RARRAY_LEN(a) (RARRAY(a)->len)
|
17
17
|
#endif
|
18
18
|
|
19
|
-
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
19
|
+
/* Use Ruby defined macro definitions. */
|
20
|
+
#if !defined(NUM2SIZET) && !defined(NUM2SSIZET)
|
21
|
+
# if defined(HAVE_LONG_LONG) && SIZEOF_SIZE_T > SIZEOF_LONG
|
22
|
+
# define NUM2SIZET(x) ((size_t)NUM2ULL(x))
|
23
|
+
# define NUM2SSIZET(x) ((ssize_t)NUM2LL(x))
|
24
|
+
# else
|
25
|
+
# define NUM2SIZET(x) NUM2ULONG(x)
|
26
|
+
# define NUM2SSIZET(x) NUM2LONG(x)
|
27
|
+
# endif
|
25
28
|
#endif
|
26
29
|
|
27
|
-
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
30
|
+
/* Use Ruby defined macro definitions. */
|
31
|
+
#if !defined(SIZET2NUM) && !defined(SSIZET2NUM)
|
32
|
+
# if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
|
33
|
+
# define SIZET2NUM(v) ULL2NUM(v)
|
34
|
+
# define SSIZET2NUM(v) LL2NUM(v)
|
35
|
+
# elif SIZEOF_SIZE_T == SIZEOF_LONG
|
36
|
+
# define SIZET2NUM(v) ULONG2NUM(v)
|
37
|
+
# define SSIZET2NUM(v) LONG2NUM(v)
|
38
|
+
# else
|
39
|
+
# define SIZET2NUM(v) UINT2NUM(v)
|
40
|
+
# define SSIZET2NUM(v) INT2NUM(v)
|
41
|
+
# endif
|
36
42
|
#endif
|
37
43
|
|
38
44
|
|
39
45
|
#define MAX_BUF 1024
|
40
|
-
#define WINDOWS_API_VERSION "1.9.
|
46
|
+
#define WINDOWS_API_VERSION "1.9.2"
|
41
47
|
|
42
48
|
#define _T_VOID 0
|
43
49
|
#define _T_LONG 1
|
data/lib/win32/api.rb
CHANGED
@@ -65,12 +65,12 @@ begin
|
|
65
65
|
require File.join(File.dirname(__FILE__), 'ruby27_32/win32/api')
|
66
66
|
end
|
67
67
|
end
|
68
|
-
|
69
|
-
if RbConfig::CONFIG['MINOR'] == '
|
68
|
+
when '3'
|
69
|
+
if RbConfig::CONFIG['MINOR'] == '0'
|
70
70
|
if RbConfig::CONFIG['arch'] =~ /x64/i
|
71
|
-
require File.join(File.dirname(__FILE__), '
|
71
|
+
require File.join(File.dirname(__FILE__), 'ruby30_64/win32/api')
|
72
72
|
else
|
73
|
-
require File.join(File.dirname(__FILE__), '
|
73
|
+
require File.join(File.dirname(__FILE__), 'ruby30_32/win32/api')
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_win32_api.rb
CHANGED
data/win32-api.gemspec
CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-api'
|
5
|
-
spec.version = '1.9.
|
5
|
+
spec.version = '1.9.2'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob', 'Hiroshi Hatake']
|
7
7
|
spec.license = 'Artistic-2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
9
|
-
spec.homepage = 'http://github.com/
|
9
|
+
spec.homepage = 'http://github.com/cosmo0920/win32-api'
|
10
10
|
spec.summary = 'A superior replacement for Win32API'
|
11
11
|
spec.test_files = Dir['test/test*']
|
12
12
|
spec.extensions = ['ext/extconf.rb']
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
- Park Heesob
|
9
9
|
- Hiroshi Hatake
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-09-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: test-unit
|
@@ -79,18 +79,19 @@ files:
|
|
79
79
|
- lib/win32/ruby26_64/win32/api.so
|
80
80
|
- lib/win32/ruby27_32/win32/api.so
|
81
81
|
- lib/win32/ruby27_64/win32/api.so
|
82
|
-
- lib/win32/ruby28_64/win32/api.so
|
83
82
|
- lib/win32/ruby2_32/win32/api.so
|
84
83
|
- lib/win32/ruby2_64/win32/api.so
|
84
|
+
- lib/win32/ruby30_32/win32/api.so
|
85
|
+
- lib/win32/ruby30_64/win32/api.so
|
85
86
|
- test/test_win32_api.rb
|
86
87
|
- test/test_win32_api_callback.rb
|
87
88
|
- test/test_win32_api_function.rb
|
88
89
|
- win32-api.gemspec
|
89
|
-
homepage: http://github.com/
|
90
|
+
homepage: http://github.com/cosmo0920/win32-api
|
90
91
|
licenses:
|
91
92
|
- Artistic-2.0
|
92
93
|
metadata: {}
|
93
|
-
post_install_message:
|
94
|
+
post_install_message:
|
94
95
|
rdoc_options: []
|
95
96
|
require_paths:
|
96
97
|
- lib
|
@@ -105,8 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
106
|
- !ruby/object:Gem::Version
|
106
107
|
version: '0'
|
107
108
|
requirements: []
|
108
|
-
rubygems_version: 3.1
|
109
|
-
signing_key:
|
109
|
+
rubygems_version: 3.2.0.rc.1
|
110
|
+
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: A superior replacement for Win32API
|
112
113
|
test_files:
|
Binary file
|