csv_rb 5.2.3 → 5.2.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a71f29b994889a9e7b6c8ff1eb86540cb765687e384a73dc365238e0f73683d6
4
- data.tar.gz: 25c0b2a833af41527e81bf7bcbf9f0bc716a743d7175dea6ed1d7f32d2256c58
3
+ metadata.gz: 3a48bac7573f8160c9dbcd475282ddc95907b62a6df25364b867554ba78bcb0f
4
+ data.tar.gz: 459288168bedc705f6c26a075712d08f068ae47e5dd46d203f2f7b064987331a
5
5
  SHA512:
6
- metadata.gz: c2ffa06bd35d044f675675ced0874d363835f6e1b8593a2571fd4efafc017128c49bbe1079c99c6ad1fd22f7cbbeeca06623ba8a472fb5d0eedadaf364b76bad
7
- data.tar.gz: b879b6d1fe48074dd3205aab6ffac29bb3cfb50024d1e27269c2c66b1811e2353c889cbfeebd7774f8d721e719bb3e5e6a8843a05790f264c88f919e3aabc443
6
+ metadata.gz: d556131970e95a89757cfd50f7b3910af4f5301f96a1b82f6ced159ec60586389189378b7f314307ea17014d68054a143817394fbde3f576c3023bcdfee82059
7
+ data.tar.gz: b4bf041549ecd6680994453caa3e9c6f9b00fae3f5654aa0f3b4d8550593475d5406be1e63ead6e0e5c84182cd15a87bd19d9916568c8d22e171a82b0e354234
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # Change log
2
2
 
3
- **June 6, 2019**: 5.2.1 release
3
+ **June 7, 2019**: 5.2.3 release
4
4
 
5
- - Initial posting.
5
+ - Make compression on streaming toggleable
6
6
 
7
7
  **June 7, 2019**: 5.2.2 release
8
8
 
9
9
  - Add csv.set method
10
+
11
+ **June 6, 2019**: 5.2.1 release
12
+
13
+ - Initial posting.
@@ -14,6 +14,7 @@ module ActionView
14
14
 
15
15
  def call(template)
16
16
  builder = StringIO.new
17
+ builder << "# encoding: utf-8\n"
17
18
  builder << "require 'csv';"
18
19
  builder << "require 'csv_rb/plain_builder';"
19
20
  builder << "csv ||= CSVRb::PlainBuilder.new;"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CSVRb
4
- VERSION = '5.2.3'
4
+ VERSION = '5.2.3.1'
5
5
  end
Binary file
@@ -26232,3 +26232,227 @@ Processing by UsersController#show as CSV
26232
26232
  Rendering users/respond_with.csv.csvrb
26233
26233
  Rendered users/respond_with.csv.csvrb (0.2ms)
26234
26234
  Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
