diff --git a/install.rb b/install.rb deleted file mode 100644 index f7732d3..0000000 --- a/install.rb +++ /dev/null @@ -1 +0,0 @@ -# Install hook code here diff --git a/lib/tasks/to_csv_tasks.rake b/lib/tasks/to_csv_tasks.rake deleted file mode 100644 index 5cb69c2..0000000 --- a/lib/tasks/to_csv_tasks.rake +++ /dev/null @@ -1,4 +0,0 @@ -# desc "Explaining what the task does" -# task :to_csv do -# # Task goes here -# end diff --git a/lib/to_csv.rb b/lib/to_csv.rb index cf8c084..3ecb230 100644 --- a/lib/to_csv.rb +++ b/lib/to_csv.rb @@ -1,20 +1,4 @@ class Array - -# Example -# -# class PostsController < ApplicationController -# def index -# @posts = Post.all -# -# respond_to do |format| -# format.csv { send_data(@posts.to_csv) } -# #format.csv { -# # filename = "posts-#{Time.now.strftime("%Y%m%d%H%M%S")}.csv" -# # send_data(@posts.to_csv, :type => "text/csv; charset=utf-8; header=present", :filename => filename) -# #} -# end -# end -# end def to_csv(options = {}) return '' if self.empty? diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index cf148b8..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,3 +0,0 @@ -require 'rubygems' -require 'active_support' -require 'active_support/test_case' \ No newline at end of file diff --git a/test/to_csv_test.rb b/test/to_csv_test.rb deleted file mode 100644 index 0df051a..0000000 --- a/test/to_csv_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'test_helper' - -class ToCsvTest < ActiveSupport::TestCase - # Replace this with your real tests. - test "the truth" do - assert true - end -end diff --git a/to_csv.gemspec b/to_csv.gemspec index 71189b2..b0ed450 100644 --- a/to_csv.gemspec +++ b/to_csv.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| s.summary = "Export data to csv on Rails" s.description = "This simple plugin gives you the ability to call to_csv to a collection of activerecords. The builder options are the same as to_json / to_xml, except for the :include." - s.files = Dir["{lib,test}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"] + s.files = Dir["lib/**/*", "[a-zA-Z]*", "init.rb"] - ["Gemfile.lock"] s.require_path = "lib" s.rubyforge_project = s.name diff --git a/uninstall.rb b/uninstall.rb deleted file mode 100644 index 9738333..0000000 --- a/uninstall.rb +++ /dev/null @@ -1 +0,0 @@ -# Uninstall hook code here