<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,15 +31,13 @@ def run_coverage(files)
     return
   end
   files = files.join(&quot; &quot;)
-  if PLATFORM =~ /darwin/
-    exclude = '--exclude &quot;gems/&quot;'
-  else
-    exclude = '--exclude &quot;rubygems&quot;'
-  end
-  rcov = &quot;rcov -Ilib:test --sort coverage --text-report #{exclude} --no-validator-links&quot;
-  cmd = &quot;#{rcov} #{files}&quot;
-  puts cmd
-  sh cmd
+  # if RUBY_PLATFORM =~ /darwin/
+  #   exclude = '--exclude &quot;gems/&quot;'
+  # else
+  #   exclude = '--exclude &quot;rubygems&quot;'
+  # end
+  rcov = ENV[&quot;RCOV&quot;] ? ENV[&quot;RCOV&quot;] : &quot;rcov&quot;
+  sh &quot;#{rcov} -Ilib:test --sort coverage --text-report #{files}&quot;
 end
 
 desc 'Publish RDoc to RubyForge.'</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,3 @@
+# encoding: utf-8
+
 require 'friendly_id'
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 require 'friendly_id/helpers'
 require 'friendly_id/slug'
 </diff>
      <filename>lib/friendly_id.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId
   
   module Helpers</diff>
      <filename>lib/friendly_id/helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId::NonSluggableClassMethods
 
   include FriendlyId::Helpers</diff>
      <filename>lib/friendly_id/non_sluggable_class_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId::NonSluggableInstanceMethods
 
   attr :found_using_friendly_id</diff>
      <filename>lib/friendly_id/non_sluggable_instance_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,9 +35,7 @@ class Slug &lt; ActiveRecord::Base
     def normalize(slug_text)
       return &quot;&quot; if slug_text.nil? || slug_text == &quot;&quot;
       ActiveSupport::Multibyte.proxy_class.new(slug_text.to_s).normalize(:kc).
-        # For some reason Spanish &#161; and &#191; are not detected as non-word
-        # characters. Bug in Ruby?
-        gsub(/[\W|&#161;|&#191;]/u, ' ').
+        gsub(/[\W]/u, ' ').
         strip.
         gsub(/\s+/u, '-').
         gsub(/-\z/u, '').
@@ -45,10 +43,6 @@ class Slug &lt; ActiveRecord::Base
         to_s
     end
     
-    def postnormalize(string)
-      string.gs
-    end
-
     def parse(friendly_id)
       name, sequence = friendly_id.split('--')
       sequence ||= &quot;1&quot;
@@ -77,10 +71,6 @@ class Slug &lt; ActiveRecord::Base
 
     private
 
-    def chars_func
-      &quot;&quot;.respond_to?(:mb_chars) ? :mb_chars : :chars
-    end
-
   end
 
   # Whether or not this slug is the most recent of its owner's slugs.</diff>
      <filename>lib/friendly_id/slug.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId::SluggableClassMethods
 
   include FriendlyId::Helpers</diff>
      <filename>lib/friendly_id/sluggable_class_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId::SluggableInstanceMethods
 
   NUM_CHARS_RESERVED_FOR_FRIENDLY_ID_EXTENSION = 2</diff>
      <filename>lib/friendly_id/sluggable_instance_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 module FriendlyId #:nodoc:
   module Version #:nodoc:
     MAJOR = 2</diff>
      <filename>lib/friendly_id/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 namespace :friendly_id do
   desc &quot;Make slugs for a model.&quot;
   task :make_slugs =&gt; :environment do</diff>
      <filename>lib/tasks/friendly_id.rake</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 require File.dirname(__FILE__) + '/test_helper'
 
 class NonSluggedTest &lt; Test::Unit::TestCase</diff>
      <filename>test/non_slugged_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 ActiveRecord::Schema.define(:version =&gt; 1) do
 
   create_table &quot;books&quot;, :force =&gt; true do |t|</diff>
      <filename>test/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+# encoding: utf-8
+
 require File.dirname(__FILE__) + '/test_helper'
 
 class ScopedModelTest &lt; Test::Unit::TestCase</diff>
      <filename>test/scoped_model_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,9 @@
+# encoding: utf-8
+
 $:.unshift(File.dirname(__FILE__) + '/../lib')
 $:.unshift(File.dirname(__FILE__))
 $KCODE = 'UTF8' if RUBY_VERSION &lt; '1.9'
 $VERBOSE = false
-require 'rubygems'
 require 'test/unit'
 require 'contest'
 # You can use &quot;rake test AR_VERSION=2.0.5&quot; to test against 2.0.5, for example.
@@ -13,7 +14,6 @@ if ENV[&quot;AR_VERSION&quot;]
 end
 require 'active_record'
 require 'active_support'
-
 require 'friendly_id'
 require 'models/post'
 require 'models/person'
@@ -24,16 +24,6 @@ require 'models/novel'
 require 'models/thing'
 require 'models/event'
 
-# Borrowed from ActiveSupport
-def silence_stream(stream)
-  old_stream = stream.dup
-  stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
-  stream.sync = true
-  yield
-ensure
-  stream.reopen(old_stream)
-end
-
 ActiveRecord::Base.establish_connection :adapter =&gt; &quot;sqlite3&quot;, :database =&gt; &quot;:memory:&quot;
 silence_stream(STDOUT) do
   load(File.dirname(__FILE__) + &quot;/schema.rb&quot;)</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3bb8f97518260ab823506ea978ebf504283bb2e</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </author>
  <url>http://github.com/norman/friendly_id/commit/1da53991d44ad791ad4699a2748f1db7dfc302b6</url>
  <id>1da53991d44ad791ad4699a2748f1db7dfc302b6</id>
  <committed-date>2009-06-03T10:09:08-07:00</committed-date>
  <authored-date>2009-06-03T10:09:08-07:00</authored-date>
  <message>A few minor maintenance updates and cleanups.</message>
  <tree>17889b01a74566011998351df76c96ccf3ceea2e</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </committer>
</commit>
