-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog
1700 lines (1193 loc) · 55.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
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit bb9c1d8e13ceb2b46c0ae5a002fad4f5f2d57230
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Feb 16 22:37:45 2009 +0900
fixed bug: when false was set as default value, getter return nil. thanks niku!!
lib/classx.rb | 2 +-
lib/classx/attributes.rb | 8 ++++----
spec/classx/default_option_spec.rb | 32 ++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 5 deletions(-)
commit 1cd4943cf71c96d09d6aef15afaf79ec86cd0b5b
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Dec 26 09:16:02 2008 +0900
release 0.0.6
ChangeLog | 560 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
Rakefile | 2 +-
2 files changed, 556 insertions(+), 6 deletions(-)
commit 1bc6ca2722a0bfe96ae3f7f9af76a5e30f1872ac
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Dec 26 09:15:08 2008 +0900
add some doc.
README | 2 +-
lib/classx.rb | 2 +-
lib/classx/attributes.rb | 5 ++++-
3 files changed, 6 insertions(+), 3 deletions(-)
commit 2a1f45c859f24ab2757fdb2746d7e7a0cb8b6a5c
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Dec 26 08:53:42 2008 +0900
CAVEAT: change default option to :writable is true.
If you want to non-rewritable attribute, you should declare :writable option
explicitly.
lib/classx/attributes.rb | 2 +-
lib/classx/class_attributes.rb | 2 +-
spec/classx/without_anyoption_spec.rb | 6 ++++--
.../without_anyoption_spec.rb | 5 +++--
.../writable_option_spec.rb | 2 +-
5 files changed, 10 insertions(+), 7 deletions(-)
commit be536d9561443f9fdb2cfa360f244d6ff0746b89
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Dec 26 00:52:37 2008 +0900
FIXED: :coerce feature not work when you rewrite attribute data. thanks niku!!
lib/classx/attributes.rb | 3 +--
spec/classx/with_coerce_spec.rb | 8 +++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
commit 73745a8ef87eed4be130602c78c8407688c8076b
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Dec 20 12:04:32 2008 +0900
change web site url to github rdoc page.
tasks/basic_config.rake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 44c6ff607e67c6ff52670f0d15eb84fa200b1a90
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Dec 20 11:52:42 2008 +0900
using rdoc template allison.
tasks/basic_tasks.rake | 31 ++++++++++++++++++-------------
1 files changed, 18 insertions(+), 13 deletions(-)
commit 21d52770eefaf66d7599dde2389bb12b6108357d
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Nov 4 00:47:37 2008 +0900
tweaked error message.
lib/classx/attribute.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit e01d94a5070de17b012b26d10b08f3b24ad23c59
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Nov 4 00:02:46 2008 +0900
added :options :cache_key to ClassX::Validate. So you can turn off caching anonymous validate class feature.
lib/classx/validate.rb | 29 +++++++++++++++++------
spec/classx_validate_spec.rb | 52 +++++++++++++++++++++++++++++++----------
2 files changed, 60 insertions(+), 21 deletions(-)
commit 17a7717af41d9c55ff3b43a21bab445c3f78d2eb
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Oct 27 00:03:47 2008 +0900
release 0.0.5
ChangeLog | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rakefile | 2 +-
2 files changed, 115 insertions(+), 1 deletions(-)
commit de3b716466a8c30e31f75483977bfcd9f19f871a
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Oct 27 00:00:14 2008 +0900
oops. spec message fixed.
spec/classx/handles_spec.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 8c892fc051bba7175cbaa02dd9d29cdd3bab7d51
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Oct 26 23:00:20 2008 +0900
update benchmark result.
bench/define_attribute.rb | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
commit ad6a1e8be27e44d38b2a357f060086053572ecb2
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Oct 26 18:53:28 2008 +0900
fixed bug. when you handle some methods that use with block, it not worked.
lib/classx/attributes.rb | 16 ++++++++++------
spec/classx/handles_spec.rb | 15 +++++++++++++--
2 files changed, 23 insertions(+), 8 deletions(-)
commit ad34cf6a7f3d119379a2bc78b4060504b404db9e
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:59:34 2008 +0900
added coerce to log_rotate.
lib/classx/role/logger.rb | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
commit 8b4cc50e9395bb801beafd60afc579e279e7604d
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:52:38 2008 +0900
added CoerceWithProc.
lib/classx/attribute.rb | 8 ++++
spec/classx/with_coerce_spec.rb | 20 ++++++++++
spec/classx_class_attributes/with_coerce_spec.rb | 43 ++++++++++++++++++----
3 files changed, 63 insertions(+), 8 deletions(-)
commit cc2917b5b7f1088428936f9065932c7d630ae356
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:37:39 2008 +0900
added validate to log_rotate.
lib/classx/role/logger.rb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
commit ef422314b28c741950a04e4a9d75a532c4f4a0ab
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:29:22 2008 +0900
fixed bug: ClassX::Commandable with none kind_of specified attribute does not output :desc to help.
lib/classx/commandable.rb | 4 ++--
lib/classx/role/logger.rb | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
commit 62217b9347f6470db829ef66de116a9bdab04c7c
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:20:01 2008 +0900
added more shortcut.
example/commandable.rb | 6 +++---
lib/classx/role/logger.rb | 6 ++++--
2 files changed, 7 insertions(+), 5 deletions(-)
commit 497ac5c854faa719a90eabcabeb5fbecdd25997f
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:11:18 2008 +0900
added log_rotate attribute.
lib/classx/role/logger.rb | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
commit b06e8dac0d7084623426f37568369ca251cf6550
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 08:01:23 2008 +0900
trigger is not neeed.
lib/classx/role/logger.rb | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
commit 343c1efcb9c8fe4c6ccb7674edefeeacf64740e9
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 19 07:55:14 2008 +0900
tweak for rdoc.
Rakefile | 2 +-
lib/classx/role/logger.rb | 22 ++++++++++++++++------
tasks/basic_config.rake | 1 +
3 files changed, 18 insertions(+), 7 deletions(-)
commit 51dcdd598cfac6d432494dede4427589dcefb665
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 17 08:59:48 2008 +0900
change #before_init to class method and change name process_init_args.
lib/classx.rb | 29 +++++++++++++++++------------
1 files changed, 17 insertions(+), 12 deletions(-)
commit 6437f8ca6ef3cb443d3e1ced0a7a7d2b61062edb
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 17 08:42:13 2008 +0900
adding document.
doc/OverViewFeatureOfClassX.pdf | Bin 0 -> 1645480 bytes
1 files changed, 0 insertions(+), 0 deletions(-)
commit b9bdffc8f2146ef793a0c03e63182d5a4388ad07
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 16 09:00:40 2008 +0900
added document.
lib/classx/attribute.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 4a2807b839fe7c9e4d2989e025cf94d415c92e69
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 16 08:52:28 2008 +0900
trigger should take array as default.
bench/attribute_set.rb | 5 +++
bench/initialize.rb | 4 ++
lib/classx/attribute.rb | 20 ++++++------
spec/classx/with_trigger_spec.rb | 33 +++++++++++++++++++++
spec/classx_class_attributes/with_trigger_spec.rb | 32 ++++++++++++++++++++
5 files changed, 84 insertions(+), 10 deletions(-)
commit 0171feab3293523d26f70220d8501de1ac6f518d
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 16 08:14:18 2008 +0900
update benchmark.
bench/attribute_set.rb | 5 +++++
bench/initialize.rb | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
commit d85fa7ded08434e5300e434996eb63686a5753bf
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 16 08:07:34 2008 +0900
trigger option support.
lib/classx/attribute.rb | 21 +++++++++++++++
spec/classx/with_trigger_spec.rb | 28 +++++++++++++++++++++
spec/classx_class_attributes/with_trigger_spec.rb | 27 ++++++++++++++++++++
3 files changed, 76 insertions(+), 0 deletions(-)
commit 355ede71dc0b98f78ebb40b616945f2e192abdc8
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Sep 15 15:54:03 2008 +0900
refactering
lib/classx/attribute.rb | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
commit 723cffd4439723f9533c8e681a9202ca5836d3c5
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Sep 13 00:38:06 2008 +0900
released 0.0.4
ChangeLog | 354 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rakefile | 2 +-
2 files changed, 355 insertions(+), 1 deletions(-)
commit c27d76a9e41d7f1d6f02160c6c0b555c6cd68206
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Sep 13 00:28:06 2008 +0900
adding doc for methods.
README | 5 +++++
Rakefile | 2 +-
lib/classx.rb | 42 ++++++++++++++++++++++++++++++++++++------
lib/classx/attribute.rb | 2 ++
lib/classx/attributes.rb | 29 +++++++++++++++++++++++++++--
5 files changed, 71 insertions(+), 9 deletions(-)
commit 55c86d08d2a6a6acfd19a0d986a38e7b90e268b3
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 23:46:38 2008 +0900
update benchmark script.
bench/attribute_get.rb | 5 +++++
bench/attribute_set.rb | 6 ++++++
bench/define_attribute.rb | 16 ++++++++++++++++
bench/initialize.rb | 5 ++++-
4 files changed, 31 insertions(+), 1 deletions(-)
commit 92ed088b66fdbf04c3c9bff6439b6f98dbf66a03
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 23:36:17 2008 +0900
fixed warnings.
lib/classx/declare.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 212fd510001ffac66d8c318bc8aee645566cc81f
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 09:23:48 2008 +0900
added rdoc.
lib/classx.rb | 17 ++++++++++++++++
lib/classx/attribute.rb | 31 ++++++++++++++++-------------
lib/classx/attributes.rb | 19 ++++++++++++++++++
lib/classx/commandable.rb | 39 ++++++++++++++++++++++++++++++++++++++
lib/classx/declare.rb | 2 +-
lib/classx/role/logger.rb | 18 ++++++++++++----
lib/classx/validate.rb | 46 ++++++++++++++++++++++----------------------
7 files changed, 129 insertions(+), 43 deletions(-)
commit 29129de8ad1f740df7a812547b734c530e4bd26e
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 08:36:48 2008 +0900
fixed fail test in Ruby 1.9.0
spec/classx_declare_spec.rb | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
commit 058d0588e6626403bcaef9464ef40c50d52b516d
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 08:28:43 2008 +0900
added test for #dup
spec/classx/serialize_spec.rb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
commit 1d591c1b8f78e3892b7fb010b62063da142dae16
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 08:25:32 2008 +0900
change to use ClassX::Bracketable in ClassX::Validate class
lib/classx/validate.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 57e61cf163f351e05bf6cdedcc519e2aa32cdc67
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 08:24:21 2008 +0900
added spec to ClassX::Declare and fixed bug about autoload ClassX::Bracketable
lib/classx.rb | 11 ++++-
lib/classx/declare.rb | 28 ++++++++++-
spec/classx_declare_spec.rb | 117 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 154 insertions(+), 2 deletions(-)
commit 0e3b72eb7d63a4bf84f121ce3a08b8d535b16d91
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 02:47:11 2008 +0900
fixed bug of test in Ruby 1.9.0
spec/classx_class_attributes/dsl_accessor_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 72d4a1e60a6bbcf53d976508724c4d4948d1c744
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 02:36:06 2008 +0900
added test.
spec/classx_bracketable_spec.rb | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
commit d8285a1c6f86ecb1de78f0ba61557591aca38e34
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 02:33:22 2008 +0900
file name is wrong in convention.
spec/classx_bracketable.rb | 140 ---------------------------------------
spec/classx_bracketable_spec.rb | 140 +++++++++++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+), 140 deletions(-)
commit 0c97f016b63fb7853fcc058709ff631be13e2e5e
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 02:27:43 2008 +0900
It may be caching is wrong.
lib/classx/class_attributes.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 6306fc00771d955deede79c20e68b5d2706738e8
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 02:19:25 2008 +0900
not commited.
lib/classx/bracketable.rb | 39 +++++++++++++++++++++++++++++++++++----
1 files changed, 35 insertions(+), 4 deletions(-)
commit 1883e78a6b032740350c87a5d083b959b61d04c1
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 01:52:15 2008 +0900
added test for ClassX::Brancketable
lib/classx/blanketable.rb | 30 ---------
lib/classx/bracketable.rb | 30 +++++++++
spec/classx_bracketable.rb | 140 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 170 insertions(+), 30 deletions(-)
commit 72d8a64cc065b191a8399db1fa05abbed7b8e955
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Sep 12 01:51:45 2008 +0900
no need to include ClassX::Validate
spec/classx_validate_spec.rb | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit 9b437319d3a681d413dc511876e6d4146daf964f
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 10 09:11:18 2008 +0900
added ClassX::Blanketable
lib/classx.rb | 1 +
lib/classx/blanketable.rb | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
commit b899ce53177852463ad184f166ad8e6ce6359f8d
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 10 07:55:07 2008 +0900
added doc. make alias CAttrs as ClassX::ClassAttributes, Attrs as ClassX::Attributes
lib/classx.rb | 1 +
lib/classx/attributes.rb | 2 ++
lib/classx/class_attributes.rb | 32 ++++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)
commit e08c704466dd4af37e8ab2b92ba984d03af42db6
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 10 01:20:08 2008 +0900
remove garbage.
spec/classx_class_attributes/dsl_accessor_spec.rb | 34 ---------------------
1 files changed, 0 insertions(+), 34 deletions(-)
commit cbcd811ff3fb88212f4dad175064bb1d05692275
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 10 00:20:57 2008 +0900
added comment.
lib/classx/class_attributes.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 55775bed9ee0e686da52b2c649f7c40a6b5758f5
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Sep 10 00:08:35 2008 +0900
added dsl_accessor compatible tests.
lib/classx/class_attributes.rb | 17 ++-
spec/classx_class_attributes/dsl_accessor_spec.rb | 122 ++++++++++++++++++++
.../writable_option_spec.rb | 4 +-
3 files changed, 136 insertions(+), 7 deletions(-)
commit 691562a088b1a7b7ab2ff659a214aa9656212df6
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 9 08:09:30 2008 +0900
ruby1.9 return each items in instance_variables with Symbol.
lib/classx.rb | 5 +++--
spec/classx/serialize_spec.rb | 8 +++++---
2 files changed, 8 insertions(+), 5 deletions(-)
commit 72a128ae5b80636799c3466a303c3caba3e2f919
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 9 02:03:07 2008 +0900
fixed spec docs.
.../without_anyoption_spec.rb | 2 +-
.../writable_option_spec.rb | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
commit e6f03314479f1692e9a04739c2395006ad9cf871
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 9 01:50:15 2008 +0900
added test about inheritance.
.../with_multiple_class_spec.rb | 35 ++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
commit 6cfd2852d3dd4d461ab06ae983585558d576b360
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 9 01:06:14 2008 +0900
ClassX::ClassAttributes should be extend. So self.include is not need.
lib/classx/class_attributes.rb | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
commit 580936730fffd5ded27ae0b47a9937ada48174e1
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Sep 9 01:03:01 2008 +0900
added class attribute feature. you can define class attributes with a same interface of attribute.
lib/classx.rb | 1 +
lib/classx/class_attributes.rb | 131 +++++++++++
.../classx_class_attributes/default_option_spec.rb | 121 ++++++++++
spec/classx_class_attributes/handles_spec.rb | 77 ++++++
spec/classx_class_attributes/with_coerce_spec.rb | 119 ++++++++++
spec/classx_class_attributes/with_extend_spec.rb | 64 +++++
spec/classx_class_attributes/with_include_spec.rb | 64 +++++
.../with_multiple_class_spec.rb | 25 ++
spec/classx_class_attributes/with_validate_spec.rb | 248 ++++++++++++++++++++
.../without_accessor_spec.rb | 19 ++
.../without_anyoption_spec.rb | 21 ++
.../writable_option_spec.rb | 98 ++++++++
12 files changed, 988 insertions(+), 0 deletions(-)
commit 413edbea25cbc3991dd546fb0af21e82008853b7
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Sep 8 22:35:37 2008 +0900
Serialization should support restoring instance_variables except for classx's attribute_class caching.
lib/classx.rb | 33 +++++++++++++++++++++++++++++----
spec/classx/serialize_spec.rb | 21 +++++++++++++++++++++
2 files changed, 50 insertions(+), 4 deletions(-)
commit 967bb8ef27de37ea951ff2199a1d1df8d7ba3cae
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Sep 8 08:34:58 2008 +0900
oops.
lib/classx.rb | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
commit 3713b743286bc3076f6ef5a190dba31aebfef3a4
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Sep 8 08:33:02 2008 +0900
added serialization support using Marshl, YAML.
spec/classx/serialize_spec.rb | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
commit 07a290cd3f9befefbd2987c78f889a67b81f89c8
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Sep 7 19:24:20 2008 +0900
Become caching value when you use getter method.
bench/attribute_get.rb | 5 +++++
bench/attribute_set.rb | 6 ++++++
lib/classx/attribute.rb | 3 +++
lib/classx/attributes.rb | 21 ++++++++++++++-------
4 files changed, 28 insertions(+), 7 deletions(-)
commit 3e97a758c8f421b5089d44abe399ab328174afbb
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Sep 7 18:35:08 2008 +0900
fixed revision.
bench/define_attribute.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit dd1bb608dd23ebf8e569c62784778aca56917044
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Sep 7 18:34:03 2008 +0900
refactoring code. not using attribute_of as possible.
bench/define_attribute.rb | 17 +++++++++++++++++
lib/classx/attributes.rb | 35 +++++++++++++++++------------------
2 files changed, 34 insertions(+), 18 deletions(-)
commit 8e6541a01a49a032f59c9f6b238e0f5ccb37ddbc
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Sep 7 18:12:54 2008 +0900
attr_get became slower a little than before.
bench/attribute_get.rb | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
commit 83519953e9f7140ccd10324670d37cfec3cceb16
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Sep 7 18:06:23 2008 +0900
Allow another setter style. you can use #attr_name(val) alternate #attr_name= val
bench/attribute_set.rb | 53 +++++++++++++++++++----------------
lib/classx/attributes.rb | 16 +++++++++-
spec/classx/writable_option_spec.rb | 21 +++++++++++++-
3 files changed, 63 insertions(+), 27 deletions(-)
commit dd1555988fe38e3fc53e780e7b0922e8802feca1
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Aug 29 09:09:33 2008 +0900
ruby19 can use =~ between Symbol and Regexp.
spec/classx/with_validate_spec.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit a48eb7c03bcee64d285eda4bd24a537f5cede81f
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Aug 29 09:05:11 2008 +0900
support mspec because it's easy to run test as ruby 1.9. (rspec is not worked in ruby 1.9 !! )
spec/classx/handles_spec.rb | 4 ++--
spec/classx/without_anyoption_spec.rb | 2 +-
spec/classx/writable_option_spec.rb | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
commit 2340039002a3ff315fad5028bf2c7931ac1d1c91
Author: Keiji, Yoshimi <[email protected]>
Date: Thu Aug 28 00:40:51 2008 +0900
no define_method if it doesn't need.
bench/define_attribute.rb | 17 ++
lib/classx/attribute.rb | 417 +++++++++++++++++++++++++--------------------
2 files changed, 251 insertions(+), 183 deletions(-)
commit 29a8e3293d07ca8dd0b4a3305d615b2968b13c55
Author: Keiji, Yoshimi <[email protected]>
Date: Wed Aug 27 08:28:56 2008 +0900
added :validate_each option. It's useful to validate complex structure ( for example nested Array ).
lib/classx/attribute.rb | 21 +++++
spec/classx/with_validate_spec.rb | 156 +++++++++++++++++++++++++++++++++++++
2 files changed, 177 insertions(+), 0 deletions(-)
commit 36fd5a4e2320b0a68c38640ab86a1bc5cda0da2d
Author: Keiji, Yoshimi <[email protected]>
Date: Tue Aug 26 08:24:26 2008 +0900
don't measure GC time.
bench/attribute_get.rb | 27 +++++---
bench/attribute_set.rb | 27 +++++---
bench/define_attribute.rb | 167 +++++++++++++++++++++++++++++++++++++++++++--
bench/initialize.rb | 21 ++++--
4 files changed, 211 insertions(+), 31 deletions(-)
commit 1f4c448bcbc74d744be2a6e3805b461b798a7f91
Author: Keiji, Yoshimi <[email protected]>
Date: Mon Aug 25 09:34:28 2008 +0900
added benchmark for taking time of defining attributes.
bench/define_attribute.rb | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
commit 066787b4d379bdf1a83700b5fe5e629e6a423d74
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 23:20:09 2008 +0900
:handle option should be able to delegate method with arguments.
lib/classx/attributes.rb | 8 ++++----
spec/classx/handles_spec.rb | 23 +++++++++++++++++++----
2 files changed, 23 insertions(+), 8 deletions(-)
commit d08d8f5cc87e1a7979dc11cc0abc914a2a4c61a3
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 22:39:43 2008 +0900
insert line break to too long line to read.
lib/classx/commandable.rb | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
commit 2120fafb35ee33048130b6c23c9c009e3c47f629
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 21:01:59 2008 +0900
fixed.BUG: when it specify invalid attribute as option, commandable would not show help message.
lib/classx/commandable.rb | 3 ++-
lib/classx/role/logger.rb | 7 +------
2 files changed, 3 insertions(+), 7 deletions(-)
commit f23eb5c82c644dc45cd83568a9270153b422f8a3
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 17:59:26 2008 +0900
It should use Class.const_defined?
lib/classx/attributes.rb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit dd0d8b4ab4610d39b2f81361ad0b85e87bdb6847
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 17:52:23 2008 +0900
When attribute's config freezed. ClassX::Commandable is not worked.
lib/classx/attribute.rb | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
commit ada4424c9d8bd443eebc0c661040ccfdebca12e4
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 17:43:41 2008 +0900
change not using args[key] in define_method but using via config method.
lib/classx/attribute.rb | 85 +++++++++++++++++++++++++++++-----------------
1 files changed, 53 insertions(+), 32 deletions(-)
commit d0c318b1e45cdd134ca47bf48a4aae06cfcd215c
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 16:53:23 2008 +0900
added tests.
lib/classx/attribute.rb | 4 +-
spec/classx/with_extend_spec.rb | 45 +++++++-
spec/classx/with_include_spec.rb | 53 +++++++--
spec/classx/with_validate_spec.rb | 207 +++++++++++++++++++++++++++++++++++
spec/classx/writable_option_spec.rb | 6 +
5 files changed, 294 insertions(+), 21 deletions(-)
commit 588d9b3643ad12cfcc7b8c85a0a71834f83de24f
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 16:34:38 2008 +0900
test file name should be /_spec.rb$/.
spec/classx/with_coerce.rb | 87 --------------------------------------
spec/classx/with_coerce_spec.rb | 87 ++++++++++++++++++++++++++++++++++++++
spec/classx/with_extend.rb | 27 ------------
spec/classx/with_extend_spec.rb | 27 ++++++++++++
spec/classx/with_include.rb | 27 ------------
spec/classx/with_include_spec.rb | 27 ++++++++++++
6 files changed, 141 insertions(+), 141 deletions(-)
commit 9a5c6802a1de610c6f93b614cbca56e10721965d
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 15:57:33 2008 +0900
/Libraray should not use as rcov coverage.
tasks/basic_tasks.rake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit d37368e32770e14a6242bf7eb5e8390a8577e4e0
Author: Keiji, Yoshimi <[email protected]>
Date: Sun Aug 24 12:20:07 2008 +0900
supported defining nested name space.
lib/classx/declare.rb | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
commit 32ed48c6ae8a470acb3a12151102174fedccfc58
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 23:25:31 2008 +0900
classx/util is not merged.
lib/classx.rb | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit 8e81180a717458b53fa09ec6ac4f9852f7175e8b
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 22:35:59 2008 +0900
added benchmark for attribute_get.
bench/attribute_get.rb | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
commit 115d1bcfb9cb3964c14da851259dc5bb2a6f2784
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 22:29:07 2008 +0900
change to cache ClassX#attribute_of. And fixed warnings.
bench/attribute_set.rb | 5 +++++
bench/initialize.rb | 6 ++++++
lib/classx.rb | 19 ++++++++++---------
lib/classx/attributes.rb | 2 +-
4 files changed, 22 insertions(+), 10 deletions(-)
commit a23be1ac7760fea83e4b80fdc6f06fb2839b8883
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 21:35:05 2008 +0900
It may be better to show attibute's parent at inspect for debugging.
example/commandable.rb | 1 +
lib/classx/attribute.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
commit 3593145aeb05ebba55719405232b40af903e0882
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 21:26:04 2008 +0900
tweaked define order.
lib/classx/role/logger.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit daf1861b1507ea6ad87fc2be109461fd070a6b6b
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 20:52:11 2008 +0900
added ClassX::Validate.validate. It's good to write explicity code.
lib/classx/validate.rb | 2 ++
spec/classx_validate_spec.rb | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
commit 508f568535cdac3319cd80b812de1fb4175c17cf
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 19:00:48 2008 +0900
fixed doc.
lib/classx/role/logger.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
commit 6fc2c5dbbc4ed8cbd6ef62f9aaad0e3ffc7be498
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 15:19:20 2008 +0900
it's faster than calling from attribute_of
bench/attribute_set.rb | 5 +++++
lib/classx/attributes.rb | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
commit 458848fded3eeb55a7fc9048bada7c825dfb73ad
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 14:53:37 2008 +0900
added bench dir to gem.
tasks/basic_config.rake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 52afdcbfbc105d93defbf6513bc89a6827f0f386
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 14:27:39 2008 +0900
release 0.0.3
ChangeLog | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rakefile | 2 +-
lib/classx.rb | 3 ++
3 files changed, 88 insertions(+), 1 deletions(-)
commit 106a6048c9dd61009a54bd35081e849461785560
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 14:22:09 2008 +0900
update pdf new version.
doc/TokyoRubyKaigi01_classX.pdf | Bin 104653 -> 107907 bytes
1 files changed, 0 insertions(+), 0 deletions(-)
commit b12c2f6af136152941acff3e24cc7bb2e0d7bec2
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 14:05:15 2008 +0900
fixed.
bench/attribute_set.rb | 3 ++-
bench/initialize.rb | 3 ++-
example/commandable.rb | 7 ++++---
3 files changed, 8 insertions(+), 5 deletions(-)
commit 7655a1b8a2e719ab6aef5e4239333c2271974fec
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 13:57:31 2008 +0900
CAVEAT: change ClassX class to module!!!
README | 4 +++-
lib/classx.rb | 6 ++++--
lib/classx/attribute.rb | 2 +-
lib/classx/attributes.rb | 2 +-
lib/classx/commandable.rb | 2 +-
lib/classx/declare.rb | 7 +++++--
lib/classx/role/logger.rb | 2 +-
lib/classx/validate.rb | 9 ++++++---
spec/classx/default_option_spec.rb | 24 ++++++++++++++++--------
spec/classx/handles_spec.rb | 7 +++++--
spec/classx/with_coerce.rb | 16 ++++++++++++----
spec/classx/with_extend.rb | 4 +++-
spec/classx/with_include.rb | 4 +++-
spec/classx/with_multiple_class_spec.rb | 6 ++++--
spec/classx/without_accessor_spec.rb | 3 ++-
spec/classx/without_anyoption_spec.rb | 4 +++-
spec/classx/writable_option_spec.rb | 12 ++++++++----
spec/classx_attributes_spec.rb | 3 ++-
18 files changed, 80 insertions(+), 37 deletions(-)
commit a92bcb221eb44b7e699c23dcbd85ca6b8124f74b
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 13:04:51 2008 +0900
tweaked inspect for easy debugging.
lib/classx/attribute.rb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
commit 75b464c029eb075381eac6c3901766838f8ae935
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 12:41:29 2008 +0900
added ClassX::Role::Logger. and ignore as commandline option if :no_cmd_option specified to define attribute.
example/commandable.rb | 7 ++++-
lib/classx/commandable.rb | 4 ++-
lib/classx/role/logger.rb | 70 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 79 insertions(+), 2 deletions(-)
commit c0b5ab6ff524a3a085cd85ef9300fd4900cfcb1c
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 12:09:15 2008 +0900
FATAL: fixed BUG: when mixin module that has attribute to ClassX based class, attribute_something wrong.
lib/classx/attributes.rb | 11 +++++++++--
spec/classx_attributes_spec.rb | 4 ++++
2 files changed, 13 insertions(+), 2 deletions(-)
commit 367d3faf52f20adacd73a63616600bcd254ae9fe
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 09:15:57 2008 +0900
fix document.
README | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 6a13669476240c944c34ead40e5785f523992a16
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 09:13:49 2008 +0900
change to autoload optional class.
lib/classx.rb | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
commit 57afc39197a4ebb149fde046bc4a5feca85b10ac
Author: Keiji, Yoshimi <[email protected]>
Date: Sat Aug 23 08:12:57 2008 +0900
help should show type specify from command line.
lib/classx/commandable.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 3af7753e0a64434ce8e02f820da7d096355873f9
Author: Keiji, Yoshimi <[email protected]>
Date: Fri Aug 22 07:03:09 2008 +0900
change to dup as possible when you take :default option.as not Proc object.