cannery 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/cannery.rb +1 -1
- data/lib/rubygems/commands/can_command.rb +5 -3
- metadata +1 -1
data/History.txt
CHANGED
data/lib/cannery.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'tmpdir'
|
2
3
|
require 'rake'
|
4
|
+
require 'rubygems/installer'
|
3
5
|
require 'rubygems/version_option'
|
4
6
|
|
5
|
-
class Gem::Commands::
|
7
|
+
class Gem::Commands::CanCommand < Gem::Command
|
6
8
|
include Gem::VersionOption
|
7
9
|
|
8
10
|
def initialize
|
9
11
|
super 'can', 'Can an installed gem into a .jar file',
|
10
12
|
:version => Gem::Requirement.default,
|
11
|
-
:target => Dir.pwd
|
13
|
+
:target => Dir.pwd
|
12
14
|
|
13
|
-
add_option('--target
|
15
|
+
add_option('--target DIR', 'target directory for the .jar') do |value, options|
|
14
16
|
options[:target] = value
|
15
17
|
end
|
16
18
|
|