windows-api 0.4.4 → 0.4.5

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
- SHA1:
3
- metadata.gz: a676d1572a63e8bce0c29b891ae0318037f06e59
4
- data.tar.gz: cd3bf62aba802cec22554f1325946505eb8f3081
2
+ SHA256:
3
+ metadata.gz: 061d0fd365ab73110137fc5be1e6fdef31e2f66835e59d0fbdf0b9e51897350b
4
+ data.tar.gz: 17fdd5423b72368bb1568b7e6fe7c687b04abc993ba2db8bf392aa68ccfe1ad4
5
5
  SHA512:
6
- metadata.gz: 003418351fc46d6ffc391c3359562312dc71ec567300130236ce6b1b85caf10565c67b633f14a6735d1067117badc171220059f1f632d4e13eddcb8a4fcfb60d
7
- data.tar.gz: 3caed1e8447b6e6841003ed428d916686c7168f5d3a4a50a050528ea59a4870e52e6127f4b40960774cf1156bd2f7d988a6b276952daac7c388b44d9d5ed7a2e
6
+ metadata.gz: 0bfde7e5b1b00042be9392b4d26bee4b902ffe5690e409f3824a27f291af4c5fe076f0f7708722a47bbb6694025a3932cb32a0d20c725b1440b02ed70b26bc12
7
+ data.tar.gz: 7c74cfa20a8e6846840d35995d52cbe5976eef58d164266097a531bad4117897fb9b014dc1b749bc2f5f3eed24272905833e7fbfba57272054ae4e895e85f1dd
data/CHANGES CHANGED
@@ -1,68 +1,71 @@
1
- == 0.4.4 - 18-Mar-2015
2
- * Removed a duplicate hash entry. Thanks go to Baptiste Courtois for the spot.
3
- * Added some specialized test tasks.
4
-
5
- == 0.4.3 - 20-Oct-2014
6
- * Updates to the gemspec and Rakefile.
7
-
8
- == 0.4.2 - 13-Jul-2012
9
- * Fixed a bug in the way MSVCRT_DLL is set. Thanks go to Park Heesob for
10
- the spot and patch.
11
- * Some minor test refactoring and cosmetic udpates.
12
-
13
- == 0.4.1 - 27-Jan-2012
14
- * Switched Config to RbConfig to silence 1.9 warnings. Thanks go to
15
- Cameron Cox for the patch.
16
- * Some updates to the README, Rakefile, gemspec and test files.
17
-
18
- == 0.4.0 - 18-Oct-2009
19
- * Methods that begin with an underscore, such as _umask(), are now preserved.
20
- A method alias is also created without an underscore, e.g. umask().
21
- * Added the gem task to the Rakefile.
22
- * Minor updates to the gemspec.
23
-
24
- == 0.3.1 - 18-Aug-2009
25
- * Changed license to Artistic 2.0.
26
- * Some gemspec updates, including the addition of a license, an updated
27
- description and a dependency update.
28
- * One test update for VC++ 9.
29
-
30
- == 0.3.0 - 1-Feb-2009
31
- * No longer explicitly checks for an error in the constructor. It lets the
32
- underlying Win32::API library deal with it.
33
- * More dynamic handling and setting of the MSVCRT_DLL variable.
34
- * Added a WideString implementation. Internal use only.
35
-
36
- == 0.2.4 - 18-Jul-2008
37
- * Eliminated unnecessary LoadLibrary() attempts for functions that explicitly
38
- end with an 'A' or 'W', and all MSVCRT functions, since they have no 'A'
39
- or 'W' equivalent.
40
- * Replaced all of the attr_reader's with a delegation scheme using Forwardable.
41
- All Win32::API functions now delegate to the internally stored Win32::API
42
- object instead of reimplementing them. This change also fixed a bug where
43
- the effective_function_name method did not work properly.
44
- * Added more tests, and fixed one assertion that was wrong (the prototype).
45
- * Some documentation additions.
46
-
47
- == 0.2.3 - 26-Apr-2008
48
- * Improved API.auto_constant and API.auto_method handling for functions that
49
- start with a lower case character or an underscore.
50
-
51
- == 0.2.2 - 17-Apr-2008
52
- * Added the Windows::MSVCRT_DLL constant so that users can specify MSVCRT_DLL
53
- for the DLL name and it will do the right thing, instead of having to worry
54
- about specifying a DLL or associated DLL.
55
-
56
- == 0.2.1 - 10-Feb-2008
57
- * Added support for long data type names, e.g. 'DWORD' instead of 'L', for
58
- both the prototype and return type.
59
-
60
- == 0.2.0 - 20-Sep-2007
61
- * Now requires the win32-api library.
62
- * Replaced class variables with class instance variables to prevent conflicts.
63
-
64
- == 0.1.1 - 25-May-2007
65
- * Fixed a void parameter bug.
66
-
67
- == 0.1.0 - 24-May-2007
68
- * Initial release
1
+ == 0.4.5 - 09-Jun-2022
2
+ * Support Ruby 3.1 UCRT binary
3
+
4
+ == 0.4.4 - 18-Mar-2015
5
+ * Removed a duplicate hash entry. Thanks go to Baptiste Courtois for the spot.
6
+ * Added some specialized test tasks.
7
+
8
+ == 0.4.3 - 20-Oct-2014
9
+ * Updates to the gemspec and Rakefile.
10
+
11
+ == 0.4.2 - 13-Jul-2012
12
+ * Fixed a bug in the way MSVCRT_DLL is set. Thanks go to Park Heesob for
13
+ the spot and patch.
14
+ * Some minor test refactoring and cosmetic udpates.
15
+
16
+ == 0.4.1 - 27-Jan-2012
17
+ * Switched Config to RbConfig to silence 1.9 warnings. Thanks go to
18
+ Cameron Cox for the patch.
19
+ * Some updates to the README, Rakefile, gemspec and test files.
20
+
21
+ == 0.4.0 - 18-Oct-2009
22
+ * Methods that begin with an underscore, such as _umask(), are now preserved.
23
+ A method alias is also created without an underscore, e.g. umask().
24
+ * Added the gem task to the Rakefile.
25
+ * Minor updates to the gemspec.
26
+
27
+ == 0.3.1 - 18-Aug-2009
28
+ * Changed license to Artistic 2.0.
29
+ * Some gemspec updates, including the addition of a license, an updated
30
+ description and a dependency update.
31
+ * One test update for VC++ 9.
32
+
33
+ == 0.3.0 - 1-Feb-2009
34
+ * No longer explicitly checks for an error in the constructor. It lets the
35
+ underlying Win32::API library deal with it.
36
+ * More dynamic handling and setting of the MSVCRT_DLL variable.
37
+ * Added a WideString implementation. Internal use only.
38
+
39
+ == 0.2.4 - 18-Jul-2008
40
+ * Eliminated unnecessary LoadLibrary() attempts for functions that explicitly
41
+ end with an 'A' or 'W', and all MSVCRT functions, since they have no 'A'
42
+ or 'W' equivalent.
43
+ * Replaced all of the attr_reader's with a delegation scheme using Forwardable.
44
+ All Win32::API functions now delegate to the internally stored Win32::API
45
+ object instead of reimplementing them. This change also fixed a bug where
46
+ the effective_function_name method did not work properly.
47
+ * Added more tests, and fixed one assertion that was wrong (the prototype).
48
+ * Some documentation additions.
49
+
50
+ == 0.2.3 - 26-Apr-2008
51
+ * Improved API.auto_constant and API.auto_method handling for functions that
52
+ start with a lower case character or an underscore.
53
+
54
+ == 0.2.2 - 17-Apr-2008
55
+ * Added the Windows::MSVCRT_DLL constant so that users can specify MSVCRT_DLL
56
+ for the DLL name and it will do the right thing, instead of having to worry
57
+ about specifying a DLL or associated DLL.
58
+
59
+ == 0.2.1 - 10-Feb-2008
60
+ * Added support for long data type names, e.g. 'DWORD' instead of 'L', for
61
+ both the prototype and return type.
62
+
63
+ == 0.2.0 - 20-Sep-2007
64
+ * Now requires the win32-api library.
65
+ * Replaced class variables with class instance variables to prevent conflicts.
66
+
67
+ == 0.1.1 - 25-May-2007
68
+ * Fixed a void parameter bug.
69
+
70
+ == 0.1.0 - 24-May-2007
71
+ * Initial release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ windows-api (0.4.5)
5
+ win32-api (>= 1.4.5)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ power_assert (2.0.1)
11
+ rake (13.0.6)
12
+ test-unit (3.5.3)
13
+ power_assert
14
+ win32-api (1.10.1-universal-mingw32)
15
+ windows-pr (1.2.6)
16
+ win32-api (>= 1.4.5)
17
+ windows-api (>= 0.4.0)
18
+
19
+ PLATFORMS
20
+ x64-mingw32
21
+
22
+ DEPENDENCIES
23
+ rake
24
+ test-unit
25
+ windows-api!
26
+ windows-pr (~> 1.2.4)
27
+
28
+ BUNDLED WITH
29
+ 2.3.11
data/MANIFEST CHANGED
@@ -1,6 +1,6 @@
1
1
  * CHANGES
