lib/rake_dependencies/tasks/extract.rb in rake_dependencies-0.16.1.pre1 vs lib/rake_dependencies/tasks/extract.rb in rake_dependencies-0.16.1.pre2
- old
+ new
@@ -44,29 +44,29 @@
os_id: os_id,
ext: ext
}
distribution_file_name = Template.new(file_name_template)
- .with_parameters(parameters)
- .render
+ .with_parameters(parameters)
+ .render
distribution_file_directory = File.join(path, distribution_directory)
distribution_file_path = File.join(
distribution_file_directory, distribution_file_name)
extraction_path = File.join(path, binary_directory)
options = {}
if strip_path_template
options[:strip_path] = Template.new(strip_path_template)
- .with_parameters(parameters)
- .render
+ .with_parameters(parameters)
+ .render
end
if target_name_template
options[:rename_to] = Template.new(target_name_template)
- .with_parameters(parameters)
- .render
+ .with_parameters(parameters)
+ .render
end
extractor = extractor_for_extension.new(
distribution_file_path,
extraction_path,
@@ -93,16 +93,20 @@
type.is_a?(Hash) ? type[platform].to_sym : type.to_sym
end
def ext
case resolved_type
- when :tar_gz then '.tar.gz'
- when :tgz then '.tgz'
- when :zip then '.zip'
- when :uncompressed then ''
- else
- raise "Unknown type: #{type}"
+ when :tar_gz then
+ '.tar.gz'
+ when :tgz then
+ '.tgz'
+ when :zip then
+ '.zip'
+ when :uncompressed then
+ ''
+ else
+ raise "Unknown type: #{type}"
end
end
end
end
-end
\ No newline at end of file
+end