The good news is that all but one of the methods that I use work just fine with Yosemite.
The one method that fails is “window_list”.
Please see below for an example failure tried in Terminal.
Thanks,
Bob
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10
BuildVersion: 14A389
$
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.window_list}”;'
2014-10-17 23:33:47.669 ruby[1905:100427] +[NSScreen _screenForUUID:]: unrecognized selector sent to class 0x7fff78f8d1a0
2014-10-17 23:33:47.672 ruby[1905:100427] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘+[NSScreen _screenForUUID:]: unrecognized selector sent to class 0x7fff78f8d1a0’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8f75964c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8e3e16de objc_exception_throw + 43
2 CoreFoundation 0x00007fff8f75c5bd +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8f6a3a84 forwarding + 1028
4 CoreFoundation 0x00007fff8f6a35f8 _CF_forwarding_prep_0 + 120
5 libtotalspaces2api.dylib 0x00000001043d0a3f +[NSScreen(TSDisplayUUID) screenForUUID:] + 63
6 libtotalspaces2api.dylib 0x00000001043d046e tsapi_windowList + 1534
7 libffi.dylib 0x00007fff96f77f44 ffi_call_unix64 + 76
8 ??? 0x00007fff5bc3b120 0x0 + 140734732939552
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
$