<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -98,7 +98,7 @@ begin
     t.test_files = ['test/ts_xmpp4r.rb']
     t.output_dir = &quot;coverage&quot;
   end
-rescue Object
+rescue LoadError
 end
 
 # DOT GRAPH
@@ -133,16 +133,9 @@ end
 # What files/dirs should 'rake clean' remove?
 CLEAN.include [&quot;*.gem&quot;, &quot;pkg&quot;, &quot;rdoc&quot;, &quot;coverage&quot;, &quot;tools/*.png&quot;]
 
-# Flag for RubyGems installation used to add rake package tasks conditionally.
-# Full gem + tarball on systems with RubyGems.  More limited on systems without.
-@rubygems = nil
-
 begin
   require 'rake/gempackagetask'
 
-  # RubyGems is installed, known since require 'rake/gempackagetask' succeeded.
-  @rubygems = true
-
   spec = Gem::Specification.new do |s|
     s.name = PKG_NAME
     s.version = PKG_VERSION
@@ -190,12 +183,11 @@ begin
     desc &quot;Update Github Gemspec&quot;
     task :update_gemspec do
       skip_fields = %w(new_platform original_platform date)
-      integer_fields = %w(specification_version)
 
       result = &quot;# WARNING : RAKE AUTO-GENERATED FILE.  DO NOT MANUALLY EDIT!\n&quot;
       result &lt;&lt; &quot;# RUN : 'rake gem:update_gemspec'\n\n&quot;
       result &lt;&lt; &quot;Gem::Specification.new do |s|\n&quot;
-      spec.instance_variables.each do |ivar|
+      spec.instance_variables.sort.each do |ivar|
         value = spec.instance_variable_get(ivar)
         name  = ivar.split(&quot;@&quot;).last
         next if skip_fields.include?(name) || value.nil? || value == &quot;&quot; || (value.respond_to?(:empty?) &amp;&amp; value.empty?)
@@ -208,8 +200,7 @@ begin
           case value
           when Array
             value =  name != &quot;files&quot; ? value.inspect : value.sort.uniq.inspect.split(&quot;,&quot;).join(&quot;,\n&quot;)
-          when String
-            value = value.to_i if integer_fields.include?(name)
+          when String, Fixnum, true, false
             value = value.inspect
           else
             value = value.to_s.inspect
@@ -228,8 +219,7 @@ begin
   task :gem =&gt; ['gem:update_gemspec']
 
 rescue LoadError
-  @rubygems = false
-  warning = &lt;&lt;EOF
+  puts &lt;&lt;EOF
 ###
   Packaging Warning : RubyGems is apparently not installed on this
   system and any file add/remove/rename will not
@@ -240,12 +230,11 @@ rescue LoadError
   gemspec will also stay in sync for others.
 ###
 EOF
-  puts warning
 end
 
 # we are apparently on a system that does not have RubyGems installed.
 # Lets try to provide only the basic tarball package tasks as a fallback.
-if @rubygems == false
+unless defined? Gem
   begin
     require 'rake/packagetask'
     Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |p|
@@ -254,11 +243,10 @@ if @rubygems == false
       p.need_zip = true
     end
   rescue LoadError
-    warning = &lt;&lt;EOF
+    puts &lt;&lt;EOF
 ###
   Warning : Unable to require the 'rake/packagetask'. Is Rake installed?
 ###
 EOF
-    puts warning
   end
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,11 @@
 # RUN : 'rake gem:update_gemspec'
 
 Gem::Specification.new do |s|
-  s.rubygems_version = &quot;1.2.0&quot;
-  s.homepage = &quot;http://home.gna.org/xmpp4r/&quot;
-  s.loaded = &quot;false&quot;
-  s.rubyforge_project = &quot;xmpp4r&quot;
-  s.summary = &quot;XMPP4R is an XMPP/Jabber library for Ruby.&quot;
-  s.require_paths = [&quot;lib&quot;]
+  s.authors = [&quot;Lucas Nussbaum&quot;, &quot;Stephan Maka&quot;, &quot;Glenn Rempe&quot;]
+  s.bindir = &quot;bin&quot;
   s.description = &quot;XMPP4R is an XMPP/Jabber library for Ruby.&quot;
+  s.email = &quot;xmpp4r-devel@gna.org&quot;
   s.extra_rdoc_files = [&quot;README.rdoc&quot;, &quot;README_ruby19.txt&quot;, &quot;CHANGELOG&quot;, &quot;LICENSE&quot;, &quot;COPYING&quot;]
-  s.platform = &quot;ruby&quot;
-  s.authors = [&quot;Lucas Nussbaum&quot;, &quot;Stephan Maka&quot;, &quot;Glenn Rempe&quot;]
-  s.name = &quot;xmpp4r&quot;
   s.files = [&quot;CHANGELOG&quot;,
  &quot;COPYING&quot;,
  &quot;LICENSE&quot;,
@@ -280,12 +274,18 @@ Gem::Specification.new do |s|
  &quot;tools/gen_requires.bash&quot;,
  &quot;tools/xmpp4r-gemspec-test.rb&quot;,
  &quot;xmpp4r.gemspec&quot;]
-  s.required_rubygems_version = &quot;&gt;= 0&quot;
-  s.has_rdoc = &quot;true&quot;
-  s.specification_version = &quot;2&quot;
-  s.email = &quot;xmpp4r-devel@gna.org&quot;
-  s.version = &quot;0.4&quot;
+  s.has_rdoc = true
+  s.homepage = &quot;http://home.gna.org/xmpp4r/&quot;
+  s.loaded = false
+  s.name = &quot;xmpp4r&quot;
+  s.platform = &quot;ruby&quot;
   s.rdoc_options = [&quot;--quiet&quot;, &quot;--title&quot;, &quot;XMPP4R is an XMPP/Jabber library for Ruby.&quot;, &quot;--opname&quot;, &quot;index.html&quot;, &quot;--main&quot;, &quot;lib/xmpp4r.rb&quot;, &quot;--line-numbers&quot;, &quot;--inline-source&quot;]
+  s.require_paths = [&quot;lib&quot;]
   s.required_ruby_version = &quot;&gt;= 1.8.4&quot;
-  s.bindir = &quot;bin&quot;
+  s.required_rubygems_version = &quot;&gt;= 0&quot;
+  s.rubyforge_project = &quot;xmpp4r&quot;
+  s.rubygems_version = &quot;1.2.0&quot;
+  s.specification_version = 2
+  s.summary = &quot;XMPP4R is an XMPP/Jabber library for Ruby.&quot;
+  s.version = &quot;0.4&quot;
 end
\ No newline at end of file</diff>
      <filename>xmpp4r.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a315dcddd39e7728145f9392e446c2213f0d7d54</id>
    </parent>
  </parents>
  <author>
    <name>Astro</name>
    <email>astro@spaceboyz.net</email>
  </author>
  <url>http://github.com/ln/xmpp4r/commit/3cbb15f52a64c389f4f276e23c4417ac0fce5d73</url>
  <id>3cbb15f52a64c389f4f276e23c4417ac0fce5d73</id>
  <committed-date>2008-08-05T10:55:00-07:00</committed-date>
  <authored-date>2008-08-05T10:55:00-07:00</authored-date>
  <message>Rakefile optimizations:
* rescue only for LoadErrors
* no @rubygems, but check with defined?, easier to read
* update_gemspec: sort fields (less changes visible to version control), properly output fixnums, bools
* output heredocs immediately</message>
  <tree>8de1e77aca21d2fb24fb0c48628ce959ea9b30ff</tree>
  <committer>
    <name>Astro</name>
    <email>astro@spaceboyz.net</email>
  </committer>
</commit>
