bin/credy in credy-0.1.1 vs bin/credy in credy-0.2.0

- old
+ new

@@ -17,18 +17,18 @@ args = {} args[:country] = options[:country] unless options[:country] == 'all' args[:type] = options[:type] unless options[:type] == 'all' - options[:number].times do + options[:number].times do number = CreditCard.generate args unless number puts 'No rule found for those criteria.' break end - + if details d = [number[:type], number[:country]].compact puts "#{number[:number]} (#{d.join(', ')})" else puts number[:number] @@ -69,11 +69,11 @@ value = value ? 'v'.green : 'x'.red details << "#{criteria}: #{value}" end puts "(#{details.join(', ')})" end - + end end -Credy::CLI.start \ No newline at end of file +Credy::CLI.start