summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-01-26 02:10:56 +0100
committerFlorian Frank <flori@ping.de>2011-01-26 02:14:04 +0100
commit514d791dd8602ad1d70d45a824927aafe44e838c (patch)
treeaf3bfae5698bafd8c3859b237b9cb92a4792be82 /Rakefile
parent0b15820e245f4048d1bcd29cd60693e4e211ab43 (diff)
downloadjson-514d791dd8602ad1d70d45a824927aafe44e838c.tar.gz
Support building of fat binary gemv1.5.1
This should fix issue #51 on Windows
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 05871c9..8bbd7d9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -386,8 +386,12 @@ else
desc "Generate diagrams of ragel parser"
task :ragel_dot => [ :ragel_dot_png, :ragel_dot_ps ]
+ task :environment do
+ ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.2'
+ end
+
desc "Build all gems and archives for a new release of json and json_pure."
- task :release => [ :clean, :version, :cross, :native, :gem, ] do
+ task :release => [ :clean, :version, :environment, :cross, :native, :gem, ] do
sh "#$0 clean native gem"
sh "#$0 clean package"
end