hoe-telicopter 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hoe/hotelicutter.rb +5 -4
- data/lib/hoe/telicopter.rb +1 -1
- metadata +1 -1
data/lib/hoe/hotelicutter.rb
CHANGED
@@ -28,13 +28,14 @@ module Hoe::Hotelicutter
|
|
28
28
|
gems = Dir["#{pkg}*.gem"]
|
29
29
|
|
30
30
|
gems.each do |g|
|
31
|
-
|
32
|
-
puts
|
31
|
+
new_name = "#{File.dirname(g)}#{GEM_PREFIX}-#{File.basename(g)}"
|
32
|
+
puts "old name: #{g}" # TODO: remove
|
33
|
+
puts "new name: #{new_name}" # TODO: remove
|
33
34
|
# pre-append the prefix before publishing
|
34
|
-
File.rename(g,
|
35
|
+
File.rename(g, new_name)
|
35
36
|
# TODO - once gemcutter supports command invocation, use it.
|
36
37
|
# We could still fail here due to --format executable
|
37
|
-
#sh Gem.ruby, "-S", "gem", "push",
|
38
|
+
#sh Gem.ruby, "-S", "gem", "push", new_name
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
data/lib/hoe/telicopter.rb
CHANGED