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: a6204175c51b60b521a2bde34b56e0605961544da17007e80ef1ea8be0594769
4
- data.tar.gz: 37723691a4f32907f8c3877281c79fb348abb84fc5eb2ae4ab2e2f52a0e9d68d
3
+ metadata.gz: 8ccf4ce0c4a355dad75373ecb9135cb96c8299614c6321536e432bb302eb5590
4
+ data.tar.gz: 10e8fe34dc0ade8d70ea854a289673061d4e436c89b2eaa32e402191c297b52d
5
5
  SHA512:
6
- metadata.gz: d2e686e4af43fd10eb77435caa881361a15de6a8321c6546aa8115e667f96d55fdce0db21cf86804c0dfa59dfda950902680e2a7532caf063f0e2c4441975464
7
- data.tar.gz: 1d6e23364f06e70df65c5d2e92df2ba7a02c4d65aa65a619fe368a5b6e6d21e0cd612e9ec3558ad5f735e6aeca8da0f5a99a4c1d919b87255ff4bd4960f18867
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", "Build a binary gem for the current platform")
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
@@ -1,3 +1,3 @@
1
1
  module RubyGemsBuildBinary
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-build-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei