nice-ffi 0.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog.txt CHANGED
@@ -1,3 +1,496 @@
1
+ ------------------------------------------------------------
2
+ Author: John Croisant <jacius@gmail.com>
3
+ Date: Sat Oct 24 15:58:31 2009 -0500
4
+
5
+ Nice-FFI 0.2 released.
6
+
7
+ M README.rdoc
8
+
9
+ ------------------------------------------------------------
10
+ Author: John Croisant <jacius@gmail.com>
11
+ Date: Wed Oct 21 19:36:02 2009 -0500
12
+
13
+ Added Library.optional_func (alias: optfunc).
14
+
15
+ M lib/nice-ffi/library.rb
16
+
17
+ ------------------------------------------------------------
18
+ Author: John Croisant <jacius@gmail.com>
19
+ Date: Wed Oct 21 15:25:16 2009 -0500
20
+
21
+ Added Library.optional(), with specs.
22
+
23
+ M lib/nice-ffi/library.rb
24
+ A spec/library_spec.rb
25
+
26
+ ------------------------------------------------------------
27
+ Author: John Croisant <jacius@gmail.com>
28
+ Date: Tue Oct 20 19:27:53 2009 -0500
29
+
30
+ Nice-FFI 0.2 RC1 released.
31
+
32
+ M README.rdoc
33
+
34
+ ------------------------------------------------------------
35
+ Author: John Croisant <jacius@gmail.com>
36
+ Date: Tue Oct 20 19:26:30 2009 -0500
37
+
38
+ Bumped require ffi version to 0.5.0.
39
+
40
+ M nice-ffi.gemspec
41
+
42
+ ------------------------------------------------------------
43
+ Author: John Croisant <jacius@gmail.com>
44
+ Date: Tue Oct 20 18:40:41 2009 -0500
45
+
46
+ Renamed nicelibrary.rb -> library.rb, nicestruct.rb -> struct.rb.
47
+
48
+ M lib/nice-ffi.rb
49
+ A lib/nice-ffi/library.rb
50
+ D lib/nice-ffi/nicelibrary.rb
51
+ D lib/nice-ffi/nicestruct.rb
52
+ A lib/nice-ffi/struct.rb
53
+
54
+ ------------------------------------------------------------
55
+ Author: John Croisant <jacius@gmail.com>
56
+ Date: Tue Oct 20 03:22:49 2009 -0500
57
+
58
+ Miscellaneous tweaks to improve JRuby compatibility.
59
+
60
+ M lib/nice-ffi/autorelease.rb
61
+ M lib/nice-ffi/nicestruct.rb
62
+ M lib/nice-ffi/opaquestruct.rb
63
+ M spec/autorelease_spec.rb
64
+ M spec/opaquestruct_spec.rb
65
+
66
+ ------------------------------------------------------------
67
+ Author: John Croisant <jacius@gmail.com>
68
+ Date: Tue Oct 20 01:57:07 2009 -0500
69
+
70
+ Added rubyforge_project to gemspec.
71
+
72
+ M nice-ffi.gemspec
73
+
74
+ ------------------------------------------------------------
75
+ Author: John Croisant <jacius@gmail.com>
76
+ Date: Tue Oct 20 01:34:58 2009 -0500
77
+
78
+ mkchangelog.rb requires 'fileutils'.
79
+
80
+ M scripts/mkchangelog.rb
81
+
82
+ ------------------------------------------------------------
83
+ Author: John Croisant <jacius@gmail.com>
84
+ Date: Mon Oct 19 01:44:28 2009 -0500
85
+
86
+ TypedPointer can take an option to disable autorelease.
87
+
88
+ M lib/nice-ffi/nicestruct.rb
89
+ M lib/nice-ffi/typedpointer.rb
90
+
91
+ ------------------------------------------------------------
92
+ Author: John Croisant <jacius@gmail.com>
93
+ Date: Sun Oct 18 23:40:13 2009 -0500
94
+
95
+ AutoRelease uses a Mutex for extra protection.
96
+
97
+ M lib/nice-ffi/autorelease.rb
98
+
99
+ ------------------------------------------------------------
100
+ Author: John Croisant <jacius@gmail.com>
101
+ Date: Sun Oct 18 14:28:48 2009 -0500
102
+
103
+ 'need' is no longer required. Oh the irony.
104
+
105
+ M README.rdoc
106
+ M nice-ffi.gemspec
107
+
108
+ ------------------------------------------------------------
109
+ Author: John Croisant <jacius@gmail.com>
110
+ Date: Sun Oct 18 14:18:23 2009 -0500
111
+
112
+ Revamped how files are required.
113
+
114
+ M lib/nice-ffi.rb
115
+ M lib/nice-ffi/autorelease.rb
116
+ M lib/nice-ffi/nicelibrary.rb
117
+ M lib/nice-ffi/nicestruct.rb
118
+ M lib/nice-ffi/opaquestruct.rb
119
+ M lib/nice-ffi/typedpointer.rb
120
+ M spec/autorelease_spec.rb
121
+ M spec/opaquestruct_spec.rb
122
+ M spec/pathset_spec.rb
123
+ A spec/spec_helper.rb
124
+
125
+ ------------------------------------------------------------
126
+ Author: John Croisant <jacius@gmail.com>
127
+ Date: Sun Oct 18 14:11:36 2009 -0500
128
+
129
+ Updated README.rdoc and nice-ffi.gemspec.
130
+
131
+ M README.rdoc
132
+ M nice-ffi.gemspec
133
+
134
+ ------------------------------------------------------------
135
+ Author: John Croisant <jacius@gmail.com>
136
+ Date: Sun Oct 18 14:11:02 2009 -0500
137
+
138
+ Updated usage.rdoc.
139
+
140
+ M docs/usage.rdoc
141
+
142
+ ------------------------------------------------------------
143
+ Author: John Croisant <jacius@gmail.com>
144
+ Date: Sun Oct 18 14:00:03 2009 -0500
145
+
146
+ Minor bug in OpaqueStruct#initialize.
147
+
148
+ M lib/nice-ffi/opaquestruct.rb
149
+
150
+ ------------------------------------------------------------
151
+ Author: John Croisant <jacius@gmail.com>
152
+ Date: Wed Oct 14 17:47:04 2009 -0500
153
+
154
+ Oops, PathSet regexp should be /windows/, not /win32/.
155
+
156
+ M docs/usage.rdoc
157
+ M lib/nice-ffi/pathset.rb
158
+
159
+ ------------------------------------------------------------
160
+ Author: John Croisant <jacius@gmail.com>
161
+ Date: Wed Oct 14 13:47:59 2009 -0500
162
+
163
+ Clarified PathSet docs a bit.
164
+
165
+ M lib/nice-ffi/pathset.rb
166
+
167
+ ------------------------------------------------------------
168
+ Author: John Croisant <jacius@gmail.com>
169
+ Date: Wed Oct 14 13:37:06 2009 -0500
170
+
171
+ Nondestructive PathSet methods have the big docs now.
172
+
173
+ M lib/nice-ffi/pathset.rb
174
+
175
+ ------------------------------------------------------------
176
+ Author: John Croisant <jacius@gmail.com>
177
+ Date: Wed Oct 14 00:38:57 2009 -0500
178
+
179
+ Using "entries" not "pathsets" for variable names, to avoid confusion.
180
+
181
+ M lib/nice-ffi/pathset.rb
182
+
183
+ ------------------------------------------------------------
184
+ Author: John Croisant <jacius@gmail.com>
185
+ Date: Wed Oct 14 00:34:58 2009 -0500
186
+
187
+ Reduced redundancy in PathSet's internal methods.
188
+
189
+ M lib/nice-ffi/pathset.rb
190
+
191
+ ------------------------------------------------------------
192
+ Author: John Croisant <jacius@gmail.com>
193
+ Date: Tue Oct 13 22:39:16 2009 -0500
194
+
195
+ Eliminated a bunch of redundant and repetetive PathSet methods.
196
+
197
+ PathSet#append!, etc. can now accept :paths or :files as first
198
+ arg to behave as #append_paths! and #append_files did.
199
+
200
+ M lib/nice-ffi/pathset.rb
201
+
202
+ ------------------------------------------------------------
203
+ Author: John Croisant <jacius@gmail.com>
204
+ Date: Tue Oct 13 01:55:38 2009 -0500
205
+
206
+ Updated PathSet docs. Examples need updated, though.
207
+
208
+ M lib/nice-ffi/pathset.rb
209
+
210
+ ------------------------------------------------------------
211
+ Author: John Croisant <jacius@gmail.com>
212
+ Date: Mon Oct 12 23:27:51 2009 -0500
213
+
214
+ Updated usage.rdoc.
215
+
216
+ M docs/usage.rdoc
217
+
218
+ ------------------------------------------------------------
219
+ Author: John Croisant <jacius@gmail.com>
220
+ Date: Mon Oct 12 23:27:05 2009 -0500
221
+
222
+ Library#load_library loads plain library name as last resort.
223
+
224
+ M lib/nice-ffi/nicelibrary.rb
225
+
226
+ ------------------------------------------------------------
227
+ Author: John Croisant <jacius@gmail.com>
228
+ Date: Mon Oct 12 23:03:20 2009 -0500
229
+
230
+ Improved PathSet.new. It can take Arrays and stuff now, too.
231
+
232
+ M lib/nice-ffi/pathset.rb
233
+
234
+ ------------------------------------------------------------
235
+ Author: John Croisant <jacius@gmail.com>
236
+ Date: Mon Oct 12 22:22:30 2009 -0500
237
+
238
+ Moved Library::DEFAULT_PATHS to PathSet::DEFAULT.
239
+
240
+ M lib/nice-ffi/nicelibrary.rb
241
+ M lib/nice-ffi/pathset.rb
242
+
243
+ ------------------------------------------------------------
244
+ Author: John Croisant <jacius@gmail.com>
245
+ Date: Mon Oct 12 17:30:48 2009 -0500
246
+
247
+ PathSet shouldn't allow Regexp values, that was dumb of me.
248
+
249
+ M lib/nice-ffi/pathset.rb
250
+
251
+ ------------------------------------------------------------
252
+ Author: John Croisant <jacius@gmail.com>
253
+ Date: Mon Oct 12 15:24:52 2009 -0500
254
+
255
+ Revamped PathSet#find.
256
+
257
+ M lib/nice-ffi/pathset.rb
258
+
259
+ ------------------------------------------------------------
260
+ Author: John Croisant <jacius@gmail.com>
261
+ Date: Mon Oct 12 13:22:40 2009 -0500
262
+
263
+ Added PathSet#delete_paths[!] and delete_files[!].
264
+
265
+ M lib/nice-ffi/pathset.rb
266
+
267
+ ------------------------------------------------------------
268
+ Author: John Croisant <jacius@gmail.com>
269
+ Date: Mon Oct 12 13:21:51 2009 -0500
270
+
271
+ Added PathSet#remove_paths[!] and remove_files[!].
272
+
273
+ M lib/nice-ffi/pathset.rb
274
+
275
+ ------------------------------------------------------------
276
+ Author: John Croisant <jacius@gmail.com>
277
+ Date: Mon Oct 12 13:20:43 2009 -0500
278
+
279
+ Added PathSet#replace_paths[!] and replace_files[!].
280
+
281
+ M lib/nice-ffi/pathset.rb
282
+
283
+ ------------------------------------------------------------
284
+ Author: John Croisant <jacius@gmail.com>
285
+ Date: Mon Oct 12 13:19:58 2009 -0500
286
+
287
+ Added PathSet#prepend_paths[!] and prepend_files[!].
288
+
289
+ M lib/nice-ffi/pathset.rb
290
+
291
+ ------------------------------------------------------------
292
+ Author: John Croisant <jacius@gmail.com>
293
+ Date: Mon Oct 12 13:17:59 2009 -0500
294
+
295
+ Added PathSet#append_paths[!] and append_files[!].
296
+
297
+ M lib/nice-ffi/pathset.rb
298
+
299
+ ------------------------------------------------------------
300
+ Author: John Croisant <jacius@gmail.com>
301
+ Date: Mon Oct 12 03:14:19 2009 -0500
302
+
303
+ Added PathSet#modify_part.
304
+
305
+ M lib/nice-ffi/pathset.rb
306
+
307
+ ------------------------------------------------------------
308
+ Author: John Croisant <jacius@gmail.com>
309
+ Date: Mon Oct 12 02:50:45 2009 -0500
310
+
311
+ PathSet#_modify_set can handle Regexps and Strings now.
312
+
313
+ M lib/nice-ffi/pathset.rb
314
+
315
+ ------------------------------------------------------------
316
+ Author: John Croisant <jacius@gmail.com>
317
+ Date: Mon Oct 12 01:11:19 2009 -0500
318
+
319
+ Added @files to PathSet.
320
+
321
+ M lib/nice-ffi/nicelibrary.rb
322
+ M lib/nice-ffi/pathset.rb
323
+
324
+ ------------------------------------------------------------
325
+ Author: John Croisant <jacius@gmail.com>
326
+ Date: Sat Sep 12 20:32:46 2009 -0500
327
+
328
+ PathSet has "paths" instead of "rules" (term/name change).
329
+
330
+ M lib/nice-ffi/pathset.rb
331
+ M spec/pathset_spec.rb
332
+
333
+ ------------------------------------------------------------
334
+ Author: John Croisant <jacius@gmail.com>
335
+ Date: Fri Sep 11 22:52:42 2009 -0500
336
+
337
+ A bit of doc and indentation cleanup in nicelibrary.rb.
338
+
339
+ M lib/nice-ffi/nicelibrary.rb
340
+
341
+ ------------------------------------------------------------
342
+ Author: John Croisant <jacius@gmail.com>
343
+ Date: Fri Sep 11 21:53:21 2009 -0500
344
+
345
+ Commented out PathSet#<< and #>> for now.
346
+
347
+ Need to decide if they should be destructive or not.
348
+
349
+ M lib/nice-ffi/pathset.rb
350
+
351
+ ------------------------------------------------------------
352
+ Author: John Croisant <jacius@gmail.com>
353
+ Date: Sun Aug 16 04:44:37 2009 -0500
354
+
355
+ OpaqueStruct should include AutoRelease module.
356
+
357
+ M spec/opaquestruct_spec.rb
358
+
359
+ ------------------------------------------------------------
360
+ Author: John Croisant <jacius@gmail.com>
361
+ Date: Sun Aug 16 04:42:06 2009 -0500
362
+
363
+ Added some specs for AutoRelease.
364
+
365
+ A spec/autorelease_spec.rb
366
+
367
+ ------------------------------------------------------------
368
+ Author: John Croisant <jacius@gmail.com>
369
+ Date: Tue Aug 11 21:47:02 2009 -0500
370
+
371
+ Added some specs for OpaqueStruct.
372
+
373
+ A spec/opaquestruct_spec.rb
374
+
375
+ ------------------------------------------------------------
376
+ Author: John Croisant <jacius@gmail.com>
377
+ Date: Mon Jul 27 20:55:34 2009 -0500
378
+
379
+ Updated OpaqueStruct to use AutoRelease.
380
+
381
+ M lib/nice-ffi/opaquestruct.rb
382
+
383
+ ------------------------------------------------------------
384
+ Author: John Croisant <jacius@gmail.com>
385
+ Date: Mon Jul 27 20:08:08 2009 -0500
386
+
387
+ Updated Struct to use AutoRelease.
388
+
389
+ M lib/nice-ffi/nicestruct.rb
390
+
391
+ ------------------------------------------------------------
392
+ Author: John Croisant <jacius@gmail.com>
393
+ Date: Mon Jul 27 20:07:53 2009 -0500
394
+
395
+ Added module AutoRelease (autorelease.rb).
396
+
397
+ A lib/nice-ffi/autorelease.rb
398
+
399
+ ------------------------------------------------------------
400
+ Author: John Croisant <jacius@gmail.com>
401
+ Date: Mon Jul 27 16:03:49 2009 -0500
402
+
403
+ Revamped OpaqueStruct.
404
+
405
+ Not subclass of Struct anymore. Supports memory autorelease.
406
+
407
+ M lib/nice-ffi/opaquestruct.rb
408
+
409
+ ------------------------------------------------------------
410
+ Author: John Croisant <jacius@gmail.com>
411
+ Date: Mon Jul 27 11:12:26 2009 -0500
412
+
413
+ Added memory autorelease to NiceFFI::Struct.
414
+
415
+ Define MyClass.release( pointer ) to activate.
416
+ Can be disabled per-instance with an option to #new.
417
+
418
+ M lib/nice-ffi/nicestruct.rb
419
+
420
+ ------------------------------------------------------------
421
+ Author: John Croisant <jacius@gmail.com>
422
+ Date: Sun Jul 19 20:21:54 2009 -0500
423
+
424
+ Added class OpaqueStruct.
425
+
426
+ M lib/nice-ffi.rb
427
+ A lib/nice-ffi/opaquestruct.rb
428
+
429
+ ------------------------------------------------------------
430
+ Author: John Croisant <jacius@gmail.com>
431
+ Date: Tue Jul 14 04:06:50 2009 -0500
432
+
433
+ New Structs can be created from bytestrings.
434
+
435
+ Other instances are copied this way too now,
436
+ instead of with init_from_array.
437
+
438
+ M lib/nice-ffi/nicestruct.rb
439
+
440
+ ------------------------------------------------------------
441
+ Author: John Croisant <jacius@gmail.com>
442
+ Date: Tue Jul 14 04:04:10 2009 -0500
443
+
444
+ Added Struct#to_bytes.
445
+
446
+ M lib/nice-ffi/nicestruct.rb
447
+
448
+ ------------------------------------------------------------
449
+ Author: John Croisant <jacius@gmail.com>
450
+ Date: Sun Jul 12 23:27:08 2009 -0500
451
+
452
+ Made rake changelog always rebuild ChangeLog.txt.
453
+
454
+ M Rakefile
455
+
456
+ ------------------------------------------------------------
457
+ Author: John Croisant <jacius@gmail.com>
458
+ Date: Sun Jul 12 23:18:10 2009 -0500
459
+
460
+ Added Struct::typed_pointer.
461
+
462
+ M lib/nice-ffi/nicestruct.rb
463
+
464
+ ------------------------------------------------------------
465
+ Author: John Croisant <jacius@gmail.com>
466
+ Date: Sun Jul 12 14:57:26 2009 -0500
467
+
468
+ Added aliases :func and :var to NiceFFI::Library.
469
+
470
+ alias :func :attach_function
471
+ alias :var :attach_variable
472
+
473
+ M lib/nice-ffi/nicelibrary.rb
474
+
475
+ ------------------------------------------------------------
476
+ Author: John Croisant <jacius@gmail.com>
477
+ Date: Sun Jul 5 13:16:13 2009 -0500
478
+
479
+ Removed redundant references to MemoryPointer.
480
+
481
+ FFI::MemoryPointer is a subclass of FFI::Pointer anyway.
482
+
483
+ M lib/nice-ffi/nicestruct.rb
484
+ M lib/nice-ffi/typedpointer.rb
485
+
486
+ ------------------------------------------------------------
487
+ Author: John Croisant <jacius@gmail.com>
488
+ Date: Sun Jul 5 13:06:38 2009 -0500
489
+
490
+ Typo in Struct#to_hash docs (to_ary --> to_hash).
491
+
492
+ M lib/nice-ffi/nicestruct.rb
493
+
1
494
  ------------------------------------------------------------
2
495
  Author: John Croisant <jacius@gmail.com>
3
496
  Date: Sun Jul 5 01:05:26 2009 -0500