~azzamsa/bilal.rs

c87eeddd013e6ba86f7affef099be36bc6f63ec4 — azzamsa 6 months ago 4fa3c02 v0.1.6
v0.1.6
5 files changed, 32 insertions(+), 15 deletions(-)

M .builds/ci.yml
M CHANGELOG.md
M Cargo.lock
M Cargo.toml
M README.md
M .builds/ci.yml => .builds/ci.yml +22 -10
@@ 1,8 1,4 @@
image: alpine/3.12

packages:
  - rust
  - cargo
image: debian/buster

sources:
  - https://git.sr.ht/~azzamsa/bilal.rs


@@ 10,19 6,35 @@ sources:
environment:
  project: bilal.rs

secrets:
  - 3bb6a4a8-8fdd-4035-b288-dab3dd39f95d # crates.io

tasks:
  - setup: |
      # install rustup
      curl https://sh.rustup.rs -sSf | sh -s -- -y
      export PATH="$HOME/.cargo/bin:$PATH"

      # install Rust stable
      rustup install stable --profile minimal
      rustc -V

      # components
      rustup component add clippy

      # make path persistent
      echo export PATH="$HOME/.cargo/bin:$PATH" >> ~/.buildenv

  - lint: |
      cd ${project}
      cargo check

  - lint: |
      cd bilal.rs
      find . | grep "\.rs" | xargs touch ; cargo clippy --all-features -- --deny warnings --deny clippy::pedantic --deny clippy::nursery

  - test: |
      cd bilal.rs
      cd ${project}
      mkdir -p ~/.config/bilal
      cp examples/config.toml ~/.config./bilal/
      cp examples/config.toml ~/.config/bilal/
      cargo test

  - check_deploy_rules: |


@@ 43,4 55,4 @@ tasks:
      CRATES_AUTH_TOKEN=$(cat ~/.CRATES_AUTH_TOKEN)
      cargo login $CRATES_AUTH_TOKEN

      cargo publish
      cargo publish --allow-dirty

M CHANGELOG.md => CHANGELOG.md +5 -0
@@ 1,6 1,11 @@
## [Unreleased]


## [v0.1.6] - 2021-04-19

### Bug Fixes
- removed many `panics` issue, by migrating to our own `islam` library.

## [v0.1.1] - 2020-09-25

### Features

M Cargo.lock => Cargo.lock +1 -1
@@ 48,7 48,7 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"

[[package]]
name = "bilal"
version = "0.1.5"
version = "0.1.6"
dependencies = [
 "anyhow",
 "assert_cmd",

M Cargo.toml => Cargo.toml +2 -2
@@ 1,7 1,7 @@
[package]
name = "bilal"
description = "a CLI salah time"
version = "0.1.5"
version = "0.1.6"
authors = ["azzamsa <me@azzamsa.com>"]
edition = "2018"
keywords = ["salah", "pray", "islam"]


@@ 17,7 17,7 @@ lto = true
panic = 'abort'

[dependencies]
islam = { path =  "../islam" }
islam = "0.1.1"
clap = "3.0.0-beta.2"
thiserror = "1.0.24"
anyhow = "1.0.40"

M README.md => README.md +2 -2
@@ 41,7 41,7 @@ method = "Egyptian"
```

You can get latitude and longitude value from [mapcoordinates](https://www.mapcoordinates.net/en).
Other[madhab](https://docs.rs/islam/0.1.1/islam/pray/madhab/enum.Madhab.html#variants)
Other [madhab](https://docs.rs/islam/0.1.1/islam/pray/madhab/enum.Madhab.html#variants)
and [method](https://docs.rs/islam/0.1.1/islam/pray/method/enum.Method.html#variants) options are available.

## Installation


@@ 68,7 68,7 @@ i3status-rs configuration Example:
``` bash
[[block]]
block = "custom"
cycle = ["bilal -c -j", "bilal -n -j"]
cycle = ["bilal -c -J", "bilal -n -J"]
on_click = "<command>"
interval = 300
json = true