to_spreadsheet 0.9 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/README.rdoc +61 -0
  2. data/Rakefile +3 -11
  3. data/lib/to_spreadsheet/action_pack_renderers.rb +1 -0
  4. data/lib/to_spreadsheet/version.rb +1 -1
  5. data/lib/to_spreadsheet/xls.rb +20 -3
  6. metadata +18 -63
  7. data/README +0 -48
  8. data/test/test_app/Gemfile +0 -10
  9. data/test/test_app/Gemfile.lock +0 -88
  10. data/test/test_app/README +0 -1
  11. data/test/test_app/Rakefile +0 -7
  12. data/test/test_app/app/controllers/application_controller.rb +0 -3
  13. data/test/test_app/app/controllers/contacts_controller.rb +0 -7
  14. data/test/test_app/app/models/contact.rb +0 -3
  15. data/test/test_app/app/views/contacts/_table.erb +0 -24
  16. data/test/test_app/app/views/contacts/index.html.erb +0 -1
  17. data/test/test_app/app/views/contacts/index.xls.erb +0 -1
  18. data/test/test_app/app/views/layouts/application.html.erb +0 -7
  19. data/test/test_app/config/application.rb +0 -15
  20. data/test/test_app/config/boot.rb +0 -6
  21. data/test/test_app/config/database.yml +0 -22
  22. data/test/test_app/config/environment.rb +0 -5
  23. data/test/test_app/config/environments/development.rb +0 -26
  24. data/test/test_app/config/environments/production.rb +0 -49
  25. data/test/test_app/config/environments/test.rb +0 -35
  26. data/test/test_app/config/initializers/backtrace_silencers.rb +0 -7
  27. data/test/test_app/config/initializers/inflections.rb +0 -10
  28. data/test/test_app/config/initializers/mime_types.rb +0 -5
  29. data/test/test_app/config/initializers/secret_token.rb +0 -7
  30. data/test/test_app/config/initializers/session_store.rb +0 -8
  31. data/test/test_app/config/locales/en.yml +0 -5
  32. data/test/test_app/config/routes.rb +0 -4
  33. data/test/test_app/config.ru +0 -4
  34. data/test/test_app/db/development.sqlite3 +0 -0
  35. data/test/test_app/db/migrate/01_create_contacts.rb +0 -15
  36. data/test/test_app/db/schema.rb +0 -21
  37. data/test/test_app/db/seeds.rb +0 -7
  38. data/test/test_app/db/test.sqlite3 +0 -0
  39. data/test/test_app/log/development.log +0 -509
  40. data/test/test_app/log/production.log +0 -0
  41. data/test/test_app/log/server.log +0 -0
  42. data/test/test_app/log/test.log +0 -104
  43. data/test/test_app/script/rails +0 -6
  44. data/test/test_app/test/fixtures/contacts.yml +0 -5
  45. data/test/test_app/test/integration/rails_integration_test.rb +0 -14
  46. data/test/test_app/test/test_helper.rb +0 -7
  47. data/test/test_app/test/unit/contact_test.rb +0 -7
  48. data/test/test_helper.rb +0 -1
