[
https://issues.apache.org/jira/browse/BUILDR-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626814#action_12626814
]
Assaf Arkin commented on BUILDR-140:
------------------------------------
In various places we use const_defined? to allow you to override a constant
(typically VERSION or REQUIRES) before loading the module.
This only works sometimes (most of that code is not tested), so needs to be
replaced with something more reliable, like reading these settings from the
buildr.yml file.
Separately, const_defined?('VERSION') always returns true under Ruby 1.9
because it looks up Buildr::VERSION. That behavior is new in 1.9, so code
using this condition always sets the wrong version.
> Get rid of const_defined? all across the board
> ----------------------------------------------
>
> Key: BUILDR-140
> URL: https://issues.apache.org/jira/browse/BUILDR-140
> Project: Buildr
> Issue Type: Improvement
> Reporter: Assaf Arkin
>
> a) doesn't work with Ruby 1.9.
> b) not pretty.
> c) must be a better way.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.