msgpack 0.6.0pre1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/ChangeLog +12 -0
- data/Dockerfile +62 -0
- 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 +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f57829db3ad4359a6065eced56e9fcd9bcbea1ce
|
4
|
+
data.tar.gz: 5c2674055751c11c5756ef056dfc3ff871ce6036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9128c789359ddaa85199b3308e9b9d2e71889fd93b64813c247fad4a6cbc08059566006722c2349f1a3122dcf88eb0ff73fda1b2cea9c1b7e33eb79a7d0b5ed
|
7
|
+
data.tar.gz: 6be7ba85981626bf0bb2c938e66449cadcc03cfe6d62611639364f163b871aab64ab0ff2ab83eb8af10db713b528c3e5364f5f8ee179604864fb3cffdd934827
|
data/.travis.yml
CHANGED
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
ADDED
@@ -0,0 +1,62 @@
|
|
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.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
|
54
|
+
|
55
|
+
WORKDIR /home/ubuntu/msgpack-ruby
|
56
|
+
|
57
|
+
ENV MSGPACK_REPO https://github.com/msgpack/msgpack-ruby.git
|
58
|
+
ENV BUILD_BRANCH master
|
59
|
+
ENV BUILD_POSITION HEAD
|
60
|
+
|
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 pull dockerbuild $BUILD_BRANCH && git reset --hard $BUILD_POSITION && bundle && rake clean && 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
|
-
|
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: ruby
|
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
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- ".gitignore"
|
110
110
|
- ".travis.yml"
|
111
111
|
- ChangeLog
|
112
|
+
- Dockerfile
|
112
113
|
- Gemfile
|
113
114
|
- LICENSE
|
114
115
|
- README.rdoc
|
@@ -195,9 +196,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
196
|
version: '0'
|
196
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
198
|
requirements:
|
198
|
-
- - "
|
199
|
+
- - ">="
|
199
200
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
201
|
+
version: '0'
|
201
202
|
requirements: []
|
202
203
|
rubyforge_project: msgpack
|
203
204
|
rubygems_version: 2.4.5
|