lib/stars.rb in stars-0.4.0 vs lib/stars.rb in stars-0.5.0

- old
+ new

@@ -1,8 +1,39 @@ -module Stars ; end +$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) -$LOAD_PATH.unshift(File.dirname(__FILE__) + '/stars') - +require 'date' +require 'fileutils' require 'httparty' -require 'client' -require 'favstar' -require 'formatter' \ No newline at end of file +require 'keep' +require 'nokogiri' +require 'open-uri' +require 'terminal-table/import' + +require 'stars/client' +require 'stars/config' +require 'stars/post' + +require 'stars/core_ext/string' + +require 'stars/services/service' +require 'stars/services/convore' +require 'stars/services/favstar' + +module Stars + VERSION = '0.5.0' + + def self.config + @config ||= Config.new + end + + def self.services + %w(favstar convore) + end + + def self.installed_services + config.keep.keys + end + + def self.uninstalled_services + services - installed_services + end +end