lib/ortega/file.rb in ortega-0.0.7 vs lib/ortega/file.rb in ortega-0.0.8

- old
+ new

@@ -41,10 +41,11 @@ def self.get_path(options) options = options.with_indifferent_access file = new(options) file.instance_eval do - @name = @name.split('/').last + (@extension[0] == '.' ? '' : @extension.insert(0, '.')) + @extension[0] == '.' ? '' : @extension.insert(0, '.') + @name = @name.split('/').last + @extension @destination = ::File.join( "#{file.destination ? ::File.expand_path(file.destination) : '.'}", file.name) end