Blame @OJ

He changed the clipboard API underneat me.
bug/bundler_fix
Meatballs 2014-03-03 22:06:05 +00:00
parent 32d83887d3
commit 43715eeb7f
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
2 changed files with 3 additions and 5 deletions

View File

@ -121,7 +121,7 @@ module ShadowCopy
#
def create_shadowcopy(volume)
result = wmic_query("shadowcopy call create \"ClientAccessible\", \"#{volume}\"")
puts result
retval = result.match(/ReturnValue = (\d)/)
case retval[1].to_i
when 0

View File

@ -50,10 +50,8 @@ module WMIC
if extapi
result = session.extapi.clipboard.get_data.first
session.extapi.clipboard.set_text("")
if result[:type] == :text
result_text = result[:data]
if result[1].has_key? 'Text'
result_text = result[1]['Text']
else
result_text = ""
end