msgpack 0.6.0pre1-x64-mingw32 → 0.6.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 672b7a4df1a4b231bb4a07352b1269f2f5e02162
4
- data.tar.gz: bbc2bc931d13eea5dac6347c2dd2870d1fa1cf4b
3
+ metadata.gz: 65d6f0eb6ecb8c8036e9f6edc12c9e17feab5fef
4
+ data.tar.gz: 84bedb5b93fc1c4827c5d08d50ac6f50659983ca
5
5
  SHA512:
6
- metadata.gz: fa6a45fefd0a1500a408c94d54d7cabb4f5b45319cabaff110e8022caba938df554b52fa72fd23f7d735c3baad47cce4125d8ef66f8ffd821112b4b65415acb7
7
- data.tar.gz: c6fdbf9a9cb27abc1435688520b5702756ae356fd9911a6d8eb70cd600e4e80d16feebdf484b3149cab229402fd12b08db40d16e2a8ed01d73d82cd23932784f
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
- RUN apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
8
- RUN apt-get install gcc-mingw32 mingw-w64
9
- # RUN git?
10
- RUN git clone https://github.com/tagomoris/xbuild.git /home/ubuntu/.xbuild
11
- RUN /home/ubuntu/.xbuild/ruby-install 2.2.2 /home/ubuntu/local/ruby-2.2
12
- RUN PATH=/home/ubuntu/local/ruby-2.2/bin:$PATH /home/ubuntu/local/ruby-2.2/bin/gem install rake-compiler
13
- RUN PATH=/home/ubuntu/local/ruby-2.2/bin:$PATH rake-compiler cross-ruby VERSION=2.2.2 EXTS=--without-extensions
14
- RUN /home/ubuntu/.xbuild/ruby-install 2.1.5 /home/ubuntu/local/ruby-2.1
15
- RUN PATH=/home/ubuntu/local/ruby-2.1/bin:$PATH /home/ubuntu/local/ruby-2.1/bin/gem install rake-compiler
16
- RUN PATH=/home/ubuntu/local/ruby-2.1/bin:$PATH rake-compiler cross-ruby VERSION=2.1.5 EXTS=--without-extensions
17
- RUN /home/ubuntu/.xbuild/ruby-install 2.0.0-p643 /home/ubuntu/local/ruby-2.0
18
- RUN PATH=/home/ubuntu/local/ruby-2.0/bin:$PATH /home/ubuntu/local/ruby-2.0/bin/gem install rake-compiler
19
- RUN PATH=/home/ubuntu/local/ruby-2.0/bin:$PATH rake-compiler cross-ruby VERSION=2.0.0-p643 EXTS=--without-extensions
20
-
21
- RUN git clone https://github.com/msgpack/msgpack-ruby.git /home/ubuntu/msgpack-ruby
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
- ENTRYPOINT ["/home/ubuntu/msgpack-ruby/cross-build.sh", "/home/ubuntu/local/ruby-2.2", "2.0.0-p643:2.1.5:2.2.2"]
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"]
@@ -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 = ['x86-mswin32', 'x64-mingw32']
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
-
@@ -18,6 +18,7 @@
18
18
  #ifndef MSGPACK_RUBY_COMPAT_H__
19
19
  #define MSGPACK_RUBY_COMPAT_H__
20
20
 
21
+ #include <stdbool.h>
21
22
  #include "ruby.h"
22
23
 
23
24
  #if defined(HAVE_RUBY_ST_H)
@@ -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
- $CFLAGS << %[ -I.. -Wall -O3 -g -std=c99]
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]
@@ -1,3 +1,3 @@
1
1
  module MessagePack
2
- VERSION = "0.6.0pre1"
2
+ VERSION = "0.6.0"
3
3
  end
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.0pre1
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-20 00:00:00.000000000 Z
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: 1.3.1
201
+ version: '0'
203
202
  requirements: []
204
203
  rubyforge_project: msgpack
205
204
  rubygems_version: 2.4.5
@@ -1,9 +0,0 @@
1
- #!/bin/bash
2
-
3
- cd /home/ubuntu/msgpack-ruby
4
- git remote add onetime $MSGPACK_REPO
5
- git checkout master
6
- git pull onetime $BUILD_BRANCH
7
- git reset --hard $BUILD_POSITION
8
- bundle install
9
- bundle rake cross native gem