Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
1701 lines (1193 sloc) 55.6 KB
commit bb9c1d8e13ceb2b46c0ae5a002fad4f5f2d57230
Author: Keiji, Yoshimi <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
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 <walf443@gmail.com>
Date: Fri Aug 22 07:03:09 2008 +0900
change to dup as possible when you take :default option.as not Proc object.
lib/classx/attribute.rb | 6 +++++-
spec/classx/default_option_spec.rb | 4 ----
2 files changed, 5 insertions(+), 5 deletions(-)
commit b8770a895f674f7eb2eb100c016385377d01bf22
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Fri Aug 22 06:47:44 2008 +0900
tweak help message.
lib/classx/commandable.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit d204b63f683aad7bf25cdba19ac941113f5f395f
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Fri Aug 22 03:19:55 2008 +0900
support short option. thanks advice for Shintaro, Kakutani.
lib/classx/commandable.rb | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
commit 28f1694a54968cb56c674fe62a6f2b6ad35a46b9
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 20:30:33 2008 +0900
added ClassX::Declare. thanks Naoto, Takai !!
lib/classx/declare.rb | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
commit c3fb1968643ff195258d027012a2a3dab1c4c7f2
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 17:21:48 2008 +0900
release 0.0.2
ChangeLog | 410 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 408 insertions(+), 2 deletions(-)
commit 08727ad7905c9f16a95d2b788b9c5e51288d1580
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 17:20:16 2008 +0900
tweak rake tasks.
Rakefile | 5 +++--
tasks/basic_config.rake | 6 +++++-
2 files changed, 8 insertions(+), 3 deletions(-)
commit 6540c8afadedf7f72cfacea7d67efadba38f8e5a
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 16:42:15 2008 +0900
added presentation slide for TokyoRubyKaigi01.
doc/TokyoRubyKaigi01_classX.pdf | Bin 0 -> 104653 bytes
1 files changed, 0 insertions(+), 0 deletions(-)
commit 84f215407ea6bcb76022ef41ecf4e55088d73b9b
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 13:23:48 2008 +0900
included should private
lib/classx/attributes.rb | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
commit 7bf3db95eff3205a8c7dd05a7d0e34dd658d2ac2
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 13:04:56 2008 +0900
fixed bug when extending classX based class.
bench/attribute_set.rb | 7 ++++++-
bench/initialize.rb | 11 ++++++++---
lib/classx.rb | 8 ++++----
lib/classx/attributes.rb | 45 +++++++++++++++++++++++++++++++++------------
4 files changed, 51 insertions(+), 20 deletions(-)
commit 633f7e88b16f94fc4fb64dd84cd68cf8a4b5d3a2
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Aug 21 11:46:31 2008 +0900
typo fixed.
spec/classx/writable_option_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 93347e055db4f132356f990be82efc332dba3962
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 23:23:13 2008 +0900
added benchmark for attribute_set.
bench/attribute_set.rb | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
commit 283903a6b88fe5a6bdb453b13e10d6427e4a7113
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 22:52:02 2008 +0900
It seems that it is facter [ select => convert ] than [ convert => select ].
bench/initialize.rb | 6 +++++-
lib/classx.rb | 7 ++++---
2 files changed, 9 insertions(+), 4 deletions(-)
commit 7d345a994d585e7ef9fdae97b84169e0fec71ddf
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 22:32:37 2008 +0900
#attribute_of is too slow. So, change caching the result in the same method.
bench/initialize.rb | 6 ++++++
lib/classx.rb | 14 ++++++++++----
lib/classx/attributes.rb | 7 -------
3 files changed, 16 insertions(+), 11 deletions(-)
commit 28f399333add1d80b76dd3c91a44cb2938d55772
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 21:58:10 2008 +0900
added initialize benchmark. classX is TOOOOOOOOOOOOOOOOOOOOOOOOOOO SLOOOOOW now!!!
bench/initialize.rb | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
commit d5619b6533955eb46367103119bc7cff5d3d35e7
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 21:13:44 2008 +0900
fixed typo.
spec/classx/default_option_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit ea6fd14775f58b800b64468af9c08a0c4a4acc28
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 21:03:56 2008 +0900
tweak line break.
lib/classx.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit a3323a233f031cdbc774c88b786241f260a22a24
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 21:02:23 2008 +0900
allow user changing argument with overriding #before_init .
lib/classx.rb | 10 +++++++---
spec/classx/without_accessor_spec.rb | 4 ----
2 files changed, 7 insertions(+), 7 deletions(-)
commit dfa9fe29791bae22fd91d0b7edcf9b4ec9d8d9e2
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 20:55:59 2008 +0900
tweak.
example/commandable.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit aff7bea9fa71a98c6e7fc23ae6a8f78b93554599
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 20:40:12 2008 +0900
added ClassX::Commandable.
example/commandable.rb | 28 +++++++++++++++++++++++++++
lib/classx/commandable.rb | 46 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 0 deletions(-)
commit e3a2f7ea88f980c1dd701bb17c934347bc52841b
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 08:47:53 2008 +0900
change many method to class method.
lib/classx.rb | 4 +-
lib/classx/attribute.rb | 217 ++++++++++++++++++++++++-----------------------
2 files changed, 113 insertions(+), 108 deletions(-)
commit f34fd672c66e9ba91157e594032933d0170d7264
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 08:20:53 2008 +0900
variable name is worse.
lib/classx/attribute.rb | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
commit 0b58fc18a0ea81803c284df6243d0086f15809ba
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 08:03:11 2008 +0900
change to private many method and tweak method define order.
lib/classx/attribute.rb | 98 ++++++++++++++++++++++------------------------
lib/classx/attributes.rb | 82 +++++++++++++++++++-------------------
2 files changed, 88 insertions(+), 92 deletions(-)
commit 9f43a491609034a94d4df7954f5526225e3a7ce5
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 07:51:20 2008 +0900
output warn when attribute was overridden.
lib/classx/attributes.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
commit ff20fbc16efff13b367d473c0c033373a2c2f51c
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 02:57:57 2008 +0900
added coerce option.
lib/classx/attribute.rb | 60 +++++++++++++++++++++++++++++++++
spec/classx/with_coerce.rb | 79 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 139 insertions(+), 0 deletions(-)
commit b4a5afc74037bd14d1d9204de76723c4c7b876ff
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 02:11:02 2008 +0900
added :desc option to attribute and added doc.
lib/classx/attribute.rb | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
commit bd06dccff2f367a0ea4d1d107f45620a61574314
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 01:54:10 2008 +0900
It may be something wrong.
lib/classx.rb | 16 +++++++---------
lib/classx/attributes.rb | 12 ------------
2 files changed, 7 insertions(+), 21 deletions(-)
commit 5122329bf074239b6c7ea872d3740c79056bd083
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 01:50:24 2008 +0900
support :include and :extend option for extending attrubte.
lib/classx/attribute.rb | 23 +++++++++++++++++++++++
spec/classx/with_extend.rb | 25 +++++++++++++++++++++++++
spec/classx/with_include.rb | 25 +++++++++++++++++++++++++
3 files changed, 73 insertions(+), 0 deletions(-)
commit 0c22d5655c4a8e76b9eb0ef58ac179b2325138be
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 01:24:02 2008 +0900
added classx/attrubte. lazy support.
lib/classx.rb | 1 +
lib/classx/attribute.rb | 82 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+), 0 deletions(-)
commit bc9924c17b1cb45a73b033172979a4a288c12b1d
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed Aug 20 01:15:46 2008 +0900
change to use ClassX::AttributeFactory class that generate Attribute class.
lib/classx.rb | 38 ++++----
lib/classx/attributes.rb | 172 +++++++++++-----------------------
spec/classx/default_option_spec.rb | 2 +
spec/classx/without_accessor_spec.rb | 2 +-
spec/classx/writable_option_spec.rb | 4 +-
5 files changed, 78 insertions(+), 140 deletions(-)
commit 221548d16464e00180e38045976b93da05d63bdc
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue Jul 15 07:14:39 2008 +0900
added code for Ruby1.8.5
lib/classx/attributes.rb | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
commit 1b53e64aa57af2b14031cdc4780ce036032d411b
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Mon Jul 14 08:55:33 2008 +0900
fied bug: when second access using lazy option was return nil.
lib/classx/attributes.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit a7093b487c699ee18e91c2f86c83ca94e5687bb6
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sun Jun 22 03:19:10 2008 +0900
added test.
spec/classx_attributes_spec.rb | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
commit 9c43ef589df6ae5b3e41b646e03f51c011004123
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sun Jun 22 03:04:06 2008 +0900
you can use attribute defenition in module
lib/classx.rb | 139 +---------------------------------------------
lib/classx/attributes.rb | 138 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+), 137 deletions(-)
commit fc3c7329036576c0c44428d014b0de7dc9f20763
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sun Jun 22 02:44:22 2008 +0900
added :handles option.
lib/classx.rb | 22 +++++++++++++++++++++
spec/classx/handles_spec.rb | 44 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 0 deletions(-)
commit 1b6cc210418a4f1b3e772bdd6979f043924637cc
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sun Jun 22 02:20:21 2008 +0900
split test code for maintenancibirity.
spec/classx/default_option_spec.rb | 138 ++++++++++++++++
spec/classx/with_multiple_class_spec.rb | 23 +++
spec/classx/without_accessor_spec.rb | 30 ++++
spec/classx/without_anyoption_spec.rb | 23 +++
spec/classx/writable_option_spec.rb | 73 +++++++++
spec/classx_spec.rb | 262 -------------------------------
6 files changed, 287 insertions(+), 262 deletions(-)
commit 801f39272c57f19a40449a455b3eacaf0b535e7d
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sun Jun 22 00:03:36 2008 +0900
bug fixed.
lib/classx.rb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit c309461c56487d9f722720b36385128bbd50df03
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sat Jun 21 23:49:33 2008 +0900
support :lazy option
lib/classx.rb | 73 ++++++++++++++++++++++++++++++++-------------------
spec/classx_spec.rb | 13 +++++----
2 files changed, 53 insertions(+), 33 deletions(-)
commit 6ebdfce9cde0c596997348be4c4804fee7f4e6c2
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Jun 5 07:55:06 2008 +0900
make InstanceException to rescue multiple exception of classx.
lib/classx.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
commit cf1b0742dbded5a43cfec4b500ec0378bdc4b23c
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Thu Jun 5 00:33:34 2008 +0900
Fixed doc.
README | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 8f4ba237852a5166004e9fbd2530ee548c4394c5
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sat May 31 16:32:22 2008 +0900
change to caching set_attr_default_value_of[] methods regex.
lib/classx.rb | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
commit 87726f13ba5c1910c7c4c7537d01ec94f08d3586
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sat May 31 16:31:27 2008 +0900
for warning.
lib/classx/validate.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 95b2f4497af4cd5b0fc393d3276ec9f033fc0e00
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Sat May 31 15:59:04 2008 +0900
It may be conflict class method 'has'. So set 'add_attribute' as default name.
Rakefile | 2 +-
lib/classx.rb | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
commit 0f2d6aee6d8c21cf6e37721d6f25af9c3311a153
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed May 28 01:09:16 2008 +0900
Fixed doc. :required param was deprecated.
README | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 13a8d62c43bb2697e76ceb3f3913696efd17aef4
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Wed May 28 01:07:02 2008 +0900
When not attribute param exist in #initialize params, it should be ignored.
lib/classx.rb | 4 +++-
spec/classx_spec.rb | 15 +++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
commit c1837234062d8570c776f7371424790dcd3cd656
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 23:44:30 2008 +0900
tweak spec.
spec/classx_spec.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 158a33e5dff79dd03b7298b01ffec1cf9d12c74a
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 09:21:23 2008 +0900
Tweak error message for easy debuging with ClassX::Validate
lib/classx.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 2194a9f8ba7bb1a6141c2c28efd5c7257f38b7d3
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 09:13:25 2008 +0900
rename ClassX::InvalidSetterArgument to ClassX::InvalidAttrArgument
lib/classx.rb | 6 +++---
spec/classx_validate_spec.rb | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
commit ca42b54f0300a709a3a950422e430b92523d1736
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 03:06:32 2008 +0900
Change to raise Exception when you specify :optional is true and :writable is false.
README | 2 +-
lib/classx.rb | 17 ++++++++++++-----
spec/classx_spec.rb | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 6 deletions(-)
commit d6652e91881ee21d1abd635230f19054bd388116
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 02:51:05 2008 +0900
XXX: compatible change. Rename option :required to :optional.
As :optional does not specify false, attribute should be required.
If you specify :option and does not specify :optional, :optional is true.
lib/classx.rb | 16 ++++++++++------
lib/classx/validate.rb | 2 +-
spec/classx_spec.rb | 16 ++++++++--------
spec/classx_validate_spec.rb | 4 ++--
4 files changed, 21 insertions(+), 17 deletions(-)
commit 8f19213bbab485d5f95af9527e4ebe1d3c335e29
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 02:08:13 2008 +0900
XXX: compatible change. when you want to define setter as public, you should specify more expricitly.
README | 7 ++++---
lib/classx.rb | 2 +-
spec/classx_spec.rb | 10 +++++-----
3 files changed, 10 insertions(+), 9 deletions(-)
commit 39c5e6a2ba8bc550ab8168d88c9d46d6cf1876d9
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 01:57:26 2008 +0900
Moved hook point of before_init and change to take argument for tweaking constructor arguments
lib/classx.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
commit 2fb2bfe2fdf2e1c3e66fa0180341b5a7a2cd5010
Author: Keiji, Yoshimi <walf443@gmail.com>
Date: Tue May 27 01:43:21 2008 +0900
If attribute is optional, it should declare expricitly.
lib/classx.rb | 2 +-
spec/classx_spec.rb | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
commit 2b6d048a469850308050e9d7188f834a76858657
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Tue May 27 01:26:48 2008 +0900
Added spec.
spec/classx_spec.rb | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
commit 566f79d80c562b3c99b8744cc60411fbc3b525ff
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Tue May 27 01:17:46 2008 +0900
Oh my got! It's not worth caching without redifine.
lib/classx/validate.rb | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
commit 53129fae5970eee849271e323ed8bd95ac560197
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Tue May 27 01:10:18 2008 +0900
required attribute should not have :default option.
lib/classx.rb | 4 +++-
spec/classx_spec.rb | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
commit f382e00c615ada6fdb77d81fa5c311800bae70f1
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Tue May 27 00:22:11 2008 +0900
Added experimental feature for caching autogenerated class to validate.Hash
lib/classx/validate.rb | 6 +++++-
spec/classx_validate_spec.rb | 4 ++++
2 files changed, 9 insertions(+), 1 deletions(-)
commit dd0790a8f03b465e506ec6cc6a7e4004e0dbb6f0
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Mon May 26 23:59:51 2008 +0900
Tweaked docs.
lib/classx/validate.rb | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
commit e697f6e45c64827dfaebf5de839ccb34f2688fc5
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Mon May 26 23:53:18 2008 +0900
Added ClassX::Validate.
lib/classx/validate.rb | 24 ++++++++++++++++++++++++
spec/classx_validate_spec.rb | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 0 deletions(-)
commit 88e75d9b7ceb18e654df108827eb3aebac14039b
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Mon May 26 08:47:55 2008 +0900
Added attributes class method.
lib/classx.rb | 9 +++++++++
spec/classx_spec.rb | 12 ++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
commit 50981b2a813c215e987953e8ad6f4e5915a11be1
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 16:24:20 2008 +0900
\# required attributes should be public class methods
lib/classx.rb | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
commit 65b3ab3a00e96dff9407acb62bdd29551734598d
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 03:10:14 2008 +0900
Change process order for warings
lib/classx.rb | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
commit b27bce22642bfe6e83322aab5cc333add00f270d
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 01:11:44 2008 +0900
tweek RequeredAttributeError's error message
lib/classx.rb | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
commit b33f3d0246ecc191564bb74b3ab3849e529c9a9f
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 00:51:22 2008 +0900
fixed bug that all classes that extend ClassX are affected when you change class variable
lib/classx.rb | 16 ++++++++++------
spec/classx_spec.rb | 16 ++++++++++++++++
2 files changed, 26 insertions(+), 6 deletions(-)
commit 868c6e981067a243c70937026feae6e77ac734ec
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 00:34:24 2008 +0900
delete garbage.
lib/classx.rb | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
commit 8178791b39199222df912cee95532bd501acf923
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 00:26:07 2008 +0900
delete debug print
lib/classx.rb | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit 853bd274400e0a56f20b8ee2907952c9219a7519
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sun May 25 00:24:00 2008 +0900
change to be able to use String as #initialize arguments
lib/classx.rb | 26 +++++++++++++++-----------
spec/classx_spec.rb | 4 ++++
2 files changed, 19 insertions(+), 11 deletions(-)
commit 89b0a251c270e804ee92e7be87417f1fcf0cafb5
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sat May 24 23:59:49 2008 +0900
fixed bug that abort when you specify none kind_of Hash value to initialize argument.
lib/classx.rb | 3 +++
spec/classx_spec.rb | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
commit d53494a4694ac7d5f3bc191d3deff011f03aad90
Author: Keiji, Yoshimi <walf443@gmail dot com>
Date: Sat May 24 19:37:46 2008 +0900
tweak error message
lib/classx.rb | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
commit dbf90e3c3261ffc4b6b77260d9e9906b5bed01d1
Author: Keiji, Yoshimi <walf443 at gmail dot com>
Date: Wed May 21 01:16:37 2008 +0900
add test
lib/classx.rb | 5 ++-
spec/classx_spec.rb | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 103 insertions(+), 3 deletions(-)
commit cfc3043d481a9736df85ffc5118207c3ac4d0e76
Author: Keiji, Yoshimi <walf443 at gmail dot com>
Date: Tue May 20 23:58:20 2008 +0900
add simple document
README | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
commit 5571feb0934a05ca1789d4570f70ac67a9df4285
Author: Keiji, Yoshimi <walf443 at gmail dot com>
Date: Tue May 20 23:50:13 2008 +0900
- fixed bug that can't specify any object except for literal object as :default values
- set_attr_default_value shold private method
lib/classx.rb | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
commit 0856eadc3ff3e3bf0e26691a25c0267a4fab1ead
Author: Keiji, Yoshimi <walf443 at gmail dot com>
Date: Tue May 20 23:33:54 2008 +0900
start new project.
ChangeLog | 4 ++
README | 24 ++++++++
Rakefile | 52 ++++++++++++++++++
lib/classx.rb | 106 ++++++++++++++++++++++++++++++++++++
spec/classx_spec.rb | 5 ++
spec/spec.opts | 1 +
spec/spec_helper.rb | 4 ++
tasks/basic_config.rake | 22 ++++++++
tasks/basic_tasks.rake | 139 +++++++++++++++++++++++++++++++++++++++++++++++
9 files changed, 357 insertions(+), 0 deletions(-)