Skip to content

Commit

Permalink
Merge tag 'samedec-0.4.0' into develop
Browse files Browse the repository at this point in the history
The Spring 2024 Update

Are you "Weather Ready?" This release is mostly compatible with
previous versions but adds more SAME codes and environment
variables.

ENHANCEMENTS

* Support the following new SAME codes:

  * EAN: Renamed to National Emergency Message
  * NAT: National Audible Test
  * NST: National Silent Test
  * FSW: Flash Freeze Warning
  * FZW: Freeze Warning
  * HLS: Hurricane Local Statement
  * SQW: Snow Squall Warning

* Discontinue the `SAMEDEC_SIGNIFICANCE` level of "`M`"
  (Message), which is not found anywhere in the standards
  document. The following messages are upgraded to
  Statement:

  * ADR: Administrative Message
  * NMN: Network Message Notification

* Improved detection of National Weather Service vs
  Environment Canada. samedec will no longer output a
  generic `SAMEDEC_ORIGINATOR` of "`Weather Service`."
  Instead, samedec will output either
  "`National Weather Service`" or "`Environment Canada`."

* New environment variables for child processes

  * `SAMEDEC_IS_NATIONAL`: "`Y`" for national activations;
    otherwise present but empty

  * `SAMEDEC_SIG_NUM`: a numeric representation of the
    significance level

* Add proper integration test scripts for child processes

FIXES

* IMPORTANT: Fix code entry for ADR (Administrative Message),
  which was previously wrong.

* Handle EOF within the main app. Child processes are now
  spawned even for very short input files.

* Update to Edition 2021

* Replace is-terminal with terminal_size
  • Loading branch information
cbs228 committed Feb 24, 2024
2 parents b9e8d03 + 4396489 commit 8e2201c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Add the following to your `Cargo.toml`:

```toml
[dependencies]
sameold = "0.2"
sameold = "0.4"
```

Then read our
Expand Down
4 changes: 2 additions & 2 deletions crates/samedec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "samedec"
rust-version = "1.70"
description = "A SAME/EAS digital receiver and alerting program"
version = "0.3.0"
version = "0.4.0"
authors = ["Colin S <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
Expand All @@ -11,7 +11,7 @@ repository = "https://github.com/cbs228/sameold.git"
readme = "README.md"

[dependencies]
sameold = {path = "../sameold", version = "^0.3.0"}
sameold = {path = "../sameold", version = "^0.4.0"}
anyhow = "^1"
byteorder = "^1.4"
clap = {version = "=4.4.18", features = ["color", "derive", "wrap_help"]}
Expand Down
2 changes: 1 addition & 1 deletion crates/sameold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "sameold"
rust-version = "1.65"
description = "A SAME/EAS digital receiver library"
version = "0.3.0"
version = "0.4.0"
authors = ["Colin S <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
Expand Down

0 comments on commit 8e2201c

Please sign in to comment.