9 Commits

Author SHA1 Message Date
Josh Hagins
abff8a0cc8 desc: print short name unless multiple formulae have the same name 2016-04-16 16:14:15 +02:00
Andrew Janke
ac80883046 brew search: fix --desc regression
Fixes homebrew/homebrew-core#22

Closes #12.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-03 19:49:20 -04:00
Xu Cheng
e9886cac6c descriptions: update for core/formula separation
Update the description update logic, since now all formulae are in the taps.
2016-04-02 21:51:36 +08:00
Xu Cheng
43ba72fb57 descriptions: use each instead of map 2015-09-10 13:38:51 +08:00
Xu Cheng
c75207c1e0 desc: print descriptions directly by formulae instead of cache
We allow passing formulae by URL, file path, etc whose descriptions won't be cached

Closes Homebrew/homebrew#43726.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-10 13:37:58 +08:00
Xu Cheng
65996b5887 use json to cache descriptions
We need to use `atomic_write` when saving the cache. And it seems that
CSV module doesn't support dump, so let's use JSON instead.
2015-09-10 13:37:58 +08:00
Xu Cheng
c5536e1e08 Descriptions.cache_formulae: secure formulae loading 2015-09-10 13:37:58 +08:00
Xu Cheng
71be19235f Descriptions.cache_fresh?: return early 2015-09-10 13:37:58 +08:00
Dan Martinez
8374374168 Improve description searching and add a cache.
Closes Homebrew/homebrew#42281.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-08 15:23:37 +01:00