Skip to content

Commit

Permalink
Update deps and base64 API, bump to 0.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycuadra committed Sep 10, 2016
1 parent 621144f commit 04f90d9
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 45 deletions.
77 changes: 43 additions & 34 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ license = "MIT"
name = "ktmpl"
readme = "README.md"
repository = "https://github.com/InQuicker/ktmpl"
version = "0.4.1"
version = "0.5.0"

[dependencies]
base64 = "0.1.1"
clap = "2.9.3"
base64 = "0.2.1"
clap = "2.11.3"
lazy_static = "0.2.1"
regex = "0.1.71"
yaml-rust = "0.3.2"
regex = "0.1.75"
yaml-rust = "0.3.3"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TAG = 0.4.1
TAG = 0.5.0

all: dist

Expand Down
6 changes: 1 addition & 5 deletions src/parameter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashMap;
use std::error::Error;
use std::str::FromStr;

use base64::encode;
Expand Down Expand Up @@ -62,10 +61,7 @@ impl Parameter {
let value = match user_values.get(&name) {
Some(user_value) => {
if should_base64_encode(&parameter_type, &user_value) {
match encode(&user_value.value) {
Ok(v) => Some(v),
Err(error) => return Err(format!("{}", error.description())),
}
Some(encode(user_value.value.as_bytes()))
} else {
Some(user_value.value.clone())
}
Expand Down

0 comments on commit 04f90d9

Please sign in to comment.