date_timezone 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: e36fca2d6d9bf2c8ed95ee071fd30f5473ae8d78
4
- data.tar.gz: c4b5b4b95713bbea0b1fdc6d923b33d80036ead8
3
+ metadata.gz: 47b52ee0a4908cba87e105dace26d7fb520933a4
4
+ data.tar.gz: dbe99fa88dc1948a33d9a39457b8b7d72fdb4565
5
5
  SHA512:
6
- metadata.gz: a17cb77b1f63d3e57652c89de1c84e4099095de2a786dabd15ad059f501459d6a5d40cfbe074cdd845096c45d22482c0ccbfe4e1ee8cf546d3999dafdaa01f4c
7
- data.tar.gz: c661e0a0667d6aed7bffe06375621a5bf2ef218b29bdb840fbdcf5c37b91e0aecd417e62f92a87730fd4e9fdd6e67904b7709fab31c87eee134c93367c4daf96
6
+ metadata.gz: 496af441ce20d0cc06926ce810cbf2ad110023a9c119d33e50aab15797df59cc1e5267a27bb3e35d159f1ec3d9f268be3388f525c3e2cceec346388a8d605b40
7
+ data.tar.gz: 4d996bd47c11a242042f5bede61100f3d79a2dc40eaec401dd717a08fded12a62a094e04a490a0b994bdfe6f0686c22a1c6d47f970f8d43a4820f3c0609b0005
@@ -5,8 +5,11 @@ module DateTimezone
5
5
  columns_hash.each do |name, col|
6
6
  next unless col.type == :date
7
7
  define_method("#{name}=") do |value|
8
- time = value.is_a?(String) ? Time.zone.parse(value) : value
9
- self[name] = time
8
+ self[name] = case value
9
+ when String then Time.zone.parse(value)
10
+ when Time then value.in_time_zone
11
+ else value
12
+ end
10
13
  end
11
14
  end
12
15
  end
@@ -1,3 +1,3 @@
1
1
  module DateTimezone
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -40,4 +40,14 @@ class DateTimezoneTest < ActiveSupport::TestCase
40
40
  person = Person.new(name: 'Ruby', birth_date: nil)
41
41
  assert_equal person.birth_date, nil
42
42
  end
43
+
44
+ test 'local time without zone assignment should work' do
45
+ person = Person.new(name: 'Ruby', birth_date: Time.local(2015, 3, 2))
46
+ assert_equal person.birth_date, Date.new(2015, 3, 2)
47
+ end
48
+
49
+ test 'utc time without zone assignment should work' do
50
+ person = Person.new(name: 'Ruby', birth_date: Time.utc(2015, 3, 1, 15))
51
+ assert_equal person.birth_date, Date.new(2015, 3, 2)
52
+ end
43
53
  end
