<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,7 +14,7 @@ class VersionGuard &lt; SpecGuard
 
   def to_v(str)
     major, minor, tiny, patch = str.split &quot;.&quot;
-    &quot;%02d%02d%02d%04d&quot; % [major, minor, tiny, patch].map { |x| x.to_i }
+    (&quot;1%02d%02d%02d%04d&quot; % [major, minor, tiny, patch].map { |x| x.to_i }).to_i
   end
 
   def ruby_version
@@ -23,7 +23,7 @@ class VersionGuard &lt; SpecGuard
 
   def match?
     case @version
-    when String
+    when Integer
       ruby_version &gt;= @version
     when Range
       @version.include? ruby_version</diff>
      <filename>lib/mspec/guards/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -37,7 +37,7 @@ describe VersionGuard, &quot;#ruby_version&quot; do
   end
 
   it &quot;returns 'RUBY_VERSION.RUBY_PATCHLEVEL'&quot; do
-    @guard.ruby_version.should == '0108060114'
+    @guard.ruby_version.should == 10108060114
   end
 end
 
@@ -47,13 +47,13 @@ describe VersionGuard, &quot;#to_v&quot; do
   end
 
   it &quot;returns a version string containing only digits&quot; do
-    @guard.to_v(&quot;1.8.6.22&quot;).should == &quot;0108060022&quot;
+    @guard.to_v(&quot;1.8.6.22&quot;).should == 10108060022
   end
 
   it &quot;replaces missing version parts with zeros&quot; do
-    @guard.to_v(&quot;1.8&quot;).should == &quot;0108000000&quot;
-    @guard.to_v(&quot;1.8.6&quot;).should == &quot;0108060000&quot;
-    @guard.to_v(&quot;1.8.7.333&quot;).should == &quot;0108070333&quot;
+    @guard.to_v(&quot;1.8&quot;).should == 10108000000
+    @guard.to_v(&quot;1.8.6&quot;).should == 10108060000
+    @guard.to_v(&quot;1.8.7.333&quot;).should == 10108070333
   end
 end
 </diff>
      <filename>spec/guards/version_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5574a73d0ac30fb70198ff165b6be4f8c078a35a</id>
    </parent>
  </parents>
  <author>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </author>
  <url>http://github.com/brixen/mspec/commit/f54c60ac9c4ac2c62b3d807d7b5f31666a7414f4</url>
  <id>f54c60ac9c4ac2c62b3d807d7b5f31666a7414f4</id>
  <committed-date>2008-05-23T22:04:42-07:00</committed-date>
  <authored-date>2008-05-23T22:00:07-07:00</authored-date>
  <message>Fix ruby_version_is guard to use Integers for performance on 1.9.</message>
  <tree>b1203653fe1d9283c8cb246ed02974939e9654f0</tree>
  <committer>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </committer>
</commit>
