lib/s3repo/metadata.rb in s3repo-2.0.3 vs lib/s3repo/metadata.rb in s3repo-3.0.1
- old
+ new
@@ -40,15 +40,15 @@
@options[:repo_name] || raise('No repo name given')
end
def db_names
@db_names ||= ['repo', repo_name].flat_map do |x|
- [x + '.db.tar.xz', x + '.db']
+ ["#{x}.db.tar.xz", "#{x}.db"]
end
end
def sig_names
- @sig_names ||= db_names.map { |x| x + '.sig' }
+ @sig_names ||= db_names.map { |x| "#{x}.sig" }
end
def signer
@options[:signer] ||= Signer.new(@options)
end