Xu Cheng 
							
						 
					 
					
						
						
						
						
							
						
						
							6c8c56a689 
							
						 
					 
					
						
						
							
							build: store source modified time in tabfile  
						
						
						
						
					 
					
						2016-01-15 16:26:04 +08:00 
						 
				 
			
				
					
						
							
							
								Xu Cheng 
							
						 
					 
					
						
						
						
						
							
						
						
							b121e5fd7b 
							
						 
					 
					
						
						
							
							more core file style updated by rubocop  
						
						
						
						
					 
					
						2015-08-06 17:23:56 +08:00 
						 
				 
			
				
					
						
							
							
								BrewTestBot 
							
						 
					 
					
						
						
						
						
							
						
						
							13d544e11e 
							
						 
					 
					
						
						
							
							Core files style updates.  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> 
					
						2015-08-03 13:22:35 +01:00 
						 
				 
			
				
					
						
							
							
								Dominyk Tiller 
							
						 
					 
					
						
						
						
						
							
						
						
							12861686b8 
							
						 
					 
					
						
						
							
							checksums: switch to sha256 for bottles and new formulae  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#37164 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> 
					
						2015-03-05 14:45:39 +00:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							7a49c143e4 
							
						 
					 
					
						
						
							
							Use attr_accessor for checksum  
						
						
						
						
					 
					
						2015-01-12 00:37:24 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							0f01e9ff43 
							
						 
					 
					
						
						
							
							Remove the direct url writer from Resource  
						
						
						
						
					 
					
						2015-01-08 14:18:41 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							b459f953c4 
							
						 
					 
					
						
						
							
							Stop caching the downloader on the resource instance  
						
						
						
						
					 
					
						2015-01-06 00:25:04 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							62c0a391b4 
							
						 
					 
					
						
						
							
							Don't attempt to detect version if URL is not set  
						
						
						
						
					 
					
						2014-12-31 10:38:04 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							9a89878b75 
							
						 
					 
					
						
						
							
							Revert "Skip temporary directory when target directory is known"  
						
						... 
						
						
						
						This reverts commit 028ee18b851497f8aede55004bcdcc5c16f087cc. 
						
						
					 
					
						2014-12-14 17:59:35 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							5ca4dbfd25 
							
						 
					 
					
						
						
							
							Skip temporary directory when target directory is known  
						
						
						
						
					 
					
						2014-12-14 13:32:55 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							0ed43d607b 
							
						 
					 
					
						
						
							
							Validate arguments in Resource#stage  
						
						
						
						
					 
					
						2014-12-13 23:27:59 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							d157301cdc 
							
						 
					 
					
						
						
							
							Pass the downloader a proxy object instead of the resource  
						
						... 
						
						
						
						We need to limit the interface that is exposed to the downloader in
order to make future changes easier.
This will be important for work on new features, such as selecting
a mirror from the command line.
In the future, the existing Resource class will probably be split into
multiple classes. 
						
						
					 
					
						2014-12-05 22:11:23 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							68a5268aef 
							
						 
					 
					
						
						
							
							Download strategies should return a Pathname from cached_location  
						
						
						
						
					 
					
						2014-12-05 18:08:21 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							3d96dad25c 
							
						 
					 
					
						
						
							
							Pull cache creation out of begin block  
						
						
						
						
					 
					
						2014-10-10 20:30:29 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							b3ed5a367d 
							
						 
					 
					
						
						
							
							Remove redundant comments  
						
						
						
						
					 
					
						2014-10-10 20:30:29 -05:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							4743fc1662 
							
						 
					 
					
						
						
							
							Add Go language module, resources  
						
						... 
						
						
						
						This introduces a new GoResource category of resource. GoResources
have a specialized stage method which allows a resource to stage
itself into a gopath.
The new Go language module provides a one-liner to stage all
GoResources present in the formula. 
						
						
					 
					
						2014-09-01 19:56:43 -07:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							aec47d8a19 
							
						 
					 
					
						
						
							
							resource: escape slashes from download_name  
						
						... 
						
						
						
						This is useful to be able to write go resources using their package
name as the resource name 
						
						
					 
					
						2014-09-01 19:56:43 -07:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							771bc2978c 
							
						 
					 
					
						
						
							
							Eagerly set the download strategy  
						
						
						
						
					 
					
						2014-07-15 13:42:03 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							f446e95852 
							
						 
					 
					
						
						
							
							Remove support for version "schemes", just pass version objects directly  
						
						... 
						
						
						
						I'm not sure why I thought reinventing object instantiation was a good
idea. 
						
						
					 
					
						2014-05-27 21:41:43 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							28fa5b0261 
							
						 
					 
					
						
						
							
							Remove some evals from formula DSL  
						
						... 
						
						
						
						The default arguments were removed from these methods long ago, so
nothing is standing in the way of using define_method here. 
						
						
					 
					
						2014-05-27 21:03:47 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							7af46a5ed0 
							
						 
					 
					
						
						
							
							Always use CurlDownloadStrategy for legacy patches  
						
						... 
						
						
						
						Fixes  Homebrew/homebrew#27671 . 
					
						2014-03-18 14:24:32 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							bc6e4a1894 
							
						 
					 
					
						
						
							
							New patch implementation and DSL  
						
						... 
						
						
						
						This commit introduces a new patch implementation that supports
checksums and caching.
Patches are declared in blocks:
  patch do
    url ...
    sha1 ...
  end