Binary file
@@ -0,0 +1,10 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreatePeople (20150227164309)
6
+  (0.1ms) begin transaction
7
+  (0.7ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "birth_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227164309"]]
9
+  (1.1ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -1,24 +1,771 @@
1
-  (7.4ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "birth_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.4ms) select sqlite_version(*)
4
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (0.1ms) begin transaction
2
+ ----------------------------
3
+ DateTimezoneTest: test_truth
4
+ ----------------------------
5
+  (0.1ms) rollback transaction
6
+  (1.4ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "birth_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
7
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
8
+  (0.1ms) select sqlite_version(*)
9
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
10
   (0.1ms) SELECT version FROM "schema_migrations"
6
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150227164309')
11
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150227164309')
7
12
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
13
   (0.1ms) begin transaction
14
+ ----------------------------
15
+ DateTimezoneTest: test_truth
16
+ ----------------------------
17
+  (0.0ms) rollback transaction
18
+  (0.1ms) begin transaction
19
+ --------------------------------------
20
+ DateTimezoneTest: test_date_assignment
21
+ --------------------------------------
22
+  (0.1ms) rollback transaction
23
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+  (0.1ms) begin transaction
25
+ --------------------------------------
26
+ DateTimezoneTest: test_date_assignment
27
+ --------------------------------------
28
+  (0.1ms) rollback transaction
29
+  (0.1ms) begin transaction
30
+ --------------------------------------
31
+ DateTimezoneTest: test_time_assignment
32
+ --------------------------------------
33
+  (0.1ms) rollback transaction
34
+  (0.1ms) begin transaction
35
+ ----------------------------
36
+ DateTimezoneTest: test_truth
37
+ ----------------------------
38
+  (0.0ms) rollback transaction
39
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
+  (0.1ms) begin transaction
41
+ --------------------------------------
42
+ DateTimezoneTest: test_time_assignment
43
+ --------------------------------------
44
+  (0.1ms) rollback transaction
45
+  (0.1ms) begin transaction
46
+ ----------------------------
47
+ DateTimezoneTest: test_truth
48
+ ----------------------------
49
+  (0.1ms) rollback transaction
50
+  (0.1ms) begin transaction
51
+ ------------------------------------------------
52
+ DateTimezoneTest: test_time_with_zone_assignment
53
+ ------------------------------------------------
54
+  (0.0ms) rollback transaction
55
+  (0.1ms) begin transaction
56
+ --------------------------------------
57
+ DateTimezoneTest: test_date_assignment
58
+ --------------------------------------
59
+  (0.1ms) rollback transaction
60
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+  (0.1ms) begin transaction
62
+ ------------------------------------------------
63
+ DateTimezoneTest: test_time_with_zone_assignment
64
+ ------------------------------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ --------------------------------------
68
+ DateTimezoneTest: test_time_assignment
69
+ --------------------------------------
70
+  (0.0ms) rollback transaction
71
+  (0.2ms) begin transaction
72
+ --------------------------------------
73
+ DateTimezoneTest: test_date_assignment
74
+ --------------------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.1ms) begin transaction
77
+ ----------------------------
78
+ DateTimezoneTest: test_truth
79
+ ----------------------------
80
+  (0.0ms) rollback transaction
81
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
82
+  (0.1ms) begin transaction
83
+ --------------------------------------
84
+ DateTimezoneTest: test_date_assignment
85
+ --------------------------------------
86
+  (0.2ms) rollback transaction
87
+  (0.1ms) begin transaction
88
+ --------------------------------------------
89
+ DateTimezoneTest: test_ISO_string_assignment
90
+ --------------------------------------------
91
+  (0.1ms) rollback transaction
92
+  (0.1ms) begin transaction
93
+ --------------------------------------
94
+ DateTimezoneTest: test_time_assignment
95
+ --------------------------------------
96
+  (0.1ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+ ------------------------------------------------
99
+ DateTimezoneTest: test_time_with_zone_assignment
100
+ ------------------------------------------------
101
+  (0.1ms) rollback transaction
102
+  (0.1ms) begin transaction
103
+ ----------------------------
104
+ DateTimezoneTest: test_truth
105
+ ----------------------------
106
+  (0.1ms) rollback transaction
107
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
108
+  (0.2ms) begin transaction
109
+ --------------------------------------------
110
+ DateTimezoneTest: test_ISO_string_assignment
111
+ --------------------------------------------
112
+  (0.2ms) rollback transaction
113
+  (0.1ms) begin transaction
114
+ --------------------------------------
115
+ DateTimezoneTest: test_date_assignment
116
+ --------------------------------------
117
+  (0.1ms) rollback transaction
118
+  (0.1ms) begin transaction
119
+ --------------------------------------
120
+ DateTimezoneTest: test_time_assignment
121
+ --------------------------------------
122
+  (0.1ms) rollback transaction
123
+  (0.1ms) begin transaction
124
+ ------------------------------------------------
125
+ DateTimezoneTest: test_time_with_zone_assignment
126
+ ------------------------------------------------
127
+  (0.1ms) rollback transaction
128
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
+  (0.1ms) begin transaction
130
+ --------------------------------------------
131
+ DateTimezoneTest: test_ISO_string_assignment
132
+ --------------------------------------------
133
+  (0.1ms) rollback transaction
134
+  (0.1ms) begin transaction
135
+ --------------------------------------
136
+ DateTimezoneTest: test_time_assignment
137
+ --------------------------------------
138
+  (0.1ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+ --------------------------------------
141
+ DateTimezoneTest: test_date_assignment
142
+ --------------------------------------
143
+  (0.1ms) rollback transaction
144
+  (0.1ms) begin transaction
145
+ ------------------------------------------------
146
+ DateTimezoneTest: test_time_with_zone_assignment
147
+ ------------------------------------------------
148
+  (0.0ms) rollback transaction
149
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
150
+  (0.1ms) begin transaction
151
+ ------------------------------------------------
152
+ DateTimezoneTest: test_time_with_zone_assignment
153
+ ------------------------------------------------
154
+  (0.1ms) rollback transaction
155
+  (0.1ms) begin transaction
156
+ --------------------------------------
157
+ DateTimezoneTest: test_date_assignment
158
+ --------------------------------------
159
+  (0.1ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+ --------------------------------------------
162
+ DateTimezoneTest: test_ISO_string_assignment
163
+ --------------------------------------------
164
+  (0.1ms) rollback transaction
165
+  (0.1ms) begin transaction
166
+ --------------------------------------
167
+ DateTimezoneTest: test_time_assignment
168
+ --------------------------------------
169
+  (0.1ms) rollback transaction
170
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
171
+  (0.2ms) begin transaction
172
+ ------------------------------------------------
173
+ DateTimezoneTest: test_time_with_zone_assignment
174
+ ------------------------------------------------
175
+  (0.1ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ --------------------------------------
178
+ DateTimezoneTest: test_time_assignment
179
+ --------------------------------------
180
+  (0.1ms) rollback transaction
181
+  (0.2ms) begin transaction
182
+ --------------------------------------------
183
+ DateTimezoneTest: test_ISO_string_assignment
184
+ --------------------------------------------
185
+  (0.1ms) rollback transaction
186
+  (0.2ms) begin transaction
187
+ --------------------------------------
188
+ DateTimezoneTest: test_date_assignment
189
+ --------------------------------------
190
+  (0.0ms) rollback transaction
191
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
192
+  (0.1ms) begin transaction
193
+ ---------------------------------------------
194
+ DateTimezoneTest: test_date_string_assignment
195
+ ---------------------------------------------
196
+  (0.1ms) rollback transaction
197
+  (0.1ms) begin transaction
198
+ --------------------------------------
199
+ DateTimezoneTest: test_date_assignment
200
+ --------------------------------------
201
+  (0.1ms) rollback transaction
202
+  (0.1ms) begin transaction
203
+ ------------------------------------------------
204
+ DateTimezoneTest: test_time_with_zone_assignment
205
+ ------------------------------------------------
206
+  (0.1ms) rollback transaction
207
+  (0.1ms) begin transaction
208
+ ------------------------------------------------------
209
+ DateTimezoneTest: test_ISO_date_time_string_assignment
210
+ ------------------------------------------------------
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ --------------------------------------
214
+ DateTimezoneTest: test_time_assignment
215
+ --------------------------------------
216
+  (0.0ms) rollback transaction
217
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+  (0.1ms) begin transaction
219
+ ------------------------------------------------
220
+ DateTimezoneTest: test_time_with_zone_assignment
221
+ ------------------------------------------------
222
+  (0.1ms) rollback transaction
223
+  (0.1ms) begin transaction
224
+ ------------------------------------------------------
225
+ DateTimezoneTest: test_ISO_date_time_string_assignment
226
+ ------------------------------------------------------
227
+  (0.1ms) rollback transaction
228
+  (0.1ms) begin transaction
229
+ -------------------------------------
230
+ DateTimezoneTest: test_nil_assignment
231
+ -------------------------------------
232
+  (0.1ms) rollback transaction
233
+  (0.1ms) begin transaction
234
+ --------------------------------------
235
+ DateTimezoneTest: test_date_assignment
236
+ --------------------------------------
237
+  (0.0ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+ --------------------------------------
240
+ DateTimezoneTest: test_time_assignment
241
+ --------------------------------------
242
+  (0.0ms) rollback transaction
243
+  (0.1ms) begin transaction
244
+ ---------------------------------------------
245
+ DateTimezoneTest: test_date_string_assignment
246
+ ---------------------------------------------
247
+  (0.0ms) rollback transaction
248
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
249
+  (0.1ms) begin transaction
250
+ ---------------------------------------------
251
+ DateTimezoneTest: test_date_string_assignment
252
+ ---------------------------------------------
253
+  (0.1ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+ -------------------------------------
256
+ DateTimezoneTest: test_nil_assignment
257
+ -------------------------------------
258
+  (0.1ms) rollback transaction
259
+  (0.2ms) begin transaction
260
+ --------------------------------------------------
261
+ DateTimezoneTest: test_arbitrary_string_assignment
262
+ --------------------------------------------------
263
+  (0.1ms) rollback transaction
264
+  (0.2ms) begin transaction
265
+ --------------------------------------
266
+ DateTimezoneTest: test_time_assignment
267
+ --------------------------------------
268
+  (0.1ms) rollback transaction
269
+  (0.2ms) begin transaction
270
+ ------------------------------------------------------
271
+ DateTimezoneTest: test_ISO_date_time_string_assignment
272
+ ------------------------------------------------------
273
+  (0.0ms) rollback transaction
274
+  (0.1ms) begin transaction
275
+ ------------------------------------------------
276
+ DateTimezoneTest: test_time_with_zone_assignment
277
+ ------------------------------------------------
278
+  (0.0ms) rollback transaction
279
+  (0.1ms) begin transaction
280
+ --------------------------------------
281
+ DateTimezoneTest: test_date_assignment
282
+ --------------------------------------
283
+  (0.0ms) rollback transaction
284
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
285
+  (0.2ms) begin transaction
286
+ ------------------------------------------------------
287
+ DateTimezoneTest: test_ISO_date_time_string_assignment
288
+ ------------------------------------------------------
289
+  (0.1ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+ --------------------------------------
292
+ DateTimezoneTest: test_date_assignment
293
+ --------------------------------------
294
+  (0.1ms) rollback transaction
295
+  (0.1ms) begin transaction
296
+ ------------------------------------------------
297
+ DateTimezoneTest: test_time_with_zone_assignment
298
+ ------------------------------------------------
299
+  (0.1ms) rollback transaction
300
+  (0.1ms) begin transaction
301
+ --------------------------------------
302
+ DateTimezoneTest: test_time_assignment
303
+ --------------------------------------
304
+  (0.1ms) rollback transaction
305
+  (0.1ms) begin transaction
306
+ --------------------------------------------------
307
+ DateTimezoneTest: test_arbitrary_string_assignment
308
+ --------------------------------------------------
309
+  (0.1ms) rollback transaction
310
+  (0.1ms) begin transaction
311
+ -------------------------------------
312
+ DateTimezoneTest: test_nil_assignment
313
+ -------------------------------------
314
+  (0.0ms) rollback transaction
315
+  (0.1ms) begin transaction
316
+ ---------------------------------------------
317
+ DateTimezoneTest: test_date_string_assignment
318
+ ---------------------------------------------
319
+  (0.0ms) rollback transaction
320
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
321
+  (0.1ms) begin transaction
322
+ ---------------------------------------------------------
323
+ DateTimezoneTest: test_date_string_assignment_should_work
324
+ ---------------------------------------------------------
325
+  (0.2ms) rollback transaction
326
+  (0.2ms) begin transaction
327
+ ------------------------------------------------------------------------------------
328
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
329
+ ------------------------------------------------------------------------------------
330
+  (0.1ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+ ---------------------------------------------------
333
+ DateTimezoneTest: test_nil_assignment_should_be_nil
334
+ ---------------------------------------------------
335
+  (0.0ms) rollback transaction
336
+  (0.1ms) begin transaction
337
+ ------------------------------------------------------------
338
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
339
+ ------------------------------------------------------------
340
+  (0.0ms) rollback transaction
341
+  (0.1ms) begin transaction
342
+ --------------------------------------------------------------------------------
343
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
344
+ --------------------------------------------------------------------------------
345
+  (0.0ms) rollback transaction
346
+  (0.2ms) begin transaction
347
+ --------------------------------------------------
348
+ DateTimezoneTest: test_date_assignment_should_work
349
+ --------------------------------------------------
350
+  (0.0ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ --------------------------------------------------
353
+ DateTimezoneTest: test_time_assignment_should_work
354
+ --------------------------------------------------
355
+  (0.0ms) rollback transaction
356
+  (0.2ms) begin transaction
357
+ ----------------------------------------------------------------
358
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
359
+ ----------------------------------------------------------------
360
+  (0.0ms) rollback transaction
361
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
362
+  (0.1ms) begin transaction
363
+ --------------------------------------------------------------------------------
364
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
365
+ --------------------------------------------------------------------------------
366
+  (0.1ms) rollback transaction
367
+  (0.1ms) begin transaction
368
+ ------------------------------------------------------------------------------------
369
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
370
+ ------------------------------------------------------------------------------------
371
+  (0.1ms) rollback transaction
372
+  (0.1ms) begin transaction
373
+ --------------------------------------------------
374
+ DateTimezoneTest: test_time_assignment_should_work
375
+ --------------------------------------------------
376
+  (0.1ms) rollback transaction
377
+  (0.1ms) begin transaction
378
+ --------------------------------------------------
379
+ DateTimezoneTest: test_date_assignment_should_work
380
+ --------------------------------------------------
381
+  (0.0ms) rollback transaction
382
+  (0.1ms) begin transaction
383
+ ----------------------------------------------------------------
384
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
385
+ ----------------------------------------------------------------
386
+  (0.1ms) rollback transaction
387
+  (0.1ms) begin transaction
388
+ ---------------------------------------------------
389
+ DateTimezoneTest: test_nil_assignment_should_be_nil
390
+ ---------------------------------------------------
391
+  (0.0ms) rollback transaction
392
+  (0.1ms) begin transaction
393
+ ---------------------------------------------------------
394
+ DateTimezoneTest: test_date_string_assignment_should_work
395
+ ---------------------------------------------------------
396
+  (0.2ms) rollback transaction
397
+  (0.1ms) begin transaction
398
+ ------------------------------------------------------------
399
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
400
+ ------------------------------------------------------------
401
+  (0.1ms) rollback transaction
402
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
403
+  (0.2ms) begin transaction
404
+ --------------------------
405
+ DateTimezoneTest: test_foo
406
+ --------------------------
407
+  (0.2ms) rollback transaction
408
+  (0.1ms) begin transaction
409
+ --------------------------------------------------
410
+ DateTimezoneTest: test_time_assignment_should_work
411
+ --------------------------------------------------
412
+  (0.1ms) rollback transaction
413
+  (0.2ms) begin transaction
414
+ ---------------------------------------------------
415
+ DateTimezoneTest: test_nil_assignment_should_be_nil
416
+ ---------------------------------------------------
417
+  (0.0ms) rollback transaction
418
+  (0.2ms) begin transaction
419
+ ---------------------------------------------------------
420
+ DateTimezoneTest: test_date_string_assignment_should_work
421
+ ---------------------------------------------------------
422
+  (0.1ms) rollback transaction
423
+  (0.1ms) begin transaction
424
+ ----------------------------------------------------------------
425
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
426
+ ----------------------------------------------------------------
427
+  (0.1ms) rollback transaction
428
+  (0.1ms) begin transaction
429
+ --------------------------------------------------------------------------------
430
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
431
+ --------------------------------------------------------------------------------
432
+  (0.1ms) rollback transaction
433
+  (0.1ms) begin transaction
434
+ ------------------------------------------------------------
435
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
436
+ ------------------------------------------------------------
437
+  (0.1ms) rollback transaction
438
+  (0.1ms) begin transaction
439
+ ------------------------------------------------------------------------------------
440
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
441
+ ------------------------------------------------------------------------------------
442
+  (0.1ms) rollback transaction
443
+  (0.1ms) begin transaction
444
+ --------------------------------------------------
445
+ DateTimezoneTest: test_date_assignment_should_work
446
+ --------------------------------------------------
447
+  (0.0ms) rollback transaction
448
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
449
+  (0.2ms) begin transaction
450
+ ------------------------------------------------------------
451
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
452
+ ------------------------------------------------------------
453
+  (0.2ms) rollback transaction
454
+  (0.1ms) begin transaction
455
+ ---------------------------------------------------
456
+ DateTimezoneTest: test_nil_assignment_should_be_nil
457
+ ---------------------------------------------------
458
+  (0.1ms) rollback transaction
459
+  (0.1ms) begin transaction
460
+ ---------------------------------------------------------
461
+ DateTimezoneTest: test_date_string_assignment_should_work
462
+ ---------------------------------------------------------
463
+  (0.1ms) rollback transaction
464
+  (0.1ms) begin transaction
465
+ --------------------------------------------------------------------------------
466
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
467
+ --------------------------------------------------------------------------------
468
+  (0.1ms) rollback transaction
469
+  (0.1ms) begin transaction
470
+ --------------------------------------------------
471
+ DateTimezoneTest: test_time_assignment_should_work
472
+ --------------------------------------------------
473
+  (0.0ms) rollback transaction
474
+  (0.0ms) begin transaction
475
+ ------------------------------------------------------------------------------------
476
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
477
+ ------------------------------------------------------------------------------------
478
+  (0.1ms) rollback transaction
479
+  (0.1ms) begin transaction
480
+ --------------------------
481
+ DateTimezoneTest: test_foo
482
+ --------------------------
483
+  (0.1ms) rollback transaction
484
+  (0.1ms) begin transaction
485
+ ----------------------------------------------------------------
486
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
487
+ ----------------------------------------------------------------
488
+  (0.1ms) rollback transaction
489
+  (0.1ms) begin transaction
490
+ --------------------------------------------------
491
+ DateTimezoneTest: test_date_assignment_should_work
492
+ --------------------------------------------------
493
+  (0.0ms) rollback transaction
494
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
495
+  (0.2ms) begin transaction
496
+ ------------------------------------------------------------------------------------
497
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
498
+ ------------------------------------------------------------------------------------
499
+  (0.1ms) rollback transaction
500
+  (0.1ms) begin transaction
501
+ --------------------------------------------------
502
+ DateTimezoneTest: test_date_assignment_should_work
503
+ --------------------------------------------------
504
+  (0.1ms) rollback transaction
505
+  (0.1ms) begin transaction
506
+ ---------------------------------------------------------
507
+ DateTimezoneTest: test_date_string_assignment_should_work
508
+ ---------------------------------------------------------
509
+  (0.1ms) rollback transaction
510
+  (0.1ms) begin transaction
511
+ ----------------------------------------------------------------
512
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
513
+ ----------------------------------------------------------------
514
+  (0.1ms) rollback transaction
515
+  (0.2ms) begin transaction
516
+ --------------------------------------------------------------------------------
517
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
518
+ --------------------------------------------------------------------------------
519
+  (0.1ms) rollback transaction
520
+  (0.1ms) begin transaction
521
+ --------------------------
522
+ DateTimezoneTest: test_foo
523
+ --------------------------
524
+  (0.1ms) rollback transaction
525
+  (0.1ms) begin transaction
526
+ ---------------------------------------------------
527
+ DateTimezoneTest: test_nil_assignment_should_be_nil
528
+ ---------------------------------------------------
529
+  (0.0ms) rollback transaction
530
+  (0.2ms) begin transaction
531
+ --------------------------------------------------
532
+ DateTimezoneTest: test_time_assignment_should_work
533
+ --------------------------------------------------
534
+  (0.1ms) rollback transaction
535
+  (0.1ms) begin transaction
536
+ ------------------------------------------------------------
537
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
538
+ ------------------------------------------------------------
539
+  (0.1ms) rollback transaction
540
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
541
+  (0.1ms) begin transaction
542
+ --------------------------------------------------
543
+ DateTimezoneTest: test_time_assignment_should_work
544
+ --------------------------------------------------
545
+  (0.1ms) rollback transaction
546
+  (0.1ms) begin transaction
547
+ ------------------------------------------------------------
548
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
549
+ ------------------------------------------------------------
550
+  (0.1ms) rollback transaction
551
+  (0.2ms) begin transaction
552
+ ----------------------------------------------------------------
553
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
554
+ ----------------------------------------------------------------
555
+  (0.1ms) rollback transaction
556
+  (0.2ms) begin transaction
557
+ ------------------------------------------------------------------------------------
558
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
559
+ ------------------------------------------------------------------------------------
560
+  (0.1ms) rollback transaction
561
+  (0.1ms) begin transaction
562
+ --------------------------------------------------------------------------------
563
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
564
+ --------------------------------------------------------------------------------
565
+  (0.1ms) rollback transaction
566
+  (0.1ms) begin transaction
567
+ ---------------------------------------------------------------------
568
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
569
+ ---------------------------------------------------------------------
570
+  (0.1ms) rollback transaction
571
+  (0.1ms) begin transaction
572
+ -------------------------------------------------------------------
573
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
574
+ -------------------------------------------------------------------
575
+  (0.0ms) rollback transaction
576
+  (0.1ms) begin transaction
577
+ ---------------------------------------------------------
578
+ DateTimezoneTest: test_date_string_assignment_should_work
579
+ ---------------------------------------------------------
580
+  (0.0ms) rollback transaction
581
+  (0.2ms) begin transaction
582
+ --------------------------------------------------
583
+ DateTimezoneTest: test_date_assignment_should_work
584
+ --------------------------------------------------
585
+  (0.0ms) rollback transaction
586
+  (0.1ms) begin transaction
587
+ ---------------------------------------------------
588
+ DateTimezoneTest: test_nil_assignment_should_be_nil
589
+ ---------------------------------------------------
590
+  (0.0ms) rollback transaction
591
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
592
+  (0.1ms) begin transaction
593
+ ------------------------------------------------------------------------------------
594
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
595
+ ------------------------------------------------------------------------------------
596
+  (0.1ms) rollback transaction
597
+  (0.1ms) begin transaction
598
+ --------------------------------------------------------------------------------
599
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
600
+ --------------------------------------------------------------------------------
601
+  (0.1ms) rollback transaction
602
+  (0.1ms) begin transaction
603
+ ------------------------------------------------------------
604
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
605
+ ------------------------------------------------------------
606
+  (0.0ms) rollback transaction
607
+  (0.1ms) begin transaction
608
+ -------------------------------------------------------------------
609
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
610
+ -------------------------------------------------------------------
611
+  (0.2ms) rollback transaction
612
+  (0.1ms) begin transaction
613
+ ---------------------------------------------------------
614
+ DateTimezoneTest: test_date_string_assignment_should_work
615
+ ---------------------------------------------------------
616
+  (0.1ms) rollback transaction
617
+  (0.1ms) begin transaction
618
+ ---------------------------------------------------------------------
619
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
620
+ ---------------------------------------------------------------------
621
+  (0.1ms) rollback transaction
622
+  (0.4ms) begin transaction
623
+ ---------------------------------------------------
624
+ DateTimezoneTest: test_nil_assignment_should_be_nil
625
+ ---------------------------------------------------
626
+  (0.1ms) rollback transaction
627
+  (0.1ms) begin transaction
628
+ --------------------------------------------------
629
+ DateTimezoneTest: test_date_assignment_should_work
630
+ --------------------------------------------------
631
+  (0.1ms) rollback transaction
632
+  (0.1ms) begin transaction
633
+ --------------------------------------------------
634
+ DateTimezoneTest: test_time_assignment_should_work
635
+ --------------------------------------------------
636
+  (0.1ms) rollback transaction
637
+  (0.1ms) begin transaction
638
+ ----------------------------------------------------------------
639
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
640
+ ----------------------------------------------------------------
641
+  (0.1ms) rollback transaction
642
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
643
+  (0.1ms) begin transaction
644
+ ----------------------------------------------------------------
645
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
646
+ ----------------------------------------------------------------
647
+  (0.1ms) rollback transaction
648
+  (0.2ms) begin transaction
649
+ -------------------------------------------------------------------
650
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
651
+ -------------------------------------------------------------------
652
+  (0.1ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+ ------------------------------------------------------------
655
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
656
+ ------------------------------------------------------------
657
+  (0.0ms) rollback transaction
658
+  (0.1ms) begin transaction
9
659
  ---------------------------------------------------
10
660
  DateTimezoneTest: test_nil_assignment_should_be_nil
11
661
  ---------------------------------------------------
662
+  (0.0ms) rollback transaction
663
+  (0.1ms) begin transaction
664
+ --------------------------------------------------
665
+ DateTimezoneTest: test_time_assignment_should_work
666
+ --------------------------------------------------
667
+  (0.0ms) rollback transaction
668
+  (0.1ms) begin transaction
669
+ ------------------------------------------------------------------------------------
670
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
671
+ ------------------------------------------------------------------------------------
12
672
   (0.1ms) rollback transaction
13
-  (0.0ms) begin transaction
673
+  (0.1ms) begin transaction
674
+ ---------------------------------------------------------
675
+ DateTimezoneTest: test_date_string_assignment_should_work
676
+ ---------------------------------------------------------
677
+  (0.0ms) rollback transaction
678
+  (0.1ms) begin transaction
679
+ --------------------------------------------------------------------------------
680
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
681
+ --------------------------------------------------------------------------------
682
+  (0.0ms) rollback transaction
683
+  (0.1ms) begin transaction
684
+ --------------------------------------------------
685
+ DateTimezoneTest: test_date_assignment_should_work
686
+ --------------------------------------------------
687
+  (0.0ms) rollback transaction
688
+  (0.1ms) begin transaction
689
+ ---------------------------------------------------------------------
690
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
691
+ ---------------------------------------------------------------------
692
+  (0.0ms) rollback transaction
693
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
694
+  (0.1ms) begin transaction
695
+ --------------------------------------------------------------------------------
696
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
697
+ --------------------------------------------------------------------------------
698
+  (0.1ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+ ------------------------------------------------------------------------------------
701
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
702
+ ------------------------------------------------------------------------------------
703
+  (0.0ms) rollback transaction
704
+  (0.1ms) begin transaction
705
+ ---------------------------------------------------------------------
706
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
707
+ ---------------------------------------------------------------------
708
+  (0.0ms) rollback transaction
709
+  (0.1ms) begin transaction
710
+ ---------------------------------------------------------
711
+ DateTimezoneTest: test_date_string_assignment_should_work
712
+ ---------------------------------------------------------
713
+  (0.0ms) rollback transaction
714
+  (0.2ms) begin transaction
715
+ -------------------------------------------------------------------
716
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
717
+ -------------------------------------------------------------------
718
+  (0.0ms) rollback transaction
719
+  (0.1ms) begin transaction
720
+ --------------------------------------------------
721
+ DateTimezoneTest: test_date_assignment_should_work
722
+ --------------------------------------------------
723
+  (0.0ms) rollback transaction
724
+  (0.2ms) begin transaction
725
+ ------------------------------------------------------------
726
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
727
+ ------------------------------------------------------------
728
+  (0.0ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+ ---------------------------------------------------
731
+ DateTimezoneTest: test_nil_assignment_should_be_nil
732
+ ---------------------------------------------------
733
+  (0.0ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+ --------------------------------------------------
736
+ DateTimezoneTest: test_time_assignment_should_work
737
+ --------------------------------------------------
738
+  (0.0ms) rollback transaction
739
+  (0.1ms) begin transaction
740
+ ----------------------------------------------------------------
741
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
742
+ ----------------------------------------------------------------
743
+  (0.0ms) rollback transaction
744
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
745
+  (0.1ms) begin transaction
14
746
  ---------------------------------------------------------
15
747
  DateTimezoneTest: test_date_string_assignment_should_work
16
748
  ---------------------------------------------------------
749
+  (0.1ms) rollback transaction
750
+  (0.1ms) begin transaction
751
+ ----------------------------------------------------------------
752
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
753
+ ----------------------------------------------------------------
17
754
   (0.0ms) rollback transaction
18
755
   (0.1ms) begin transaction
19
756
  ------------------------------------------------------------------------------------
20
757
  DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
21
758
  ------------------------------------------------------------------------------------
759
+  (0.0ms) rollback transaction
760
+  (0.2ms) begin transaction
761
+ --------------------------------------------------
762
+ DateTimezoneTest: test_date_assignment_should_work
763
+ --------------------------------------------------
764
+  (0.0ms) rollback transaction
765
+  (0.2ms) begin transaction
766
+ ---------------------------------------------------
767
+ DateTimezoneTest: test_nil_assignment_should_be_nil
768
+ ---------------------------------------------------
22
769
   (0.0ms) rollback transaction
23
770
   (0.1ms) begin transaction
24
771
  --------------------------------------------------------------------------------
@@ -30,18 +777,222 @@ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
30
777
  DateTimezoneTest: test_time_with_zone_assignment_should_work
31
778
  ------------------------------------------------------------
32
779
   (0.0ms) rollback transaction
33
-  (0.0ms) begin transaction
780
+  (0.1ms) begin transaction
34
781
  --------------------------------------------------
35
782
  DateTimezoneTest: test_time_assignment_should_work
36
783
  --------------------------------------------------
37
784
   (0.0ms) rollback transaction
38
-  (0.0ms) begin transaction
785
+  (0.1ms) begin transaction
786
+ ---------------------------------------------------------------------
787
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
788
+ ---------------------------------------------------------------------
789
+  (0.0ms) rollback transaction
790
+  (0.1ms) begin transaction
791
+ -------------------------------------------------------------------
792
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
793
+ -------------------------------------------------------------------
794
+  (0.0ms) rollback transaction
795
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
796
+  (0.2ms) begin transaction
797
+ ------------------------------------------------------------------------------------
798
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
799
+ ------------------------------------------------------------------------------------
800
+  (0.1ms) rollback transaction
801
+  (0.1ms) begin transaction
39
802
  ----------------------------------------------------------------
40
803
  DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
41
804
  ----------------------------------------------------------------
42
805
   (0.1ms) rollback transaction
43
-  (0.0ms) begin transaction
806
+  (0.1ms) begin transaction
807
+ ------------------------------------------------------------
808
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
809
+ ------------------------------------------------------------
810
+  (0.1ms) rollback transaction
811
+  (0.1ms) begin transaction
812
+ --------------------------------------------------
813
+ DateTimezoneTest: test_date_assignment_should_work
814
+ --------------------------------------------------
815
+  (0.1ms) rollback transaction
816
+  (0.1ms) begin transaction
817
+ ---------------------------------------------------------------------
818
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
819
+ ---------------------------------------------------------------------
820
+  (0.0ms) rollback transaction
821
+  (0.1ms) begin transaction
822
+ --------------------------------------------------
823
+ DateTimezoneTest: test_time_assignment_should_work
824
+ --------------------------------------------------
825
+  (0.0ms) rollback transaction
826
+  (0.1ms) begin transaction
827
+ ---------------------------------------------------
828
+ DateTimezoneTest: test_nil_assignment_should_be_nil
829
+ ---------------------------------------------------
830
+  (0.0ms) rollback transaction
831
+  (0.1ms) begin transaction
832
+ --------------------------------------------------------------------------------
833
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
834
+ --------------------------------------------------------------------------------
835
+  (0.1ms) rollback transaction
836
+  (0.1ms) begin transaction
837
+ ---------------------------------------------------------
838
+ DateTimezoneTest: test_date_string_assignment_should_work
839
+ ---------------------------------------------------------
840
+  (0.0ms) rollback transaction
841
+  (0.1ms) begin transaction
842
+ -------------------------------------------------------------------
843
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
844
+ -------------------------------------------------------------------
845
+  (0.0ms) rollback transaction
846
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
847
+  (0.1ms) begin transaction
848
+ ----------------------------------------------------------------
849
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
850
+ ----------------------------------------------------------------
851
+  (0.1ms) rollback transaction
852
+  (0.1ms) begin transaction
853
+ ------------------------------------------------------------
854
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
855
+ ------------------------------------------------------------
856
+  (0.0ms) rollback transaction
857
+  (0.1ms) begin transaction
858
+ -------------------------------------------------------------------
859
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
860
+ -------------------------------------------------------------------
861
+  (0.0ms) rollback transaction
862
+  (0.2ms) begin transaction
863
+ ---------------------------------------------------
864
+ DateTimezoneTest: test_nil_assignment_should_be_nil
865
+ ---------------------------------------------------
866
+  (0.0ms) rollback transaction
867
+  (0.1ms) begin transaction
868
+ ---------------------------------------------------------
869
+ DateTimezoneTest: test_date_string_assignment_should_work
870
+ ---------------------------------------------------------
871
+  (0.1ms) rollback transaction
872
+  (0.1ms) begin transaction
873
+ --------------------------------------------------
874
+ DateTimezoneTest: test_date_assignment_should_work
875
+ --------------------------------------------------
876
+  (0.0ms) rollback transaction
877
+  (0.1ms) begin transaction
878
+ --------------------------------------------------
879
+ DateTimezoneTest: test_time_assignment_should_work
880
+ --------------------------------------------------
881
+  (0.0ms) rollback transaction
882
+  (0.1ms) begin transaction
883
+ ---------------------------------------------------------------------
884
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
885
+ ---------------------------------------------------------------------
886
+  (0.0ms) rollback transaction
887
+  (0.1ms) begin transaction
888
+ --------------------------------------------------------------------------------
889
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
890
+ --------------------------------------------------------------------------------
891
+  (0.0ms) rollback transaction
892
+  (0.2ms) begin transaction
893
+ ------------------------------------------------------------------------------------
894
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
895
+ ------------------------------------------------------------------------------------
896
+  (0.0ms) rollback transaction
897
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
898
+  (0.1ms) begin transaction
899
+ -------------------------------------------------------------------
900
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
901
+ -------------------------------------------------------------------
902
+  (0.2ms) rollback transaction
903
+  (0.1ms) begin transaction
904
+ ------------------------------------------------------------
905
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
906
+ ------------------------------------------------------------
907
+  (0.1ms) rollback transaction
908
+  (0.1ms) begin transaction
909
+ ----------------------------------------------------------------
910
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
911
+ ----------------------------------------------------------------
912
+  (0.1ms) rollback transaction
913
+  (0.1ms) begin transaction
914
+ --------------------------------------------------
915
+ DateTimezoneTest: test_time_assignment_should_work
916
+ --------------------------------------------------
917
+  (0.0ms) rollback transaction
918
+  (0.1ms) begin transaction
919
+ --------------------------------------------------------------------------------
920
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
921
+ --------------------------------------------------------------------------------
922
+  (0.1ms) rollback transaction
923
+  (0.1ms) begin transaction
924
+ ---------------------------------------------------------------------
925
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
926
+ ---------------------------------------------------------------------
927
+  (0.0ms) rollback transaction
928
+  (0.1ms) begin transaction
929
+ ---------------------------------------------------------
930
+ DateTimezoneTest: test_date_string_assignment_should_work
931
+ ---------------------------------------------------------
932
+  (0.1ms) rollback transaction
933
+  (0.2ms) begin transaction
934
+ ---------------------------------------------------
935
+ DateTimezoneTest: test_nil_assignment_should_be_nil
936
+ ---------------------------------------------------
937
+  (0.0ms) rollback transaction
938
+  (0.1ms) begin transaction
939
+ --------------------------------------------------
940
+ DateTimezoneTest: test_date_assignment_should_work
941
+ --------------------------------------------------
942
+  (0.1ms) rollback transaction
943
+  (0.1ms) begin transaction
944
+ ------------------------------------------------------------------------------------
945
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
946
+ ------------------------------------------------------------------------------------
947
+  (0.1ms) rollback transaction
948
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
949
+  (0.1ms) begin transaction
950
+ ---------------------------------------------------
951
+ DateTimezoneTest: test_nil_assignment_should_be_nil
952
+ ---------------------------------------------------
953
+  (0.1ms) rollback transaction
954
+  (0.1ms) begin transaction
44
955
  --------------------------------------------------
45
956
  DateTimezoneTest: test_date_assignment_should_work
46
957
  --------------------------------------------------
47
958
   (0.0ms) rollback transaction
959
+  (0.1ms) begin transaction
960
+ ------------------------------------------------------------------------------------
961
+ DateTimezoneTest: test_UTC_ISO_date_time_string_assignment_should_work_with_timezone
962
+ ------------------------------------------------------------------------------------
963
+  (0.1ms) rollback transaction
964
+  (0.1ms) begin transaction
965
+ ---------------------------------------------------------------------
966
+ DateTimezoneTest: test_local_time_without_zone_assignment_should_work
967
+ ---------------------------------------------------------------------
968
+  (0.0ms) rollback transaction
969
+  (0.1ms) begin transaction
970
+ --------------------------------------------------------------------------------
971
+ DateTimezoneTest: test_ISO_date_time_string_with_timezone_assignment_should_work
972
+ --------------------------------------------------------------------------------
973
+  (0.1ms) rollback transaction
974
+  (0.2ms) begin transaction
975
+ -------------------------------------------------------------------
976
+ DateTimezoneTest: test_utc_time_without_zone_assignment_should_work
977
+ -------------------------------------------------------------------
978
+  (0.0ms) rollback transaction
979
+  (0.1ms) begin transaction
980
+ ------------------------------------------------------------
981
+ DateTimezoneTest: test_time_with_zone_assignment_should_work
982
+ ------------------------------------------------------------
983
+  (0.0ms) rollback transaction
984
+  (0.1ms) begin transaction
985
+ --------------------------------------------------
986
+ DateTimezoneTest: test_time_assignment_should_work
987
+ --------------------------------------------------
988
+  (0.0ms) rollback transaction
989
+  (0.2ms) begin transaction
990
+ ---------------------------------------------------------
991
+ DateTimezoneTest: test_date_string_assignment_should_work
992
+ ---------------------------------------------------------
993
+  (0.0ms) rollback transaction
994
+  (0.2ms) begin transaction
995
+ ----------------------------------------------------------------
996
+ DateTimezoneTest: test_arbitrary_string_assignment_should_be_nil
997
+ ----------------------------------------------------------------
998
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_timezone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuhei Kagawa
@@ -83,9 +83,11 @@ files:
83
83
  - test/dummy/config/locales/en.yml
84
84
  - test/dummy/config/routes.rb
85
85
  - test/dummy/config/secrets.yml
86
+ - test/dummy/db/development.sqlite3
86
87
  - test/dummy/db/migrate/20150227164309_create_people.rb
87
88
  - test/dummy/db/schema.rb
88
89
  - test/dummy/db/test.sqlite3
90
+ - test/dummy/log/development.log
89
91
  - test/dummy/log/test.log
90
92
  - test/dummy/public/404.html
91
93
  - test/dummy/public/422.html
@@ -114,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
116
  version: '0'
115
117
  requirements: []
116
118
  rubyforge_project:
117
- rubygems_version: 2.2.2
119
+ rubygems_version: 2.4.5
118
120
  signing_key:
119
121
  specification_version: 4
120
122
  summary: An ActiveRecord concern for assigning date string with timezone
@@ -149,9 +151,11 @@ test_files:
149
151
  - test/dummy/config/routes.rb
150
152
  - test/dummy/config/secrets.yml
151
153
  - test/dummy/config.ru
154
+ - test/dummy/db/development.sqlite3
152
155
  - test/dummy/db/migrate/20150227164309_create_people.rb
153
156
  - test/dummy/db/schema.rb
154
157
  - test/dummy/db/test.sqlite3
158
+ - test/dummy/log/development.log
155
159
  - test/dummy/log/test.log
156
160
  - test/dummy/public/404.html
157
161
  - test/dummy/public/422.html