Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
0.8.0: Max Args + :::+/::::+ Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Dec 30, 2016
1 parent eeaf7b9 commit bdf2ff9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parallel"
version = "0.7.0"
version = "0.8.0"
authors = ["Michael Aaron Murphy <mmstickman@gmail.com>"]
license = "MIT"
description = "Command-line CPU load balancer for executing jobs in parallel"
Expand All @@ -19,7 +19,7 @@ opt-level = 3

[package.metadata.deb]
maintainer = "Michael Aaron Murphy <mmstickman@gmail.com>"
copyright = "2016, Michael Aaron Murphy <mmstickman@gmail.com>"
copyright = "2016-2017, Michael Aaron Murphy <mmstickman@gmail.com>"
license_file = ["LICENSE", "4"]
extended_description = """\
A CPU load balancer for the command-line, written in Rust and inspired by \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 Michael Aaron Murphy <mmstickman@gmail.com>
Copyright (c) 2016-2017 Michael Aaron Murphy <mmstickman@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<'a> Args<'a> {
"shellquote" => quote = Quoting::Shell,
"verbose" => self.flags |= VERBOSE_MODE,
"version" => {
println!("parallel 0.7.1\n\nCrate Dependencies:");
println!("parallel 0.8.0\n\nCrate Dependencies:");
println!(" libc 0.2.18");
println!(" num_cpus 1.2.0");
println!(" permutate 0.2.0");
Expand Down
5 changes: 2 additions & 3 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl<'a> ArgumentSplitter<'a> {

impl<'a> Iterator for ArgumentSplitter<'a> {
type Item = String;

fn next(&mut self) -> Option<String> {
for character in self.data.chars().skip(self.read) {
self.read += 1;
Expand All @@ -185,7 +185,7 @@ impl<'a> Iterator for ArgumentSplitter<'a> {
_ => self.buffer.push(character)
}
}

if self.buffer.is_empty() {
None
} else {
Expand All @@ -207,4 +207,3 @@ fn test_split_args() {
let expected = vec!["one two\\", "three"];
assert_eq!(argument.collect::<Vec<String>>(), expected);
}

2 changes: 1 addition & 1 deletion src/threads/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn command(slot: usize, num_inputs: usize, flags: u8, arguments: &[Token],

let command = command::ParallelCommand {
slot_no: slot,
job_no: &job_id.to_string(),
job_no: &(job_id + 1).to_string(),
job_total: job_total,
input: &input,
command_template: arguments,
Expand Down

0 comments on commit bdf2ff9

Please sign in to comment.