Fix Time.new deprecation warning

Enforce Crystal 0.28.0 or later
This commit is contained in:
Brian J. Cardiff 2019-06-04 17:54:24 -03:00
parent ba1763b3a3
commit 2bfda2aa13
2 changed files with 3 additions and 1 deletions

View file

@ -10,4 +10,6 @@ authors:
- Ary Borenszweig <aborenszweig@manas.tech>
- Brian J. Cardiff <bcardiff@manas.tech>
crystal: 0.28.0
license: MIT

View file

@ -35,7 +35,7 @@ DB::DriverSpecs(DB::Any).run do
sample_value 1.5, "float", "1.5"
sample_value Time.utc(2016, 2, 15), "text", "'2016-02-15 00:00:00.000'", type_safe_value: false
sample_value Time.utc(2016, 2, 15, 10, 15, 30), "text", "'2016-02-15 10:15:30.000'", type_safe_value: false
sample_value Time.new(2016, 2, 15, 7, 15, 30, location: Time::Location.fixed("fixed", -3*3600)), "text", "'2016-02-15 10:15:30.000'", type_safe_value: false
sample_value Time.local(2016, 2, 15, 7, 15, 30, location: Time::Location.fixed("fixed", -3*3600)), "text", "'2016-02-15 10:15:30.000'", type_safe_value: false
ary = UInt8[0x53, 0x51, 0x4C, 0x69, 0x74, 0x65]
sample_value Bytes.new(ary.to_unsafe, ary.size), "blob", "X'53514C697465'" # , type_safe_value: false