sunriseset 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sunriseset.rb +3 -3
- data/test/manualtest.rb +1 -0
- metadata +1 -1
data/lib/sunriseset.rb
CHANGED
@@ -7,7 +7,7 @@ require 'date'
|
|
7
7
|
#and .vb versions too.
|
8
8
|
#All had the same comments, so are of a common origin.
|
9
9
|
class SunRiseSet
|
10
|
-
VERSION = '0.9.
|
10
|
+
VERSION = '0.9.1'
|
11
11
|
|
12
12
|
#because I live here
|
13
13
|
LATITUDE_DEFAULT= -(36.0 + 59.0/60.0 + 27.60/3600)
|
@@ -148,7 +148,7 @@ class SunRiseSet
|
|
148
148
|
newjd = findNextSunrise(@julian_day, @latitude, @longitude)
|
149
149
|
@sunrise = calcSunriseUTC(newjd) + @zone
|
150
150
|
else
|
151
|
-
raise
|
151
|
+
raise "Cannot Find Sunrise!"
|
152
152
|
end
|
153
153
|
|
154
154
|
end
|
@@ -169,7 +169,7 @@ class SunRiseSet
|
|
169
169
|
newjd = findRecentSunset(@julian_day, @latitude, @longitude)
|
170
170
|
@sunset = calcSunsetUTC(newjd) + @zone
|
171
171
|
else
|
172
|
-
raise
|
172
|
+
raise "Cannot Find Sunset!"
|
173
173
|
end
|
174
174
|
end
|
175
175
|
end
|
data/test/manualtest.rb
CHANGED