win32-api 1.9.1-universal-mingw32 → 1.9.2-universal-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50f2020c700c00a8f72649d59a580d017a3418c42db26dc79cd6d379ba589239
4
- data.tar.gz: d591539fa8826a781bb96131f7a79cc018e2bf4f8bb38b132bdc3d93d1236c86
3
+ metadata.gz: fbda787ddee639f0586e7661d07814ec87374373feb4b0e0be0db1123dcce9cd
4
+ data.tar.gz: 34c0c1da9f2d7d7ba24b53fdfbf6b07953769dc7e8d963e803debf0f39fa0d3c
5
5
  SHA512:
6
- metadata.gz: 9f2db91230d8b7a4c360fb698d75a2e30106aa7786b63d9d0536b87d938f1c9771a5d6d8516002ac3ddc0b03086c72b15780ab8ffbc2ca3d28bee8be3dad5fbb
7
- data.tar.gz: 879067f098f0f684925eaa592009c77e638447ad738935106775f857a81aefe4afc9b2500e5108645fc7e3dbb73866473d8112df00af9628f149f6559b165f56
6
+ metadata.gz: 982edadad844e9bfbe6f3012f959ca2df820a16bce05d70594c1e45901e54d445afae627613455706a719bc99274efc91c08d4fe11e9649ac136ad299c053e68
7
+ data.tar.gz: 5f46486f077ddfda70c4ebebfd5fe2bc060b70fdc7d45a30357f2d4adf1d282eafef4b010967550ffa2dc9cf8dbe6ba23959253fde68302f9a7f5d343f7867aa
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.9.2 - 13-Sep-2020
2
+ * Handle Ruby 3.0 snapshot (formerly known as Ruby 2.8).
3
+
1
4
  == 1.9.1 - 14-Jul-2020
2
5
  * Handle whether tainted support or not.
3
6
 
@@ -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 2.8
5
+ # Ruby 3.0
6
6
  RUN powershell \
7
7
  [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
8
- Invoke-WebRequest -OutFile C:\rubyinstaller-head-x86-20200106.exe https://ci.appveyor.com/api/buildjobs/n7m98ejuhuu2rn4g/artifacts/packages%2Fri%2Frecipes%2Finstaller-inno%2Frubyinstaller-head-x64.exe
9
- RUN cmd /c "C:\rubyinstaller-head-x86-20200106.exe" /silent /dir=c:\ruby28
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-20200106.exe https://ci.appveyor.com/api/buildjobs/n7m98ejuhuu2rn4g/artifacts/packages%2Fri%2Frecipes%2Finstaller-inno%2Frubyinstaller-head-x64.exe
13
- RUN cmd /c "C:\rubyinstaller-head-x64-20200106.exe" /silent /dir=c:\ruby28-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
@@ -130,5 +130,7 @@
130
130
 
131
131
  # Authors
132
132
  Daniel J. Berger
133
+
133
134
  Park Heesob
135
+
134
136
  Hiroshi Hatake
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, :ruby28_32, :ruby28_64 do |task, args|
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
- :ruby28_32 => {:path => "#{pre}/ruby28/bin", :ri => :ri2, :omit => true},
102
- :ruby28_64 => {:path => "#{pre}/ruby28-x64/bin", :ri => :ri2_64, :omit => true},
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'] == '8'
199
+ when '3'
200
+ if RbConfig::CONFIG['MINOR'] == '0'
201
201
  if RbConfig::CONFIG['arch'] =~ /x64/i
202
- require File.join(File.dirname(__FILE__), 'ruby28_64/win32/api')
202
+ require File.join(File.dirname(__FILE__), 'ruby30_64/win32/api')
203
203
  else
204
- require File.join(File.dirname(__FILE__), 'ruby28_32/win32/api')
204
+ require File.join(File.dirname(__FILE__), 'ruby30_32/win32/api')
205
205
  end
206
206
  end
207
207
 
@@ -16,28 +16,34 @@
16
16
  #define RARRAY_LEN(a) (RARRAY(a)->len)
17
17
  #endif
18
18
 
19
- #if defined(HAVE_LONG_LONG) && SIZEOF_SIZE_T > SIZEOF_LONG
20
- # define NUM2SIZET(x) ((size_t)NUM2ULL(x))
21
- # define NUM2SSIZET(x) ((ssize_t)NUM2LL(x))
22
- #else
23
- # define NUM2SIZET(x) NUM2ULONG(x)
24
- # define NUM2SSIZET(x) NUM2LONG(x)
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
- #if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
28
- # define SIZET2NUM(v) ULL2NUM(v)
29
- # define SSIZET2NUM(v) LL2NUM(v)
30
- #elif SIZEOF_SIZE_T == SIZEOF_LONG
31
- # define SIZET2NUM(v) ULONG2NUM(v)
32
- # define SSIZET2NUM(v) LONG2NUM(v)
33
- #else
34
- # define SIZET2NUM(v) UINT2NUM(v)
35
- # define SSIZET2NUM(v) INT2NUM(v)
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.1"
46
+ #define WINDOWS_API_VERSION "1.9.2"
41
47
 
42
48
  #define _T_VOID 0
43
49
  #define _T_LONG 1
@@ -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'] == '8'
68
+ when '3'
69
+ if RbConfig::CONFIG['MINOR'] == '0'
70
70
  if RbConfig::CONFIG['arch'] =~ /x64/i
71
- require File.join(File.dirname(__FILE__), 'ruby28_64/win32/api')
71
+ require File.join(File.dirname(__FILE__), 'ruby30_64/win32/api')
72
72
  else
73
- require File.join(File.dirname(__FILE__), 'ruby28_32/win32/api')
73
+ require File.join(File.dirname(__FILE__), 'ruby30_32/win32/api')
74
74
  end
75
75
  end
76
76
 
@@ -18,7 +18,7 @@ class TC_Win32_API < Test::Unit::TestCase
18
18
  end
19
19
 
20
20
  def test_version
21
- assert_equal('1.9.1', API::VERSION)
21
+ assert_equal('1.9.2', API::VERSION)
22
22
  end
23
23
 
24
24
  def test_constructor_basic
@@ -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.1'
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/djberg96/win32-api'
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.1
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-07-14 00:00:00.000000000 Z
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/djberg96/win32-api
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.2
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: