Sha256: 4e99b6166932c6ebab29ae39f48bc620df9c8389f00b906e03c396c1ef38f537

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

#!/usr/bin/env ruby

require '../lib/codebadges'

fail ArgumentError, "Usage:  badges [username]\n" if ARGV.count == 0
user_name = ARGV[0]

badges_found = CodecademyBadges.get_badges(user_name)

puts "#{user_name} has collected #{badges_found.size} badges."

badges_found.each do |title, date|
  puts "Earned '#{title}' on #{date}."
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codebadges-0.1.0 bin/codebadges