Permalink
Browse files

Remove methods we have other ways of getting to.

  • Loading branch information...
1 parent 89b9c89 commit d03b2b12b286410f6ebde1fef690ea226f7883cb @radar radar committed Jul 31, 2009
Showing with 9 additions and 18 deletions.
  1. +1 −1 .gitignore
  2. BIN .yardoc
  3. +2 −0 lib/octopi.rb
  4. +6 −17 lib/octopi/api.rb
View
@@ -1,3 +1,3 @@
examples/github.yml
-rdoc/
+doc/
pkg/
View
BIN .yardoc
Binary file not shown.
View
@@ -11,6 +11,8 @@
# Octopi stuff
Dir[File.join(File.dirname(__FILE__), "octopi/*.rb")].each { |f| require f }
+# Include this into your app so you can access the child classes easier.
+# This is the root of all things Octopi.
module Octopi
# The authenticated methods are all very similar.
View
@@ -5,6 +5,7 @@ class Api
attr_accessor :format, :login, :token, :trace_level, :read_only
end
+ # Used for accessing the Github API anonymously
class AnonymousApi < Api
include HTTParty
include Singleton
@@ -25,7 +26,11 @@ def read_only?
end
end
- # This is the real API class
+ # This is the real API class.
+ #
+ # API requests are limited to 60 per minute.
+ #
+ # Sets up basic methods for accessing the API.
class Api
@@api = Octopi::AnonymousApi.instance
@@authenticated = false
@@ -73,22 +78,6 @@ def user
User.new(user_data['user'])
end
- def open_issue(user, repo, params)
- Issue.open(user, repo, params, self)
- end
-
- def repository(name)
- repo = Repository.find(user, name, self)
- repo.api = self
- repo
- end
- alias_method :repo, :repository
-
- def commits(repo,opts={})
- branch = opts[:branch] || "master"
- commits = Commit.find_all(repo, branch, self)
- end
-
def save(resource_path, data)
traslate resource_path, data
#still can't figure out on what format values are expected

0 comments on commit d03b2b1

Please sign in to comment.