Compare commits

...

4 Commits

Author SHA1 Message Date
Nemo bfe26c05d8
Create FUNDING.yml 2022-05-30 14:50:12 +05:30
Nemo 707e66ba4b [ci] Travis crystal fixes 2021-05-11 15:01:10 +05:30
Nemo cfe5e60ecf [tests] Minor test fixes 2021-05-11 14:56:24 +05:30
Nemo 2e4dcfa752 Bump to new crystal 2021-01-08 01:23:31 +05:30
5 changed files with 14 additions and 9 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
ko_fi: captn3m0
liberapay: captn3m0
github: captn3m0

View File

@ -1,6 +1,8 @@
language: crystal
# Uncomment the following if you'd like Travis to run specs and check code formatting
# script:
# - crystal spec
# - crystal tool format --check
crystal:
- latest
script:
- crystal spec
- crystal tool format --check

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2020 Nemo
Copyright (c) 2021 Nemo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -5,6 +5,6 @@ description: A crystal shard to calculate sunrise and sunset times across the wo
authors:
- Nemo <me@captnemo.in>
crystal: 0.34.0
crystal: 0.35.1
license: MIT

View File

@ -3,7 +3,7 @@ require "./spec_helper"
describe Suntime do
it "should work for bangalore" do
bangalore_tz = Time::Location.load("Asia/Kolkata")
tt = Time.local(location: bangalore_tz)
tt = Time.local(2020, 5, 23, 14, 0, 0, location: bangalore_tz)
t = Suntime::Suntime.new(12.955800, 77.620979, tt)
a = t.sunrise
@ -12,7 +12,7 @@ describe Suntime do
a.day.should eq(23)
a.hour.should eq(5)
a.minute.should eq(52)
a.second.should eq(29)
a.second.should eq(30)
a.offset.should eq(5.5 * 60 * 60)
a.location.should eq bangalore_tz
@ -22,7 +22,7 @@ describe Suntime do
b.day.should eq(23)
b.hour.should eq(18)
b.minute.should eq(39)
b.second.should eq(28)
b.second.should eq(26)
b.offset.should eq(5.5 * 60 * 60)
b.location.should eq bangalore_tz
end