lib/bukkit.rb in bukkit-1.1.1 vs lib/bukkit.rb in bukkit-2.0.0
- old
+ new
@@ -1,11 +1,28 @@
# Orderly and Alphabetical Require Statements
require 'rubygems'
+require 'colorize'
+require 'open-uri'
+require 'json'
-require 'bukkit/check'
+require 'bukkit/create'
require 'bukkit/download'
require 'bukkit/install'
-require 'bukkit/new'
require 'bukkit/start'
require 'bukkit/update'
require 'bukkit/version'
-require 'bukkit/website'
+require 'bukkit/website'
+
+module Bukkit
+ class Server
+ def initialize(name)
+ @name = name
+ end
+ end
+
+ class Plugin
+ def initialize(name)
+ @name = name.downcase
+ @plugin_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{@name}").read)
+ end
+ end
+end
\ No newline at end of file