Skip to content

Commit 05d4dc4

Browse files
committed
Rebuild for RubyGems 4.0.7
1 parent 1ef1640 commit 05d4dc4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

command-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ next: /rubygems-org-api
88

99
<em class="t-gray">What each `gem` command does, and how to use it.</em>
1010

11-
This reference was automatically generated from RubyGems version 4.0.6.
11+
This reference was automatically generated from RubyGems version 4.0.7.
1212

1313
* [gem build](#gem-build)
1414
* [gem cert](#gem-cert)

specification-reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ next: /command-reference
2626

2727
<p>Starting in RubyGems 2.0, a Specification can hold arbitrary metadata. See <code>metadata</code> for restrictions on the format and size of metadata items you may add to a specification.</p>
2828

29+
<p>Specifications must be deterministic, as in the example above. For instance, you cannot define attributes conditionally:</p>
30+
31+
<pre class="ruby"><span class="ruby-comment"># INVALID: do not do this.</span>
32+
<span class="ruby-keyword">unless</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;jruby&quot;</span>
33+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">extensions</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;ext/example/extconf.rb&quot;</span>
34+
<span class="ruby-keyword">end</span>
35+
</pre>
36+
2937

3038

3139
## Required gemspec attributes

0 commit comments

Comments
 (0)