Sorry, copy & paste fail.  First part should read like this...

Assuming in environment.rb I specify the following:

RADIANT_GEM_VERSION = "0.9.0.rc2"

>
> Then look at the boot.rb which contains this method:
>
>      def parse_gem_version(text)
>        $1 if text =~
> /^[^#]*RADIANT_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
>      end
>
> That RegEx matches a version like "0.9.0" but it doesn't match
> "0.9.0.rc2".  Therefore my setting isn't getting picked up.  My
> quickfix is to just define the constant in boot.rb instead of
> environment.rb which removes the need for this parse_gem_version
> method.
>
> Any better suggestion?
>
> - Jeff
>
> ---
> Jeff Casimir
> Jumpstart Lab by Casimir Creative, LLC
> http://jumpstartlab.com
> @jumpstartlab on twitter
>
>
>
> On Sun, May 16, 2010 at 5:02 PM, Jeff Casimir <j...@casimircreative.com> 
> wrote:
>> Both are good solutions -- thanks!
>>
>> - Jeff
>>
>>
>> On Sun, May 16, 2010 at 3:02 PM, john muhl <johnm...@gmail.com> wrote:
>>> freeze your 0.9rc2 app (requires git to be in your path).
>>>
>>> cd /path/to/project
>>> rake radiant:freeze:edge TAG=0.9.0.rc2
>>>
>>> On Sun, May 16, 2010 at 1:39 PM, Jeff Casimir <j...@casimircreative.com> 
>>> wrote:
>>>> All,
>>>>
>>>> I'm ready to deploy my first 0.9rc2 site, but my server has other
>>>> existing 0.8.x sites that I don't want to mess with.  What should I
>>>> put in the config files to explicitly set the radiant gem version
>>>> number?
>>>>
>>>> Thanks,
>>>> Jeff
>>>>
>>>> ---
>>>> Jeff Casimir
>>>> Jumpstart Lab by Casimir Creative, LLC
>>>> http://jumpstartlab.com
>>>> @jumpstartlab on twitter
>>>>
>>>
>>
>

Reply via email to