Sha256: 2b093bd16df4b1824a3794992660c8a9e0423319acac4f9b30fc3b812c326b60
Contents?: true
Size: 841 Bytes
Versions: 6
Compression:
Stored size: 841 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../projects/iot", __dir__) require 'date' class InternalFunc def datetimenow() d_curr = DateTime.now time_zone = 'Europe/Minsk' DateTime.new .in_time_zone(time_zone) .change(year: d_curr.year, month: d_curr.month, day: d_curr.day, hour: d_curr.hour, min: d_curr.min, sec: d_curr.sec) end def check_pass_format(passw) if passw!=nil && passw!="" {:code=>200, :result=>"Request completed successfully", :body=>"Data checked"} else {:code=>500, :result=>"Request completed", :body=>"invalid password"} end end def printer_texter(text, log_level) mess = {:datetime => datetimenow, :sdk=> "imperituroard", :sdk_version=> Imperituroard::VERSION, :message => text} p mess end def test() p "eeeeeeeeeeeeeeeeeeeeeeee" end end
Version data entries
6 entries across 6 versions & 1 rubygems