<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -95,7 +95,11 @@ task :package =&gt; [:makemo]
 ############################################################
 
 Rake::RDocTask.new { |rdoc|
-  allison = `allison --path`.chop
+  begin
+    allison = `allison --path`.chop
+  rescue
+    allison = ''
+  end
   rdoc.rdoc_dir = 'doc'
   rdoc.title    = &quot;gettext_rails API Reference&quot;
   rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source'
@@ -116,3 +120,11 @@ task :release =&gt; [ :package ] do
                         &quot;pkg/gettext_rails-#{PKG_VERSION}.gem&quot;)
 end
 
+# Run the unit tests
+desc 'Run tests'
+task :test do
+  cd &quot;test&quot;
+  sh $0 + &quot; test&quot;
+  cd &quot;..&quot;
+end
+</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,6 @@
 
   Original: gettext/lib/rails.rb from Ruby-GetText-Package-1.93.0
 
-  $Id$
 =end
 
 module ActionView #:nodoc:
@@ -16,9 +15,9 @@ module ActionView #:nodoc:
  
     module DateHelper #:nodoc: all
       include GetText
-      bindtextdomain &quot;rails&quot;
+      bindtextdomain &quot;gettext_rails&quot;
 
-      alias distance_of_time_in_words_without_locale distance_of_time_in_words #:nodoc:
+      alias distance_of_time_in_words_without_gettext_rails distance_of_time_in_words #:nodoc:
 
       # This is FAKE constant. The messages are found by rgettext as the msgid. 
       MESSAGESS = [N_('less than 5 seconds'), N_('less than 10 seconds'), N_('less than 20 seconds'),
@@ -31,7 +30,7 @@ module ActionView #:nodoc:
       NYEARS  = [/^over (\d+) years?$/, Nn_('over 1 year', 'over %{num} years')]
 
       def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false)
-        msg = distance_of_time_in_words_without_locale(from_time, to_time, include_seconds)
+        msg = distance_of_time_in_words_without_gettext_rails(from_time, to_time, include_seconds)
         match = false
         [NMINUTES, NHOURS, NDAYS, NMONTHS, NYEARS].each do |regexp, nn|
           if regexp =~ msg</diff>
      <filename>lib/gettext_rails/action_view/date_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,17 @@ Rails::Initializer.run do |config|
   # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
   # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
   # config.i18n.default_locale = :de
-  config.gem &quot;locale_rails&quot;
-  config.gem &quot;gettext_activerecord&quot;
-  config.gem &quot;gettext_rails&quot;
+#  config.gem &quot;locale_rails&quot;
+#  config.gem &quot;gettext_activerecord&quot;
+#  config.gem &quot;gettext_rails&quot;
 end
+
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../locale/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../locale_rails/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext_activerecord/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext_rails/lib&quot;
+
+require 'locale_rails'
+require 'gettext_activerecord'
+require 'gettext_rails'</diff>
      <filename>test/config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,4 +24,14 @@ config.action_mailer.delivery_method = :test
 # Use SQL instead of Active Record's schema dumper when creating the test database.
 # This is necessary if your schema can't be completely dumped by the schema dumper,
 # like if you have constraints or database-specific column types
-# config.active_record.schema_format = :sql
\ No newline at end of file
+# config.active_record.schema_format = :sql
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../locale/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../locale_rails/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext_activerecord/lib&quot;
+$LOAD_PATH.unshift RAILS_ROOT + &quot;/../../gettext_rails/lib&quot;
+
+require 'locale_rails'
+require 'gettext_activerecord'
+require 'gettext_rails'
+</diff>
      <filename>test/config/environments/test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,8 +22,8 @@
  environ 1 mois&lt;br/&gt;
  2 mois&lt;br/&gt;
  environ 1 an&lt;br/&gt;
- over 2 years&lt;br/&gt;
- over 4 years&lt;br/&gt;
+ plus de 2 ans&lt;br/&gt;
+ plus de 4 ans&lt;br/&gt;
 
 
 </diff>
      <filename>test/test/result/fr/distance_of_time_in_words.html</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/vendor/plugins/gettext</filename>
    </removed>
    <removed>
      <filename>test/vendor/plugins/gettext_activerecord</filename>
    </removed>
    <removed>
      <filename>test/vendor/plugins/gettext_rails</filename>
    </removed>
    <removed>
      <filename>test/vendor/plugins/locale</filename>
    </removed>
    <removed>
      <filename>test/vendor/plugins/locale_rails</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>0214d40495a4082caa8450e50ff89b28f7125b60</id>
    </parent>
  </parents>
  <author>
    <name>Masao Mutoh</name>
    <email>mutomasa@gmail.com</email>
  </author>
  <url>http://github.com/mutoh/gettext_rails/commit/52426fd70d736ca6c805e4d3a61fab4f9d05c896</url>
  <id>52426fd70d736ca6c805e4d3a61fab4f9d05c896</id>
  <committed-date>2009-11-06T21:15:03-08:00</committed-date>
  <authored-date>2009-11-06T21:15:03-08:00</authored-date>
  <message>Fixed to work distance_of_time_in_words.
Reported by Mitko Kostov, Bart ten Brinke.</message>
  <tree>4eea5c854ea71896939ab045edd9536ae100cfbd</tree>
  <committer>
    <name>Masao Mutoh</name>
    <email>mutomasa@gmail.com</email>
  </committer>
</commit>
