Skip to content

Commit 2aef81f

Browse files
committed
Merge branch 'master' of github.com:o2sh/onefetch
2 parents 4475bf4 + 2eb2b11 commit 2aef81f

File tree

7 files changed

+73
-9
lines changed

7 files changed

+73
-9
lines changed

Diff for: CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [2.1.0] - 2019-11-10
9+
10+
<img src="https://user-images.githubusercontent.com/13710835/66691603-23fc7b00-ec87-11e9-9280-8afb5b5a4cab.png" alt="logo" height="100px">
11+
12+
**Contributors:**
13+
@CephalonRho @ebroto @Phundrak
14+
15+
**Language**
16+
* Added support for Org @Phundrak
17+
18+
**New feature:**
19+
* Add --no-color-blocks flag #153
20+
* Add suport for SIXEL image_backend @CephalonRho
21+
22+
**Misc**
23+
* Update to askalono 0.4.0 and use a more strict confidence threshold
24+
825
## [2.0.1] - 2019-11-06
926

1027
<img src="https://user-images.githubusercontent.com/13710835/66691603-23fc7b00-ec87-11e9-9280-8afb5b5a4cab.png" alt="logo" height="100px">

Diff for: CONTRIBUTORS

+45
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,48 @@ Sam Tebbs <[email protected]>
122122
123123
Vipul-Bajaj <[email protected]>
124124
Willy Chen <[email protected]>
125+
Ossama Hjaji <[email protected]>
126+
Spenser Black <[email protected]>
127+
128+
CephalonRho <[email protected]>
129+
Andrew Pritchard <[email protected]>
130+
Cody Metz <[email protected]>
131+
132+
133+
Pablo Diego <[email protected]>
134+
xynxynxyn <[email protected]>
135+
136+
Eduardo Broto <[email protected]>
137+
138+
JoshBrudnak <[email protected]>
139+
140+
141+
142+
143+
Aleksei Pirogov <[email protected]>
144+
Francesco Dipi <[email protected]>
145+
Julian Kaindl <[email protected]>
146+
Kasra Ferdowsifard <[email protected]>
147+
Nikos Filippakis <[email protected]>
148+
Rob Warner <[email protected]>
149+
Ryan Troxler <[email protected]>
150+
Vinh Nguyen <[email protected]>
151+
Vinícius Estevam <[email protected]>
152+
A. Nackov <[email protected]>
153+
Abhishek C. Sharma <[email protected]>
154+
Alan Pope <[email protected]>
155+
Amirali Esmaeili <[email protected]>
156+
Arvid Boivie <[email protected]>
157+
Bojan Djurdjevic <[email protected]>
158+
ImgBotApp <[email protected]>
159+
160+
Josh Stone <[email protected]>
161+
Kent Tsuenchy <[email protected]>
162+
163+
Lucien Cartier-Tilet <[email protected]>
164+
Mads Johansen <[email protected]>
165+
Quint Daenen <[email protected]>
166+
Sam Tebbs <[email protected]>
167+
168+
Vipul-Bajaj <[email protected]>
169+
Willy Chen <[email protected]>

Diff for: Cargo.lock

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

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "onefetch"
33
description = "Git repository summary on your terminal"
4-
version = "2.0.1"
4+
version = "2.1.0"
55
authors = ["o2sh <[email protected]>"]
66
readme = "README.md"
77
license = "MIT"
@@ -12,7 +12,7 @@ exclude = ["assets/*.png"]
1212
colored= "1.8.0"
1313
git2 = {version = "0.7.5", default-features = false}
1414
tokei = "10.0"
15-
askalono = { git = "https://github.com/amzn/askalono.git", rev = "39f6e228775e17266bcba46f48b26b01bbfb7698" }
15+
askalono = "0.4.0"
1616
bytecount = "0.5.1"
1717
clap = "2.33.0"
1818
strum = "0.16.0"

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<img src="https://raw.githubusercontent.com/o2sh/onefetch/master/assets/onefetch.png" height="130px"></h3><br><br>
3-
<a href="https://crates.io/crates/onefetch"><img src="https://img.shields.io/badge/crates.io-2.0.1-orange.svg" alt="cargo"></a>
3+
<a href="https://crates.io/crates/onefetch"><img src="https://img.shields.io/badge/crates.io-2.1.0-orange.svg" alt="cargo"></a>
44
<a href="https://travis-ci.org/o2sh/onefetch"><img src="https://travis-ci.org/o2sh/onefetch.svg?branch=master" alt="Build Status"></a>
55
<a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
66
</p>

Diff for: src/language.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub enum Language {
4545
#[strum(serialize = "objective-c")]
4646
ObjectiveC,
4747
OCaml,
48+
#[strum(serialize = "org-mode")]
4849
Org,
4950
Perl,
5051
Php,

Diff for: src/license.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::Error;
55
type Result<T> = std::result::Result<T, Error>;
66

77
static CACHE_DATA: &[u8] = include_bytes!("../resources/licenses/cache.bin.zstd");
8+
const MIN_THRESHOLD: f32 = 0.8;
89

910
pub struct Detector {
1011
store: Store,
@@ -20,7 +21,7 @@ impl Detector {
2021
pub fn analyze(&self, text: &str) -> Option<String> {
2122
let matched = self.store.analyze(&TextData::from(text));
2223

23-
if matched.score > 0. {
24+
if matched.score >= MIN_THRESHOLD {
2425
Some(matched.name.into())
2526
} else {
2627
None

0 commit comments

Comments
 (0)