rubygems-build-binary 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ccf4ce0c4a355dad75373ecb9135cb96c8299614c6321536e432bb302eb5590
|
|
4
|
+
data.tar.gz: 10e8fe34dc0ade8d70ea854a289673061d4e436c89b2eaa32e402191c297b52d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b432520c09ecf013c6dd0d26f22108589412203985b8863ea5a25cb60886641c8cac23b1f640e196350ba0676f2946724169aabf3bad6562d1fecd6c69786ddb
|
|
7
|
+
data.tar.gz: 1bac7b270f4c96210a703521061ab4ba652a5061c1c84e462f86216dedcbdb6c045d8109724a6309b41394a5b5b67d974e2acc9a886ffc2c49f494a8165a744d
|
|
@@ -5,7 +5,16 @@ require "rubygems/dependency_installer"
|
|
|
5
5
|
|
|
6
6
|
class Gem::Commands::BuildBinaryCommand < Gem::Command
|
|
7
7
|
def initialize
|
|
8
|
-
super("build_binary",
|
|
8
|
+
super("build_binary",
|
|
9
|
+
"Build a binary gem for the current platform",
|
|
10
|
+
requirements: [])
|
|
11
|
+
|
|
12
|
+
add_option("--add-requirement=REQUIREMENT",
|
|
13
|
+
"Add REQUIREMENT to spec.requirements",
|
|
14
|
+
"You can specify this option multiple times",
|
|
15
|
+
"to add multiples requirements") do |value, options|
|
|
16
|
+
options[:requirements] << value
|
|
17
|
+
end
|
|
9
18
|
end
|
|
10
19
|
|
|
11
20
|
def arguments
|
|
@@ -81,6 +90,11 @@ class Gem::Commands::BuildBinaryCommand < Gem::Command
|
|
|
81
90
|
spec.platform = Gem::Platform.local
|
|
82
91
|
# Available only for the current Ruby.
|
|
83
92
|
spec.required_ruby_version = required_ruby_version
|
|
93
|
+
|
|
94
|
+
pp @options
|
|
95
|
+
@options[:requirements].each do |requirement|
|
|
96
|
+
spec.requirements << requirement
|
|
97
|
+
end
|
|
84
98
|
end
|
|
85
99
|
|
|
86
100
|
def required_ruby_version
|