Version bump

0.1.x was the pre-alpha.

The first Alpha will be 0.2.x
This commit is contained in:
Bat
2018-09-11 19:53:14 +01:00
parent abe90706ff
commit 8fa83dfe25
7 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "plume-common"
version = "0.1.0"
version = "0.2.0"
authors = ["Bat' <baptiste@gelez.xyz>"]
[dependencies]
+2 -2
View File
@@ -9,7 +9,7 @@ use std::time::SystemTime;
use activity_pub::ap_accept_header;
use activity_pub::sign::Signer;
const USER_AGENT: &'static str = "Plume/0.1.0";
const USER_AGENT: &'static str = "Plume/0.2.0";
header! {
(Signature, "Signature") => [String]
@@ -30,7 +30,7 @@ pub fn headers() -> Headers {
pub fn signature<S: Signer>(signer: &S, headers: Headers) -> Signature {
let signed_string = headers.iter().map(|h| format!("{}: {}", h.name().to_lowercase(), h.value_string())).collect::<Vec<String>>().join("\n");
let signed_headers = headers.iter().map(|h| h.name().to_string()).collect::<Vec<String>>().join(" ").to_lowercase();
let data = signer.sign(signed_string);
let sign = base64::encode(&data[..]);