<?xml version="1.0" encoding="UTF-8"?>
<tickets type="array">
  <ticket>
    <assigned-user-id type="integer">26790</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-07-26T10:19:48+12:00</created-at>
    <creator-id type="integer">64012</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">1</number>
    <permalink>a-couple-of-install-problems</permalink>
    <priority type="integer">128069</priority>
    <project-id type="integer">32521</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>documentation install</tag>
    <title>A couple of install problems</title>
    <updated-at type="datetime">2010-01-06T12:28:00+13:00</updated-at>
    <user-id type="integer">26790</user-id>
    <user-name>Kieran P</user-name>
    <creator-name>cnk</creator-name>
    <assigned-user-name>Kieran P</assigned-user-name>
    <url>http://kete.lighthouseapp.com/projects/32521/tickets/1</url>
    <original-body>I tried to install external_search_sources in a clean Rails 2.3.2 app but am having a couple of issues. The install is OK, but the rake tasks for importing sources don't run. But I think they could, with a couple more lines in the docs. 

$ rake external_search_sources:import
(in /Users/cnk/rails/test)
rake aborted!
Don't know how to build task 'external_search_sources:import:kete_horowhenua_images'

And for the DNZ Generic Results task, first I had to install acts_as_list as a plugin. No big deal, but could you add it to your list of requirements? 

$ rake external_search_sources:import:dnz_generic_results
(in /Users/cnk/rails/test)
rake aborted!
undefined local variable or method `acts_as_list' for #&lt;Class:0x24ce29c&gt;

$ script/plugin install acts_as_list

$ rake external_search_sources:import:dnz_generic_results
(in /Users/cnk/rails/test)
{&quot;limit_param&quot;=&gt;&quot;num_results&quot;, &quot;title&quot;=&gt;&quot;Results via DigitalNZ&quot;, &quot;source_target&quot;=&gt;&quot;search&quot;, &quot;base_url&quot;=&gt;&quot;http://api.digitalnz.org/records/v1.rss/?api_key=[api_key]&amp;search_text=&quot;, &quot;source_credit&quot;=&gt;&quot;&lt;div style='padding:0 0 15px 15px'&gt;Powered by &lt;a href='http://digitalnz.org/' title='Digital NZ'&gt;&lt;img src='http://kete.digitalnz.org/themes/dnz/images/dnz_logo.png' style='border:0; position: relative; top: 10px; left: 10px;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;, &quot;source_type&quot;=&gt;&quot;feed&quot;, &quot;more_link_base_url&quot;=&gt;&quot;http://search.digitalnz.org/search?search_text=&quot;}
&quot;Inserting search source 'Results via DigitalNZ failed: No API key provided for search source that requires one..&quot;

Is it possible for you to include a link to where one would get an API key for DigitalNZ? 

Actually the main reason I am installing this (other than it sounded cool when I heard about it on the RailsEnvy podcast) is I wanted to check out how you handled writing tests for an engine. Right now almost all of them are failing - but I suspect that might be because I don't have a search source. I have about 10 errors like the following: 

  1) Error:
test_Sort_entries_returns_a_hash_with_expected_values(SearchSourceTest):
ArgumentError: Object is not missing constant SearchSource!
    /test/search_source_test.rb:178:in `test_Sort_entries_returns_a_hash_with_expected_values'</original-body>
    <latest-body>I tried to install external_search_sources in a clean Rails 2.3.2 app but am having a couple of issues. The install is OK, but the rake tasks for importing sources don't run. But I think they could, with a couple more lines in the docs. 

$ rake external_search_sources:import
(in /Users/cnk/rails/test)
rake aborted!
Don't know how to build task 'external_search_sources:import:kete_horowhenua_images'

And for the DNZ Generic Results task, first I had to install acts_as_list as a plugin. No big deal, but could you add it to your list of requirements? 