A strip level of -p1 is assumed. It can be overridden using a symbol
argument:
  patch :p0 do
    url ...
    sha1 ...
  end
Patches can be declared in stable, devel, and head blocks. This form is
preferred over using conditionals.
  stable do
    # ...
    patch do
      url ...
      sha1 ...
    end
  end
Embedded (__END__) patches are declared like so:
  patch :DATA
  patch :p0, :DATA
Patches can also be embedded by passing a string. This makes it possible
to provide multiple embedded patches while making only some of them
conditional.
  patch :p0, "..." 
						
						
					 
					
						2014-03-13 21:35:41 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							9b8cff1484 
							
						 
					 
					
						
						
							
							Tweak DownloadError message to include wrapped exception  
						
						
						
						
					 
					
						2014-02-18 15:08:03 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							c9784c1857 
							
						 
					 
					
						
						
							
							Collapse begin..end into def..end and use else clause  
						
						
						
						
					 
					
						2014-02-18 15:08:03 -05:00 
						 
				 
			
				
					
						
							
							
								Drew Rodman 
							
						 
					 
					
						
						
						
						
							
						
						
							d63ef14794 
							
						 
					 
					
						
						
							
							Add DownloadError to catch a broader range of resource download errors.  
						
						... 
						
						
						
						Adding a broader exception class allows for errors raised in Resource.fetch
to be caught in upgrade and prevent the process from being killed when
a download fails. This should resolve issue 18364.
Fixes  Homebrew/homebrew#18364 .
Closes  Homebrew/homebrew#26618 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
						
						
					 
					
						2014-02-18 15:08:03 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							ca0eff67fa 
							
						 
					 
					
						
						
							
							Inline static exception text to remove a rescue  
						
						
						
						
					 
					
						2014-02-18 13:27:35 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							a762f21e33 
							
						 
					 
					
						
						
							
							formula, resource: output when verifying checksum.  
						
						... 
						
						
						
						References Homebrew/homebrew#24566 . 
						
						
					 
					
						2013-12-08 21:37:40 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							8ba503ebb6 
							
						 
					 
					
						
						
							
							resource: convert unpack target to Pathname.  
						
						
						
						
					 
					
						2013-11-27 13:29:24 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							1d0515c1d3 
							
						 
					 
					
						
						
							
							resource: only unpack to target if it exists.  
						
						
						
						
					 
					
						2013-11-06 18:34:08 +00:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							d35e465671 
							
						 
					 
					
						
						
							
							fetch: clear partial downloads when --force is given  
						
						... 
						
						
						
						Fixes  Homebrew/homebrew#23764 . 
					
						2013-10-31 14:29:38 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							9966943a34 
							
						 
					 
					
						
						
							
							Resource: extract unpacking from #stage  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#23768 . 
					
						2013-10-30 10:43:57 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							2dd44f7791 
							
						 
					 
					
						
						
							
							Resource: push conditional down into #verify_download_integrity  
						
						
						
						
					 
					
						2013-10-30 10:16:20 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							167017f89a 
							
						 
					 
					
						
						
							
							Resource: do not mutate passed-in specs hash  
						
						
						
						
					 
					
						2013-10-11 20:21:41 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							b35d9906e5 
							
						 
					 
					
						
						
							
							Pass the mktemp prefix as an argument  
						
						
						
						
					 
					
						2013-10-02 22:01:31 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							c464c7549f 
							
						 
					 
					
						
						
							
							Clean up SoftwareSpec and Resource initializers  
						
						
						
						
					 
					
						2013-09-23 21:39:33 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							50d2f632d9 
							
						 
					 
					
						
						
							
							Allow partial installation of resources  
						
						
						
						
					 
					
						2013-09-17 21:29:54 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							d46f500556 
							
						 
					 
					
						
						
							
							More useful error message for missing checksums  
						
						
						
						
					 
					
						2013-09-17 21:29:54 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							e3a3a0c320 
							
						 
					 
					
						
						
							
							Reorganize resource download methods  
						
						
						
						
					 
					
						2013-09-17 21:29:53 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							6116450328 
							
						 
					 
					
						
						
							
							Move formula resources to SoftwareSpec  
						
						
						
						
					 
					
						2013-09-17 21:29:52 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							df537528c7 
							
						 
					 
					
						
						
							
							Reimplement SoftwareSpec on top of Resource  
						
						
						
						
					 
					
						2013-09-17 21:29:52 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							eb3071332c 
							
						 
					 
					
						
						
							
							Decouple Resource from SoftwareSpec  
						
						
						
						
					 
					
						2013-09-17 21:29:50 -05:00 
						 
				 
			
				
					
						
							
							
								Samuel Cochran 
							
						 
					 
					
						
						
						
						
							
						
						
							23c869afee 
							
						 
					 
					
						
						
							
							Cater to download strategies not yielding a file  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#22580 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2013-09-16 14:32:40 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							7804d2d5f3 
							
						 
					 
					
						
						
							
							Remove unused attr  
						
						
						
						
					 
					
						2013-09-13 22:43:07 -05:00 
						 
				 
			
				
					
						
							
							
								Adam Vandenberg 
							
						 
					 
					
						
						
						
						
							
						
						
							d4cf3ef212 
							
						 
					 
					
						
						
							
							Implement Resources  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#20212 . 
					
						2013-09-11 22:05:26 -07:00