summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2015-08-07 11:49:56 +0900
committerTomoyuki Sahara <[email protected]>2015-08-07 11:49:56 +0900
commit4603047eb1a053cf566ab82444453b6f154b920a (patch)
tree6558e9cd44eef92db9c78b1f6fe5757c90365f02
parent359d2ae6fd60cff9593d145d4e7c881cf031fbd5 (diff)
downloadmruby-4603047eb1a053cf566ab82444453b6f154b920a.tar.gz
mruby-4603047eb1a053cf566ab82444453b6f154b920a.zip
update installation procedure.
-rw-r--r--README.md21
1 files changed, 12 insertions, 9 deletions
diff --git a/README.md b/README.md
index e82458f06..91addce80 100644
--- a/README.md
+++ b/README.md
@@ -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)