<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/debug.log</filename>
    </added>
    <added>
      <filename>spec/files/translate/public/javascripts/application.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,21 +1,11 @@
 require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
+require 'spec/rake/spectask'
 
-desc 'Default: run specs'
+desc 'Default: run specs.'
 task :default =&gt; :spec
 
-require File.dirname(__FILE__) + '/../rspec/lib/spec/rake/spectask'
-desc &quot;Run all specs in spec directory&quot;
+desc 'Run the specs'
 Spec::Rake::SpecTask.new(:spec) do |t|
+  t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
   t.spec_files = FileList['spec/**/*_spec.rb']
 end
-
-desc 'Generate documentation for the translate plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
-  rdoc.rdoc_dir = 'rdoc'
-  rdoc.title    = 'Translate'
-  rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source'
-  rdoc.rdoc_files.include('README')
-  rdoc.rdoc_files.include('lib/**/*.rb')
-end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -76,7 +76,8 @@ class Translate::Keys
   end
 
   def files_to_scan
-    Dir.glob(File.join(files_root_dir, &quot;{app,config,lib}&quot;, &quot;**&quot;,&quot;*.{rb,erb,rhtml}&quot;))
+    Dir.glob(File.join(files_root_dir, &quot;{app,config,lib}&quot;, &quot;**&quot;,&quot;*.{rb,erb,rhtml}&quot;)) +
+      Dir.glob(File.join(files_root_dir, &quot;public&quot;, &quot;javascripts&quot;, &quot;**&quot;,&quot;*.js&quot;))
   end
   
   def files_root_dir</diff>
      <filename>lib/translate/keys.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ describe Translate::Keys do
   describe &quot;to_a&quot; do
     it &quot;extracts keys from I18n lookups in .rb, .html.erb, and .rhtml files&quot; do
       @keys.to_a.map(&amp;:to_s).sort.should == ['article.key1', 'article.key2', 'article.key3', 'article.key4', 'article.key5',
-        'category_erb.key1', 'category_html_erb.key1', 'category_rhtml.key1']
+        'category_erb.key1', 'category_html_erb.key1', 'category_rhtml.key1', 'js.alert']
     end
   end
   </diff>
      <filename>spec/keys_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,9 @@
-ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;
-require File.join(File.dirname(__FILE__), &quot;/../../../../config/environment&quot;)
-require 'spec/rails'
-
-Spec::Runner.configure do |config|
-  config.use_transactional_fixtures = true
-  config.use_instantiated_fixtures  = false
+begin
+  require File.dirname(__FILE__) + '/../../../../spec/spec_helper'
+rescue LoadError
+  puts &quot;You need to install rspec in your base app&quot;
+  exit
 end
+
+plugin_spec_dir = File.dirname(__FILE__)
+ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + &quot;/debug.log&quot;)</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cbbc29e348403d0a4a6277c276a3eeac1996b6b4</id>
    </parent>
  </parents>
  <author>
    <name>Peter Marklund</name>
    <email>peter_marklund@fastmail.fm</email>
  </author>
  <url>http://github.com/newsdesk/translate/commit/9f0260762a912c01a7970d35255a3cc016ef437e</url>
  <id>9f0260762a912c01a7970d35255a3cc016ef437e</id>
  <committed-date>2009-03-19T03:39:51-07:00</committed-date>
  <authored-date>2009-03-19T03:39:51-07:00</authored-date>
  <message>Also pickup keys in lookups in javascript files assuming the babilu plugin is used, i.e. that the I18n.t('key') syntax is used. Changed Rakefile and spec_helper.rb to reflect whas the rspec-plugin-generator generates, assuming that is best practice</message>
  <tree>30136ac997bfb8fcb22f2db0c6d7d5521f5f14de</tree>
  <committer>
    <name>Peter Marklund</name>
    <email>peter_marklund@fastmail.fm</email>
  </committer>
</commit>
