Skip to content

Commit

Permalink
Bump dependencies and add some scripts. (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored Feb 13, 2019
1 parent 09fc608 commit 28156b9
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 22 deletions.
17 changes: 17 additions & 0 deletions _automate/bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

set -xeu

VERSION=$1
PREV_DEPS=$2
NEW_DEPS=$3

ack "^version = \"" -l | \
grep toml | \
xargs sed -i "s/^version = \".*/version = \"$VERSION\"/"

ack "{ version = \"$PREV_DEPS" -l | \
grep toml | \
xargs sed -i "s/{ version = \"$PREV_DEPS/{ version = \"$NEW_DEPS/"

cargo check
12 changes: 12 additions & 0 deletions _automate/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -exu

ORDER=(core server-utils tcp ws http ipc stdio pubsub macros derive test)

for crate in ${ORDER[@]}; do
cd $crate
cargo publish $@
cd -
done

6 changes: 3 additions & 3 deletions derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ proc-macro2 = "0.4"
quote = "0.6"

[dev-dependencies]
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-pubsub = { version = "10.0", path = "../pubsub" }
jsonrpc-tcp-server = { version = "10.0", path = "../tcp" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-pubsub = { version = "10.1", path = "../pubsub" }
jsonrpc-tcp-server = { version = "10.1", path = "../tcp" }
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ version = "10.1.0"

[dependencies]
hyper = "0.12"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }
log = "0.4"
net2 = "0.2"
unicase = "2.0"
Expand Down
4 changes: 2 additions & 2 deletions ipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ version = "10.1.0"
[dependencies]
log = "0.4"
tokio-service = "0.1"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }
parity-tokio-ipc = "0.1"
parking_lot = "0.7"

Expand Down
6 changes: 3 additions & 3 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ version = "10.1.0"

[dependencies]
serde = "1.0"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-pubsub = { version = "10.0", path = "../pubsub" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-pubsub = { version = "10.1", path = "../pubsub" }

[dev-dependencies]
serde_json = "1.0"
jsonrpc-tcp-server = { version = "10.0", path = "../tcp" }
jsonrpc-tcp-server = { version = "10.1", path = "../tcp" }

[badges]
travis-ci = { repository = "paritytech/jsonrpc", branch = "master"}
4 changes: 2 additions & 2 deletions pubsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ version = "10.1.0"
[dependencies]
log = "0.4"
parking_lot = "0.7"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-core = { version = "10.1", path = "../core" }
serde = "1.0"

[dev-dependencies]
jsonrpc-tcp-server = { version = "10.0", path = "../tcp" }
jsonrpc-tcp-server = { version = "10.1", path = "../tcp" }

[badges]
travis-ci = { repository = "paritytech/jsonrpc", branch = "master"}
8 changes: 4 additions & 4 deletions pubsub/more-examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["tomusdrw <tomasz@parity.io>"]
license = "MIT"

[dependencies]
jsonrpc-core = { version = "10.0", path = "../../core" }
jsonrpc-pubsub = { version = "10.0", path = "../" }
jsonrpc-ws-server = { version = "10.0", path = "../../ws" }
jsonrpc-ipc-server = { version = "10.0", path = "../../ipc" }
jsonrpc-core = { version = "10.1", path = "../../core" }
jsonrpc-pubsub = { version = "10.1", path = "../" }
jsonrpc-ws-server = { version = "10.1", path = "../../ws" }
jsonrpc-ipc-server = { version = "10.1", path = "../../ipc" }
2 changes: 1 addition & 1 deletion server-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version = "10.1.0"
[dependencies]
bytes = "0.4"
globset = "0.4"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-core = { version = "10.1", path = "../core" }
lazy_static = "1.1.0"
log = "0.4"
num_cpus = "1.8"
Expand Down
2 changes: 1 addition & 1 deletion stdio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version = "10.1.0"

[dependencies]
futures = "0.1.23"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-core = { version = "10.1", path = "../core" }
log = "0.4"
tokio = "0.1.7"
tokio-codec = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ version = "10.1.0"
log = "0.4"
parking_lot = "0.7"
tokio-service = "0.1"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }

[dev-dependencies]
lazy_static = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions ws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ version = "10.1.0"

[dependencies]
error-chain = "0.12"
jsonrpc-core = { version = "10.0", path = "../core" }
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
jsonrpc-core = { version = "10.1", path = "../core" }
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }
log = "0.4"
parking_lot = "0.7"
slab = "0.4"
Expand Down

0 comments on commit 28156b9

Please sign in to comment.