end
def one_time_only?
- @meta['One-time-only'] && @meta['One-time-only'] == 'true'
+ @meta['One-time-only'] == 'true'
end
def self.create(src, pass, meta)
break
end
end until line.empty?
- end
+ end if File.exists?(links_path)
end
dst
end
FILENAME_CHARS.each { |c| map[c] = c; map[c.upcase] = c }
map.merge!({ '1' => 'l', '0' => 'o' })
result = ''
- str.each_char { |c| result << map[c] }
+ str.each_char { |c| result << map[c] if map[c] }
result
end
end