Skip to content

Commit 9ba1249

Browse files
author
Jacob Peddicord
committed
Prep 0.2.0 release
1 parent a8221d4 commit 9ba1249

File tree

6 files changed

+24
-13
lines changed

6 files changed

+24
-13
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## Unreleased
88

9+
Nothing yet. Planned: a requirement on Rust 1.26.
10+
11+
## [0.2.0] - 2018-05-13
12+
913
### Added
1014

1115
- Full documentation for the public API.
@@ -19,6 +23,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1923
- Many performance improvements. `analyze` is now able to run in 3-5 ms on commodity hardware!
2024
- Text storage and normalization improvements.
2125
- Duplicate SPDX entries are now stored as aliases.
26+
- SPDX definitions have been updated.
27+
28+
## Removed
29+
30+
- The "diff" option is now only available if compiled with the "diagnostics" feature (off by default). This was intended for debugging and had no practical use in the binary.
31+
32+
## Fixed
33+
34+
- Resolved a potential panic for short/empty license files (a divide-by-zero was involved).
2235

2336
## [0.1.0] - 2018-01-31
2437

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "askalono"
3-
version = "0.2.0-beta.1"
3+
version = "0.2.0"
44
description = "a library to detect the contents of license files"
55
license = "Apache-2.0"
66
repository = "https://github.com/amzn/askalono"

README.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ askalono is a library and command-line tool to help detect license texts. It's d
44

55
[![releases](https://img.shields.io/github/release-date-pre/amzn/askalono.svg)](https://github.com/amzn/askalono/releases)
66
[![askalono crate](https://img.shields.io/crates/v/askalono.svg)](https://crates.io/crates/askalono)
7-
[![Gitter chat](https://img.shields.io/gitter/room/amzn/askalono.svg)](https://gitter.im/amzn/askalono)
87

98
## Notice
109

@@ -20,7 +19,7 @@ This software is in the early stages of its lifecycle. While its goals are to be
2019

2120
**NOTE:** This is not currently `cargo install`-able from crates.io, but when it is you'll find it under `askalono-cli`.
2221

23-
Pre-built binaries are available on the [Releases section](https://github.com/amzn/askalono/releases) on GitHub.
22+
Pre-built binaries are available on the [Releases section](https://github.com/amzn/askalono/releases) on GitHub. Rust developers may also grab a copy by running `cargo install askalono-cli`.
2423

2524
Basic usage:
2625

@@ -30,11 +29,9 @@ where `<filename>` is a file (not folder) containing license text to analyze. In
3029

3130
### As a library
3231

33-
**Note:** This API is still unstable (and relatively undocumented). Semantic versioning will be respected, but anticipate significant changes throughout development.
34-
3532
At the moment, `Store` and `LicenseContent` are exposed for usage. These have a relatively sane API, if unergonmic. Expect improvements in usage and documentation here.
3633

37-
The best way to get an idea of how to use askalono as a library in its early state is to look at the [example](./examples/basic.rs).
34+
The best way to get an idea of how to use askalono as a library in its early state is to look at the [example](./examples/basic.rs). As of 0.2.0, decent documentation is available via docs.rs, and if the maintainer remembers to, they will add a link here once that's generated. (hint hint)
3835

3936
## Details
4037

@@ -61,9 +58,9 @@ It means "shallot" in Esperanto. You could try to derive a hidden meaning from i
6158

6259
### How is this different from other solutions?
6360

64-
There are several other excellent projects in this space, including [licensee](https://github.com/benbalter/licensee) and [LiD](https://source.codeaurora.org/external/qostg/lid/). These projects attempt to get a larger picture of a project's licensing, and can look at other sources of metadata to try to find answers. Both of these inspired the creation of askalono, first as a curiosity, then as a serious project.
61+
There are several other excellent projects in this space, including [licensee](https://github.com/benbalter/licensee), [LiD](https://source.codeaurora.org/external/qostg/lid/), and [ScanCode](https://github.com/nexB/scancode-toolkit). These projects attempt to get a larger picture of a project's licensing, and can look at other sources of metadata to try to find answers. Both of these inspired the creation of askalono, first as a curiosity, then as a serious project.
6562

66-
askalono focuses on the problem of matching text itself -- it's often the piece that is difficult to optimize for speed and accuracy. askalono could be seen as a piece of plumbing in a larger system.
63+
askalono focuses on the problem of matching text itself -- it's often the piece that is difficult to optimize for speed and accuracy. askalono could be seen as a piece of plumbing in a larger system. The askalono command line application includes other goodies, such as a directory crawler, but these are largely for quick once-off use before diving in with more systematic solutions. (If you're looking for such a solution, take a look at the projects I just mentioned!)
6764

6865
### Where do the licenses come from?
6966

cli/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "askalono-cli"
3-
version = "0.2.0-beta.1"
3+
version = "0.2.0"
44
description = "a tool to detect the contents of license files"
55
license = "Apache-2.0"
66
repository = "https://github.com/amzn/askalono"
@@ -14,7 +14,7 @@ include = [
1414
]
1515

1616
[dependencies]
17-
askalono = { version = "0.2.0-beta.1", path = "../" }
17+
askalono = { version = "0.2.0", path = "../" }
1818
env_logger = "0.5.5"
1919
failure = "0.1.1"
2020
ignore = "0.4.1"

cli/src/util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub fn load_store(cache_filename: &Path) -> Result<Store, Error> {
3434
Ok(store)
3535
}
3636

37+
#[allow(unused_variables)]
3738
pub fn diff_result(license: &TextData, other: &TextData) {
3839
#[cfg(feature = "diagnostics")]
3940
{

0 commit comments

Comments
 (0)