README.md in rbnacl-3.0.1 vs README.md in rbnacl-3.1.0
- old
+ new
@@ -65,33 +65,29 @@
## Installation
### libsodium
-RbNaCl is implemented as a Ruby FFI binding, which is designed to bind to
-shared libraries. Unfortunately NaCl does not presently ship a shared library,
-so RbNaCl cannot take advantage of it via FFI. RbNaCl will support usage with
-the upstream NaCl once it is able to compile a shared library.
+**NOTE: Want to avoid the hassle of installing libsodium? Use the
+[rbnacl-libsodium](https://github.com/cryptosphere/rbnacl-libsodium) gem**
-For now, to use RbNaCl, you will need to install libsodium, a portable version
-of NaCl based upon the reference C code. Please see the libsodium project
-for information regarding installation:
+To use RbNaCl, you will need to install libsodium:
https://github.com/jedisct1/libsodium
+For OS X users, libsodium is available via homebrew and can be installed with:
+
+ brew install libsodium
+
For FreeBSD users, libsodium is available both via pkgng and ports. To install
a binary package:
pkg install libsodium
To install from ports on FreeBSD, use your favorite ports front end (e.g.
portmaster or portupgrade), or use make as follows:
cd /usr/ports/security/libsodium; make install clean
-
-For OS X users, libsodium is available via homebrew and can be installed with:
-
- brew install libsodium
### RbNaCl gem
Once you have libsodium installed, add this line to your application's Gemfile: