thefloweringash / iousbhiddriver-descriptor-override

Fix broken USB HID descriptors. Now with Noppoo Choc Mini support!
http://thefloweringash.github.io/iousbhiddriver-descriptor-override
GNU Lesser General Public License v3.0
204 stars 25 forks source link

Rake scan failed with undefined method 'slice_when' #35

Open hcngac opened 7 years ago

hcngac commented 7 years ago

rake scan failed to scan for device descriptors Error msgs:

rake scan
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby scripts/scanner.rb
Checking device: #<LIBUSB::Device 20/11 0566:3067 ? USB Keyboard ? (HID (01,01), HID (00,00))>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20181f60>" processing #<LIBUSB::Interface 0>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20180200>" processing #<LIBUSB::Interface 1>
Checking device: #<LIBUSB::Device 20/5 1ea7:2010 WFDZ Gaming Keyboard ? (HID (01,01), HID (00,00))>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20188ef0>" processing #<LIBUSB::Interface 0>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20193850>" processing #<LIBUSB::Interface 1>
Checking device: #<LIBUSB::Device 20/4 05ac:8242 Apple, Inc. IR Receiver ? (HID (00,00))>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20190b28>" processing #<LIBUSB::Interface 0>
Checking device: #<LIBUSB::Device 20/2 1bcf:0005 ? USB Optical Mouse ? (HID (01,02))>
Ignoring exception "undefined method `slice_when' for #<Array:0x007fbe20199a48>" processing #<LIBUSB::Interface 0>
thefloweringash commented 7 years ago

The scanner requires ruby 2.2 or newer. Easiest way to install this is probably homebrew.