Skip to content

Commit 28156b9

Browse files
authored
Bump dependencies and add some scripts. (#388)
1 parent 09fc608 commit 28156b9

File tree

12 files changed

+51
-22
lines changed

12 files changed

+51
-22
lines changed

_automate/bump_version.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
set -xeu
4+
5+
VERSION=$1
6+
PREV_DEPS=$2
7+
NEW_DEPS=$3
8+
9+
ack "^version = \"" -l | \
10+
grep toml | \
11+
xargs sed -i "s/^version = \".*/version = \"$VERSION\"/"
12+
13+
ack "{ version = \"$PREV_DEPS" -l | \
14+
grep toml | \
15+
xargs sed -i "s/{ version = \"$PREV_DEPS/{ version = \"$NEW_DEPS/"
16+
17+
cargo check

_automate/publish.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -exu
4+
5+
ORDER=(core server-utils tcp ws http ipc stdio pubsub macros derive test)
6+
7+
for crate in ${ORDER[@]}; do
8+
cd $crate
9+
cargo publish $@
10+
cd -
11+
done
12+

derive/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ proc-macro2 = "0.4"
1818
quote = "0.6"
1919

2020
[dev-dependencies]
21-
jsonrpc-core = { version = "10.0", path = "../core" }
22-
jsonrpc-pubsub = { version = "10.0", path = "../pubsub" }
23-
jsonrpc-tcp-server = { version = "10.0", path = "../tcp" }
21+
jsonrpc-core = { version = "10.1", path = "../core" }
22+
jsonrpc-pubsub = { version = "10.1", path = "../pubsub" }
23+
jsonrpc-tcp-server = { version = "10.1", path = "../tcp" }
2424
serde = "1.0"
2525
serde_derive = "1.0"
2626
serde_json = "1.0"

http/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ version = "10.1.0"
1212

1313
[dependencies]
1414
hyper = "0.12"
15-
jsonrpc-core = { version = "10.0", path = "../core" }
16-
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
15+
jsonrpc-core = { version = "10.1", path = "../core" }
16+
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }
1717
log = "0.4"
1818
net2 = "0.2"
1919
unicase = "2.0"

ipc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ version = "10.1.0"
1212
[dependencies]
1313
log = "0.4"
1414
tokio-service = "0.1"
15-
jsonrpc-core = { version = "10.0", path = "../core" }
16-
jsonrpc-server-utils = { version = "10.0", path = "../server-utils" }
15+
jsonrpc-core = { version = "10.1", path = "../core" }
16+
jsonrpc-server-utils = { version = "10.1", path = "../server-utils" }
1717
parity-tokio-ipc = "0.1"
1818
parking_lot = "0.7"
1919

macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ version = "10.1.0"
1111

1212
[dependencies]
1313
serde = "1.0"
14-
jsonrpc-core = { version = "10.0", path = "../core" }
15-
jsonrpc-pubsub = { version = "10.0", path = "../pubsub" }
14+
jsonrpc-core = { version = "10.1", path = "../core" }
15+
jsonrpc-pubsub = { version = "10.1", path = "../pubsub" }
1616

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

2121
[badges]
2222
travis-ci = { repository = "paritytech/jsonrpc", branch = "master"}

pubsub/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ version = "10.1.0"
1313
[dependencies]
1414
log = "0.4"
1515
parking_lot = "0.7"
16-
jsonrpc-core = { version = "10.0", path = "../core" }
16+
jsonrpc-core = { version = "10.1", path = "../core" }
1717
serde = "1.0"
1818

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

2222
[badges]
2323
travis-ci = { repository = "paritytech/jsonrpc", branch = "master"}

pubsub/more-examples/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["tomusdrw <tomasz@parity.io>"]
88
license = "MIT"
99

1010
[dependencies]
11-
jsonrpc-core = { version = "10.0", path = "../../core" }
12-
jsonrpc-pubsub = { version = "10.0", path = "../" }
13-
jsonrpc-ws-server = { version = "10.0", path = "../../ws" }
14-
jsonrpc-ipc-server = { version = "10.0", path = "../../ipc" }
11+
jsonrpc-core = { version = "10.1", path = "../../core" }
12+
jsonrpc-pubsub = { version = "10.1", path = "../" }
13+
jsonrpc-ws-server = { version = "10.1", path = "../../ws" }
14+
jsonrpc-ipc-server = { version = "10.1", path = "../../ipc" }

server-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = "10.1.0"
1313
[dependencies]
1414
bytes = "0.4"
1515
globset = "0.4"
16-
jsonrpc-core = { version = "10.0", path = "../core" }
16+
jsonrpc-core = { version = "10.1", path = "../core" }
1717
lazy_static = "1.1.0"
1818
log = "0.4"
1919
num_cpus = "1.8"

stdio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version = "10.1.0"
1111

1212
[dependencies]
1313
futures = "0.1.23"
14-
jsonrpc-core = { version = "10.0", path = "../core" }
14+
jsonrpc-core = { version = "10.1", path = "../core" }
1515
log = "0.4"
1616
tokio = "0.1.7"
1717
tokio-codec = "0.1.0"

0 commit comments

Comments
 (0)