github_repo_deleter 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -0
- data/VERSION +1 -1
- data/github_repo_deleter.gemspec +1 -1
- data/lib/github_repo_deleter.rb +3 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
= GitHubRepoDeleter
|
2
2
|
|
3
|
+
You shouldn't actually use this. Right after I published it, @techoweenie let me
|
4
|
+
know that the GitHub V2 API actually lets you delete repos. Since the V3 API
|
5
|
+
doesn't, I just assumed the V2 API didn't either (seems strange to have dropped
|
6
|
+
it in V3, but wev).
|
7
|
+
|
8
|
+
Anyway, go use that instead. Move along, nothing to see here.
|
9
|
+
|
10
|
+
I'm only keeping the code up here in order to preserve my stupidity. (Really,
|
11
|
+
what software *can't* you say that about.)
|
12
|
+
|
3
13
|
Deletes GitHub repositories for you. USE AT YOUR OWN RISK.
|
4
14
|
|
5
15
|
Available as a gem:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/github_repo_deleter.gemspec
CHANGED
data/lib/github_repo_deleter.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'rest-client'
|
2
2
|
require 'nokogiri'
|
3
3
|
|
4
|
+
# Don't use this. Apparently you can delete them with the v2 API.
|
5
|
+
#
|
4
6
|
# A simple module with a single method, GitHubRepoDeleter.delete_repo
|
5
7
|
#
|
6
8
|
# Use this if you need to programatically delete a GitHub repository, since that
|
@@ -24,6 +26,7 @@ require 'nokogiri'
|
|
24
26
|
module GitHubRepoDeleter
|
25
27
|
class << self
|
26
28
|
def delete_repo(login, password, repo_name)
|
29
|
+
raise "Don't use this. Use the GitHub V2 API instead. :-("
|
27
30
|
cookies = {}
|
28
31
|
auth_token = get_with_cookies('https://github.com/login', cookies)
|
29
32
|
post_with_cookies('https://github.com/session',
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: github_repo_deleter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Wilger
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
hash:
|
119
|
+
hash: -4523225239805267060
|
120
120
|
segments:
|
121
121
|
- 0
|
122
122
|
version: "0"
|