windows_error 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module WindowsError
14
14
  def self.find_by_retval(retval)
15
15
  raise ArgumentError, "Invalid Return Code!" unless retval.kind_of? Integer
16
16
  error_codes = []
17
- self.constants.each do |constant_name|
17
+ self.constants.sort.each do |constant_name|
18
18
  error_code = self.const_get(constant_name)
19
19
  if error_code == retval
20
20
  error_codes << error_code
@@ -1,3 +1,3 @@
1
1
  module WindowsError
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -14,7 +14,7 @@ module WindowsError
14
14
  def self.find_by_retval(retval)
15
15
  raise ArgumentError, "Invalid Return Code!" unless retval.kind_of? Integer
16
16
  error_codes = []
17
- self.constants.each do |constant_name|
17
+ self.constants.sort.each do |constant_name|
18
18
  error_code = self.const_get(constant_name)
19
19
  if error_code == retval
20
20
  error_codes << error_code
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: windows_error
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -93,7 +93,7 @@ cert_chain:
93
93
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
94
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
95
  -----END CERTIFICATE-----
96
- date: 2022-01-11 00:00:00.000000000 Z
96
+ date: 2023-01-19 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: bundler
@@ -174,6 +174,8 @@ files:
174
174
  - Rakefile
175
175
  - lib/windows_error.rb
176
176
  - lib/windows_error/error_code.rb
177
+ - lib/windows_error/h_result.rb
178
+ - lib/windows_error/h_result/facility.rb
177
179
  - lib/windows_error/nt_status.rb
178
180
  - lib/windows_error/version.rb
179
181
  - lib/windows_error/win32.rb
@@ -201,8 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
203
  - !ruby/object:Gem::Version
202
204
  version: '0'
203
205
  requirements: []
204
- rubyforge_project:
205
- rubygems_version: 2.7.10
206
+ rubygems_version: 3.1.4
206
207
  signing_key:
207
208
  specification_version: 4
208
209
  summary: Provides a way to look up Windows NTSTATUS and Win32 Error Codes
metadata.gz.sig CHANGED
Binary file