Ryan Rotter 
							
						 
					 
					
						
						
						
						
							
						
						
							99486c8107 
							
						 
					 
					
						
						
							
							Use API for description searches  
						
						... 
						
						
						
						Both `brew search --desc` and `brew desc --search` use API for cask and
formula searches unless `--eval-all` or `HOMEBREW_EVAL_ALL` set.
Description searches do not use the description cache or eval any
formulas/casks.
- With `--eval-all`, description search reverts to the old behavior.
- Warn if description search exludes any formulae/casks (because
  `--eval-all` not set).
- Enforce `--eval-all` requirement if NO_INSTALL_FROM_API set. 
						
						
					 
					
						2024-06-30 23:05:29 -04:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0f0055ede4 
							
						 
					 
					
						
						
							
							Make documentation @api private by default.  
						
						
						
						
					 
					
						2024-04-26 19:04:20 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ea2892f8ee 
							
						 
					 
					
						
						
							
							brew.rb: handle missing args.  
						
						
						
						
					 
					
						2024-03-07 16:20:20 +00:00 
						 
				 
			
				
					
						
							
							
								Douglas Eichelberger 
							
						 
					 
					
						
						
						
						
							
						
						
							23587b70a1 
							
						 
					 
					
						
						
							
							Port Descriptions  
						
						
						
						
					 
					
						2023-03-07 09:08:54 -08:00 
						 
				 
			
				
					
						
							
							
								apainintheneck 
							
						 
					 
					
						
						
						
						
							
						
						
							47b3f6fe6e 
							
						 
					 
					
						
						
							
							Stop including/extending search.rb  
						
						... 
						
						
						
						- Instead use class methods.
- This is better than use it as a mixin
  when only a small number of methods are
  used in each class or module.
- It also allows us to conditionally
  require it in `brew install`.
- Removed unused search require in descriptions.rb. 
						
						
					 
					
						2022-12-17 11:08:13 -08:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							639cb25c60 
							
						 
					 
					
						
						
							
							description*: fix argument handling of eval_all.  
						
						... 
						
						
						
						Fixes  #14231 . 
					
						2022-12-08 09:57:12 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							28719f7fdc 
							
						 
					 
					
						
						
							
							cmd/desc: fix searching.  
						
						... 
						
						
						
						Ensure that the cache store is populated if we pass `--eval-all`. 
						
						
					 
					
						2022-12-06 13:56:54 +00:00 
						 
				 
			
				
					
						
							
							
								EricFromCanada 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2fdc70c3bf 
							
						 
					 
					
						
						
							
							desc, search: also search cask descriptions  
						
						
						
						
					 
					
						2022-03-30 11:23:55 -04:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2e6b6ab3a2 
							
						 
					 
					
						
						
							
							Fix style  
						
						
						
						
					 
					
						2021-12-24 21:15:21 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c13d7e6723 
							
						 
					 
					
						
						
							
							Fix brew style  
						
						
						
						
					 
					
						2021-02-16 09:25:34 +00:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							24ae318a3d 
							
						 
					 
					
						
						
							
							Move type annotations into files.  
						
						
						
						
					 
					
						2020-10-10 14:59:39 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							8f468d0c13 
							
						 
					 
					
						
						
							
							Document Descriptions.  
						
						
						
						
					 
					
						2020-08-26 03:13:58 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							36dbad3922 
							
						 
					 
					
						
						
							
							Add frozen_string_literal to all files.  
						
						
						
						
					 
					
						2019-04-20 13:27:36 +09:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fe6b78a3f3 
							
						 
					 
					
						
						
							
							Use cache_store for descriptions  
						
						... 
						
						
						
						This makes use of both the existing interfaces and could use the
existing cache file but we'll create a new one and cleanup the old one
to avoid issues and use a more consistent name. 
						
						
					 
					
						2018-10-13 08:22:52 -07:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							e9b9ea49a1 
							
						 
					 
					
						
						
							
							Update to RuboCop 0.59.1.  
						
						
						
						
					 
					
						2018-09-17 03:45:59 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							717032d86d 
							
						 
					 
					
						
						
							
							Use Searchable module.  
						
						
						
						
					 
					
						2018-06-07 14:02:31 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							6fcc5d14de 
							
						 
					 
					
						
						
							
							Simplify strings for search.  
						
						
						
						
					 
					
						2018-06-07 13:50:10 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							9fca172d03 
							
						 
					 
					
						
						
							
							Fix HOMEBREW_RUBY_WARNINGS="-w"  
						
						... 
						
						
						
						Fix various circular requirements, method redefinitions, etc. 
						
						
					 
					
						2018-04-07 20:28:56 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							175ca909ee 
							
						 
					 
					
						
						
							
							Clean up code style and remove .rubocop_todo.yml.  
						
						
						
						
					 
					
						2017-10-08 16:10:37 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							7a38bab333 
							
						 
					 
					
						
						
							
							Fixup all RuboCop warnings.  
						
						
						
						
					 
					
						2017-05-29 18:43:18 +01:00 
						 
				 
			
				
					
						
							
							
								William Woodruff 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d07b9ed7f2 
							
						 
					 
					
						
						
							
							Replace Utils::JSON with corelib JSON calls.  
						
						
						
						
					 
					
						2016-11-20 20:06:25 -05:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							84b2276fd8 
							
						 
					 
					
						
						
							
							Use guard clauses.  
						
						
						
						
					 
					
						2016-11-13 23:00:47 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							75e8b59aad 
							
						 
					 
					
						
						
							
							Add Formatter module.  
						
						
						
						
					 
					
						2016-10-01 20:00:49 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							6d8ee395fa 
							
						 
					 
					
						
						
							
							Refactor Tty.  
						
						
						
						
					 
					
						2016-10-01 20:00:49 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							4861ee6c2d 
							
						 
					 
					
						
						
							
							Fix Style/Semicolon.  
						
						
						
						
					 
					
						2016-09-23 15:30:07 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							0581dda187 
							
						 
					 
					
						
						
							
							Auto-correct guard clauses.  
						
						
						
						
					 
					
						2016-09-23 15:30:05 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							3982950e61 
							
						 
					 
					
						
						
							
							rubocop --auto-correct all hash-rocket usage.  
						
						
						
						
					 
					
						2016-09-17 16:14:13 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							6693915399 
							
						 
					 
					
						
						
							
							rubocop --auto-correct all remaining files.  
						
						... 
						
						
						
						But remove some manual `.freeze`s on constants that shouldn't be
constants. 
						
						
					 
					
						2016-09-17 16:14:13 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							7c278319ed 
							
						 
					 
					
						
						
							
							descriptions: assume Ruby 2.  
						
						
						
						
					 
					
						2016-08-17 09:19:56 +01:00 
						 
				 
			
				
					
						
							
							
								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