Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Grubber helps you find a place to eat neaby.
Simply:
$ gem install grubber
Grubber uses the Yelp API to find nearby places. To use grubber you must get yourself Yelp API access. You can do so at: http://www.yelp.com/developers
Once you have your tokens, run grubber auth
. This will
prompt you for your credentials and get you the rest of the way.
Grubber uses CoreLocation to find out where you're geographically operating. It will request permission once and then cache your location. Grubber will automatically find your coordinates when needed if you haven't previously located yourself.
CoreLocation requires you grant ruby permission to use Location Services. You should be prompted for permission once, and don't have to worry about it again.
To revoke previously granted permissions, you can uncheck ruby in:
System Preferences > Security & Privacy > Privacy > Location Services
You can request grubber to update its cached location by calling locate
:
$ grubber locate
Updated coordinates to: 37.782487810714265, -122.40982359190473
Developers Note: No stalkers please
Grubber has two primary commands:
Grubber can list a bunch of nearby restaurants. Each entry has the name, rating, address, category, phone and url.
Protip: If using iTerm, you can cmd+click on a url to open in your default browser
$ grubber list
Split Pea Seduction ★ ★ ★ ★ ☆
138 6th St
[Sandwiches] +1-415-551-2223
http://www.yelp.com/biz/split-pea-seduction-san-francisco
Miss SaiGon ★ ★ ★ ★ ☆
100 6th St
[Vietnamese] +1-415-522-0332
http://www.yelp.com/biz/miss-saigon-san-francisco-2
Punjab Kabab House ★ ★ ★ ☆ ☆
101 Eddy St
[Indian] +1-415-447-7499
http://www.yelp.com/biz/punjab-kabab-house-san-francisco
Cafe Venue ★ ★ ★ ☆ ☆
67 5th St
[Coffee & Tea] +1-415-546-1144
http://www.yelp.com/biz/cafe-venue-san-francisco-7
...
Grubber can just go ahead and pick a nearby restaurant for you to avoid you having to think about exactly where you want to go. Pick returns all the same fields as list.
$ grubber pick
Tu Lan ★ ★ ★ ★ ☆
8 6th St
[Vietnamese] +1-415-626-0927
http://www.yelp.com/biz/tu-lan-san-francisco-2
grubber help [TASK] # Describe available tasks or one specific task
grubber auth # Enter your Yelp API credentials
grubber list # List available nearby restaurants
grubber locate # Refresh your grubber's known coordinates
grubber pick # Pick a restaurant nearby
When I run call locate twice in a row, it just hangs. wtf
If you request a new location from CoreLocation too quickly, the command will simply hang. Unfortunately this pertains to [a problem]((https://github.com/evanphx/lost/pull/2) with the awesome ruby wrapper lost that evanphx has written. Grubber will cache your location, so it shouldn't be a problem. Just don't move around so fast.
I would like to add a few features to grubber. Such as:
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that grubber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.