gh 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/gh/remote.rb +3 -5
  2. data/lib/gh/version.rb +1 -1
  3. metadata +46 -29
  4. checksums.yaml +0 -7
@@ -27,9 +27,7 @@ module GH
27
27
  @api_host = Addressable::URI.parse(api_host)
28
28
  @headers = {
29
29
  "User-Agent" => options[:user_agent] || "GH/#{GH::VERSION}",
30
- "Accept" => "application/vnd.github.v3+json," \
31
- "application/vnd.github.beta+json;q=0.5," \
32
- "application/json;q=0.1",
30
+ "Accept" => options[:accept] || "application/vnd.github.v3+json",
33
31
  "Accept-Charset" => "utf-8",
34
32
  }
35
33
 
@@ -98,8 +96,8 @@ module GH
98
96
  end
99
97
 
100
98
  # Public: ...
101
- def delete(key)
102
- frontend.request(:delete, key)
99
+ def delete(key, body = nil)
100
+ frontend.request(:delete, key, body)
103
101
  end
104
102
 
105
103
  # Public: ...
@@ -1,4 +1,4 @@
1
1
  module GH
2
2
  # Public: Library version.
3
- VERSION = "0.14.0"
3
+ VERSION = "0.15.0"
4
4
  end
metadata CHANGED
@@ -1,125 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Konstantin Haase
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
12
+ date: 2016-11-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rspec
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: webmock
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: faraday
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0.8'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0.8'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: backports
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: multi_json
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - "~>"
83
+ - - ~>
74
84
  - !ruby/object:Gem::Version
75
85
  version: '1.0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - "~>"
91
+ - - ~>
81
92
  - !ruby/object:Gem::Version
82
93
  version: '1.0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: addressable
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
- version: '0'
101
+ version: 2.4.0
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ~>
95
108
  - !ruby/object:Gem::Version
96
- version: '0'
109
+ version: 2.4.0
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: net-http-persistent
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: '2.7'
117
+ version: '2.9'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ~>
109
124
  - !ruby/object:Gem::Version
110
- version: '2.7'
125
+ version: '2.9'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: net-http-pipeline
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ">="
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ">="
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  description: multi-layer client for the github api v3
@@ -151,29 +168,29 @@ files:
151
168
  - lib/gh/token_check.rb
152
169
  - lib/gh/version.rb
153
170
  - lib/gh/wrapper.rb
154
- homepage: http://gh.rkh.im/
171
+ homepage: https://github.com/travis-ci/gh
155
172
  licenses:
156
173
  - MIT
157
- metadata: {}
158
174
  post_install_message:
159
175
  rdoc_options: []
160
176
  require_paths:
161
177
  - lib
162
178
  required_ruby_version: !ruby/object:Gem::Requirement
179
+ none: false
163
180
  requirements:
164
- - - ">="
181
+ - - ! '>='
165
182
  - !ruby/object:Gem::Version
166
183
  version: '0'
167
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
+ none: false
168
186
  requirements:
169
- - - ">="
187
+ - - ! '>='
170
188
  - !ruby/object:Gem::Version
171
189
  version: '0'
172
190
  requirements: []
173
191
  rubyforge_project:
174
- rubygems_version: 2.4.4
192
+ rubygems_version: 1.8.23
175
193
  signing_key:
176
- specification_version: 4
194
+ specification_version: 3
177
195
  summary: layered github client
178
196
  test_files: []
179
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: af2e529d7301065889daa1e1ba6690662e37a71c
4
- data.tar.gz: ee8723c7221de6ef184f9702fe6e74bf9a7cf646
5
- SHA512:
6
- metadata.gz: 8bd70a3d15130459e5dd573b673477f39abdea64c54dd442938b394905ed63295516997b265f39c4b9fd9ea0a08a8d245831eb517297664cfcd033ed1681628e
7
- data.tar.gz: 874fb8258eea02135cd481b6f081057bf70a2a89d6825f1404aac297f6dc9cc6639b7fa1ea866575da25d450abbf68c2d82f9fedb454abb15dfc2180e8c2fe88