Skip to content

Commit

Permalink
Merge pull request #32 from MsysTechnologiesllc/piyush/fix_for_ruby2.0
Browse files Browse the repository at this point in the history
[MSYS-836] fixes for ruby2.0 and FFI destroy object messages
  • Loading branch information
tas50 authored Jun 11, 2018
2 parents 6c2179c + c86e3c1 commit 8358a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/win32/certstore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def add_finalizer(certstore_handler)
end

def self.finalize(certstore_handler)
proc { puts "DESTROY OBJECT #{certstore_handler}" }
proc { "#{certstore_handler}" }
end

# To close all open certificate store at the end
Expand Down
4 changes: 2 additions & 2 deletions lib/win32/certstore/mixin/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Mixin
module Assertions
# Validate certificate store name
def validate_store(store_name)
unless valid_store_name.include?(store_name&.upcase)
unless valid_store_name.include?(store_name.to_s.upcase)
raise ArgumentError, "Invalid Certificate Store."
end
end
Expand Down Expand Up @@ -82,7 +82,7 @@ def lookup_error(failed_operation = nil)
# ROOT -> Root certificates.
# SPC -> Software Publisher Certificate.
def valid_store_name
%w{MY CA ROOT SPC}
%w{MY CA ROOT AUTHROOT DISALLOWED SPC TRUST TRUSTEDPEOPLE TRUSTEDPUBLISHER CLIENTAUTHISSUER TRUSTEDDEVICES SMARTCARDROOT WEBHOSTING REMOTE\ DESKTOP}
end
end
end
Expand Down

0 comments on commit 8358a0f

Please sign in to comment.