Permalink
Browse files

Use Gem::Platform to construct native gem.

It stored inside the gem metadata the incorrect platform format,
which lead to mismatched gem names during indexing by RubyForge.

This change fixes the issue DataMapper and other gem authors
faced.
  • Loading branch information...
1 parent 6b79f2f commit d4716b9e9241479bf6a8170502d6f273a7febf61 @luislavena luislavena committed Feb 23, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 History.txt
  2. +1 −1 lib/rake/extensiontask.rb
View
@@ -12,6 +12,7 @@
=== Bugfixes
* Better output of Rake development tasks (Thanks to Luis Parravicini).
+ * Proper usage of Gem::Platform for native gems (Thanks to Dirkjan Bussink).
== 0.3.1 / 2009-01-09
@@ -157,7 +157,7 @@ def define_native_tasks(for_platform = nil)
spec = Gem::Specification.from_yaml(gem_spec.to_yaml)
# adjust to specified platform
- spec.platform = platf
+ spec.platform = Gem::Platform.new(platf)
# clear the extensions defined in the specs
spec.extensions.clear

0 comments on commit d4716b9

Please sign in to comment.