Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: octokit/octokit.rb
base: v1.6.0
...
head fork: octokit/octokit.rb
compare: v1.6.1
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 3 contributors
View
1  CHANGELOG.md
@@ -1,5 +1,6 @@
# CHANGELOG
+* [1.6.1 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.6.0...v1.6.1)
* [1.6.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.5.0...v1.6.0)
* [1.5.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.4.0...v1.5.0)
* [1.4.0 - June 3, 2012](https://github.com/pengwynn/octokit/compare/v1.3.0...v1.4.0)
View
5 lib/octokit/client/repositories.rb
@@ -54,6 +54,11 @@ def create_repository(name, options={})
alias :create_repo :create_repository
alias :create :create_repository
+ def delete_repository(repo, options={})
+ delete "/repos/#{Repository.new repo}", options, 3
+ end
+ alias :delete_repo :delete_repository
+
def set_private(repo, options={})
update_repository repo, options.merge({ :private => true })
end
View
2  lib/octokit/version.rb
@@ -1,3 +1,3 @@
module Octokit
- VERSION = "1.6.0" unless defined?(Octokit::VERSION)
+ VERSION = "1.6.1" unless defined?(Octokit::VERSION)
end
View
11 spec/octokit/client/repositories_spec.rb
@@ -120,6 +120,17 @@
end
+ describe ".delete_repository" do
+
+ it "should delete a repository" do
+ stub_delete("/repos/sferik/rails_admin").
+ to_return(:status => 204, :body => "")
+ result = @client.delete_repository("sferik/rails_admin")
+ result.should be_nil
+ end
+
+ end
+
describe ".set_private" do
it "should set a repository private" do

No commit comments for this range

Something went wrong with that request. Please try again.