-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChangeLog
871 lines (629 loc) · 24.6 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
2007-08-01 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Consider the 'specifier' OSA type as 'reference'.
* src/rbosa.c:
Do not raise an exception if an application level descriptor is set but
without an error code.
=== RubyOSA 0.4.0 ===
2007-05-11 Justin Palmer <[email protected]>
* sample/Photoshop/new_doc.rb,
sample/Photoshop/new_doc_with_text.rb:
New sample code.
2007-05-11 Laurent Sansonetti <[email protected]>
* rubyosa.gemspec,
NEWS:
Prepared for 0.4.0.
* tests/tc_ical.rb:
Better test.
* tests/tc_omnigraffle.rb:
Make sure to open a document before doing the create shape test.
* tests/as.rb:
Rewrote to not depend on RubyCocoa anymore but use osascript(1) instead.
* AUTHORS:
Added Justin.
* src/rbosa.c:
Set a 'subj' attribute to the apple event if there is no direct parameter.
* tests/tc_rdoc.rb:
Added rdoc-osa tests.
* bin/rdoc-osa:
Better generator, can now handle scripting additions.
* AUTHORS:
Added Mike and Carlos.
2007-05-11 Carlos Villela <[email protected]>
* sample/iTunes/name_that_tune.rb:
New sample code.
2007-04-03 Wes Rogers <[email protected]>
* sample/iTunes/tag_genre_lastfm.rb:
New revision, that will only query Last.fm once per artist instead of multiple
times (to not abuse the webservice they provide).
2007-04-03 Laurent Sansonetti <[email protected]>
* bin/rdoc-osa:
Do not call Config.datadir if not defined (only RubyGems defines it).
2007-03-28 Laurent Sansonetti <[email protected]>
* src/lib/rbosa_properties.rb:
Added :size as a shortcut to :point_size.
* src/lib/rbosa.rb:
- When converting an Hash object to OSA, property convert Array values ;
- Convert type-less Float objects to OSA.
* tests/tc_omnigraffle.rb:
Added a test case.
2007-03-27 Laurent Sansonetti <[email protected]>
* tc_itunes.rb:
Updated test case to use #every.
2007-03-26 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
tests/tc_ical.rb,
tests/tc_textedit.rb:
- Re-implemented the way to get all attributes of an object specifier list
object, now using #every(:attribute_name) instead of #attribute_name ;
- Updated test cases.
2007-03-25 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Do not fail if a description attribute has an empty value ;
- Do not fail if a class inherits from a class that hasn't been defined yet.
* tests/tc_ical.rb:
Added test case.
2007-03-21 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Allow multiple enum values to be passed into the same argument, packing
then in an array ;
- Merge a custom method to every application class, `activate', that sends
the 'misc/actv' event.
* tests/tc_textedit.rb:
Added test cases.
2007-03-18 Laurent Sansonetti <[email protected]>
* tests/tc_itunes.rb,
tests/tc_textedit.rb,
src/lib/rbosa.rb:
- Fixed 'msng' type conversions ;
- Added the possibility to retrieve a list of attributes of a descriptor
list ;
- Added Ruby <-> OSA conversions for color type ;
- Added test cases.
2007-03-08 Laurent Sansonetti <[email protected]>
* bin/rdoc-osa:
Fixed the rdoc-osa tool for applications that do not have a 'name' command.
2007-03-02 Laurent Sansonetti <[email protected]>
* rubyosa.gemspec:
Forgot to include 'data/rubyosa/...', released a 0.3.0.1 version of the gem.
=== RubyOSA 0.3.0 ===
2007-03-02 Laurent Sansonetti <[email protected]>
* rubyosa.gemspec,
NEWS,
README:
Final sync for 0.3.0.
* src/lib/rbosa.rb:
Convert the 'doub' OSA type as double.
2007-03-01 Laurent Sansonetti <[email protected]>
* NEWS,
rubyosa.gemspec:
Prepared for 0.3.0.
* extconf.rb,
post-install.rb,
README:
Do not try to hack the install task of the generated mkmf Makefile anymore,
as it doesn't seem to work with some previous mkmf revisions. Instead just add
a new Makefile task, 'install-extras', and suggest the user to call it in the
README.
2007-02-28 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
src/rbosa.c:
Added a new global setting to control either a return value should be
expected or not from the following Apple events. Variable is OSA.wait_reply,
default value is nil which means "automatic behavior".
* src/lib/rbosa.rb:
- Send a ascr/gdut event after having merged a scriptable addition sdef ;
- Do not set the same constant twice.
2007-02-27 Laurent Sansonetti <[email protected]>
* AUTHORS:
Added Wes and Terry.
* sample/Mail/get_selected_mail.rb:
Added new Mail/TextEdit sample, contributed by Terry Donoghue.
2007-02-20 Laurent Sansonetti <[email protected]>
* sample/iTunes/tag_genre_lastfm.rb:
Added new iTunes sample, contributed by Wes Rogers <[email protected]> and
slightly modified to tag the selected tracks and not only the current track.
2007-02-17 Laurent Sansonetti <[email protected]>
* tests/tc_get_app.rb,
src/rbosa_err.c,
src/lib/rbosa.rb,
src/rbosa.c,
src/rbosa_sdef.c:
- Better error messages ;
- Accept OSA.app('AppName', :option => ...) syntax ;
- Updated test cases.
* src/lib/rbosa.rb,
tests/tc_textedit.rb:
Make sure we properly validate the command arguments number, added some test
cases.
* src/lib/rbosa.rb,
src/rbosa.c,
src/rbosa_sdef.c:
- Now automatically retrieving the remote application sdef ;
- Honors the 'id' attribute of the sdef format ;
- Be smarter when converting types from Ruby to OSA, making sure primitive
types are always converted ;
- Fixed a memory leak.
2007-02-05 Laurent Sansonetti <[email protected]>
* src/rbosa.c,
src/rbosa_sdef.c,
src/rbosa.h:
Added an SPI to get the list of processes running on a remote machine.
* src/lib/rbosa.rb,
src/rbosa_sdef.c:
- API change for OSA.app and #merge: the :by_* prefixes of keywords have been
removed (for example, OSA.app(:path => '...') instead of
OSA.app(:by_path => '...')) ;
- Added the possibility to control remote applications, by passing the
:machine keyword (:username and :password can also be used but they are not
mandatory). Work is still in progress.
* bin/rdoc-osa,
sample/misc/sdef.rb,
tests/tc_get_app.rb,
TODO:
Follow last change.
* tests/tc_omnigraffle.rb,
tests/data/test.graffle:
Added a test case to verify the last fix.
* src/lib/rbosa.rb,
src/rbosa.c:
Smarter #get method, if the resolved object doesn't inherit from the
desired class, and if it has a property method with a class key/value,
return a new descriptor of the desired class.
2007-02-03 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
bin/rdoc-osa:
Adapted the generated RDoc to mention the possibility to pass optional
parameters as a Hash key/value object.
2007-02-02 Laurent Sansonetti <[email protected]>
* tests/tc_textedit.rb,
src/lib/rbosa_properties.rb,
src/lib/rbosa.rb,
sample/TextEdit/hello_world.rb:
Auto-convert codes to symbols when converting Ruby Hash objects into OSA
records. Register the application properties. Added a test case. Updated
sample code.
* rubyosa.gemspec:
Synchronized (using 0.2.1 for the version though).
* src/lib/rbosa.rb:
Same conversion behavior for 'type' than 'type class'.
2007-02-01 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
src/rbosa.c:
Better inspect methods for OSA::Element and OSA::ObjectSpecifierList.
2007-01-31 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
src/rbosa_sdef.c:
Better error messages for OSA.app and #merge.
* extconf.rb,
bin/rdoc-osa,
data/rubyosa/rdoc_html.rb,
post-install.rb:
- Better RDoc generation (removed the Files frame, references to the generated
dummy Ruby file and source code, changed the default HTML title) ;
- Make sure the rdoc-osa tool and the new template are properly installed in
the right locations by 'make install'.
* src/rbosa.c:
Make sure we send events with the user-can-interact flag set on.
2007-01-30 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
When trying to merge an sdef in the current application, if the LaunchServices
couldn't locate it by its name, let's be clever and look inside the
ScriptingAdditions locations.
* src/lib/rbosa.rb,
src/rbosa.c,
src/rbosa_sdef.c,
src/rbosa.h,
bin/rdoc-osa,
sample/misc/sdef.rb,
tests/tc_itunes.rb,
tests/tc_ichat.rb,
tests/tc_textedit.rb,
tests/tc_get_app.rb,
TODO:
- Added support for merging additional sdef to an existing application object
by using the #merge method ;
- API change: OSA.app() now accept an inline Hash syntax with :by_name,
:by_path, :by_bundle_id and :by_signature keys/values. The old
OSA.app_with_* methods have been deprecated ;
- Updated samples and test cases to the new API.
2007-01-29 Laurent Sansonetti <[email protected]>
* tests/tc_ichat.rb,
src/lib/rbosa.rb,
bin/rdoc-osa:
- Fixed properties returning 'list_of_*' types (and added some tests cases) ;
- Small RDoc fixes.
* tests/tc_textedit.rb,
src/lib/rbosa.rb,
TODO:
Added the possibility to specify optional arguments using an inline-Hash
syntax (the old way is also still possible).
* tests/tc_textedit.rb,
tests/as.rb,
tests/tc_get_app.rb,
src/lib/rbosa.rb,
TODO:
Get rid of costly evalulations. Added more test cases.
2007-01-26 Laurent Sansonetti <[email protected]>
* tests/tc_textedit.rb,
src/lib/rbosa.rb,
src/rbosa.c,
TODO:
Added support for some 'location reference' types (before/after a given
descriptor). Added some test cases.
* COPYRIGHT,
*/**/*.{rb,c,h}:
Updated copyright marks.
2007-01-25 Laurent Sansonetti <[email protected]>
* src/rbosa_err.c,
src/rbosa.c,
src/rbosa.h:
Better application-level error handling. Now converting the error numbers to
human-readable sentences.
* tests/tc_textedit.rb,
src/lib/rbosa_properties.rb,
src/lib/rbosa.rb:
Added translation support for property codes. Now translating themi when
converting when converting records from OSA to Ruby (as a Hash object). Added
a text case.
* src/lib/rbosa.rb:
- Added OSA -> Ruby 'TIFF' conversion ;
- Fixed the Ruby -> OSA 'list_of_*' conversion.
* tests/tc_itunes.rb,
tests/tc_ichat.rb,
tests/as.rb:
Added some new tests to check RubyOSA with iTunes and iChat.
Uses NSAppleScript through RubyCocoa to verify what has been done.
* AUTHORS:
Added Michail.
2007-01-25 Michail Pishchagin <[email protected]>
* src/lib/rbosa.rb:
Make sure '$' and '=' are escaped.
2007-01-21 Mike Naberezny <[email protected]>
* sample/:
Sorted samples into subdirectories by application.
2007-01-17 Laurent Sansonetti <[email protected]>
* src/rbosa.c:
Fixed 64-bit build.
2007-01-11 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Make sure the converted 'alis' paths are unescaped. Thanks James MacAulay.
2007-01-07 Laurent Sansonetti <[email protected]>
* sample/AddressBook_inspect.rb:
Modified to handle application-level errors that Address Book could
raise when trying to format malformed addresses.
* src/rbosa.c:
Fixed handling of application-level errors.
* tests/testall.rb,
src/lib/rbosa.rb,
src/rbosa.c,
src/rbosa_sdef.c,
src/rbosa.h,
src/rbosa_conv.c,
COPYRIGHT,
extconf.rb,
bin/rdoc-osa:
Updated copyright date to 2007.
* AUTHORS:
Added Stefan.
2007-01-07 Stefan Saasen <[email protected]>
* sample/AddressBook_inspect.rb:
New sample code, that prints all contacts in the Address Book.
=== RubyOSA 0.2.0 ===
2007-02-01 Laurent Sansonetti <[email protected]>
* rubyosa.gemspec:
Updated for 0.2.0.
2006-12-29 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
src/rbosa.c:
- Made the UTF8 strings optional and disabled by default ;
- Fixed the TIFF conversion to OSA ;
- Handle application errors and convert them as Ruby exceptions.
* sample/iTunes_control.rb,
sample/iTunes_inspect.rb:
Activate UTF8 strings.
2006-12-27 Laurent Sansonetti <[email protected]>
* NEWS:
Revised for the next release.
* src/lib/rbosa:
Added 'class' to the list of reserved Ruby keywords to prefix when generating
method parameters.
2006-12-27 Vincent Isambart <[email protected]>
* src/lib/rbosa.rb:
- Fixed a bug when generating setter methods ;
- Uses UTF8 strings by default.
2006-12-27 Laurent Sansonetti <[email protected]>
* sample/TextEdit_hello_world.rb:
Removed experimental code.
2006-12-07 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Suffix method names that are already registered with an integer value
instead of prefixing with 'osa_' as there might be more than 2 duplicates ;
- Register the ID property if not already defined.
2006-11-20 Jean-Pierre M. <[email protected]>
* sample/iTunes_artwork.rb:
Use the artwork format as the temporary file extension.
2006-11-20 Laurent Sansonetti <[email protected]>
* README:
Revised.
* src/rbosa.c:
Make sure to swap the data of 'type' coerced descriptors.
* src/lib/rbosa.rb:
- Better translation of 'type' from OSA to Ruby ;
- Support for some picture types ;
- Fixed conversion handlers to not use 'self'.
* sample/iTunes_artwork.rb,
sample/iChat_image.rb:
Added new samples.
2006-11-19 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Convert four char codes to the Mac Roman encoding before using them,
as otherwise they could be considered as 5 bytes strings (ex. BBEdit) ;
- Remove invalid characters when generating constants.
* sample/Finder_show_desktop.rb,
sample/BBEdit_unix_script.rb:
Added new samples.
2006-11-04 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Translate 'alis' OSA types to Ruby file paths.
2006-10-30 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
sample/*.rb:
Changed the "require 'rubygems'..." expressions to make them compatible
with Ruby 1.8.2.
* src/lib/rbosa.rb,
src/rbosa.c:
Added support to convert Hash objects to OSA 'record' types.
2006-09-28 James MacAulay <[email protected]>
* src/lib/rbosa.rb:
- Reverted to 0.0.11 handling of 'comp' objects (unpacked as Quad integers
again now) ;
- Added handling for 'sing' objects (they're floats) ;
- Added handling for when __type__ is 'type' and __data__ is 'msng'.
It seems that this is meant to suggest "missing" values, since this is
exactly where they pop up in iTunes track properties (in an uninitialized
long_description, for example)...so I just made them turn into nils.
2006-10-28 Jean-Pierre M. <[email protected]>
* sample/*.rb:
Try to require 'rubygems' in samples, as RubyOSA may have been
installed as a gem.
2006-10-28 Laurent Sansonetti <[email protected]>
* TODO:
Updated.
* src/lib/rbosa.rb:
Fixed generated code for methods taking an enumeration-like parameter.
This fixes #6350.
2006-10-27 Laurent Sansonetti <[email protected]>
* sample/iChat_uptime.rb:
Better uptime string. Suggested by Tieg Zaharia.
=== RubyOSA 0.1.0 ===
2006-10-25 Sebastian Delmont <[email protected]>
* src/lib/rbosa.rb:
Made the OSA <-> Ruby conversion hooks open.
Patch was slightly modified by Laurent Sansonetti.
2006-10-25 Aaron Patterson <[email protected]>
* src/lib/rbosa.rb:
Fall-back using REXML if libxml-ruby is not present.
Patch was slightly modified by Laurent Sansonetti.
2006-10-25 Laurent Sansonetti <[email protected]>
* AUTHORS:
Added Aaron.
* rubyosa.gemspec,
bin/rdoc-osa,
rdoc-osa.rb:
- Added RubyGems specification file ;
- Moved the rdoc-osa tool to ./bin ;
- Added support for 'type class' OSA parameters.
* sample/TextEdit_hello_world.rb:
Added new sample.
* README:
Revised.
* src/rbosa.c:
Do not inspect descriptors.
* src/lib/rbosa.rb,
rdoc-osa.rb:
- Retrieves documentation from the sdef ;
- Added a new tool (rdoc-osa) that generates RDoc documentation for the
given application ;
- Improved constant/method names generation.
* sample/iTunes_control.rb:
Follow new constant naming.
* TODO:
Revised.
2006-10-16 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb,
sample/*.rb:
Added OSA.app as a convenience shortcut to OSA.app_with_name.
Updated samples.
* src/lib/rbosa.rb,
src/rbosa.c,
src/rbosa.h:
- Added OSA accessors to control the Apple Event timeouts
and the lazy send mechanism (by default activated) ;
- Added a convenience method (OSA.set_params) to set params
within the framework of a given closure.
2006-10-13 Laurent Sansonetti <[email protected]>
* README, TODO:
Revisions for the first public release.
2006-10-11 Sebastian Delmont <[email protected]>
* src/lib/rbosa.rb:
Fixed a bug in the code when handling optional
parameters. If a parameter is optional, defines
all other parameters as optional.
2006-09-29 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb, src/rbosa.c:
Added support for list of types parameters.
2006-09-28 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Print the debug messages only if $DEBUG is on.
* AUTHORS:
Added Sebastian and James.
2006-09-28 James MacAulay <[email protected]>
* src/lib/rbosa.rb:
Properly convert the 'comp' type to real 64-bit value.
2006-09-27 Sebastian Delmont <[email protected]>
* src/lib/rbosa.rb:
Added support for the QuickDraw rectangle type.
2006-09-25 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Do not implicitly resolve 'reference'-typed objects.
2006-09-17 Laurent Sansonetti <[email protected]>
* TODO:
Closed the libxml task.
2006-09-14 Laurent Sansonetti <[email protected]>
* README:
Mention that libxml-ruby is now required.
* src/lib/rbosa.rb:
- Requires libxml-ruby and uses it to parse the sdef file ;
- Fixed a bug where certain setter property methods were not
generated.
* src/rbosa.c:
s/OSA::Application/OSA::EventDispatcher.
2006-08-25 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Big change: try to minimize the send of apple events. We won't
implicitly resolve object specifiers unless 1) a command is
messaged 2) a primitive type (which is not defined in the sdef)
is get 3) a property setter is messaged and 4) you explicitly
call the #get method on the object.
* src/rbosa.c:
Added OSA::Element#inspect that prints the contents of the
embedded descriptor.
2006-08-24 Laurent Sansonetti <[email protected]>
* src/rbosa.c:
- Added OSA::Element#==() that compares the descriptors data ;
- Make sure we rb_fatal() when we can't allocate memory ;
- When guessing classes, do some sanity checks before, and
cleaned the byte swapping part ;
- Cleaned the four char code to string conversions.
* src/lib/rbosa.rb:
Don't override existing methods, prefixing the generated
method names with 'osa_' when necessary. When mapping the
commands, filter the classes to only take the oldest ones in
the hierarchy.
2006-08-23 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
When converting to alias or file types, provide a 'furl'
descriptor instead of an 'alis' one, as we don't have a way
to create an alias for a file that does not exist yet.
2006-08-22 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb, src/rbosa.c:
- Added support for 'reco' types, that are now translated into
Ruby Hash objects ;
- Convert 'type' types to real generated classes (if possible).
2006-08-22 Vincent Isambart <[email protected]>
* src/lib/rbosa.rb, src/rbosa.c:
Set the @app instance variable to self for application instances,
and cleanup the generated methods code logic to always use it.
2006-08-22 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Handle 'file' element types as aliases.
* src/rbosa_sdef.c:
- Don't try to get the app name when OSA.app_with_name() was called,
as we already have it ;
- When trying to get the app name, if CFBundleName does not exist in
the Info.plist file, try for CFBundleExecutable.
2006-08-22 Vincent Isambart <[email protected]>
* src/lib/rbosa.rb:
- Map '-', '/' and '.' to underscores, and '&' to 'and' when rubyfy'ing
strings (Finder and QuickTime do have these characters) ;
- Ignore commands whose names contain 'NOT AVAILABLE' (Finder on Tiger
has some) ;
- When creating classes, make sure we iterate on all elements (as some
classes can be defined within multiple suites) ;
- Use Module#const_set instead of costly evals to define constants.
* sample/QT_playall.rb:
Added new sample.
2006-08-22 Laurent Sansonetti <[email protected]>
* AUTHORS:
Added.
2006-08-10 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Fix latest fix.
* src/rbosa.c:
Removed unnecessary comment.
2006-08-08 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
Cache the application objects so that we never create them more than once.
* src/rbosa_sdef.c:
Fixed the OSA.app_with_signature() method.
* tests/tc_get_app.rb, tests/testall.rb:
Added some test cases.
* src/rbosa_conv.c:
Raise an exception if an URL could not be created with the given file
path (reported by Michael Pruett).
2006-07-26 Laurent Sansonetti <[email protected]>
* src/rbosa.c, src/rbosa_sdef.c, src/lib/rbosa.rb:
- The application class does not inherit from OSA::Application anymore,
as in some sdef it inherits from another class. OSA::Application has
been transformed as a module and is mixed in the class instead ;
- Fixed the sdef retrieval method to generate a Ruby string with the
exact length of the given data, to avoid garbage at the end of the XML
definition that can sometimes make REXML a bit nervous.
2006-07-23 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Map direct-specifier-optional commands to the application class ;
- Do not override methods if they are already defined.
* sample/iTunes_fade_volume.rb:
Fixed the iTunes_fade_volume.rb sample to call app#play ;
2006-07-19 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb, src/rbosa.c, src/rbosa.h, src/rbosa_conv.c:
- Fixed methods with direct-parameter mapped to the application class ;
- Do not warn for classes that inherit from themselves (not a bug) ;
- Added support for aliases (Ruby String -> Carbon AliasHandle) ;
- Fixed integers-packed-into-string arguments handling ;
- Handle 'text' element types as strings.
* sample/iTunes_fade_volume.rb:
New sample.
2006-07-13 Laurent Sansonetti <[email protected]>
* src/rbosa.c, src/lib/rbosa.rb:
- Do not overwrite new class constants if they already exist ;
- When a class in the sdef inherits from a class that is not
defined, raises a warning and falls back on OSA::Element.
- When guessing the class type of an object specifier, make sure
we don't check more than 4 characters.
* sample/iChat_uptime.rb:
New sample.
2006-07-12 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb:
- Prefix generated constant names with a 'C' in case the name starts
with an digit, to avoid an exception ;
- Added write-support for properties ;
- Fixed AE -> Ruby boolean type conversion ;
- When passing parameters, check if OSA::Element objects are given
and use them instead of creating new ones.
* sample/iTunes_control.rb:
Use the mute property.
* TODO:
- Updated to mention events timeout ;
- Closed the 'write-support' point.
2006-07-11 Laurent Sansonetti <[email protected]>
* extconf.rb, src/rbosa.h:
Generate modified Ruby headers at build time to avoid symbol
collisions (ID, T_DATA).
2006-07-10 Laurent Sansonetti <[email protected]>
* sample/iTunes_control.rb:
Reverted last change since it does not seem to work... print a message
in the meantime we don't support write operations.
* src/lib/rbosa.rb:
Do not print warning messages unless $VERBOSE is set.
* src/lib/rbosa.rb, src/rbosa.c, src/rbosa.h, src/rbosa_conv.c:
Added x86 support (fixed FourCharCode swapping issues).
2006-07-05 Laurent Sansonetti <[email protected]>
* src/lib/rbosa.rb, src/rbosa.c, src/rbosa_sdef.c, src/rbosa.h,
sample/sdef.rb, sample/iTunes_control.rb, sample/iTunes_inspect.rb:
API change: OSA.app() is splited in 4 sub-methods: OSA.app_with_name(),
OSA.app_with_path(), OSA.app_with_bundle_id() and OSA.app_with_signature.
* src/lib/rbosa.rb:
Convert null elements to nil (fix by Vincent Isambart).
* sample/iTunes_control.rb:
When starting and if there is currently no track, select the first one
and play it.
* TODO:
Reformat.
2006-06-27 Laurent Sansonetti <[email protected]>
* COPYRIGHT, ChangeLog, README, TODO, extconf.rb,
sample/iTunes_control.rb, sample/iTunes_inspect.rb, sample/sdef.rb,
src/rbosa.c, src/rbosa.h, src/rbosa_conv.c, src/rbosa_sdef.c,
lib/rbosa.rb:
Initial RubyForge revision.