From 64c043b1e2ab3631d3942047d528bd88a59f4ba7 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Mon, 21 May 2012 22:51:38 +0900 Subject: patch for 1.8.7 lack of proper ord() --- lib/axlsx/workbook/worksheet/sheet_protection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb index a11ba49d..187d2165 100644 --- a/lib/axlsx/workbook/worksheet/sheet_protection.rb +++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb @@ -184,7 +184,7 @@ module Axlsx chars.collect! do |char| i += 1 - char = char.ord << i + char = char.unpack('c')[0] << i #ord << i low_15 = char & 0x7fff high_15 = char & 0x7fff << 15 high_15 = high_15 >> 15 -- cgit v1.2.3