mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-28 09:14:12 +01:00
ruby: add msgpack.mingw.{gemspec,sh}
This commit is contained in:
parent
7a0acf2838
commit
05a7e4eb64
@ -52,7 +52,7 @@ static int template_execute(template_context* ctx,
|
|||||||
|
|
||||||
|
|
||||||
static inline msgpack_object template_callback_root(unpack_user* u)
|
static inline msgpack_object template_callback_root(unpack_user* u)
|
||||||
{ msgpack_object o; return o; }
|
{ msgpack_object o = {0}; return o; }
|
||||||
|
|
||||||
static inline int template_callback_uint8(unpack_user* u, uint8_t d, msgpack_object* o)
|
static inline int template_callback_uint8(unpack_user* u, uint8_t d, msgpack_object* o)
|
||||||
{ o->type = MSGPACK_OBJECT_POSITIVE_INTEGER; o->via.u64 = d; return 0; }
|
{ o->type = MSGPACK_OBJECT_POSITIVE_INTEGER; o->via.u64 = d; return 0; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
AC_INIT(msgpack/unpack_template.h)
|
AC_INIT(msgpack/unpack_template.h)
|
||||||
AC_CONFIG_AUX_DIR(ac)
|
AC_CONFIG_AUX_DIR(ac)
|
||||||
AM_INIT_AUTOMAKE(msgpack, 0.4.1)
|
AM_INIT_AUTOMAKE(msgpack, 0.4.2)
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
AC_SUBST(CFLAGS)
|
AC_SUBST(CFLAGS)
|
||||||
|
@ -19,3 +19,8 @@ cat msgpack_test.rb | sed "s/require ['\"]msgpack['\"]/require File.dirname(__FI
|
|||||||
|
|
||||||
gem build msgpack.gemspec
|
gem build msgpack.gemspec
|
||||||
|
|
||||||
|
# ./msgpack.mingw.sh # on msys
|
||||||
|
# gem push msgpack-$version.gem
|
||||||
|
# gem push msgpack-$version-x86-mingw32.gem
|
||||||
|
# gem push msgpack-$version-mswin32.gem
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
s.name = "msgpack"
|
s.name = "msgpack"
|
||||||
s.version = "0.3.3"
|
s.version = "0.3.3"
|
||||||
s.summary = "MessagePack, a binary-based efficient data interchange format."
|
s.summary = "MessagePack, a binary-based efficient data interchange format."
|
||||||
@ -7,10 +7,10 @@ Gem::Specification.new do |s|
|
|||||||
s.email = "frsyuki@users.sourceforge.jp"
|
s.email = "frsyuki@users.sourceforge.jp"
|
||||||
s.homepage = "http://msgpack.sourceforge.jp/"
|
s.homepage = "http://msgpack.sourceforge.jp/"
|
||||||
s.rubyforge_project = "msgpack"
|
s.rubyforge_project = "msgpack"
|
||||||
s.has_rdoc = false
|
s.has_rdoc = false
|
||||||
s.extra_rdoc_files = ["README", "ChangeLog", "AUTHORS"]
|
s.extra_rdoc_files = ["README", "ChangeLog", "AUTHORS"]
|
||||||
s.require_paths = ["lib", "ext"]
|
s.require_paths = ["lib", "ext"]
|
||||||
s.files = Dir["lib/**/*", "ext/**/*", "msgpack/**/*", "test/**/*"]
|
s.files = Dir["lib/**/*", "ext/**/*", "msgpack/**/*", "test/**/*"]
|
||||||
s.test_files = Dir["test/test_*.rb"]
|
s.test_files = Dir["test/test_*.rb"]
|
||||||
s.extensions = Dir["ext/**/extconf.rb"]
|
s.extensions = Dir["ext/**/extconf.rb"]
|
||||||
end
|
end
|
||||||
|
16
ruby/msgpack.mingw.gemspec
Normal file
16
ruby/msgpack.mingw.gemspec
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Gem::Specification.new do |s|
|
||||||
|
s.platform = Gem::Platform::CURRENT
|
||||||
|
s.name = "msgpack"
|
||||||
|
s.version = "0.3.3"
|
||||||
|
s.summary = "MessagePack, a binary-based efficient data interchange format."
|
||||||
|
s.author = "FURUHASHI Sadayuki"
|
||||||
|
s.email = "frsyuki@users.sourceforge.jp"
|
||||||
|
s.homepage = "http://msgpack.sourceforge.jp/"
|
||||||
|
s.rubyforge_project = "msgpack"
|
||||||
|
s.has_rdoc = false
|
||||||
|
s.extra_rdoc_files = ["README", "ChangeLog", "AUTHORS"]
|
||||||
|
s.require_paths = ["lib", "ext"]
|
||||||
|
s.files = Dir["lib/**/*", "ext/**/*", "msgpack/**/*", "test/**/*"]
|
||||||
|
s.test_files = Dir["test/test_*.rb"]
|
||||||
|
s.extensions = Dir["ext/**/extconf.rb"]
|
||||||
|
end
|
21
ruby/msgpack.mingw.sh
Executable file
21
ruby/msgpack.mingw.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ -z "$1" ];then
|
||||||
|
echo "usage: $0 <version>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
version=$1
|
||||||
|
build=msgpack-mingw-build
|
||||||
|
|
||||||
|
./makegem.sh
|
||||||
|
gem build msgpack.mingw.gemspec
|
||||||
|
rm -rf $build
|
||||||
|
mkdir $build
|
||||||
|
cd $build
|
||||||
|
tar xvf ../msgpack-$version-x86-mingw32.gem
|
||||||
|
gunzip metadata.gz
|
||||||
|
sed s/x86-mingw32/mswin32/ metadata > metadata.tmp
|
||||||
|
mv metadata.tmp metadata
|
||||||
|
gzip metadata
|
||||||
|
tar cvf msgpack-$version-mswin32.gem metadata.gz data.tar.gz
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user