Skip to content

Releases: insha/salah

0.7.5: Fixing invalid minute value

21 Apr 22:44
0.7.5
0b777c3
Compare
Choose a tag to compare

Fixing the minute overflow value due to rounding up. This was causing chrono crate to panic because the value of the 60 minutes is invalid. The valid minute values are 0 to 59 for minutes (closes #14).

The chrono crate has also been updated to version 0.4.38.

🎩-tip to @Quicksilver151 submitting the issue.

0.7.1: Enhancing the Qiblah struct

14 Oct 03:22
03e2d62
Compare
Choose a tag to compare

The Qiblah struct now implements the Debug and Display traits that can be used for printing out the value of the Qiblah. The struct also gained a new method, value() for getting the f64 value of the direction. Also updating test to use the public interface and adding a new test to assert the display value of the Qiblah direction.

🎩-tip to @TheCodeHeist for bringing the issue to my attention.

Syncing up to Adhan v1.4.0

17 Sep 23:53
f88e3ee
Compare
Choose a tag to compare

Changes include:

  • Adding Shafaq enum
  • Adding Rounding enum; allows for customization on how the final prayer times are rounded using, Nearest, Up, or None variants
  • Adding Maghrib angle to the Parameter struct
  • Adding a proptery called rounding to the Parameter struct to use the Rounding enum
  • Adding a property called shafaq to the Parameter struct, using the Shafaq enum
  • Replaced nearest_minute method with rounded_minute; This method takes a parameter of type Rounding
  • Updating method signature of season_adjusted_evening_twilight(latitude:day:year:sunset:shafaq:) with the the Shafaq enum
  • Adding doc comments
  • Using the rounding method for Singapore Method
  • Adding Turkey to the Method enum
  • Adding Tehran to the Method enum; this method uses the newly added maghrib_angle property of the Parameter struct.
  • Adding recomended method; based on the latitude of the provided location a variant of the HighLatitudeRule is returned
  • Adding and updating tests
  • Code formatting
  • Updating copyright
  • Documenting changes in the readme.md file

This release fixes the wrong prayer times that were reported

12 Jan 20:22
d25ffe7
Compare
Choose a tag to compare

This release fixes the wrong prayer times that were reported (see issue #6). It also addressed all warnings that were raised when compiling the library.