[Hiki-dev:01275] Re: HIKI_{VERSION, RELEASE_DATE} -> Hiki::{VERSION, RELEASE_DATE}

Back to archive index

Kazuhiko kazuh****@fdiar*****
2009年 7月 28日 (火) 16:48:46 JST


Kazuhiko wrote:
>> diff --git a/hiki/config.rb b/hiki/config.rb
>> index 503caa7..7fee3c0 100644
>> --- a/hiki/config.rb
>> +++ b/hiki/config.rb
>> @@ -3,8 +3,13 @@
>>  #
>>  # TADA Tadashi <sho****@spc*****> holds the copyright of Config class.
>>
>> -HIKI_VERSION  = '0.8.7'
>> -HIKI_RELEASE_DATE = '2008-02-08'
>> +module Hiki
>> +  VERSION = '0.8.7'
>> +  RELEASE_DATE = '2008-02-08'
>> +end
>> +
>> +HIKI_VERSION  = Hiki::VERSION
>> +HIKI_RELEASE_DATE = Hiki::RELEASE_DATE

この変更以降、history.rbプラグインが有効だとこんなエラーが出ます。
NameError (uninitialized constant
#<Class:0x7f36ced77ab0>::Hiki::VERSION): footer_proc
/home/kazuhiko/public_html/hiki/plugin/00default.rb:172:in `hiki_footer'
/home/kazuhiko/public_html/hiki/plugin/00default.rb:168:in `load_file'

Hiki::VERSIONのかわりに::Hiki::VERSIONと書けば収まりますが、history.rbを
どうにか直すべき?

かずひこ




Hiki-dev メーリングリストの案内
Back to archive index