Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Duplicate strings from environment hash to avoid issues with calls into ... #12

Merged
merged 2 commits into from
Oct 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ None

Release: 0.2.0
--------------
* Fix invalid use of frozen string ENV block is used for user and domain
* Update to WinRM 1.2.0 gem dependency

Release: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion lib/winrm-s/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
#

module WinrmS
VERSION = "0.2.0.rc.0"
VERSION = "0.2.0"
MAJOR, MINOR, TINY = VERSION.split('.')
end
6 changes: 3 additions & 3 deletions lib/winrm/win32/sspi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def initialize(user = nil, domain = nil, password = nil)
if user.nil? && domain.nil? && ENV["USERNAME"].nil? && ENV["USERDOMAIN"].nil?
raise "A username or domain must be supplied since they cannot be retrieved from the environment"
end
@user = user || ENV["USERNAME"]
@domain = domain || ENV["USERDOMAIN"]
@user = user || ENV["USERNAME"].dup
@domain = domain || ENV["USERDOMAIN"].dup
@password = password
end

Expand Down Expand Up @@ -253,4 +253,4 @@ def get_credentials
end
end
end
end
end