0.0
No commit activity in last 3 years
No release in over 3 years
Turn your json, csv, md, or strings into grocery lists that you can then search for.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.4
 Project Readme

Grocery-list

Build Status Coverage Status

Turn your json, csv, md, or strings into grocery lists that you can then search for.

Example usage

require 'grocery_list'

GroceryList.search_all('spam, eggs, bacon')
#=> opens 1 tab/item on iga.net sorted by price ascending

Installation

gem install grocery_list

Formats

Strings

Strings are expected to be split by commas.

  "spam, egg, bacon, maple syrup" #=> valid
  "spam, egg, \nbacon, maple syrup" #=> invalid

JSON

Just pass in an array of strings and you're golden.

  '["spam", "egg", "bacon", "maple syrup"]'

Markdown File

Every list items identified by a * is considered an item. Every line which doesn't respect this isn't.

# Grocery List
 * Spam
 * Eggs
 * Bacon
 * Maple syrup

Anything else isn't considered an item.

To do

  • Implement more searchers? I have IGA.net working in Montreal; Could be extended?

License

MIT