File without changes
File without changes
@@ -1,104 +0,0 @@
1
- SQL (0.0ms) select sqlite_version(*)
2
- SQL (4.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
3
- SQL (0.0ms)  SELECT name
4
- FROM sqlite_master
5
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6
- 
7
- SQL (0.0ms) SELECT version FROM "schema_migrations"
8
- SQL (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
9
- SQL (1.0ms) SELECT COUNT(*) FROM "contacts"
10
- SQL (1.0ms) select sqlite_version(*)
11
- SQL (4.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
12
- SQL (0.0ms)  SELECT name
13
- FROM sqlite_master
14
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
- 
16
- SQL (0.0ms) SELECT version FROM "schema_migrations"
17
- SQL (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
18
- SQL (0.0ms) SELECT COUNT(*) FROM "contacts"
19
- SQL (2.0ms) select sqlite_version(*)
20
- SQL (11.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
21
- SQL (0.0ms)  SELECT name
22
- FROM sqlite_master
23
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
24
- 
25
- SQL (0.0ms) SELECT version FROM "schema_migrations"
26
- SQL (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
27
- SQL (1.0ms) SELECT COUNT(*) FROM "contacts"
28
- SQL (1.0ms) select sqlite_version(*)
29
- SQL (0.0ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
30
- SQLite3::SQLException: table "contacts" already exists: CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
31
- SQL (0.0ms) SELECT COUNT(*) FROM "contacts"
32
- SQL (0.0ms) SELECT COUNT(*) FROM "contacts"
33
-
34
-
35
- Started GET "/contacts" for 127.0.0.1 at 2011-03-15 02:02:17 +0100
36
- Processing by ContactsController#index as HTML
37
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
38
- Rendered contacts/_table.erb (6.0ms)
39
- Rendered contacts/index.html.erb within layouts/application (18.0ms)
40
- Completed 200 OK in 455ms (Views: 52.0ms | ActiveRecord: 3.0ms)
41
-
42
-
43
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:02:17 +0100
44
-
45
-
46
- Started GET "/contacts" for 127.0.0.1 at 2011-03-15 02:05:09 +0100
47
- Processing by ContactsController#index as HTML
48
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
49
- Rendered contacts/_table.erb (6.0ms)
50
- Rendered contacts/index.html.erb within layouts/application (17.0ms)
51
- Completed 200 OK in 418ms (Views: 48.0ms | ActiveRecord: 2.0ms)
52
-
53
-
54
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:05:10 +0100
55
- Processing by ContactsController#index as XLS
56
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
57
- Rendered contacts/_table.erb (1.0ms)
58
- Completed in 86ms
59
-
60
-
61
- Started GET "/contacts" for 127.0.0.1 at 2011-03-15 02:09:43 +0100
62
- Processing by ContactsController#index as HTML
63
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
64
- Rendered contacts/_table.erb (4.0ms)
65
- Rendered contacts/index.html.erb within layouts/application (11.0ms)
66
- Completed 200 OK in 240ms (Views: 27.0ms | ActiveRecord: 3.0ms)
67
-
68
-
69
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:09:43 +0100
70
- Processing by ContactsController#index as XLS
71
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
72
- Rendered contacts/_table.erb (0.0ms)
73
- Completed in 53ms
74
-
75
-
76
- Started GET "/contacts" for 127.0.0.1 at 2011-03-15 02:10:47 +0100
77
- Processing by ContactsController#index as HTML
78
- Contact Load (0.0ms) SELECT "contacts".* FROM "contacts"
79
- Rendered contacts/_table.erb (4.0ms)
80
- Rendered contacts/index.html.erb within layouts/application (12.0ms)
81
- Completed 200 OK in 277ms (Views: 34.0ms | ActiveRecord: 1.0ms)
82
-
83
-
84
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:10:47 +0100
85
- Processing by ContactsController#index as XLS
86
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
87
- Rendered contacts/_table.erb (1.0ms)
88
- Completed in 86ms
89
-
90
-
91
- Started GET "/contacts" for 127.0.0.1 at 2011-03-15 02:11:41 +0100
92
- Processing by ContactsController#index as HTML
93
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
94
- Rendered contacts/_table.erb (4.0ms)
95
- Rendered contacts/index.html.erb within layouts/application (10.0ms)
96
- Completed 200 OK in 260ms (Views: 26.0ms | ActiveRecord: 3.0ms)
97
-
98
-
99
- Started GET "/contacts.xls" for 127.0.0.1 at 2011-03-15 02:11:41 +0100
100
- Processing by ContactsController#index as XLS
101
- Contact Load (1.0ms) SELECT "contacts".* FROM "contacts"
102
- Rendered contacts/_table.erb (1.0ms)
103
- Sent data (20.0ms)
104
- Completed 200 OK in 52ms (Views: 51.0ms | ActiveRecord: 1.0ms)
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby.exe
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,5 +0,0 @@
1
- --- !omap
2
- - contact:
3
- id: 1
4
- name: Gleb Mazovetskiy
5
- website: http://glebm.blogspot.com
@@ -1,14 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RailsIntegrationTest < ActionController::IntegrationTest
4
- fixtures :all
5
- test "html" do
6
- get '/contacts'
7
- assert_response :success
8
- end
9
-
10
- test "xls" do
11
- get '/contacts.xls'
12
- assert_response :success
13
- end
14
- end
@@ -1,7 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path('../../config/environment', __FILE__)
3
- require 'rails/test_help'
4
-
5
- class ActiveSupport::TestCase
6
- fixtures :all
7
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ContactTest < ActiveSupport::TestCase
4
- def test_contact
5
- assert_equal 1, Contact.count
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1 +0,0 @@
1
- require 'test/test_app'