2
2
  * MANIFEST
3
- * README
3
+ * README.rdoc
4
4
  * Rakefile
5
5
  * windows-api.gemspec
6
6
  * lib/windows/api.rb
@@ -5,22 +5,22 @@
5
5
  == Synopsis
6
6
  require 'windows/api'
7
7
  include Windows
8
-
8
+
9
9
  # Defaults to 'V' prototype, 'L' return type and 'kernel32' library
10
10
  GetVersion = API.new('GetVersion')
11
-
11
+
12
12
  # Defaults to 'L' return type and 'kernel32' library
13
13
  CloseHandle = API.new('CloseHandle', 'L')
14
-
14
+
15
15
  # Defaults to 'kernel32' library
16
16
  GetWindowsDirectory = API.new('GetWindowsDirectory', 'LI', 'I')
17
-
17
+
18
18
  # Explicitly state every argument
19
19
  GetComputerNameEx = API.new('GetComputerNameEx', 'PPP', 'I', 'kernel32')
20
-
20
+
21
21
  # Use long data type names
22
22
  GetUserName = API.new('GetUserName',['LPTSTR','LPDWORD'],'BOOL','advapi32')
23
-
23
+
24
24
  # Attributes for possible inspection
25
25
  puts GetVersion.dll_name # 'kernel32'
