API for TotalSpaces2 with Yosemite, almost works

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
$

That should work. Do you have the latest version of the TotalSpaces2 gem installed? (2.0.3)

irb(main):006:0> TotalSpaces2.api_version
=> "2.0.2"
irb(main):007:0> TotalSpaces2.lib_total_spaces_version
=> "2.0.3"
irb(main):008:0> TotalSpaces2.total_spaces_version
=> “2.2.9”

You’re right! I didn’t, I do now, and everything works just fine. Thanks!!

$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.window_list}”;'
2014-10-18 08:46:37.895 ruby[1131:14815] +[NSScreen _screenForUUID:]: unrecognized selector sent to class 0x7fff72b891a0
2014-10-18 08:46:37.897 ruby[1131:14815] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘+[NSScreen _screenForUUID:]: unrecognized selector sent to class 0x7fff72b891a0’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8935564c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff87fdd6de objc_exception_throw + 43
2 CoreFoundation 0x00007fff893585bd +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8929fa84 forwarding + 1028
4 CoreFoundation 0x00007fff8929f5f8 _CF_forwarding_prep_0 + 120
5 libtotalspaces2api.dylib 0x0000000106c00a3f +[NSScreen(TSDisplayUUID) screenForUUID:] + 63
6 libtotalspaces2api.dylib 0x0000000106c0046e tsapi_windowList + 1534
7 libffi.dylib 0x00007fff90b73f44 ffi_call_unix64 + 76
8 ??? 0x00007fff5940b120 0x0 + 140734690799904
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.api_version}”;'
2.0.2
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.lib_total_spaces_version}”;'
2.0.0
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.total_spaces_version}”;'
2.2.9
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.5.0]
$
$ gem install totalspaces2
Fetching: totalspaces2-2.0.3.gem (100%)
Successfully installed totalspaces2-2.0.3
1 gem installed
Installing ri documentation for totalspaces2-2.0.3…
Installing RDoc documentation for totalspaces2-2.0.3…
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.api_version}”;'
2.0.2
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.lib_total_spaces_version}”;'
2.0.3
$ ruby -e 'require “totalspaces2”; puts “#{TotalSpaces2.total_spaces_version}”;'
2.2.9
$ ruby -e ‘require “totalspaces2”; puts “#{TotalSpaces2.window_list}”;’
[{:window_id=>245, :title=>
[cut]
$