csv_rb 6.0.2.2 → 6.0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csv_rb/plain_builder.rb +9 -11
- data/lib/csv_rb/stream_builder.rb +4 -4
- data/lib/csv_rb/stream_csv_deflator.rb +1 -1
- data/lib/csv_rb/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +231 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84fd00c5b1f8cc76ae7c3501fbaa60ef154e5810f82540a8ddf44d3b71d20e4
|
4
|
+
data.tar.gz: 71382121f28b3c0d85fdcaa750ac66f850ebf367c9ae16e87d36bc2e9a9602d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22e3b188587d8a4957535c2259df2f54d84049a59a02f88c00ef78c002eb32d7609b09119b2f78d028550bd31997c35e6ac5f5f6974b5e83e79a87f60227ab14
|
7
|
+
data.tar.gz: 4da596af644e420938a6d8a6eb3c81b9fee7f6c59454a898de9ee6cc4a837890674d87e0d4fdd45650d25e964172ef3a6fe13b2bfe3faf73b41ec3cdcdd44001
|
data/lib/csv_rb/plain_builder.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
class PlainBuilder
|
3
|
-
def value
|
4
|
-
@value ||= "#{}"
|
5
|
-
end
|
1
|
+
require 'csv_rb/stream_builder'
|
6
2
|
|
7
|
-
|
8
|
-
|
3
|
+
module CSVRb
|
4
|
+
class PlainBuilder < StreamBuilder
|
5
|
+
def initialize(*)
|
6
|
+
super("#{}", false)
|
9
7
|
end
|
10
8
|
|
11
|
-
def
|
12
|
-
|
9
|
+
def value
|
10
|
+
y
|
13
11
|
end
|
14
12
|
|
15
|
-
def
|
16
|
-
|
13
|
+
def set(complete_value)
|
14
|
+
@enumerator = complete_value || "#{}"
|
17
15
|
end
|
18
16
|
|
19
17
|
def close
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module CSVRb
|
2
2
|
class StreamBuilder
|
3
|
-
def initialize(
|
4
|
-
@
|
3
|
+
def initialize(enumerator, with_compression = true)
|
4
|
+
@enumerator = enumerator
|
5
5
|
@with_compression = with_compression
|
6
|
-
@deflator = Zlib::Deflate.new
|
6
|
+
@deflator = Zlib::Deflate.new if @with_compression
|
7
7
|
end
|
8
8
|
|
9
9
|
def y
|
10
|
-
@
|
10
|
+
@enumerator
|
11
11
|
end
|
12
12
|
|
13
13
|
def set(value)
|
data/lib/csv_rb/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -30847,3 +30847,234 @@ Processing by HomeController#useheader as CSV
|
|
30847
30847
|
Rendering home/useheader.csv.csvrb
|
30848
30848
|
Rendered home/useheader.csv.csvrb (Duration: 0.2ms | Allocations: 165)
|
30849
30849
|
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 632)
|
30850
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
30851
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30852
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
30853
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 739]]
|
30854
|
+
[1m[35m (28.3ms)[0m [1m[36mcommit transaction[0m
|
30855
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
30856
|
+
[1m[36mUser Destroy (0.2ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 740]]
|
30857
|
+
[1m[35m (2.1ms)[0m [1m[36mcommit transaction[0m
|
30858
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
30859
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2020-03-11 15:57:18.217227"], ["updated_at", "2020-03-11 15:57:18.217227"]]
|
30860
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
30861
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
30862
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.220765"], ["updated_at", "2020-03-11 15:57:18.220765"]]
|
30863
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
30864
|
+
Started GET "/users.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30865
|
+
Processing by UsersController#index as CSV
|
30866
|
+
Rendering users/index.csv.csvrb
|
30867
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30868
|
+
Rendered users/index.csv.csvrb (Duration: 2.5ms | Allocations: 797)
|
30869
|
+
Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.1ms | Allocations: 2551)
|
30870
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30871
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30872
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 741]]
|
30873
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
30874
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30875
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 742]]
|
30876
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
30877
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30878
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.274651"], ["updated_at", "2020-03-11 15:57:18.274651"]]
|
30879
|
+
[1m[35m (2.4ms)[0m [1m[36mcommit transaction[0m
|
30880
|
+
Started GET "/users/743.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30881
|
+
Processing by UsersController#show as CSV
|
30882
|
+
Parameters: {"id"=>"743"}
|
30883
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 743], ["LIMIT", 1]]
|
30884
|
+
Rendering users/respond_with.csv.csvrb
|
30885
|
+
Rendered users/respond_with.csv.csvrb (Duration: 0.2ms | Allocations: 169)
|
30886
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms | Allocations: 799)
|
30887
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30888
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30889
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 743]]
|
30890
|
+
[1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
|
30891
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30892
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.285208"], ["updated_at", "2020-03-11 15:57:18.285208"]]
|
30893
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
30894
|
+
Started GET "/users/export/744.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30895
|
+
Processing by UsersController#export as CSV
|
30896
|
+
Parameters: {"id"=>"744"}
|
30897
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 744], ["LIMIT", 1]]
|
30898
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms | Allocations: 290)
|
30899
|
+
Started GET "/withpartial.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30900
|
+
Processing by HomeController#withpartial as CSV
|
30901
|
+
Rendering home/withpartial.csv.csvrb
|
30902
|
+
Rendered home/_cover_sheet.csv.csvrb (Duration: 0.2ms | Allocations: 134)
|
30903
|
+
Rendered home/withpartial.csv.csvrb (Duration: 0.8ms | Allocations: 500)
|
30904
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 1945)
|
30905
|
+
Started GET "/useheader.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30906
|
+
Processing by HomeController#useheader as CSV
|
30907
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 176)
|
30908
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30909
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30910
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 744]]
|
30911
|
+
[1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
|
30912
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30913
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.308074"], ["updated_at", "2020-03-11 15:57:18.308074"]]
|
30914
|
+
[1m[35m (2.7ms)[0m [1m[36mcommit transaction[0m
|
30915
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30916
|
+
[1m[36mLike Create (0.3ms)[0m [1m[32mINSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Carrots"], ["user_id", 745], ["created_at", "2020-03-11 15:57:18.331850"], ["updated_at", "2020-03-11 15:57:18.331850"]]
|
30917
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
30918
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30919
|
+
[1m[36mLike Create (0.1ms)[0m [1m[32mINSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Celery"], ["user_id", 745], ["created_at", "2020-03-11 15:57:18.334600"], ["updated_at", "2020-03-11 15:57:18.334600"]]
|
30920
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
30921
|
+
Started GET "/users/745/likes.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30922
|
+
Processing by LikesController#index as CSV
|
30923
|
+
Parameters: {"user_id"=>"745"}
|
30924
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 745], ["LIMIT", 1]]
|
30925
|
+
Rendering likes/index.csv.csvrb
|
30926
|
+
[1m[36mLike Load (0.1ms)[0m [1m[34mSELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ?[0m [["user_id", 745]]
|
30927
|
+
Rendered likes/index.csv.csvrb (Duration: 0.9ms | Allocations: 603)
|
30928
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms | Allocations: 1635)
|
30929
|
+
Started GET "/useheader.csv?set_direct=true" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30930
|
+
Processing by HomeController#useheader as CSV
|
30931
|
+
Parameters: {"set_direct"=>"true"}
|
30932
|
+
Rendering home/useheader.csv.csvrb
|
30933
|
+
Rendered home/useheader.csv.csvrb (Duration: 0.2ms | Allocations: 166)
|
30934
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 634)
|
30935
|
+
Started GET "/another" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30936
|
+
Processing by HomeController#another as */*
|
30937
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 134)
|
30938
|
+
Started GET "/home/only_html" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30939
|
+
Processing by HomeController#only_html as */*
|
30940
|
+
Rendering home/only_html.html.erb within layouts/application
|
30941
|
+
Rendered home/only_html.html.erb within layouts/application (Duration: 0.2ms | Allocations: 88)
|
30942
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 1107)
|
30943
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30944
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2020-03-11 15:57:18.348295"], ["updated_at", "2020-03-11 15:57:18.348295"]]
|
30945
|
+
[1m[35m (1.7ms)[0m [1m[36mcommit transaction[0m
|
30946
|
+
Started GET "/" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30947
|
+
Processing by HomeController#index as HTML
|
30948
|
+
Rendering home/index.html.erb within layouts/application
|
30949
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.4ms | Allocations: 249)
|
30950
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 688)
|
30951
|
+
Started GET "/another.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30952
|
+
Processing by HomeController#another as CSV
|
30953
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 131)
|
30954
|
+
Started GET "/another" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30955
|
+
Processing by HomeController#another as HTML
|
30956
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 131)
|
30957
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30958
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30959
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 745]]
|
30960
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
30961
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30962
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 746]]
|
30963
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
30964
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30965
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2020-03-11 15:57:18.387581"], ["updated_at", "2020-03-11 15:57:18.387581"]]
|
30966
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
30967
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30968
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.389929"], ["updated_at", "2020-03-11 15:57:18.389929"]]
|
30969
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
30970
|
+
Started GET "/users/noaction.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30971
|
+
Processing by UsersController#noaction as CSV
|
30972
|
+
Rendering users/noaction.csv.csvrb
|
30973
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30974
|
+
Rendered users/noaction.csv.csvrb (Duration: 0.6ms | Allocations: 437)
|
30975
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms | Allocations: 761)
|
30976
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30977
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30978
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 747]]
|
30979
|
+
[1m[35m (1.9ms)[0m [1m[36mcommit transaction[0m
|
30980
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30981
|
+
[1m[36mUser Destroy (0.1ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 748]]
|
30982
|
+
[1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
|
30983
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30984
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2020-03-11 15:57:18.400298"], ["updated_at", "2020-03-11 15:57:18.400298"]]
|
30985
|
+
[1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
|
30986
|
+
Started GET "/users/749/render_elsewhere.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30987
|
+
Processing by LikesController#render_elsewhere as CSV
|
30988
|
+
Parameters: {"user_id"=>"749"}
|
30989
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 749], ["LIMIT", 1]]
|
30990
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.1ms | Allocations: 252)
|
30991
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
30992
|
+
Started GET "/home/render_elsewhere.csv?type=5" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30993
|
+
Processing by HomeController#render_elsewhere as CSV
|
30994
|
+
Parameters: {"type"=>"5"}
|
30995
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 143)
|
30996
|
+
Started GET "/home/render_elsewhere.csv?type=4" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
30997
|
+
Processing by HomeController#render_elsewhere as CSV
|
30998
|
+
Parameters: {"type"=>"4"}
|
30999
|
+
Rendering users/index.csv.csvrb
|
31000
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
31001
|
+
Rendered users/index.csv.csvrb (Duration: 0.4ms | Allocations: 252)
|
31002
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 531)
|
31003
|
+
Started GET "/home/render_elsewhere.csv?type=3" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
31004
|
+
Processing by HomeController#render_elsewhere as CSV
|
31005
|
+
Parameters: {"type"=>"3"}
|
31006
|
+
Rendering users/index.csv.csvrb
|
31007
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
31008
|
+
Rendered users/index.csv.csvrb (Duration: 0.3ms | Allocations: 252)
|
31009
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 532)
|
31010
|
+
Started GET "/home/render_elsewhere.csv?type=1" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
31011
|
+
Processing by HomeController#render_elsewhere as CSV
|
31012
|
+
Parameters: {"type"=>"1"}
|
31013
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms | Allocations: 147)
|
31014
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
31015
|
+
Started GET "/home.csv" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
31016
|
+
Processing by HomeController#index as CSV
|
31017
|
+
Rendering home/index.csv.csvrb
|
31018
|
+
Rendered home/index.csv.csvrb (Duration: 0.2ms | Allocations: 169)
|
31019
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 618)
|
31020
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
31021
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2020-03-11 15:57:18.412933"], ["updated_at", "2020-03-11 15:57:18.412933"]]
|
31022
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
31023
|
+
Started GET "/users/750/send_instructions" for 127.0.0.1 at 2020-03-11 09:57:18 -0600
|
31024
|
+
Processing by UsersController#send_instructions as HTML
|
31025
|
+
Parameters: {"user_id"=>"750"}
|
31026
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 750], ["LIMIT", 1]]
|
31027
|
+
Rendering users/send_instructions.csv.csvrb
|
31028
|
+
Rendered users/send_instructions.csv.csvrb (Duration: 0.2ms | Allocations: 200)
|
31029
|
+
Rendering notifier/instructions.html.erb
|
31030
|
+
Rendered notifier/instructions.html.erb (Duration: 0.2ms | Allocations: 119)
|
31031
|
+
Notifier#instructions: processed outbound mail in 6.0ms
|
31032
|
+
Delivered mail 5e690a5e67aed_19fd2ab95cecb964564f9@samps-dus.mail (4.0ms)
|
31033
|
+
Date: Wed, 11 Mar 2020 09:57:18 -0600
|
31034
|
+
From: noreply@company.com
|
31035
|
+
To: elmer@fudd.com
|
31036
|
+
Message-ID: <5e690a5e67aed_19fd2ab95cecb964564f9@samps-dus.mail>
|
31037
|
+
Subject: Instructions
|
31038
|
+
Mime-Version: 1.0
|
31039
|
+
Content-Type: multipart/mixed;
|
31040
|
+
boundary="--==_mimepart_5e690a5e674d8_19fd2ab95cecb964563dd";
|
31041
|
+
charset=UTF-8
|
31042
|
+
Content-Transfer-Encoding: 7bit
|
31043
|
+
|
31044
|
+
|
31045
|
+
----==_mimepart_5e690a5e674d8_19fd2ab95cecb964563dd
|
31046
|
+
Content-Type: text/html;
|
31047
|
+
charset=UTF-8
|
31048
|
+
Content-Transfer-Encoding: 7bit
|
31049
|
+
|
31050
|
+
<!DOCTYPE html>
|
31051
|
+
<html>
|
31052
|
+
<head>
|
31053
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
31054
|
+
</head>
|
31055
|
+
<body>
|
31056
|
+
<h1>Instructions</h1>
|
31057
|
+
<p>
|
31058
|
+
You have successfully signed up to example.com,
|
31059
|
+
your username is: elmer@fudd.com.<br/>
|
31060
|
+
</p>
|
31061
|
+
<p>Thanks for joining and have a great day!</p>
|
31062
|
+
</body>
|
31063
|
+
</html>
|
31064
|
+
|
31065
|
+
----==_mimepart_5e690a5e674d8_19fd2ab95cecb964563dd
|
31066
|
+
Content-Type: text/csv;
|
31067
|
+
charset=UTF-8
|
31068
|
+
Content-Transfer-Encoding: base64
|
31069
|
+
Content-Disposition: attachment;
|
31070
|
+
filename=user_750.csv
|
31071
|
+
Content-ID: <5e690a5e68061_19fd2ab95cecb964565a6@samps-dus.mail>
|
31072
|
+
|
31073
|
+
Ijc1MCIsIkVsbWVyIiwiZWxtZXJAZnVkZC5jb20iDQoiIiwiSW5zdHJ1Y3Rp
|
31074
|
+
b25zIiwiIg0K
|
31075
|
+
|
31076
|
+
----==_mimepart_5e690a5e674d8_19fd2ab95cecb964563dd--
|
31077
|
+
|
31078
|
+
Rendering text template
|
31079
|
+
Rendered text template (Duration: 0.0ms | Allocations: 1)
|
31080
|
+
Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.1ms | Allocations: 8498)
|
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: 6.0.2.
|
4
|
+
version: 6.0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sampson Crowley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|