$ rake external_search_sources:import:dnz_generic_results
(in /Users/cnk/rails/test)
rake aborted!
undefined local variable or method `acts_as_list' for #&lt;Class:0x24ce29c&gt;

$ script/plugin install acts_as_list

$ rake external_search_sources:import:dnz_generic_results
(in /Users/cnk/rails/test)
{&quot;limit_param&quot;=&gt;&quot;num_results&quot;, &quot;title&quot;=&gt;&quot;Results via DigitalNZ&quot;, &quot;source_target&quot;=&gt;&quot;search&quot;, &quot;base_url&quot;=&gt;&quot;http://api.digitalnz.org/records/v1.rss/?api_key=[api_key]&amp;search_text=&quot;, &quot;source_credit&quot;=&gt;&quot;&lt;div style='padding:0 0 15px 15px'&gt;Powered by &lt;a href='http://digitalnz.org/' title='Digital NZ'&gt;&lt;img src='http://kete.digitalnz.org/themes/dnz/images/dnz_logo.png' style='border:0; position: relative; top: 10px; left: 10px;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;, &quot;source_type&quot;=&gt;&quot;feed&quot;, &quot;more_link_base_url&quot;=&gt;&quot;http://search.digitalnz.org/search?search_text=&quot;}
&quot;Inserting search source 'Results via DigitalNZ failed: No API key provided for search source that requires one..&quot;

Is it possible for you to include a link to where one would get an API key for DigitalNZ? 

Actually the main reason I am installing this (other than it sounded cool when I heard about it on the RailsEnvy podcast) is I wanted to check out how you handled writing tests for an engine. Right now almost all of them are failing - but I suspect that might be because I don't have a search source. I have about 10 errors like the following: 

  1) Error:
test_Sort_entries_returns_a_hash_with_expected_values(SearchSourceTest):
ArgumentError: Object is not missing constant SearchSource!
    /test/search_source_test.rb:178:in `test_Sort_entries_returns_a_hash_with_expected_values'</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I tried to install external_search_sources in a clean Rails
2.3.2 app but am having a couple of issues. The install is OK, but
the rake tasks for importing sources don't run. But I think they
could, with a couple more lines in the docs.&lt;/p&gt;
&lt;p&gt;$ rake external_search_sources:import (in /Users/cnk/rails/test)
rake aborted! Don't know how to build task
'external_search_sources:import:kete_horowhenua_images'&lt;/p&gt;
&lt;p&gt;And for the DNZ Generic Results task, first I had to install
acts_as_list as a plugin. No big deal, but could you add it to your
list of requirements?&lt;/p&gt;
&lt;p&gt;$ rake external_search_sources:import:dnz_generic_results (in
/Users/cnk/rails/test) rake aborted! undefined local variable or
method &lt;code&gt;acts_as_list' for #&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;$ script/plugin install acts_as_list&lt;/p&gt;
&lt;p&gt;$ rake external_search_sources:import:dnz_generic_results (in
/Users/cnk/rails/test) {&quot;limit_param&quot;=&amp;gt;&quot;num_results&quot;,
&quot;title&quot;=&amp;gt;&quot;Results via DigitalNZ&quot;, &quot;source_target&quot;=&amp;gt;&quot;search&quot;,
&quot;base_url&quot;=&amp;gt;&quot;http://api.digitalnz.org/records/v1.rss/?api_key=[api_key]&amp;amp;search_text=&quot;,
&quot;source_credit&quot;=&amp;gt;&quot;Powered by &quot;, &quot;source_type&quot;=&amp;gt;&quot;feed&quot;,
&quot;more_link_base_url&quot;=&amp;gt;&quot;http://search.digitalnz.org/search?search_text=&quot;}
&quot;Inserting search source 'Results via DigitalNZ failed: No API key
provided for search source that requires one..&quot;&lt;/p&gt;
&lt;p&gt;Is it possible for you to include a link to where one would get
an API key for DigitalNZ?&lt;/p&gt;
&lt;p&gt;Actually the main reason I am installing this (other than it
sounded cool when I heard about it on the RailsEnvy podcast) is I
wanted to check out how you handled writing tests for an engine.
Right now almost all of them are failing - but I suspect that might
be because I don't have a search source. I have about 10 errors
like the following:&lt;/p&gt;
&lt;p&gt;1) Error:
test_Sort_entries_returns_a_hash_with_expected_values(SearchSourceTest):
ArgumentError: Object is not missing constant SearchSource!&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;/test/search_source_test.rb:178:in `test_Sort_entries_returns_a_hash_with_expected_values'
&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</original-body-html>
  </ticket>
</tickets>
