"
- end
- end
-
- def full_html_body
- "Here is some full content, with out any excerpts"
- end
-
- def create_date
- @created_at - 5.minutes
- end
-end
-
-class Test::Unit::TestCase
- include ResourceFeeder::Rss, ResourceFeeder::Atom
-
- def render_feed(xml)
- @response = OpenStruct.new
- @response.headers = {'Content-Type' => 'text/xml'}
- @response.body = xml
- end
-
- def rss_feed_for_with_ostruct(resources, options = {})
- render_feed rss_feed_for_without_ostruct(resources, options)
- end
-
- def atom_feed_for_with_ostruct(resources, options = {})
- render_feed atom_feed_for_without_ostruct(resources, options)
- end
-
- alias_method_chain :rss_feed_for, :ostruct
- alias_method_chain :atom_feed_for, :ostruct
-
- def html_document
- @html_document ||= HTML::Document.new(@response.body, false, true)
- end
-
- def posts_url
- "http://example.com/posts"
- end
-
- def post_url(post)
- "http://example.com/posts/#{post.id}"
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/README b/tracks/vendor/plugins/simply_helpful/README
deleted file mode 100644
index 4711fe24..00000000
--- a/tracks/vendor/plugins/simply_helpful/README
+++ /dev/null
@@ -1,4 +0,0 @@
-SimplyHelpful
-=============
-
-Description goes here
\ No newline at end of file
diff --git a/tracks/vendor/plugins/simply_helpful/Rakefile b/tracks/vendor/plugins/simply_helpful/Rakefile
deleted file mode 100644
index efce24d2..00000000
--- a/tracks/vendor/plugins/simply_helpful/Rakefile
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-desc 'Default: run unit tests.'
-task :default => :test
-
-desc 'Test the simply_helpful plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
-end
-
-desc 'Generate documentation for the simply_helpful plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'SimplyHelpful'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
diff --git a/tracks/vendor/plugins/simply_helpful/init.rb b/tracks/vendor/plugins/simply_helpful/init.rb
deleted file mode 100644
index d80efa41..00000000
--- a/tracks/vendor/plugins/simply_helpful/init.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'simply_helpful'
-ActionController::Base.send :include, SimplyHelpful::RecordIdentificationHelper
-ActionController::Base.helper SimplyHelpful::RecordIdentificationHelper,
- SimplyHelpful::RecordTagHelper
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful.rb
deleted file mode 100644
index 5eb54b59..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-require 'simply_helpful/record_identification_helper'
-require 'simply_helpful/record_identifier'
-require 'simply_helpful/record_tag_helper'
-
-require 'simply_helpful/jsg_extensions'
-require 'simply_helpful/av_extensions'
-require 'simply_helpful/form_helper_extensions'
-require 'simply_helpful/controller_extensions'
\ No newline at end of file
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/av_extensions.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/av_extensions.rb
deleted file mode 100644
index d4cd4f97..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/av_extensions.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-module ActionView
- module Partials
- def render_partial_with_record_identification(partial_path, local_assigns = nil, deprecated_local_assigns = nil)
- if partial_path.is_a?(String) || partial_path.is_a?(Symbol) || partial_path.nil?
- render_partial_without_record_identification(
- partial_path, local_assigns, deprecated_local_assigns
- )
- elsif partial_path.is_a?(Array)
- if partial_path.any?
- path = SimplyHelpful::RecordIdentifier.partial_path(partial_path.first)
- collection = partial_path
- render_partial_collection(
- path, collection, nil, local_assigns.value
- )
- else
- ""
- end
- else
- render_partial_without_record_identification(
- SimplyHelpful::RecordIdentifier.partial_path(partial_path), local_assigns, deprecated_local_assigns
- )
- end
- end
- alias_method_chain :render_partial, :record_identification
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/controller_extensions.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/controller_extensions.rb
deleted file mode 100644
index 1b589c85..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/controller_extensions.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module SimplyHelpful
- module ActionControllerExtensions
- def self.included(base)
- base.helper_method :polymorphic_url
- base.helper_method :polymorphic_path
- end
-
- def polymorphic_url(record)
- SimplyHelpful::RecordIdentifier.polymorphic_url(record, self)
- end
-
- def polymorphic_path(record)
- SimplyHelpful::RecordIdentifier.polymorphic_path(record, self)
- end
-
- def redirect_to_with_record_identification(*args)
- return redirect_to_without_record_identification *args unless args.size == 1
-
- potential_object = args.first
-
- case potential_object
- when String, Symbol, Hash
- redirect_to_without_record_identification *args
- else
- redirect_to_without_record_identification SimplyHelpful::RecordIdentifier.polymorphic_url(potential_object, self)
- end
- end
- end
-end
-module ActionController
- class Base
- include SimplyHelpful::ActionControllerExtensions
- alias_method_chain :redirect_to, :record_identification
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb
deleted file mode 100644
index ca8b77fa..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-module ActionView
- module Helpers
- module FormHelper
- def form_for_with_record_identification(name_or_object, *args, &proc)
- form_method_with_record_identification :form_for, name_or_object, *args, &proc
- end
-
- alias_method_chain :form_for, :record_identification
-
- protected
- def form_method_with_record_identification(method_name, name_or_object, *args, &proc)
- old_method_name = "#{method_name}_without_record_identification"
- case name_or_object
- when String, Symbol, NilClass
- send(old_method_name, name_or_object, *args, &proc)
- else
- options = args.first || {}
-
- object_name = SimplyHelpful::RecordIdentifier.singular_class_name(name_or_object)
- object = name_or_object
- url = SimplyHelpful::RecordIdentifier.polymorphic_url(object, self)
-
- html_options = if object.new_record?
- { :class => dom_class(object, :new), :id => dom_id(object), :method => :post }
- else
- { :class => dom_class(object, :edit), :id => dom_id(object, :edit), :method => :put }
- end
-
- send(old_method_name,
- object_name, object, options.merge({ :url => url, :html => html_options.update(options[:html] || {}) }), &proc
- )
- end
- end
- end
- end
-end
-
-module ActionView
- module Helpers
- module PrototypeHelper
- def remote_form_for_with_record_identification(name_or_object, *args, &proc)
- form_method_with_record_identification :remote_form_for, name_or_object, *args, &proc
- end
-
- alias_method_chain :remote_form_for, :record_identification
- end
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/jsg_extensions.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/jsg_extensions.rb
deleted file mode 100644
index 6c9842a9..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/jsg_extensions.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-module ActionView
- module Helpers
- module PrototypeHelper
- class JavaScriptGenerator
- module GeneratorMethods
- def [](id)
- case id
- when String, Symbol, NilClass
- JavaScriptElementProxy.new(self, id)
- else
- JavaScriptElementProxy.new(self, SimplyHelpful::RecordIdentifier.dom_id(id))
- end
- end
- end
- end
- end
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identification_helper.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identification_helper.rb
deleted file mode 100644
index 49178478..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identification_helper.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module SimplyHelpful
- module RecordIdentificationHelper
- protected
- def partial_path(*args, &block)
- RecordIdentifier.partial_path(*args, &block)
- end
-
- def dom_class(*args, &block)
- RecordIdentifier.dom_class(*args, &block)
- end
-
- def dom_id(*args, &block)
- RecordIdentifier.dom_id(*args, &block)
- end
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb
deleted file mode 100644
index d53afa92..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-module SimplyHelpful
- module RecordIdentifier
- extend self
-
- def polymorphic_url(record, url_writer)
- record.new_record? ?
- url_writer.send(plural_class_name(record) + "_url") :
- url_writer.send(singular_class_name(record) + "_url", record)
- end
-
- def polymorphic_path(record, url_writer)
- record.new_record? ?
- url_writer.send(plural_class_name(record) + "_path") :
- url_writer.send(singular_class_name(record) + "_path", record)
- end
-
- def partial_path(record_or_class)
- klass = class_from_record_or_class(record_or_class)
- "#{klass.name.tableize}/#{klass.name.demodulize.underscore}"
- end
-
- def dom_class(record_or_class, prefix = nil)
- [ prefix, singular_class_name(record_or_class) ].compact * '_'
- end
-
- def dom_id(record, prefix = nil)
- prefix ||= 'new' unless record.id
- [ prefix, singular_class_name(record), record.id ].compact * '_'
- end
-
- def plural_class_name(record_or_class)
- singular_class_name(record_or_class).pluralize
- end
-
- def singular_class_name(record_or_class)
- class_from_record_or_class(record_or_class).name.underscore.tr('/', '_')
- end
-
- private
- def class_from_record_or_class(record_or_class)
- record_or_class.is_a?(Class) ? record_or_class : record_or_class.class
- end
- end
-end
diff --git a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_tag_helper.rb b/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_tag_helper.rb
deleted file mode 100644
index cdd046f3..00000000
--- a/tracks/vendor/plugins/simply_helpful/lib/simply_helpful/record_tag_helper.rb
+++ /dev/null
@@ -1,76 +0,0 @@
-module SimplyHelpful
- module RecordTagHelper
- # Produces a wrapper DIV element with id and class parameters that
- # relate to the specified ActiveRecord object. Usage example:
- #
- # <% div_for(@person, :class => "foo") do %>
- # <%=h @person.name %>
- # <% end %>
- #
- # produces:
- #
- #
Joe Bloggs
- #
- def div_for(record, *args, &block)
- content_tag_for(:div, record, *args, &block)
- end
-
- # content_tag_for creates an HTML element with id and class parameters
- # that relate to the specified ActiveRecord object. For example:
- #
- # <% content_tag_for(:tr, @person) do %>
- #
<%=h @person.first_name %>
- #
<%=h @person.last_name %>
- # <% end %>
- #
- # would produce hthe following HTML (assuming @person is an instance of
- # a Person object, with an id value of 123):
- #
- #
....
- #
- # If you require the HTML id attribute to have a prefix, you can specify it:
- #
- # <% content_tag_for(:tr, @person, :foo) do %> ...
- #
- # produces:
- #
- #
...
- #
- # content_tag_for also accepts a hash of options, which will be converted to
- # additional HTML attributes. If you specify a +:class+ value, it will be combined
- # with the default class name for your object. For example:
- #
- # <% content_tag_for(:li, @person, :class => "bar") %>...
- #
- # produces:
- #
- #