gem-release 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_release/version.rb +1 -1
- data/lib/rubygems_plugin.rb +4 -4
- metadata +2 -2
data/lib/gem_release/version.rb
CHANGED
data/lib/rubygems_plugin.rb
CHANGED
@@ -16,8 +16,8 @@ class Gem::Commands::ReleaseCommand < Gem::Command
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def execute
|
19
|
-
|
20
|
-
push(
|
19
|
+
filename = build
|
20
|
+
push(filename)
|
21
21
|
remove(filename)
|
22
22
|
say "All done, thanks buddy."
|
23
23
|
end
|
@@ -26,7 +26,7 @@ class Gem::Commands::ReleaseCommand < Gem::Command
|
|
26
26
|
command = Gem::Commands::BuildCommand.new
|
27
27
|
command.handle_options([gemspec])
|
28
28
|
command.execute
|
29
|
-
command.load_gemspecs(gemspec).first.
|
29
|
+
command.load_gemspecs(gemspec).first.filename
|
30
30
|
end
|
31
31
|
|
32
32
|
def push(filename)
|
@@ -36,7 +36,7 @@ class Gem::Commands::ReleaseCommand < Gem::Command
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def remove(filename)
|
39
|
-
`rm #{
|
39
|
+
`rm #{filename}`
|
40
40
|
say "Deleting left over gem file #{filename}"
|
41
41
|
end
|
42
42
|
|