octokit 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # CHANGELOG
2
2
 
3
+ * [1.6.1 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.6.0...v1.6.1)
3
4
  * [1.6.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.5.0...v1.6.0)
4
5
  * [1.5.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.4.0...v1.5.0)
5
6
  * [1.4.0 - June 3, 2012](https://github.com/pengwynn/octokit/compare/v1.3.0...v1.4.0)
@@ -54,6 +54,11 @@ module Octokit
54
54
  alias :create_repo :create_repository
55
55
  alias :create :create_repository
56
56
 
57
+ def delete_repository(repo, options={})
58
+ delete "/repos/#{Repository.new repo}", options, 3
59
+ end
60
+ alias :delete_repo :delete_repository
61
+
57
62
  def set_private(repo, options={})
58
63
  update_repository repo, options.merge({ :private => true })
59
64
  end
@@ -1,3 +1,3 @@
1
1
  module Octokit
2
- VERSION = "1.6.0" unless defined?(Octokit::VERSION)
2
+ VERSION = "1.6.1" unless defined?(Octokit::VERSION)
3
3
  end
@@ -120,6 +120,17 @@ describe Octokit::Client::Repositories do
120
120
 
121
121
  end
122
122
 
123
+ describe ".delete_repository" do
124
+
125
+ it "should delete a repository" do
126
+ stub_delete("/repos/sferik/rails_admin").
127
+ to_return(:status => 204, :body => "")
128
+ result = @client.delete_repository("sferik/rails_admin")
129
+ result.should be_nil
130
+ end
131
+
132
+ end
133
+
123
134
  describe ".set_private" do
124
135
 
125
136
  it "should set a repository private" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-06-15 00:00:00.000000000 Z
14
+ date: 2012-06-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
18
- requirement: &70139666166520 !ruby/object:Gem::Requirement
18
+ requirement: &70243204801800 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '2.2'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70139666166520
26
+ version_requirements: *70243204801800
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
- requirement: &70139666181720 !ruby/object:Gem::Requirement
29
+ requirement: &70243204801240 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0.8'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70139666181720
37
+ version_requirements: *70243204801240
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: faraday_middleware
40
- requirement: &70139666180560 !ruby/object:Gem::Requirement
40
+ requirement: &70243204800560 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0.8'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70139666180560
48
+ version_requirements: *70243204800560
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: hashie
51
- requirement: &70139666179420 !ruby/object:Gem::Requirement
51
+ requirement: &70243204816140 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '1.2'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *70139666179420
59
+ version_requirements: *70243204816140
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: multi_json
62
- requirement: &70139666178360 !ruby/object:Gem::Requirement
62
+ requirement: &70243204815420 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '1.3'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70139666178360
70
+ version_requirements: *70243204815420
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: json
73
- requirement: &70139666177760 !ruby/object:Gem::Requirement
73
+ requirement: &70243204814180 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *70139666177760
81
+ version_requirements: *70243204814180
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: maruku
84
- requirement: &70139666177020 !ruby/object:Gem::Requirement
84
+ requirement: &70243204812800 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70139666177020
92
+ version_requirements: *70243204812800
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rake
95
- requirement: &70139666176160 !ruby/object:Gem::Requirement
95
+ requirement: &70243204811300 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70139666176160
103
+ version_requirements: *70243204811300
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rspec
106
- requirement: &70139666175160 !ruby/object:Gem::Requirement
106
+ requirement: &70243204824720 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *70139666175160
114
+ version_requirements: *70243204824720
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: simplecov
117
- requirement: &70139666190520 !ruby/object:Gem::Requirement
117
+ requirement: &70243204824280 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *70139666190520
125
+ version_requirements: *70243204824280
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: webmock
128
- requirement: &70139666188600 !ruby/object:Gem::Requirement
128
+ requirement: &70243204823420 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *70139666188600
136
+ version_requirements: *70243204823420
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: yard
139
- requirement: &70139666187960 !ruby/object:Gem::Requirement
139
+ requirement: &70243204821760 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *70139666187960
147
+ version_requirements: *70243204821760
148
148
  description: Simple wrapper for the GitHub v3 API
149
149
  email:
150
150
  - wynn.netherland@gmail.com