csv_rb 0.5.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +250 -0
- data/Guardfile +16 -0
- data/MIT-LICENSE +20 -0
- data/README.md +510 -0
- data/Rakefile +29 -0
- data/lib/csv_rb/action_controller.rb +66 -0
- data/lib/csv_rb/plain_builder.rb +27 -0
- data/lib/csv_rb/railtie.rb +16 -0
- data/lib/csv_rb/stream_csv_deflator.rb +25 -0
- data/lib/csv_rb/template_handler.rb +31 -0
- data/lib/csv_rb/version.rb +5 -0
- data/lib/csv_rb.rb +6 -0
- data/lib/tasks/csv_rb_tasks.rake +4 -0
- data/spec/ci.rb +4 -0
- data/spec/csv_rb_builder_spec.rb +39 -0
- data/spec/csv_rb_mailer_spec.rb +17 -0
- data/spec/csv_rb_renderer_spec.rb +18 -0
- data/spec/csv_rb_request_spec.rb +220 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +7 -0
- data/spec/dummy/app/controllers/home_controller.rb +58 -0
- data/spec/dummy/app/controllers/likes_controller.rb +20 -0
- data/spec/dummy/app/controllers/users_controller.rb +39 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/notifier.rb +14 -0
- data/spec/dummy/app/models/like.rb +3 -0
- data/spec/dummy/app/models/user.rb +24 -0
- data/spec/dummy/app/views/home/_cover_sheet.csv.csvrb +1 -0
- data/spec/dummy/app/views/home/index.csv.csvrb +2 -0
- data/spec/dummy/app/views/home/index.html.erb +4 -0
- data/spec/dummy/app/views/home/only_html.html.erb +2 -0
- data/spec/dummy/app/views/home/useheader.csv.csvrb +1 -0
- data/spec/dummy/app/views/home/withpartial.csv.csvrb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy/app/views/likes/index.csv.csvrb +4 -0
- data/spec/dummy/app/views/likes/index.html.erb +17 -0
- data/spec/dummy/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy/app/views/users/export.csv.csvrb +1 -0
- data/spec/dummy/app/views/users/index.csv.csvrb +1 -0
- data/spec/dummy/app/views/users/index.html.erb +23 -0
- data/spec/dummy/app/views/users/noaction.csv.csvrb +1 -0
- data/spec/dummy/app/views/users/respond_with.csv.csvrb +1 -0
- data/spec/dummy/app/views/users/send_instructions.csv.csvrb +2 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +22 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +83 -0
- data/spec/dummy/config/environments/test.rb +40 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/secret_token.rb +2 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +17 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy/db/schema.rb +31 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +257 -0
- data/spec/dummy/log/test.log +25347 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/reset_gems.sh +2 -0
- data/spec/spec_helper.rb +39 -0
- data/spec/test_5.2.sh +16 -0
- data/spec/test_all_rails.sh +4 -0
- data/spec/test_revert.sh +3 -0
- metadata +413 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
2
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
3
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
4
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
5
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
6
|
+
by setting up a rake task which runs
|
7
|
+
|
8
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
9
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
10
|
+
|
11
|
+
for all models and all boolean columns, after which the flag must be set to
|
12
|
+
true by adding the following to your application.rb file:
|
13
|
+
|
14
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
15
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
16
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
17
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
18
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
19
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
20
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
21
|
+
by setting up a rake task which runs
|
22
|
+
|
23
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
24
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
25
|
+
|
26
|
+
for all models and all boolean columns, after which the flag must be set to
|
27
|
+
true by adding the following to your application.rb file:
|
28
|
+
|
29
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
30
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
31
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
32
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
33
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
34
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
35
|
+
Migrating to CreateUsers (20120717192452)
|
36
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
37
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
38
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
39
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
40
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
41
|
+
by setting up a rake task which runs
|
42
|
+
|
43
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
44
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
45
|
+
|
46
|
+
for all models and all boolean columns, after which the flag must be set to
|
47
|
+
true by adding the following to your application.rb file:
|
48
|
+
|
49
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
50
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
51
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
52
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
53
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
54
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
55
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
56
|
+
by setting up a rake task which runs
|
57
|
+
|
58
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
59
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
60
|
+
|
61
|
+
for all models and all boolean columns, after which the flag must be set to
|
62
|
+
true by adding the following to your application.rb file:
|
63
|
+
|
64
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
65
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
66
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
67
|
+
Migrating to CreateUsers (20120717192452)
|
68
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
69
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
70
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "last_name" varchar, "address" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
71
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120717192452"]]
|
72
|
+
[1m[35m (5.2ms)[0m [1m[36mcommit transaction[0m
|
73
|
+
Migrating to CreateLikes (20121206210955)
|
74
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
75
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "likes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
76
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20121206210955"]]
|
77
|
+
[1m[35m (2.2ms)[0m [1m[36mcommit transaction[0m
|
78
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
79
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
80
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-06-06 22:21:48.541945"], ["updated_at", "2019-06-06 22:21:48.541945"]]
|
81
|
+
[1m[35m (2.6ms)[0m [1m[36mcommit transaction[0m
|
82
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
83
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
84
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
85
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
86
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
87
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
88
|
+
by setting up a rake task which runs
|
89
|
+
|
90
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
91
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
92
|
+
|
93
|
+
for all models and all boolean columns, after which the flag must be set to
|
94
|
+
true by adding the following to your application.rb file:
|
95
|
+
|
96
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
97
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
98
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
99
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
100
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
101
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
102
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
103
|
+
by setting up a rake task which runs
|
104
|
+
|
105
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
106
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
107
|
+
|
108
|
+
for all models and all boolean columns, after which the flag must be set to
|
109
|
+
true by adding the following to your application.rb file:
|
110
|
+
|
111
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
112
|
+
(called from load at /home/samps/.gem/ruby/2.6.0/bin/rake:23)
|
113
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
114
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
115
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
116
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
117
|
+
Migrating to CreateUsers (20120717192452)
|
118
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
119
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "last_name" varchar, "address" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
120
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120717192452"]]
|
121
|
+
[1m[35m (2.2ms)[0m [1m[36mcommit transaction[0m
|
122
|
+
Migrating to CreateLikes (20121206210955)
|
123
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
124
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "likes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
125
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20121206210955"]]
|
126
|
+
[1m[35m (2.5ms)[0m [1m[36mcommit transaction[0m
|
127
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
128
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
129
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-06-06 22:22:20.471562"], ["updated_at", "2019-06-06 22:22:20.471562"]]
|
130
|
+
[1m[35m (3.6ms)[0m [1m[36mcommit transaction[0m
|
131
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
132
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
133
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
134
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
135
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
136
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
137
|
+
by setting up a rake task which runs
|
138
|
+
|
139
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
140
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
141
|
+
|
142
|
+
for all models and all boolean columns, after which the flag must be set to
|
143
|
+
true by adding the following to your application.rb file:
|
144
|
+
|
145
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
146
|
+
(called from require at bin/rails:4)
|
147
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
148
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
149
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
150
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
151
|
+
Migrating to CreateUsers (20120717192452)
|
152
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
153
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "last_name" varchar, "address" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
154
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120717192452"]]
|
155
|
+
[1m[35m (2.1ms)[0m [1m[36mcommit transaction[0m
|
156
|
+
Migrating to CreateLikes (20121206210955)
|
157
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
158
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "likes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20121206210955"]]
|
160
|
+
[1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
|
161
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
162
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
163
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-06-06 23:08:42.659439"], ["updated_at", "2019-06-06 23:08:42.659439"]]
|
164
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
165
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
166
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
167
|
+
DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <top (required)> at /home/samps/gems/csv_rb/spec/dummy/config/environment.rb:5)
|
168
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
169
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
170
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
171
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
172
|
+
by setting up a rake task which runs
|
173
|
+
|
174
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
175
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
176
|
+
|
177
|
+
for all models and all boolean columns, after which the flag must be set to
|
178
|
+
true by adding the following to your application.rb file:
|
179
|
+
|
180
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
181
|
+
(called from require at bin/rails:4)
|
182
|
+
Started GET "/" for ::1 at 2019-06-06 17:08:57 -0600
|
183
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
184
|
+
Processing by HomeController#index as HTML
|
185
|
+
Rendering home/index.html.erb within layouts/application
|
186
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
187
|
+
Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
|
188
|
+
|
189
|
+
|
190
|
+
Started GET "/another.csv" for ::1 at 2019-06-06 17:08:59 -0600
|
191
|
+
Processing by HomeController#another as CSV
|
192
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
193
|
+
|
194
|
+
|
195
|
+
Started GET "/another" for ::1 at 2019-06-06 17:09:12 -0600
|
196
|
+
Processing by HomeController#another as HTML
|
197
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
198
|
+
|
199
|
+
|
200
|
+
Started GET "/only_html" for ::1 at 2019-06-06 17:10:05 -0600
|
201
|
+
|
202
|
+
ActionController::RoutingError (No route matches [GET] "/only_html"):
|
203
|
+
|
204
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
|
205
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
|
206
|
+
railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app'
|
207
|
+
railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call'
|
208
|
+
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged'
|
209
|
+
activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged'
|
210
|
+
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged'
|
211
|
+
railties (5.2.3) lib/rails/rack/logger.rb:26:in `call'
|
212
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
|
213
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call'
|
214
|
+
rack (2.0.7) lib/rack/method_override.rb:22:in `call'
|
215
|
+
rack (2.0.7) lib/rack/runtime.rb:22:in `call'
|
216
|
+
activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
217
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
218
|
+
actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call'
|
219
|
+
rack (2.0.7) lib/rack/sendfile.rb:111:in `call'
|
220
|
+
railties (5.2.3) lib/rails/engine.rb:524:in `call'
|
221
|
+
thin (1.7.2) lib/thin/connection.rb:86:in `block in pre_process'
|
222
|
+
thin (1.7.2) lib/thin/connection.rb:84:in `catch'
|
223
|
+
thin (1.7.2) lib/thin/connection.rb:84:in `pre_process'
|
224
|
+
thin (1.7.2) lib/thin/connection.rb:53:in `process'
|
225
|
+
thin (1.7.2) lib/thin/connection.rb:39:in `receive_data'
|
226
|
+
eventmachine (1.2.7) lib/eventmachine.rb:195:in `run_machine'
|
227
|
+
eventmachine (1.2.7) lib/eventmachine.rb:195:in `run'
|
228
|
+
thin (1.7.2) lib/thin/backends/base.rb:73:in `start'
|
229
|
+
thin (1.7.2) lib/thin/server.rb:162:in `start'
|
230
|
+
rack (2.0.7) lib/rack/handler/thin.rb:22:in `run'
|
231
|
+
rack (2.0.7) lib/rack/server.rb:297:in `start'
|
232
|
+
railties (5.2.3) lib/rails/commands/server/server_command.rb:53:in `start'
|
233
|
+
railties (5.2.3) lib/rails/commands/server/server_command.rb:147:in `block in perform'
|
234
|
+
railties (5.2.3) lib/rails/commands/server/server_command.rb:142:in `tap'
|
235
|
+
railties (5.2.3) lib/rails/commands/server/server_command.rb:142:in `perform'
|
236
|
+
thor (0.20.3) lib/thor/command.rb:27:in `run'
|
237
|
+
thor (0.20.3) lib/thor/invocation.rb:126:in `invoke_command'
|
238
|
+
thor (0.20.3) lib/thor.rb:387:in `dispatch'
|
239
|
+
railties (5.2.3) lib/rails/command/base.rb:65:in `perform'
|
240
|
+
railties (5.2.3) lib/rails/command.rb:46:in `invoke'
|
241
|
+
railties (5.2.3) lib/rails/commands.rb:18:in `<top (required)>'
|
242
|
+
bin/rails:4:in `require'
|
243
|
+
bin/rails:4:in `<main>'
|
244
|
+
Started GET "/home/only_html" for ::1 at 2019-06-06 17:10:19 -0600
|
245
|
+
Processing by HomeController#only_html as HTML
|
246
|
+
Rendering home/only_html.html.erb within layouts/application
|
247
|
+
Rendered home/only_html.html.erb within layouts/application (0.1ms)
|
248
|
+
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
249
|
+
|
250
|
+
|
251
|
+
Started GET "/home/only_html" for ::1 at 2019-06-06 17:10:44 -0600
|
252
|
+
Processing by HomeController#only_html as HTML
|
253
|
+
Rendering home/only_html.html.erb within layouts/application
|
254
|
+
Rendered home/only_html.html.erb within layouts/application (0.1ms)
|
255
|
+
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
256
|
+
|
257
|
+
|