lib/provider/github.rb in ticketmaster-github-0.1.0 vs lib/provider/github.rb in ticketmaster-github-0.1.1
- old
+ new
@@ -22,13 +22,13 @@
Octopi::Api.api.login = auth.login
end
end
def projects(*options)
- unless options.empty?
- options.collect{|name| Project.find(name)}.first if options.first.is_a?(Array)
- else
+ if options.empty?
PROJECT_API.find(:user => Octopi::Api.api.login).collect{|repo| Project.new repo}
+ elsif options.first.is_a?(Array)
+ options.collect{|name| Project.find(name)}.first
end
end
def project(*name)
unless name.empty?