Sha256: c22b59952d11e1ba1ad814a8f77d132768137ecf969268745b33e5d89554a116

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

# DiffSet

DiffSet contains a collection of data structures optimized to perform partial set subtractions.

- `DiffSet::RandomSet` Produces a randomized set difference

- `DiffSet::PrioritySet` Produces an ordered set difference

- `DiffSet::PairwiseRandomSet` Presents a random set difference as a list of pairs

- `DiffSet::PairwisePrioritySet` Presents an ordered set difference as a list of pairs

## Installation

1. Install [Boost](http://www.boost.org/):

  - OS X: `brew update && brew install boost`
  
  - Ubuntu: `sudo apt-get update && sudo apt-get install libboost-all-dev`

3. Add this line to your application's Gemfile: `gem 'diff_set'`

4. And then execute: `bundle`

To install rice **Ruby must be compiled with shared libraries enabled**

  - rvm:   `rvm reinstall [version] -- --enable-shared`

  - rbenv: `CONFIGURE_OPTS="--enable-shared" rbenv install [version]`


## Usage

The API is pretty straightforward, and [the specs](https://github.com/parrish/diff_set/tree/master/spec) have examples.

## Testing

Run the specs with `rake`

## Contributing

1. Fork it ( http://github.com/parrish/diff_set/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
diff_set-0.0.4 README.md
diff_set-0.0.3 README.md
diff_set-0.0.2 README.md
diff_set-0.0.1-x86_64-darwin-13 README.md