| 
									
										
										
										
											2019-12-03 11:42:09 +00:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Formula | 
					
						
							|  |  |  |   module Compat | 
					
						
							|  |  |  |     def installed? | 
					
						
							| 
									
										
										
										
											2020-05-18 13:50:43 +01:00
										 |  |  |       odeprecated "Formula#installed?", | 
					
						
							|  |  |  |                   "Formula#latest_version_installed? (or Formula#any_version_installed? )" | 
					
						
							| 
									
										
										
										
											2019-12-03 11:42:09 +00:00
										 |  |  |       latest_version_installed? | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2020-05-18 13:50:43 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def prepare_patches | 
					
						
							|  |  |  |       if respond_to?(:patches) | 
					
						
							|  |  |  |         active_spec.add_legacy_patches(patches) | 
					
						
							|  |  |  |         odeprecated "patches", "patch do" | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       super | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2019-12-03 11:42:09 +00:00
										 |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   prepend Compat | 
					
						
							|  |  |  | end |