Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reported Rails problem with rake rails:update [#170 state:resolved]
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
Gem::Specification::PLATFORM_CROSS_TARGETS << "pureruby" | ||
# Apparently this file gets loaded by Rails. Only want to define the pureruby | ||
# task in the context of RedCloth compilation (echoe loaded). | ||
|
||
task 'pureruby' do | ||
reset_target 'pureruby' | ||
end | ||
if Gem::Specification.const_defined?(:PLATFORM_CROSS_TARGETS) | ||
Gem::Specification::PLATFORM_CROSS_TARGETS << "pureruby" | ||
|
||
if target = ARGV.detect do |arg| | ||
# Hack to get the platform set before the Rakefile evaluates | ||
Gem::Specification::PLATFORM_CROSS_TARGETS.include? arg | ||
task 'pureruby' do | ||
reset_target 'pureruby' | ||
end | ||
reset_target target | ||
end | ||
|
||
if target = ARGV.detect do |arg| | ||
# Hack to get the platform set before the Rakefile evaluates | ||
Gem::Specification::PLATFORM_CROSS_TARGETS.include? arg | ||
end | ||
reset_target target | ||
end | ||
end |