<feed xmlns='http://www.w3.org/2005/Atom'>
<title>homebrew/Library/Homebrew/test/test_pkg_version.rb, branch ranger-1.7.0</title>
<subtitle>:beer: The missing package manager for OS X.</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/'/>
<entry>
<title>test_pkg_version: remove illegal testcase</title>
<updated>2015-04-23T04:25:08+00:00</updated>
<author>
<name>Xu Cheng</name>
</author>
<published>2015-04-19T12:36:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/commit/?id=8413e068a263116654c6b7e39e25c91235cc1189'/>
<id>8413e068a263116654c6b7e39e25c91235cc1189</id>
<content type='text'>
`Version` will not end with /_\d+/.

Closes #38822.

Signed-off-by: Xu Cheng &lt;xucheng@me.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Version` will not end with /_\d+/.

Closes #38822.

Signed-off-by: Xu Cheng &lt;xucheng@me.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch PkgVersion to use composition</title>
<updated>2015-04-03T00:22:12+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2015-04-03T00:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/commit/?id=175a15dae4c78564680a633b73e9fb6159ee31e3'/>
<id>175a15dae4c78564680a633b73e9fb6159ee31e3</id>
<content type='text'>
Comparing PkgVersion and Version objects can produce nonsensical
results. For example, equality is not symmetric:

irb(main):002:0&gt; PkgVersion.new("1.0", 0) == Version.new("1.0")
=&gt; false
irb(main):003:0&gt; Version.new("1.0") == PkgVersion.new("1.0", 0)
=&gt; true

Rather than attempt to deal with subclass-superclass equality, let's use
composition and punt on the problem altogether.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Comparing PkgVersion and Version objects can produce nonsensical
results. For example, equality is not symmetric:

irb(main):002:0&gt; PkgVersion.new("1.0", 0) == Version.new("1.0")
=&gt; false
irb(main):003:0&gt; Version.new("1.0") == PkgVersion.new("1.0", 0)
=&gt; true

Rather than attempt to deal with subclass-superclass equality, let's use
composition and punt on the problem altogether.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PkgVersion#&lt;=&gt;</title>
<updated>2014-07-03T21:37:43+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2014-07-03T21:32:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/commit/?id=41adafc95e2cb064b121c7e7b881dcdd5ca5e087'/>
<id>41adafc95e2cb064b121c7e7b881dcdd5ca5e087</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a custom test class so we can avoid monkeypatching</title>
<updated>2014-06-19T01:32:51+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2014-06-19T01:32:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/commit/?id=be6c29846b51b91254a86117e904747b2fe2a4d8'/>
<id>be6c29846b51b91254a86117e904747b2fe2a4d8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Encode formula revision in installation prefix</title>
<updated>2014-03-06T02:12:51+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2014-03-06T02:12:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/homebrew/commit/?id=fbfc6dcffee5e182ade0f917ce3e6509578cc75f'/>
<id>fbfc6dcffee5e182ade0f917ce3e6509578cc75f</id>
<content type='text'>
In order to allow kegs built with the same version but differing formula
revisions to coexist, we must encode the revision as part of the keg's
name. This is necessary to actually perform an upgrade, as we cannot
upgrade a keg in-place, and temporarily moving it pending the result of
the upgrade is error-prone and potentially slow.

To accomplish this, we introduce a new Formula#pkg_version method that
concatenates the active_spec version with the formula revision. An
exception is made for a formula that has no revision: the tag is
omitted. This preserves compatibility with existing installations.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to allow kegs built with the same version but differing formula
revisions to coexist, we must encode the revision as part of the keg's
name. This is necessary to actually perform an upgrade, as we cannot
upgrade a keg in-place, and temporarily moving it pending the result of
the upgrade is error-prone and potentially slow.

To accomplish this, we introduce a new Formula#pkg_version method that
concatenates the active_spec version with the formula revision. An
exception is made for a formula that has no revision: the tag is
omitted. This preserves compatibility with existing installations.
</pre>
</div>
</content>
</entry>
</feed>