26
26
  puts GetVersion.function_name # 'GetVersion'
@@ -36,7 +36,7 @@
36
36
  API.auto_constant = true
37
37
  API.auto_method = true
38
38
  API.auto_unicode = true
39
-
39
+
40
40
  API.new('GetComputerName', 'PP', 'B')
41
41
  end
42
42
  end
@@ -88,9 +88,11 @@
88
88
 
89
89
  == Copyright
90
90
  (C) 2007-2015, Daniel J. Berger
91
+ (C) 2016-2022, Hiroshi Hatake
91
92
 
92
93
  == License
93
94
  Artistic 2.0
94
95
 
95
96
  == Author
96
97
  Daniel Berger
98
+ Hiroshi Hatake
data/appveyor.yml ADDED
@@ -0,0 +1,47 @@
1
+ version: '{build}'
2
+
3
+ image: Visual Studio 2019
4
+
5
+ install:
6
+ - set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
7
+ - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
8
+ - ruby --version
9
+ - gem --version
10
+ - bundle install
11
+ build: off
12
+ test_script:
13
+ - bundle exec rake test
14
+
15
+ environment:
16
+ matrix:
17
+ - ruby_version: "31-x64"
18
+ - ruby_version: "30-x64"
19
+ - ruby_version: "30"
20
+ - ruby_version: "27-x64"
21
+ - ruby_version: "27"
22
+ - ruby_version: "26-x64"
23
+ - ruby_version: "26"
24
+ - ruby_version: "25-x64"
25
+ - ruby_version: "25"
26
+ - ruby_version: "24-x64"
27
+ - ruby_version: "24"
28
+ - ruby_version: "23-x64"
29
+ - ruby_version: "23"
30
+ - ruby_version: "22-x64"
31
+ - ruby_version: "22"
32
+ - ruby_version: "21-x64"
33
+ - ruby_version: "21"
34
+ - ruby_version: "200-x64"
35
+ - ruby_version: "200"
36
+
37
+ for:
38
+ -
39
+ matrix:
40
+ only:
41
+ - ruby_version: "31-x64"
42
+ install:
43
+ - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
44
+ - ruby --version
45
+ - gem --version
46
+ - ridk install 1 3
47
+ - ridk exec bundle install