Skip to content

Commit

Permalink
Merge pull request #128 from rdeits/rd/msgpack-update
Browse files Browse the repository at this point in the history
Fix MsgPack deprecation
  • Loading branch information
rdeits committed Oct 12, 2019
2 parents 65cdec1 + 98b58f9 commit a038dc2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ matrix:
- os: linux
julia: 1.2
env: TESTCMD="xvfb-run julia"
- os: linux
julia: 1.3
env: TESTCMD="xvfb-run julia"
- os: linux
julia: nightly
env: TESTCMD="xvfb-run julia"
- os: osx
julia: 1.0
env: TESTCMD="julia"
- os: osx
julia: 1.2
env: TESTCMD="julia"
- os: osx
julia: nightly
env: TESTCMD="julia"
Expand All @@ -42,8 +48,6 @@ before_install:

script:
- julia --color=yes -e "using Pkg; if VERSION >= v\"1.1.0-rc1\"; Pkg.build(verbose=true); else Pkg.build(); end"
# work-around for https://github.com/JuliaWeb/MbedTLS.jl/issues/193
- julia --color=yes -e "using Pkg; if VERSION >= v\"1.2.0\"; Pkg.update(\"MbedTLS\"); end"
- $TESTCMD --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test("MeshCat", coverage=true)'
- julia --color=yes -e 'using MeshCat; MeshCat.develop_meshcat_assets(true)'
- julia --color=yes -e 'import Pkg; Pkg.build("MeshCat")'
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ AssetRegistry = "0.1"
Cassette = "0.2.5"
GeometryTypes = "0.6, 0.7"
JSExpr = "0.3, 0.5"
MsgPack = "1"
Mux = "0.7"
WebIO = "0.8.11"
julia = "0.7, 1"
Expand Down
2 changes: 1 addition & 1 deletion src/MeshCat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using UUIDs: UUID, uuid1
using LinearAlgebra: UniformScaling, Diagonal, norm
using Sockets: listen, @ip_str, IPAddr, IPv4, IPv6
using Base64: base64encode
using MsgPack: MsgPack, pack, Ext
using MsgPack: MsgPack, pack

import Base: delete!

Expand Down
2 changes: 1 addition & 1 deletion src/msgpack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extcode(::Type{Int32}) = 0x15
extcode(::Type{UInt32}) = 0x16
extcode(::Type{Float32}) = 0x17

MsgPack.pack(io::IO, v::PackedVector) = pack(io, Ext(extcode(v),
MsgPack.pack(io::IO, v::PackedVector) = pack(io, MsgPack.Extension(extcode(v),
convert(Vector{UInt8},
reshape(reinterpret(UInt8, v.data),
(sizeof(v.data),)))))

2 comments on commit a038dc2

@rdeits
Copy link
Owner Author

@rdeits rdeits commented on a038dc2 Oct 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/4305

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.0 -m "<description of version>" a038dc2dc9c098e948f1f8363e287c980afc996d
git push origin v0.8.0

Please sign in to comment.