Add installed and outdated to cask json output
This commit is contained in:
		
							parent
							
								
									d75e9c99b3
								
							
						
					
					
						commit
						9cf3d5a32d
					
				@ -175,6 +175,8 @@ module Cask
 | 
				
			|||||||
        "url"            => url,
 | 
					        "url"            => url,
 | 
				
			||||||
        "appcast"        => appcast,
 | 
					        "appcast"        => appcast,
 | 
				
			||||||
        "version"        => version,
 | 
					        "version"        => version,
 | 
				
			||||||
 | 
					        "installed"      => versions,
 | 
				
			||||||
 | 
					        "outdated"       => outdated?,
 | 
				
			||||||
        "sha256"         => sha256,
 | 
					        "sha256"         => sha256,
 | 
				
			||||||
        "artifacts"      => artifacts.map(&method(:to_h_gsubs)),
 | 
					        "artifacts"      => artifacts.map(&method(:to_h_gsubs)),
 | 
				
			||||||
        "caveats"        => (to_h_string_gsubs(caveats) unless caveats.empty?),
 | 
					        "caveats"        => (to_h_string_gsubs(caveats) unless caveats.empty?),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user