lib/rake_dependencies/tasks/extract.rb in rake_dependencies-0.16.1.pre2 vs lib/rake_dependencies/tasks/extract.rb in rake_dependencies-0.16.1.pre3
- old
+ new
@@ -25,11 +25,12 @@
parameter :dependency, required: true
parameter :version
parameter :path, required: true
parameter :file_name_template, required: true
- parameter :target_name_template
+ parameter :source_binary_name_template
+ parameter :target_binary_name_template
parameter :strip_path_template
def process_arguments args
super(args)
self.name = args[0] if args[0]
@@ -59,11 +60,14 @@
options[:strip_path] = Template.new(strip_path_template)
.with_parameters(parameters)
.render
end
- if target_name_template
- options[:rename_to] = Template.new(target_name_template)
+ if source_binary_name_template && target_binary_name_template
+ options[:rename_from] = Template.new(source_binary_name_template)
+ .with_parameters(parameters)
+ .render
+ options[:rename_to] = Template.new(target_binary_name_template)
.with_parameters(parameters)
.render
end
extractor = extractor_for_extension.new(