msgpack 0.6.2-x86-mingw32 → 0.7.0dev1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +33 -0
- data/README.rdoc +2 -6
- data/Rakefile +9 -0
- data/appveyor.yml +18 -0
- data/doclib/msgpack/error.rb +6 -1
- data/doclib/msgpack/extension_value.rb +9 -0
- data/doclib/msgpack/factory.rb +68 -0
- data/doclib/msgpack/packer.rb +38 -0
- data/doclib/msgpack/unpacker.rb +39 -2
- data/ext/java/org/msgpack/jruby/Buffer.java +4 -0
- data/ext/java/org/msgpack/jruby/Decoder.java +44 -0
- data/ext/java/org/msgpack/jruby/Encoder.java +46 -4
- data/ext/java/org/msgpack/jruby/ExtensionValue.java +55 -60
- data/ext/java/org/msgpack/jruby/MessagePackLibrary.java +18 -5
- data/ext/java/org/msgpack/jruby/Packer.java +17 -4
- data/ext/java/org/msgpack/jruby/Unpacker.java +59 -2
- data/ext/msgpack/buffer_class.c +2 -2
- data/ext/msgpack/buffer_class.h +1 -1
- data/ext/msgpack/compat.h +12 -0
- data/ext/msgpack/core_ext.c +15 -0
- data/ext/msgpack/extconf.rb +4 -1
- data/ext/msgpack/extension_value_class.c +34 -0
- data/ext/msgpack/extension_value_class.h +31 -0
- data/ext/msgpack/factory_class.c +213 -0
- data/ext/msgpack/factory_class.h +35 -0
- data/ext/msgpack/packer.c +14 -7
- data/ext/msgpack/packer.h +46 -8
- data/ext/msgpack/packer_class.c +92 -45
- data/ext/msgpack/packer_class.h +4 -2
- data/ext/msgpack/packer_ext_registry.c +87 -0
- data/ext/msgpack/packer_ext_registry.h +101 -0
- data/ext/msgpack/rbinit.c +4 -0
- data/ext/msgpack/unpacker.c +128 -23
- data/ext/msgpack/unpacker.h +11 -0
- data/ext/msgpack/unpacker_class.c +117 -38
- data/ext/msgpack/unpacker_class.h +4 -2
- data/ext/msgpack/unpacker_ext_registry.c +68 -0
- data/ext/msgpack/unpacker_ext_registry.h +62 -0
- data/lib/msgpack.rb +4 -0
- data/lib/msgpack/factory.rb +60 -0
- data/lib/msgpack/packer.rb +28 -0
- data/lib/msgpack/unpacker.rb +28 -0
- data/lib/msgpack/version.rb +1 -1
- data/msgpack.gemspec +4 -3
- data/spec/cruby/buffer_io_spec.rb +2 -3
- data/spec/cruby/buffer_spec.rb +1 -3
- data/spec/cruby/unpacker_spec.rb +14 -2
- data/spec/ext_value_spec.rb +99 -0
- data/spec/exttypes.rb +51 -0
- data/spec/factory_spec.rb +236 -0
- data/spec/jruby/msgpack/unpacker_spec.rb +25 -0
- data/spec/{jruby/msgpack_spec.rb → msgpack_spec.rb} +1 -1
- data/spec/pack_spec.rb +0 -6
- data/spec/packer_spec.rb +95 -0
- data/spec/spec_helper.rb +12 -1
- data/spec/unpack_spec.rb +1 -4
- data/spec/unpacker_spec.rb +133 -0
- metadata +50 -15
- data/Dockerfile +0 -55
data/Dockerfile
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
FROM ubuntu:14.04
|
2
|
-
MAINTAINER TAGOMORI Satoshi <tagomoris@gmail.com>
|
3
|
-
LABEL Description="Host image to cross-compile msgpack.gem for mingw32" Vendor="MessagePack Organization" Version="1.0"
|
4
|
-
|
5
|
-
RUN apt-get update -y && apt-get install -y \
|
6
|
-
git \
|
7
|
-
curl \
|
8
|
-
autoconf \
|
9
|
-
bison \
|
10
|
-
build-essential \
|
11
|
-
libssl-dev \
|
12
|
-
libyaml-dev \
|
13
|
-
libreadline6-dev \
|
14
|
-
zlib1g-dev \
|
15
|
-
libncurses5-dev \
|
16
|
-
libffi-dev \
|
17
|
-
libgdbm3 \
|
18
|
-
libgdbm-dev \
|
19
|
-
mingw-w64 \
|
20
|
-
gcc-mingw-w64-i686 \
|
21
|
-
gcc-mingw-w64-x86-64 \
|
22
|
-
&& rm -rf /var/lib/apt/lists/*
|
23
|
-
|
24
|
-
RUN useradd ubuntu -d /home/ubuntu -m -U
|
25
|
-
RUN chown -R ubuntu:ubuntu /home/ubuntu
|
26
|
-
|
27
|
-
USER ubuntu
|
28
|
-
|
29
|
-
WORKDIR /home/ubuntu
|
30
|
-
|
31
|
-
RUN git clone https://github.com/tagomoris/xbuild.git
|
32
|
-
RUN git clone https://github.com/msgpack/msgpack-ruby.git
|
33
|
-
|
34
|
-
RUN /home/ubuntu/xbuild/ruby-install 2.1.5 /home/ubuntu/local/ruby-2.1
|
35
|
-
|
36
|
-
ENV PATH /home/ubuntu/local/ruby-2.1/bin:$PATH
|
37
|
-
RUN gem install rake-compiler
|
38
|
-
RUN rake-compiler cross-ruby VERSION=2.1.5 HOST=i686-w64-mingw32 EXTS=--without-extensions
|
39
|
-
RUN rake-compiler cross-ruby VERSION=2.1.5 HOST=x86_64-w64-mingw32 EXTS=--without-extensions
|
40
|
-
|
41
|
-
RUN /home/ubuntu/xbuild/ruby-install 2.2.2 /home/ubuntu/local/ruby-2.2
|
42
|
-
|
43
|
-
ENV PATH /home/ubuntu/local/ruby-2.2/bin:$PATH
|
44
|
-
RUN gem install rake-compiler
|
45
|
-
RUN rake-compiler cross-ruby VERSION=2.2.2 HOST=i686-w64-mingw32 EXTS=--without-extensions
|
46
|
-
RUN rake-compiler cross-ruby VERSION=2.2.2 HOST=x86_64-w64-mingw32 EXTS=--without-extensions
|
47
|
-
|
48
|
-
WORKDIR /home/ubuntu/msgpack-ruby
|
49
|
-
|
50
|
-
ENV MSGPACK_REPO https://github.com/msgpack/msgpack-ruby.git
|
51
|
-
ENV BUILD_BRANCH master
|
52
|
-
ENV BUILD_POSITION HEAD
|
53
|
-
|
54
|
-
### docker run -v `pwd`/pkg:/home/ubuntu/msgpack-ruby/pkg IMAGENAME
|
55
|
-
CMD ["bash", "-c", "git remote add dockerbuild $MSGPACK_REPO && git fetch dockerbuild && git checkout $BUILD_BRANCH && git pull dockerbuild $BUILD_BRANCH && git reset --hard $BUILD_POSITION && bundle && rake clean && rake cross native gem RUBY_CC_VERSION=2.1.5:2.2.2"]
|