diff options
| author | Tomoyuki Sahara <[email protected]> | 2015-08-07 11:49:56 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2015-08-07 11:49:56 +0900 |
| commit | 4603047eb1a053cf566ab82444453b6f154b920a (patch) | |
| tree | 6558e9cd44eef92db9c78b1f6fe5757c90365f02 | |
| parent | 359d2ae6fd60cff9593d145d4e7c881cf031fbd5 (diff) | |
| download | mruby-4603047eb1a053cf566ab82444453b6f154b920a.tar.gz mruby-4603047eb1a053cf566ab82444453b6f154b920a.zip | |
update installation procedure.
| -rw-r--r-- | README.md | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -1,17 +1,20 @@ mruby-pack (pack / unpack) ========= -## install by mrbgems -```bash -git clone git://github.com/iij/mruby-pack.git -cp -pr mruby-pack ${MRUBY_ROOT}/mrbgems/g/. -echo mruby-pack >> ${MRUBY_ROOT}/mrbgems/GEMS.active -cd ${MRUBY_ROOT} -rake ENABLE_GEMS="true" -./bin/mruby ${MRUBY_ROOT}/mrbgems/g/mruby-pack/example/sample.rb +mruby-pack provides `Array#pack` and `String#unpack` for mruby. + + +## Installation +Add the line below into your `build_config.rb`: + ``` + conf.gem :github => 'iij/mruby-pack' +``` + +There is no dependency on other mrbgems. + -## supported template string +## Supported template string - A : arbitrary binary string (space padded, count is width) - a : arbitrary binary string (null padded, count is width) - C : 8-bit unsigned (unsigned char) |
