lib/gemline.rb in gemline-0.0.1 vs lib/gemline.rb in gemline-0.0.2
- old
+ new
@@ -1,12 +1,11 @@
require 'crack/json'
require 'net/http'
class Gemline
- VERSION = "0.0.1"
- def self.start
- gem = ARGV[0].to_s.gsub(/[^\w\-]+/,'')
+ def self.query(gem)
+ gem = gem.to_s.gsub(/[^\w\-]+/,'')
if (gem.empty?)
puts "Usage: gemline [GEM NAME]"
exit
end