to_spreadsheet 0.9 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +61 -0
- data/Rakefile +3 -11
- data/lib/to_spreadsheet/action_pack_renderers.rb +1 -0
- data/lib/to_spreadsheet/version.rb +1 -1
- data/lib/to_spreadsheet/xls.rb +20 -3
- metadata +18 -63
- data/README +0 -48
- data/test/test_app/Gemfile +0 -10
- data/test/test_app/Gemfile.lock +0 -88
- data/test/test_app/README +0 -1
- data/test/test_app/Rakefile +0 -7
- data/test/test_app/app/controllers/application_controller.rb +0 -3
- data/test/test_app/app/controllers/contacts_controller.rb +0 -7
- data/test/test_app/app/models/contact.rb +0 -3
- data/test/test_app/app/views/contacts/_table.erb +0 -24
- data/test/test_app/app/views/contacts/index.html.erb +0 -1
- data/test/test_app/app/views/contacts/index.xls.erb +0 -1
- data/test/test_app/app/views/layouts/application.html.erb +0 -7
- data/test/test_app/config/application.rb +0 -15
- data/test/test_app/config/boot.rb +0 -6
- data/test/test_app/config/database.yml +0 -22
- data/test/test_app/config/environment.rb +0 -5
- data/test/test_app/config/environments/development.rb +0 -26
- data/test/test_app/config/environments/production.rb +0 -49
- data/test/test_app/config/environments/test.rb +0 -35
- data/test/test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/test_app/config/initializers/inflections.rb +0 -10
- data/test/test_app/config/initializers/mime_types.rb +0 -5
- data/test/test_app/config/initializers/secret_token.rb +0 -7
- data/test/test_app/config/initializers/session_store.rb +0 -8
- data/test/test_app/config/locales/en.yml +0 -5
- data/test/test_app/config/routes.rb +0 -4
- data/test/test_app/config.ru +0 -4
- data/test/test_app/db/development.sqlite3 +0 -0
- data/test/test_app/db/migrate/01_create_contacts.rb +0 -15
- data/test/test_app/db/schema.rb +0 -21
- data/test/test_app/db/seeds.rb +0 -7
- data/test/test_app/db/test.sqlite3 +0 -0
- data/test/test_app/log/development.log +0 -509
- data/test/test_app/log/production.log +0 -0
- data/test/test_app/log/server.log +0 -0
- data/test/test_app/log/test.log +0 -104
- data/test/test_app/script/rails +0 -6
- data/test/test_app/test/fixtures/contacts.yml +0 -5
- data/test/test_app/test/integration/rails_integration_test.rb +0 -14
- data/test/test_app/test/test_helper.rb +0 -7
- data/test/test_app/test/unit/contact_test.rb +0 -7
- data/test/test_helper.rb +0 -1
File without changes
|
File without changes
|
data/test/test_app/log/test.log
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
[1m[36mSQL (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35mSQL (4.0ms)[0m CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
|
3
|
-
[1m[36mSQL (0.0ms)[0m [1m SELECT name
|
4
|
-
FROM sqlite_master
|
5
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
6
|
-
[0m
|
7
|
-
[1m[35mSQL (0.0ms)[0m SELECT version FROM "schema_migrations"
|
8
|
-
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
9
|
-
[1m[35mSQL (1.0ms)[0m SELECT COUNT(*) FROM "contacts"
|
10
|
-
[1m[36mSQL (1.0ms)[0m [1mselect sqlite_version(*)[0m
|
11
|
-
[1m[35mSQL (4.0ms)[0m CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
|
12
|
-
[1m[36mSQL (0.0ms)[0m [1m SELECT name
|
13
|
-
FROM sqlite_master
|
14
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
15
|
-
[0m
|
16
|
-
[1m[35mSQL (0.0ms)[0m SELECT version FROM "schema_migrations"
|
17
|
-
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
18
|
-
[1m[35mSQL (0.0ms)[0m SELECT COUNT(*) FROM "contacts"
|
19
|
-
[1m[36mSQL (2.0ms)[0m [1mselect sqlite_version(*)[0m
|
20
|
-
[1m[35mSQL (11.0ms)[0m CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "website" varchar(255), "age" integer)
|
21
|
-
[1m[36mSQL (0.0ms)[0m [1m SELECT name
|
22
|
-
FROM sqlite_master
|
23
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
24
|
-
[0m
|
25
|
-
[1m[35mSQL (0.0ms)[0m SELECT version FROM "schema_migrations"
|
26
|
-
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
27
|
-
[1m[35mSQL (1.0ms)[0m SELECT COUNT(*) FROM "contacts"
|
28
|
-
[1m[36mSQL (1.0ms)[0m [1mselect sqlite_version(*)[0m
|
29
|
-
[1m[35mSQL (0.0ms)[0m 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
|
-
[1m[36mSQL (0.0ms)[0m [1mSELECT COUNT(*) FROM "contacts"[0m
|
32
|
-
[1m[36mSQL (0.0ms)[0m [1mSELECT COUNT(*) FROM "contacts"[0m
|
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
|
-
[1m[36mContact Load (1.0ms)[0m [1mSELECT "contacts".* FROM "contacts"[0m
|
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
|
-
[1m[36mContact Load (1.0ms)[0m [1mSELECT "contacts".* FROM "contacts"[0m
|
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
|
-
[1m[35mContact Load (1.0ms)[0m 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
|
-
[1m[36mContact Load (1.0ms)[0m [1mSELECT "contacts".* FROM "contacts"[0m
|
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
|
-
[1m[35mContact Load (1.0ms)[0m 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
|
-
[1m[36mContact Load (0.0ms)[0m [1mSELECT "contacts".* FROM "contacts"[0m
|
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
|
-
[1m[35mContact Load (1.0ms)[0m 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
|
-
[1m[36mContact Load (1.0ms)[0m [1mSELECT "contacts".* FROM "contacts"[0m
|
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
|
-
[1m[35mContact Load (1.0ms)[0m 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)
|
data/test/test_app/script/rails
DELETED
@@ -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,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
|
data/test/test_helper.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'test/test_app'
|