26235
+ Started GET "/another" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26236
+ Processing by HomeController#another as HTML
26237
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26238
+ User Load (0.7ms) SELECT "users".* FROM "users"
26239
+  (0.0ms) begin transaction
26240
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 540]]
26241
+  (2.1ms) commit transaction
26242
+  (0.0ms) begin transaction
26243
+ User Create (0.2ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.278923"], ["updated_at", "2019-06-18 02:29:36.278923"]]
26244
+  (1.4ms) commit transaction
26245
+ Started GET "/users/541/render_elsewhere.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26246
+ Processing by LikesController#render_elsewhere as CSV
26247
+ Parameters: {"user_id"=>"541"}
26248
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 541], ["LIMIT", 1]]
26249
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
26250
+ User Load (0.0ms) SELECT "users".* FROM "users"
26251
+ Started GET "/home/render_elsewhere.csv?type=5" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26252
+ Processing by HomeController#render_elsewhere as CSV
26253
+ Parameters: {"type"=>"5"}
26254
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26255
+ Started GET "/home/render_elsewhere.csv?type=4" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26256
+ Processing by HomeController#render_elsewhere as CSV
26257
+ Parameters: {"type"=>"4"}
26258
+ Rendering users/index.csv.csvrb
26259
+ User Load (0.1ms) SELECT "users".* FROM "users"
26260
+ Rendered users/index.csv.csvrb (0.9ms)
26261
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
26262
+ Started GET "/home/render_elsewhere.csv?type=3" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26263
+ Processing by HomeController#render_elsewhere as CSV
26264
+ Parameters: {"type"=>"3"}
26265
+ Rendering users/index.csv.csvrb
26266
+ User Load (0.0ms) SELECT "users".* FROM "users"
26267
+ Rendered users/index.csv.csvrb (0.3ms)
26268
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
26269
+ Started GET "/home/render_elsewhere.csv?type=1" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26270
+ Processing by HomeController#render_elsewhere as CSV
26271
+ Parameters: {"type"=>"1"}
26272
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
26273
+ User Load (0.0ms) SELECT "users".* FROM "users"
26274
+ User Load (0.0ms) SELECT "users".* FROM "users"
26275
+  (0.0ms) begin transaction
26276
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 541]]
26277
+  (1.5ms) commit transaction
26278
+  (0.0ms) begin transaction
26279
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.295458"], ["updated_at", "2019-06-18 02:29:36.295458"]]
26280
+  (2.4ms) commit transaction
26281
+ Started GET "/users/export/542.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26282
+ Processing by UsersController#export as CSV
26283
+ Parameters: {"id"=>"542"}
26284
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 542], ["LIMIT", 1]]
26285
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.1ms)
26286
+ Started GET "/home.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26287
+ Processing by HomeController#index as CSV
26288
+ Rendering home/index.csv.csvrb
26289
+ Rendered home/index.csv.csvrb (0.2ms)
26290
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
26291
+ Started GET "/useheader.csv?set_direct=true" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26292
+ Processing by HomeController#useheader as CSV
26293
+ Parameters: {"set_direct"=>"true"}
26294
+ Rendering home/useheader.csv.csvrb
26295
+ Rendered home/useheader.csv.csvrb (0.2ms)
26296
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
26297
+ Started GET "/another.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26298
+ Processing by HomeController#another as CSV
26299
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
26300
+ User Load (0.1ms) SELECT "users".* FROM "users"
26301
+  (0.0ms) begin transaction
26302
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 542]]
26303
+  (1.2ms) commit transaction
26304
+  (0.0ms) begin transaction
26305
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.310835"], ["updated_at", "2019-06-18 02:29:36.310835"]]
26306
+  (1.4ms) commit transaction
26307
+  (0.0ms) begin transaction
26308
+ Like Create (0.4ms) INSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Carrots"], ["user_id", 543], ["created_at", "2019-06-18 02:29:36.329710"], ["updated_at", "2019-06-18 02:29:36.329710"]]
26309
+  (1.5ms) commit transaction
26310
+  (0.0ms) begin transaction
26311
+ Like Create (0.1ms) INSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Celery"], ["user_id", 543], ["created_at", "2019-06-18 02:29:36.333033"], ["updated_at", "2019-06-18 02:29:36.333033"]]
26312
+  (1.3ms) commit transaction
26313
+ Started GET "/users/543/likes.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26314
+ Processing by LikesController#index as CSV
26315
+ Parameters: {"user_id"=>"543"}
26316
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 543], ["LIMIT", 1]]
26317
+ Rendering likes/index.csv.csvrb
26318
+ Like Load (0.1ms) SELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ? [["user_id", 543]]
26319
+ Rendered likes/index.csv.csvrb (1.5ms)
26320
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)
26321
+ User Load (0.0ms) SELECT "users".* FROM "users"
26322
+  (0.6ms) begin transaction
26323
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 543]]
26324
+  (1.3ms) commit transaction
26325
+  (0.0ms) begin transaction
26326
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.343639"], ["updated_at", "2019-06-18 02:29:36.343639"]]
26327
+  (1.3ms) commit transaction
26328
+ Started GET "/users/544.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26329
+ Processing by UsersController#show as CSV
26330
+ Parameters: {"id"=>"544"}
26331
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 544], ["LIMIT", 1]]
26332
+ Rendering users/respond_with.csv.csvrb
26333
+ Rendered users/respond_with.csv.csvrb (0.2ms)
26334
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
26335
+ Started GET "/useheader.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26336
+ Processing by HomeController#useheader as CSV
26337
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26338
+  (0.0ms) begin transaction
26339
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2019-06-18 02:29:36.353347"], ["updated_at", "2019-06-18 02:29:36.353347"]]
26340
+  (1.8ms) commit transaction
26341
+ Started GET "/" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26342
+ Processing by HomeController#index as HTML
26343
+ Rendering home/index.html.erb within layouts/application
26344
+ Rendered home/index.html.erb within layouts/application (1.2ms)
26345
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
26346
+ Started GET "/withpartial.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26347
+ Processing by HomeController#withpartial as CSV
26348
+ Rendering home/withpartial.csv.csvrb
26349
+ Rendered home/_cover_sheet.csv.csvrb (0.8ms)
26350
+ Rendered home/withpartial.csv.csvrb (1.3ms)
26351
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms)
26352
+ User Load (0.1ms) SELECT "users".* FROM "users"
26353
+  (0.0ms) begin transaction
26354
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 544]]
26355
+  (1.8ms) commit transaction
26356
+  (0.0ms) begin transaction
26357
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 545]]
26358
+  (2.3ms) commit transaction
26359
+  (0.0ms) begin transaction
26360
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2019-06-18 02:29:36.374335"], ["updated_at", "2019-06-18 02:29:36.374335"]]
26361
+  (2.0ms) commit transaction
26362
+  (0.0ms) begin transaction
26363
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.377044"], ["updated_at", "2019-06-18 02:29:36.377044"]]
26364
+  (1.4ms) commit transaction
26365
+ Started GET "/users/noaction.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26366
+ Processing by UsersController#noaction as CSV
26367
+ Rendering users/noaction.csv.csvrb
26368
+ User Load (0.1ms) SELECT "users".* FROM "users"
26369
+ Rendered users/noaction.csv.csvrb (1.1ms)
26370
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
26371
+ User Load (0.4ms) SELECT "users".* FROM "users"
26372
+  (0.0ms) begin transaction
26373
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 546]]
26374
+  (1.3ms) commit transaction
26375
+  (0.0ms) begin transaction
26376
+ User Destroy (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 547]]
26377
+  (1.6ms) commit transaction
26378
+  (0.0ms) begin transaction
26379
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2019-06-18 02:29:36.390401"], ["updated_at", "2019-06-18 02:29:36.390401"]]
26380
+  (1.4ms) commit transaction
26381
+  (0.0ms) begin transaction
26382
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2019-06-18 02:29:36.392528"], ["updated_at", "2019-06-18 02:29:36.392528"]]
26383
+  (1.2ms) commit transaction
26384
+ Started GET "/users.csv" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26385
+ Processing by UsersController#index as CSV
26386
+ Rendering users/index.csv.csvrb
26387
+ User Load (0.1ms) SELECT "users".* FROM "users"
26388
+ Rendered users/index.csv.csvrb (0.5ms)
26389
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
26390
+ Started GET "/another" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26391
+ Processing by HomeController#another as */*
26392
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26393
+ Started GET "/home/only_html" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26394
+ Processing by HomeController#only_html as */*
26395
+ Rendering home/only_html.html.erb within layouts/application
26396
+ Rendered home/only_html.html.erb within layouts/application (0.2ms)
26397
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
26398
+  (0.0ms) begin transaction
26399
+ User Create (0.1ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2019-06-18 02:29:36.411555"], ["updated_at", "2019-06-18 02:29:36.411555"]]
26400
+  (1.4ms) commit transaction
26401
+ Started GET "/users/550/send_instructions" for 127.0.0.1 at 2019-06-17 20:29:36 -0600
26402
+ Processing by UsersController#send_instructions as HTML
26403
+ Parameters: {"user_id"=>"550"}
26404
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 550], ["LIMIT", 1]]
26405
+ Rendering users/send_instructions.csv.csvrb
26406
+ Rendered users/send_instructions.csv.csvrb (0.2ms)
26407
+ Rendering notifier/instructions.html.erb
26408
+ Rendered notifier/instructions.html.erb (0.2ms)
26409
+ Notifier#instructions: processed outbound mail in 93.5ms
26410
+ Sent mail to elmer@fudd.com (3.9ms)
26411
+ Date: Mon, 17 Jun 2019 20:29:36 -0600
26412
+ From: noreply@company.com
26413
+ To: elmer@fudd.com
26414
+ Message-ID: <5d084c907cf06_5aab2ade367459707376e@samps-dus.mail>
26415
+ Subject: Instructions
26416
+ Mime-Version: 1.0
26417
+ Content-Type: multipart/mixed;
26418
+ boundary="--==_mimepart_5d084c907c636_5aab2ade3674597073683";
26419
+ charset=UTF-8
26420
+ Content-Transfer-Encoding: 7bit
26421
+
26422
+
26423
+ ----==_mimepart_5d084c907c636_5aab2ade3674597073683
26424
+ Content-Type: text/html;
26425
+ charset=UTF-8
26426
+ Content-Transfer-Encoding: 7bit
26427
+
26428
+ <!DOCTYPE html>
26429
+ <html>
26430
+ <head>
26431
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
26432
+ </head>
26433
+ <body>
26434
+ <h1>Instructions</h1>
26435
+ <p>
26436
+ You have successfully signed up to example.com,
26437
+ your username is: elmer@fudd.com.<br/>
26438
+ </p>
26439
+ <p>Thanks for joining and have a great day!</p>
26440
+ </body>
26441
+ </html>
26442
+
26443
+ ----==_mimepart_5d084c907c636_5aab2ade3674597073683
26444
+ Content-Type: text/csv;
26445
+ charset=UTF-8
26446
+ Content-Transfer-Encoding: base64
26447
+ Content-Disposition: attachment;
26448
+ filename=user_550.csv
26449
+ Content-ID: <5d084c907d47a_5aab2ade367459707382c@samps-dus.mail>
26450
+
26451
+ IjU1MCIsIkVsbWVyIiwiZWxtZXJAZnVkZC5jb20iDQoiIiwiSW5zdHJ1Y3Rp
26452
+ b25zIiwiIg0K
26453
+
26454
+ ----==_mimepart_5d084c907c636_5aab2ade3674597073683--
26455
+
26456
+ Rendering text template
26457
+ Rendered text template (0.0ms)
26458
+ Completed 200 OK in 100ms (Views: 0.5ms | ActiveRecord: 0.1ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 5.2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampson Crowley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-07 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack