Aw, fork!
Creates a subprocess to execute a block inside.
- Home page: https://github.com/fixrb/aw
- Bugs/issues: https://github.com/fixrb/aw/issues
- Support: https://stackoverflow.com/questions/tagged/fixrb
Add this line to your application's Gemfile:
gem 'aw'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aw
It executes the block in a subprocess, and returns the result in the current process:
Aw.fork! { 6 * 7 } # => 42
Of course, it prevents from side effects:
arr = ['foo']
Aw.fork! { arr << 'FUU' } # => ["foo", "FUU"]
arr # => ["foo"]
As a basic form of security Aw provides a set of SHA512 checksums for
every Gem release. These checksums can be found in the checksum/
directory.
Although these checksums do not prevent malicious users from tampering with a
built Gem they can be used for basic integrity verification purposes.
The checksum of a file can be checked using the sha512sum
command. For
example:
$ sha512sum pkg/aw-0.1.0.gem
548d9f669ded4e622182791a5390aaceae0bf2e557b0864f05a842b0be2c65e10e1fb8499f49a3b9efd0e8eaeb691351b1c670d6316ce49965a99683b1071389 pkg/aw-0.1.0.gem
Aw follows Semantic Versioning 2.0.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
See LICENSE.md
file.
This project is sponsored by: