gem_require 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'rubygems/command'
|
2
2
|
require 'rubygems/dependency_installer'
|
3
3
|
require 'rubygems/install_update_options'
|
4
|
+
require 'rubygems/local_remote_options'
|
4
5
|
require 'rubygems/version_option'
|
5
6
|
require 'rubygems/spec_fetcher'
|
6
7
|
|
7
8
|
class Gem::Commands::RequireCommand < Gem::Command
|
8
9
|
|
9
10
|
include Gem::VersionOption
|
11
|
+
include Gem::LocalRemoteOptions
|
10
12
|
include Gem::InstallUpdateOptions
|
11
13
|
|
12
14
|
def initialize
|
@@ -23,13 +25,17 @@ class Gem::Commands::RequireCommand < Gem::Command
|
|
23
25
|
|
24
26
|
super 'require', 'Install or update a gem', defaults
|
25
27
|
|
26
|
-
add_version_option
|
27
28
|
add_option('--latest',
|
28
29
|
'Get the latest matching version') do |value, options|
|
29
30
|
options[:latest] = true
|
30
31
|
end
|
31
32
|
|
32
33
|
add_install_update_options
|
34
|
+
add_local_remote_options
|
35
|
+
|
36
|
+
add_version_option
|
37
|
+
add_platform_option
|
38
|
+
add_prerelease_option
|
33
39
|
|
34
40
|
end
|
35
41
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_require
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mike Williams
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-21 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|