msgpack 0.6.0pre1-x64-mingw32 → 0.6.0-x64-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/ChangeLog +12 -0
- data/Dockerfile +49 -17
- data/README.rdoc +12 -0
- data/Rakefile +1 -47
- data/ext/msgpack/compat.h +1 -0
- data/ext/msgpack/extconf.rb +3 -1
- data/lib/msgpack/version.rb +1 -1
- metadata +4 -5
- data/cross-build.sh +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65d6f0eb6ecb8c8036e9f6edc12c9e17feab5fef
|
4
|
+
data.tar.gz: 84bedb5b93fc1c4827c5d08d50ac6f50659983ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9f3a7422baf56d2a17f4e9e61eae02f07b3f9e4e5caa33073ca394aa38fd3e5cdff9ddf5c8d1b92f7d4f3830c7dded14498dd786df2a1e15664aad795fa7583
|
7
|
+
data.tar.gz: cbee6499c6d55796dda08dd8e072e22998ae3dc6d9c30bee68222613eca785b55c44f6a483ea9389ae7e8f9db856c94d0110f1ca4016bb71d568e820cf48293d
|
data/ChangeLog
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
|
2
|
+
2015-05-26 version 0.6.0:
|
3
|
+
|
4
|
+
* Added support for Binary types
|
5
|
+
* Fixed to encode/decode between Binary types and ASCII-8BIT Ruby String objects
|
6
|
+
|
7
|
+
2015-05-21 version 0.5.12:
|
8
|
+
|
9
|
+
* Added support for JRuby 9K.
|
10
|
+
* Added a benchmarking suite.
|
11
|
+
* Fixed a bug in the handling of options given to MessagePack.unpack in JRuby.
|
12
|
+
|
13
|
+
|
2
14
|
2015-02-04 version 0.5.11:
|
3
15
|
|
4
16
|
* Fixed Encoding::CompatibilityError error when serializing a long string
|
data/Dockerfile
CHANGED
@@ -2,23 +2,55 @@ FROM ubuntu:14.04
|
|
2
2
|
MAINTAINER TAGOMORI Satoshi <tagomoris@gmail.com>
|
3
3
|
LABEL Description="Host image to cross-compile msgpack.gem for mingw32" Vendor="MessagePack Organization" Version="1.0"
|
4
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
|
+
|
5
27
|
USER ubuntu
|
6
28
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
RUN git clone https://github.com/
|
11
|
-
|
12
|
-
RUN
|
13
|
-
|
14
|
-
|
15
|
-
RUN
|
16
|
-
RUN
|
17
|
-
RUN
|
18
|
-
|
19
|
-
RUN
|
20
|
-
|
21
|
-
|
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.0.0-p643 /home/ubuntu/local/ruby-2.0
|
35
|
+
|
36
|
+
ENV PATH /home/ubuntu/local/ruby-2.0/bin:$PATH
|
37
|
+
RUN gem install rake-compiler
|
38
|
+
RUN rake-compiler cross-ruby VERSION=2.0.0-p643 HOST=i686-w64-mingw32 EXTS=--without-extensions
|
39
|
+
RUN rake-compiler cross-ruby VERSION=2.0.0-p643 HOST=x86_64-w64-mingw32 EXTS=--without-extensions
|
40
|
+
|
41
|
+
RUN /home/ubuntu/xbuild/ruby-install 2.1.5 /home/ubuntu/local/ruby-2.1
|
42
|
+
|
43
|
+
ENV PATH /home/ubuntu/local/ruby-2.1/bin:$PATH
|
44
|
+
RUN gem install rake-compiler
|
45
|
+
RUN rake-compiler cross-ruby VERSION=2.1.5 HOST=i686-w64-mingw32 EXTS=--without-extensions
|
46
|
+
RUN rake-compiler cross-ruby VERSION=2.1.5 HOST=x86_64-w64-mingw32 EXTS=--without-extensions
|
47
|
+
|
48
|
+
RUN /home/ubuntu/xbuild/ruby-install 2.2.2 /home/ubuntu/local/ruby-2.2
|
49
|
+
|
50
|
+
ENV PATH /home/ubuntu/local/ruby-2.2/bin:$PATH
|
51
|
+
RUN gem install rake-compiler
|
52
|
+
RUN rake-compiler cross-ruby VERSION=2.2.2 HOST=i686-w64-mingw32 EXTS=--without-extensions
|
53
|
+
RUN rake-compiler cross-ruby VERSION=2.2.2 HOST=x86_64-w64-mingw32 EXTS=--without-extensions
|
22
54
|
|
23
55
|
WORKDIR /home/ubuntu/msgpack-ruby
|
24
56
|
|
@@ -26,5 +58,5 @@ ENV MSGPACK_REPO https://github.com/msgpack/msgpack-ruby.git
|
|
26
58
|
ENV BUILD_BRANCH master
|
27
59
|
ENV BUILD_POSITION HEAD
|
28
60
|
|
29
|
-
|
30
|
-
|
61
|
+
### docker run -v `pwd`/pkg:/home/ubuntu/msgpack-ruby/pkg IMAGENAME
|
62
|
+
CMD ["bash", "-c", "git remote add dockerbuild $MSGPACK_REPO && git fetch dockerbuild && git checkout $BUILD_BRANCH && git reset --hard $BUILD_POSITION && bundle && rake cross native gem"]
|
data/README.rdoc
CHANGED
@@ -121,6 +121,18 @@ Then, you can run the tasks as follows:
|
|
121
121
|
|
122
122
|
bundle exec rake doc
|
123
123
|
|
124
|
+
== How to build -mingw32 rubygems
|
125
|
+
|
126
|
+
MessagePack mingw32 rubygems build process uses {Docker}[https://docs.docker.com/].
|
127
|
+
|
128
|
+
Set up docker environment at first, and then run docker container to build gems, with shared directory "pkg".
|
129
|
+
|
130
|
+
docker run -it --rm -v `pwd`/pkg:/home/ubuntu/msgpack-ruby/pkg msgpack/msgpack-rubygem-cross01
|
131
|
+
|
132
|
+
Once this step successes, target gems exist in pkg/msgpack-*-{x86,x64}-mingw32.gem.
|
133
|
+
|
134
|
+
See also: https://registry.hub.docker.com/u/msgpack/msgpack-rubygem-cross01/
|
135
|
+
|
124
136
|
= Copyright
|
125
137
|
|
126
138
|
Author:: Sadayuki Furuhashi <frsyuki@gmail.com>
|
data/Rakefile
CHANGED
@@ -52,7 +52,7 @@ else
|
|
52
52
|
ext.ext_dir = 'ext/msgpack'
|
53
53
|
ext.cross_compile = true
|
54
54
|
ext.lib_dir = File.join(*['lib', 'msgpack', ENV['FAT_DIR']].compact)
|
55
|
-
ext.cross_platform = ['
|
55
|
+
ext.cross_platform = ['i386-mswin32-60', 'x64-mingw32']
|
56
56
|
end
|
57
57
|
|
58
58
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
@@ -66,49 +66,3 @@ end
|
|
66
66
|
CLEAN.include('lib/msgpack/msgpack.*')
|
67
67
|
|
68
68
|
task :default => [:spec, :build, :doc]
|
69
|
-
|
70
|
-
|
71
|
-
###
|
72
|
-
## Cross compile memo
|
73
|
-
##
|
74
|
-
## Ubuntu Ubuntu 10.04.1 LTS
|
75
|
-
##
|
76
|
-
#
|
77
|
-
### install mingw32 cross compiler with w64 support
|
78
|
-
# sudo apt-get install gcc-mingw32
|
79
|
-
# sudo apt-get install mingw-w64
|
80
|
-
#
|
81
|
-
### install rbenv
|
82
|
-
# git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
|
83
|
-
# echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
|
84
|
-
# echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
85
|
-
# exec $SHELL -l
|
86
|
-
#
|
87
|
-
### install cross-compiled ruby 2.0.0
|
88
|
-
# rbenv install 2.0.0-p247
|
89
|
-
# rbenv shell 2.0.0-p247
|
90
|
-
# gem update --system
|
91
|
-
# gem install rake-compiler
|
92
|
-
# rake-compiler cross-ruby VERSION=2.0.0-p247
|
93
|
-
#
|
94
|
-
### install cross-compiled ruby 1.9.3
|
95
|
-
# rbenv install 1.9.3-p327
|
96
|
-
# rbenv shell 1.9.3-p327
|
97
|
-
# gem update --system
|
98
|
-
# gem install rake-compiler
|
99
|
-
# rake-compiler cross-ruby VERSION=1.9.3-p327
|
100
|
-
#
|
101
|
-
### install cross-compiled ruby 1.8.7
|
102
|
-
# rbenv install 1.8.7-p374
|
103
|
-
# rbenv shell 1.8.7-p374
|
104
|
-
# gem update --system
|
105
|
-
# gem install rake-compiler
|
106
|
-
# rake-compiler cross-ruby VERSION=1.8.7-p374
|
107
|
-
#
|
108
|
-
### build gem
|
109
|
-
# rbenv shell 1.8.7-p374
|
110
|
-
# gem install bundler
|
111
|
-
# bundle
|
112
|
-
# rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0
|
113
|
-
#
|
114
|
-
|
data/ext/msgpack/compat.h
CHANGED
data/ext/msgpack/extconf.rb
CHANGED
@@ -7,7 +7,9 @@ have_func("rb_intern_str", ["ruby.h"])
|
|
7
7
|
have_func("rb_sym2str", ["ruby.h"])
|
8
8
|
have_func("rb_str_intern", ["ruby.h"])
|
9
9
|
|
10
|
-
|
10
|
+
unless RUBY_PLATFORM.include? 'mswin'
|
11
|
+
$CFLAGS << %[ -I.. -Wall -O3 -g -std=c99]
|
12
|
+
end
|
11
13
|
#$CFLAGS << %[ -DDISABLE_RMEM]
|
12
14
|
#$CFLAGS << %[ -DDISABLE_RMEM_REUSE_INTERNAL_FRAGMENT]
|
13
15
|
#$CFLAGS << %[ -DDISABLE_BUFFER_READ_REFERENCE_OPTIMIZE]
|
data/lib/msgpack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -121,7 +121,6 @@ files:
|
|
121
121
|
- bench/unpack.rb
|
122
122
|
- bench/unpack_log.rb
|
123
123
|
- bench/unpack_log_long.rb
|
124
|
-
- cross-build.sh
|
125
124
|
- doclib/msgpack.rb
|
126
125
|
- doclib/msgpack/buffer.rb
|
127
126
|
- doclib/msgpack/core_ext.rb
|
@@ -197,9 +196,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
196
|
version: '0'
|
198
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
198
|
requirements:
|
200
|
-
- - "
|
199
|
+
- - ">="
|
201
200
|
- !ruby/object:Gem::Version
|
202
|
-
version:
|
201
|
+
version: '0'
|
203
202
|
requirements: []
|
204
203
|
rubyforge_project: msgpack
|
205
204
|
rubygems_version: 2.4.5
|