classx 0.0.1 → 0.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 +408 -2
- data/README +2 -2
- data/Rakefile +4 -3
- data/doc/output/coverage/-Library-Ruby-Gems-gems-diff-lcs-1_1_2-lib-diff-lcs-block_rb.html +1 -1
- data/doc/output/coverage/-Library-Ruby-Gems-gems-diff-lcs-1_1_2-lib-diff-lcs-callbacks_rb.html +1 -1
- data/doc/output/coverage/-Library-Ruby-Gems-gems-diff-lcs-1_1_2-lib-diff-lcs-change_rb.html +1 -1
- data/doc/output/coverage/-Library-Ruby-Gems-gems-diff-lcs-1_1_2-lib-diff-lcs-hunk_rb.html +1 -1
- data/doc/output/coverage/-Library-Ruby-Gems-gems-diff-lcs-1_1_2-lib-diff-lcs_rb.html +1 -1
- data/doc/output/coverage/-Library-Ruby-Gems-gems-rcov-0_8_1_2_0-lib-rcov_rb.html +1 -1
- data/doc/output/coverage/index.html +37 -172
- data/doc/output/coverage/lib-classx-attribute_rb.html +788 -0
- data/doc/output/coverage/{-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-drb-invokemethod_rb.html → lib-classx-attributes_rb.html} +96 -47
- data/doc/output/coverage/lib-classx-validate_rb.html +36 -36
- data/doc/output/coverage/lib-classx_rb.html +74 -151
- data/example/commandable.rb +28 -0
- data/lib/classx.rb +35 -112
- data/lib/classx/attribute.rb +178 -0
- data/lib/classx/attributes.rb +80 -8
- data/lib/classx/commandable.rb +38 -0
- data/lib/classx/validate.rb +1 -1
- data/spec/classx/default_option_spec.rb +140 -0
- data/spec/classx/handles_spec.rb +44 -0
- data/spec/classx/with_coerce.rb +79 -0
- data/spec/classx/with_extend.rb +25 -0
- data/spec/classx/with_include.rb +25 -0
- data/spec/classx/with_multiple_class_spec.rb +23 -0
- data/spec/classx/without_accessor_spec.rb +26 -0
- data/spec/classx/without_anyoption_spec.rb +23 -0
- data/spec/classx/writable_option_spec.rb +73 -0
- data/spec/classx_attributes_spec.rb +30 -0
- data/tasks/basic_config.rake +5 -1
- metadata +22 -15
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-drb-drb_rb.html +0 -2373
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-drb-eq_rb.html +0 -626
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-forwardable_rb.html +0 -828
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-pp_rb.html +0 -1257
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-prettyprint_rb.html +0 -1506
- data/doc/output/coverage/-System-Library-Frameworks-Ruby_framework-Versions-1_8-usr-lib-ruby-1_8-timeout_rb.html +0 -715
- data/lib/classx.rb.new +0 -102
- data/spec/classx_spec.rb +0 -261
data/ChangeLog
CHANGED
@@ -1,4 +1,410 @@
|
|
1
|
-
|
1
|
+
commit 08727ad7905c9f16a95d2b788b9c5e51288d1580
|
2
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
3
|
+
Date: Thu Aug 21 17:20:16 2008 +0900
|
2
4
|
|
3
|
-
|
5
|
+
tweak rake tasks.
|
4
6
|
|
7
|
+
commit 6540c8afadedf7f72cfacea7d67efadba38f8e5a
|
8
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
9
|
+
Date: Thu Aug 21 16:42:15 2008 +0900
|
10
|
+
|
11
|
+
added presentation slide for TokyoRubyKaigi01.
|
12
|
+
|
13
|
+
commit 84f215407ea6bcb76022ef41ecf4e55088d73b9b
|
14
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
15
|
+
Date: Thu Aug 21 13:23:48 2008 +0900
|
16
|
+
|
17
|
+
included should private
|
18
|
+
|
19
|
+
commit 7bf3db95eff3205a8c7dd05a7d0e34dd658d2ac2
|
20
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
21
|
+
Date: Thu Aug 21 13:04:56 2008 +0900
|
22
|
+
|
23
|
+
fixed bug when extending classX based class.
|
24
|
+
|
25
|
+
commit 633f7e88b16f94fc4fb64dd84cd68cf8a4b5d3a2
|
26
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
27
|
+
Date: Thu Aug 21 11:46:31 2008 +0900
|
28
|
+
|
29
|
+
typo fixed.
|
30
|
+
|
31
|
+
commit 93347e055db4f132356f990be82efc332dba3962
|
32
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
33
|
+
Date: Wed Aug 20 23:23:13 2008 +0900
|
34
|
+
|
35
|
+
added benchmark for attribute_set.
|
36
|
+
|
37
|
+
commit 283903a6b88fe5a6bdb453b13e10d6427e4a7113
|
38
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
39
|
+
Date: Wed Aug 20 22:52:02 2008 +0900
|
40
|
+
|
41
|
+
It seems that it is facter [ select => convert ] than [ convert => select ].
|
42
|
+
|
43
|
+
commit 7d345a994d585e7ef9fdae97b84169e0fec71ddf
|
44
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
45
|
+
Date: Wed Aug 20 22:32:37 2008 +0900
|
46
|
+
|
47
|
+
#attribute_of is too slow. So, change caching the result in the same method.
|
48
|
+
|
49
|
+
commit 28f399333add1d80b76dd3c91a44cb2938d55772
|
50
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
51
|
+
Date: Wed Aug 20 21:58:10 2008 +0900
|
52
|
+
|
53
|
+
added initialize benchmark. classX is TOOOOOOOOOOOOOOOOOOOOOOOOOOO SLOOOOOW now!!!
|
54
|
+
|
55
|
+
commit d5619b6533955eb46367103119bc7cff5d3d35e7
|
56
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
57
|
+
Date: Wed Aug 20 21:13:44 2008 +0900
|
58
|
+
|
59
|
+
fixed typo.
|
60
|
+
|
61
|
+
commit ea6fd14775f58b800b64468af9c08a0c4a4acc28
|
62
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
63
|
+
Date: Wed Aug 20 21:03:56 2008 +0900
|
64
|
+
|
65
|
+
tweak line break.
|
66
|
+
|
67
|
+
commit a3323a233f031cdbc774c88b786241f260a22a24
|
68
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
69
|
+
Date: Wed Aug 20 21:02:23 2008 +0900
|
70
|
+
|
71
|
+
allow user changing argument with overriding #before_init .
|
72
|
+
|
73
|
+
commit dfa9fe29791bae22fd91d0b7edcf9b4ec9d8d9e2
|
74
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
75
|
+
Date: Wed Aug 20 20:55:59 2008 +0900
|
76
|
+
|
77
|
+
tweak.
|
78
|
+
|
79
|
+
commit aff7bea9fa71a98c6e7fc23ae6a8f78b93554599
|
80
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
81
|
+
Date: Wed Aug 20 20:40:12 2008 +0900
|
82
|
+
|
83
|
+
added ClassX::Commandable.
|
84
|
+
|
85
|
+
commit e3a2f7ea88f980c1dd701bb17c934347bc52841b
|
86
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
87
|
+
Date: Wed Aug 20 08:47:53 2008 +0900
|
88
|
+
|
89
|
+
change many method to class method.
|
90
|
+
|
91
|
+
commit f34fd672c66e9ba91157e594032933d0170d7264
|
92
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
93
|
+
Date: Wed Aug 20 08:20:53 2008 +0900
|
94
|
+
|
95
|
+
variable name is worse.
|
96
|
+
|
97
|
+
commit 0b58fc18a0ea81803c284df6243d0086f15809ba
|
98
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
99
|
+
Date: Wed Aug 20 08:03:11 2008 +0900
|
100
|
+
|
101
|
+
change to private many method and tweak method define order.
|
102
|
+
|
103
|
+
commit 9f43a491609034a94d4df7954f5526225e3a7ce5
|
104
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
105
|
+
Date: Wed Aug 20 07:51:20 2008 +0900
|
106
|
+
|
107
|
+
output warn when attribute was overridden.
|
108
|
+
|
109
|
+
commit ff20fbc16efff13b367d473c0c033373a2c2f51c
|
110
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
111
|
+
Date: Wed Aug 20 02:57:57 2008 +0900
|
112
|
+
|
113
|
+
added coerce option.
|
114
|
+
|
115
|
+
commit b4a5afc74037bd14d1d9204de76723c4c7b876ff
|
116
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
117
|
+
Date: Wed Aug 20 02:11:02 2008 +0900
|
118
|
+
|
119
|
+
added :desc option to attribute and added doc.
|
120
|
+
|
121
|
+
commit bd06dccff2f367a0ea4d1d107f45620a61574314
|
122
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
123
|
+
Date: Wed Aug 20 01:54:10 2008 +0900
|
124
|
+
|
125
|
+
It may be something wrong.
|
126
|
+
|
127
|
+
commit 5122329bf074239b6c7ea872d3740c79056bd083
|
128
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
129
|
+
Date: Wed Aug 20 01:50:24 2008 +0900
|
130
|
+
|
131
|
+
support :include and :extend option for extending attrubte.
|
132
|
+
|
133
|
+
commit 0c22d5655c4a8e76b9eb0ef58ac179b2325138be
|
134
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
135
|
+
Date: Wed Aug 20 01:24:02 2008 +0900
|
136
|
+
|
137
|
+
added classx/attrubte. lazy support.
|
138
|
+
|
139
|
+
commit 73a36575cf7c219da716d0a59decf99d0b9b3c40
|
140
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
141
|
+
Date: Wed Aug 20 01:16:20 2008 +0900
|
142
|
+
|
143
|
+
Merge branches 'master' and 'with_classx_attribute'
|
144
|
+
|
145
|
+
commit bc9924c17b1cb45a73b033172979a4a288c12b1d
|
146
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
147
|
+
Date: Wed Aug 20 01:15:46 2008 +0900
|
148
|
+
|
149
|
+
change to use ClassX::AttributeFactory class that generate Attribute class.
|
150
|
+
|
151
|
+
commit 221548d16464e00180e38045976b93da05d63bdc
|
152
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
153
|
+
Date: Tue Jul 15 07:14:39 2008 +0900
|
154
|
+
|
155
|
+
added code for Ruby1.8.5
|
156
|
+
|
157
|
+
commit 1b53e64aa57af2b14031cdc4780ce036032d411b
|
158
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
159
|
+
Date: Mon Jul 14 08:55:33 2008 +0900
|
160
|
+
|
161
|
+
fied bug: when second access using lazy option was return nil.
|
162
|
+
|
163
|
+
commit a7093b487c699ee18e91c2f86c83ca94e5687bb6
|
164
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
165
|
+
Date: Sun Jun 22 03:19:10 2008 +0900
|
166
|
+
|
167
|
+
added test.
|
168
|
+
|
169
|
+
commit 9c43ef589df6ae5b3e41b646e03f51c011004123
|
170
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
171
|
+
Date: Sun Jun 22 03:04:06 2008 +0900
|
172
|
+
|
173
|
+
you can use attribute defenition in module
|
174
|
+
|
175
|
+
commit fc3c7329036576c0c44428d014b0de7dc9f20763
|
176
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
177
|
+
Date: Sun Jun 22 02:44:22 2008 +0900
|
178
|
+
|
179
|
+
added :handles option.
|
180
|
+
|
181
|
+
commit 1b6cc210418a4f1b3e772bdd6979f043924637cc
|
182
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
183
|
+
Date: Sun Jun 22 02:20:21 2008 +0900
|
184
|
+
|
185
|
+
split test code for maintenancibirity.
|
186
|
+
|
187
|
+
commit 801f39272c57f19a40449a455b3eacaf0b535e7d
|
188
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
189
|
+
Date: Sun Jun 22 00:03:36 2008 +0900
|
190
|
+
|
191
|
+
bug fixed.
|
192
|
+
|
193
|
+
commit c309461c56487d9f722720b36385128bbd50df03
|
194
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
195
|
+
Date: Sat Jun 21 23:49:33 2008 +0900
|
196
|
+
|
197
|
+
support :lazy option
|
198
|
+
|
199
|
+
commit 6ebdfce9cde0c596997348be4c4804fee7f4e6c2
|
200
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
201
|
+
Date: Thu Jun 5 07:55:06 2008 +0900
|
202
|
+
|
203
|
+
make InstanceException to rescue multiple exception of classx.
|
204
|
+
|
205
|
+
commit cf1b0742dbded5a43cfec4b500ec0378bdc4b23c
|
206
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
207
|
+
Date: Thu Jun 5 00:33:34 2008 +0900
|
208
|
+
|
209
|
+
Fixed doc.
|
210
|
+
|
211
|
+
commit 8f4ba237852a5166004e9fbd2530ee548c4394c5
|
212
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
213
|
+
Date: Sat May 31 16:32:22 2008 +0900
|
214
|
+
|
215
|
+
change to caching set_attr_default_value_of[] methods regex.
|
216
|
+
|
217
|
+
commit 87726f13ba5c1910c7c4c7537d01ec94f08d3586
|
218
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
219
|
+
Date: Sat May 31 16:31:27 2008 +0900
|
220
|
+
|
221
|
+
for warning.
|
222
|
+
|
223
|
+
commit 95b2f4497af4cd5b0fc393d3276ec9f033fc0e00
|
224
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
225
|
+
Date: Sat May 31 15:59:04 2008 +0900
|
226
|
+
|
227
|
+
It may be conflict class method 'has'. So set 'add_attribute' as default name.
|
228
|
+
|
229
|
+
commit 0f2d6aee6d8c21cf6e37721d6f25af9c3311a153
|
230
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
231
|
+
Date: Wed May 28 01:09:16 2008 +0900
|
232
|
+
|
233
|
+
Fixed doc. :required param was deprecated.
|
234
|
+
|
235
|
+
commit 13a8d62c43bb2697e76ceb3f3913696efd17aef4
|
236
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
237
|
+
Date: Wed May 28 01:07:02 2008 +0900
|
238
|
+
|
239
|
+
When not attribute param exist in #initialize params, it should be ignored.
|
240
|
+
|
241
|
+
commit c1837234062d8570c776f7371424790dcd3cd656
|
242
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
243
|
+
Date: Tue May 27 23:44:30 2008 +0900
|
244
|
+
|
245
|
+
tweak spec.
|
246
|
+
|
247
|
+
commit 158a33e5dff79dd03b7298b01ffec1cf9d12c74a
|
248
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
249
|
+
Date: Tue May 27 09:21:23 2008 +0900
|
250
|
+
|
251
|
+
Tweak error message for easy debuging with ClassX::Validate
|
252
|
+
|
253
|
+
commit 2194a9f8ba7bb1a6141c2c28efd5c7257f38b7d3
|
254
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
255
|
+
Date: Tue May 27 09:13:25 2008 +0900
|
256
|
+
|
257
|
+
rename ClassX::InvalidSetterArgument to ClassX::InvalidAttrArgument
|
258
|
+
|
259
|
+
commit ca42b54f0300a709a3a950422e430b92523d1736
|
260
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
261
|
+
Date: Tue May 27 03:06:32 2008 +0900
|
262
|
+
|
263
|
+
Change to raise Exception when you specify :optional is true and :writable is false.
|
264
|
+
|
265
|
+
commit d6652e91881ee21d1abd635230f19054bd388116
|
266
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
267
|
+
Date: Tue May 27 02:51:05 2008 +0900
|
268
|
+
|
269
|
+
XXX: compatible change. Rename option :required to :optional.
|
270
|
+
As :optional does not specify false, attribute should be required.
|
271
|
+
If you specify :option and does not specify :optional, :optional is true.
|
272
|
+
|
273
|
+
commit 8f19213bbab485d5f95af9527e4ebe1d3c335e29
|
274
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
275
|
+
Date: Tue May 27 02:08:13 2008 +0900
|
276
|
+
|
277
|
+
XXX: compatible change. when you want to define setter as public, you should specify more expricitly.
|
278
|
+
|
279
|
+
commit 39c5e6a2ba8bc550ab8168d88c9d46d6cf1876d9
|
280
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
281
|
+
Date: Tue May 27 01:57:26 2008 +0900
|
282
|
+
|
283
|
+
Moved hook point of before_init and change to take argument for tweaking constructor arguments
|
284
|
+
|
285
|
+
commit 2fb2bfe2fdf2e1c3e66fa0180341b5a7a2cd5010
|
286
|
+
Author: Keiji, Yoshimi <walf443@gmail.com>
|
287
|
+
Date: Tue May 27 01:43:21 2008 +0900
|
288
|
+
|
289
|
+
If attribute is optional, it should declare expricitly.
|
290
|
+
|
291
|
+
commit 2b6d048a469850308050e9d7188f834a76858657
|
292
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
293
|
+
Date: Tue May 27 01:26:48 2008 +0900
|
294
|
+
|
295
|
+
Added spec.
|
296
|
+
|
297
|
+
commit 566f79d80c562b3c99b8744cc60411fbc3b525ff
|
298
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
299
|
+
Date: Tue May 27 01:17:46 2008 +0900
|
300
|
+
|
301
|
+
Oh my got! It's not worth caching without redifine.
|
302
|
+
|
303
|
+
commit 53129fae5970eee849271e323ed8bd95ac560197
|
304
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
305
|
+
Date: Tue May 27 01:10:18 2008 +0900
|
306
|
+
|
307
|
+
required attribute should not have :default option.
|
308
|
+
|
309
|
+
commit f382e00c615ada6fdb77d81fa5c311800bae70f1
|
310
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
311
|
+
Date: Tue May 27 00:22:11 2008 +0900
|
312
|
+
|
313
|
+
Added experimental feature for caching autogenerated class to validate.Hash
|
314
|
+
|
315
|
+
commit dd0790a8f03b465e506ec6cc6a7e4004e0dbb6f0
|
316
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
317
|
+
Date: Mon May 26 23:59:51 2008 +0900
|
318
|
+
|
319
|
+
Tweaked docs.
|
320
|
+
|
321
|
+
commit e697f6e45c64827dfaebf5de839ccb34f2688fc5
|
322
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
323
|
+
Date: Mon May 26 23:53:18 2008 +0900
|
324
|
+
|
325
|
+
Added ClassX::Validate.
|
326
|
+
|
327
|
+
commit 88e75d9b7ceb18e654df108827eb3aebac14039b
|
328
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
329
|
+
Date: Mon May 26 08:47:55 2008 +0900
|
330
|
+
|
331
|
+
Added attributes class method.
|
332
|
+
|
333
|
+
commit 50981b2a813c215e987953e8ad6f4e5915a11be1
|
334
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
335
|
+
Date: Sun May 25 16:24:20 2008 +0900
|
336
|
+
|
337
|
+
\# required attributes should be public class methods
|
338
|
+
|
339
|
+
commit 65b3ab3a00e96dff9407acb62bdd29551734598d
|
340
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
341
|
+
Date: Sun May 25 03:10:14 2008 +0900
|
342
|
+
|
343
|
+
Change process order for warings
|
344
|
+
|
345
|
+
commit b27bce22642bfe6e83322aab5cc333add00f270d
|
346
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
347
|
+
Date: Sun May 25 01:11:44 2008 +0900
|
348
|
+
|
349
|
+
tweek RequeredAttributeError's error message
|
350
|
+
|
351
|
+
commit b33f3d0246ecc191564bb74b3ab3849e529c9a9f
|
352
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
353
|
+
Date: Sun May 25 00:51:22 2008 +0900
|
354
|
+
|
355
|
+
fixed bug that all classes that extend ClassX are affected when you change class variable
|
356
|
+
|
357
|
+
commit 868c6e981067a243c70937026feae6e77ac734ec
|
358
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
359
|
+
Date: Sun May 25 00:34:24 2008 +0900
|
360
|
+
|
361
|
+
delete garbage.
|
362
|
+
|
363
|
+
commit 8178791b39199222df912cee95532bd501acf923
|
364
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
365
|
+
Date: Sun May 25 00:26:07 2008 +0900
|
366
|
+
|
367
|
+
delete debug print
|
368
|
+
|
369
|
+
commit 853bd274400e0a56f20b8ee2907952c9219a7519
|
370
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
371
|
+
Date: Sun May 25 00:24:00 2008 +0900
|
372
|
+
|
373
|
+
change to be able to use String as #initialize arguments
|
374
|
+
|
375
|
+
commit 89b0a251c270e804ee92e7be87417f1fcf0cafb5
|
376
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
377
|
+
Date: Sat May 24 23:59:49 2008 +0900
|
378
|
+
|
379
|
+
fixed bug that abort when you specify none kind_of Hash value to initialize argument.
|
380
|
+
|
381
|
+
commit d53494a4694ac7d5f3bc191d3deff011f03aad90
|
382
|
+
Author: Keiji, Yoshimi <walf443@gmail dot com>
|
383
|
+
Date: Sat May 24 19:37:46 2008 +0900
|
384
|
+
|
385
|
+
tweak error message
|
386
|
+
|
387
|
+
commit dbf90e3c3261ffc4b6b77260d9e9906b5bed01d1
|
388
|
+
Author: Keiji, Yoshimi <walf443 at gmail dot com>
|
389
|
+
Date: Wed May 21 01:16:37 2008 +0900
|
390
|
+
|
391
|
+
add test
|
392
|
+
|
393
|
+
commit cfc3043d481a9736df85ffc5118207c3ac4d0e76
|
394
|
+
Author: Keiji, Yoshimi <walf443 at gmail dot com>
|
395
|
+
Date: Tue May 20 23:58:20 2008 +0900
|
396
|
+
|
397
|
+
add simple document
|
398
|
+
|
399
|
+
commit 5571feb0934a05ca1789d4570f70ac67a9df4285
|
400
|
+
Author: Keiji, Yoshimi <walf443 at gmail dot com>
|
401
|
+
Date: Tue May 20 23:50:13 2008 +0900
|
402
|
+
|
403
|
+
- fixed bug that can't specify any object except for literal object as :default values
|
404
|
+
- set_attr_default_value shold private method
|
405
|
+
|
406
|
+
commit 0856eadc3ff3e3bf0e26691a25c0267a4fab1ead
|
407
|
+
Author: Keiji, Yoshimi <walf443 at gmail dot com>
|
408
|
+
Date: Tue May 20 23:33:54 2008 +0900
|
409
|
+
|
410
|
+
start new project.
|
data/README
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
end
|
15
15
|
|
16
16
|
Point.new(:x => 30, :y => 40) #=> <# Point @x=30, @y=40 >
|
17
|
-
Point3D.new(:x => 30, :y => 40, :z => 50) #=> <# Point3D @x=30, @y=40, @z=50 >
|
18
|
-
|
17
|
+
point3d = Point3D.new(:x => 30, :y => 40, :z => 50) #=> <# Point3D @x=30, @y=40, @z=50 >
|
18
|
+
point3d.z = 60.0 # raise ClassX::InvalidSetterArgumentError
|
19
19
|
|
20
20
|
== Description
|
21
21
|
perl's Moose like Class interface.
|
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ DESCRIPTION = <<-"END_DESCRIPTION"
|
|
17
17
|
|
18
18
|
END_DESCRIPTION
|
19
19
|
BIN_FILES = %w( )
|
20
|
-
VERS = "0.0.
|
20
|
+
VERS = "0.0.2"
|
21
21
|
|
22
22
|
EXTRA_RDOC_FILES = []
|
23
23
|
HECKLE_ROOT_MODULES = ["Classx"]
|
@@ -41,9 +41,10 @@ SPEC = Gem::Specification.new do |s|
|
|
41
41
|
s.autorequire = ""
|
42
42
|
s.test_files = Dir["spec/*_spec.rb"]
|
43
43
|
|
44
|
-
|
44
|
+
if Gem::RubyGemsVersion >= "1.2"
|
45
|
+
s.add_development_dependency('rspec', '>=1.1.4')
|
46
|
+
end
|
45
47
|
#s.required_ruby_version = '>= 1.8.2'
|
46
|
-
s.add_dependency('date_time-duration', '>= 0.0.1')
|
47
48
|
|
48
49
|
s.files = PKG_FILES + EXTRA_RDOC_FILES
|
49
50
|
s.extensions = EXTENSIONS
|
@@ -553,7 +553,7 @@ span.run100 {
|
|
553
553
|
</style>
|
554
554
|
</head>
|
555
555
|
<body><h3>C0 code coverage information</h3>
|
556
|
-
<p>Generated on
|
556
|
+
<p>Generated on Thu Aug 21 17:23:11 +0900 2008 with <a href='http://eigenclass.org/hiki/rcov'>rcov 0.8.1.2</a>
|
557
557
|
</p>
|
558
558
|
<hr/>
|
559
559
|
<pre><span class='marked0'>Code reported as executed by Ruby looks like this...
|