gh 0.12.4 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gh/remote.rb +2 -1
- data/lib/gh/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7ceba15f857e76771348766e427455e1a0afef
|
4
|
+
data.tar.gz: a84dc5b1a868f94fffd2b292a694113c9ff6498d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b25d4048d51481be7db6c9d90bd99b3300aaf2bff0ca0fa40170791ff61e8ad81ffbb35fe951a5be066612e93245e81818e914871253077d510fc4833667b1a8
|
7
|
+
data.tar.gz: 746d6c5fbc296383d5638b825333f426b83da70851e7ee0c458c27edfbd6f2eee885dda57288d2037a756d2cb7c0564f8a19a8eefe75e3f4f9da2b2943b23394
|
data/lib/gh/remote.rb
CHANGED
@@ -25,7 +25,7 @@ module GH
|
|
25
25
|
|
26
26
|
api_host = api_host.api_host if api_host.respond_to? :api_host
|
27
27
|
@api_host = Addressable::URI.parse(api_host)
|
28
|
-
@headers =
|
28
|
+
@headers = {
|
29
29
|
"User-Agent" => options[:user_agent] || "GH/#{GH::VERSION}",
|
30
30
|
"Accept" => "application/vnd.github.v3+json," \
|
31
31
|
"application/vnd.github.beta+json;q=0.5," \
|
@@ -33,6 +33,7 @@ module GH
|
|
33
33
|
"Accept-Charset" => "utf-8",
|
34
34
|
}
|
35
35
|
|
36
|
+
@headers.merge! options[:headers] if options[:headers]
|
36
37
|
@headers['Origin'] = options[:origin] if options[:origin]
|
37
38
|
|
38
39
|
@prefix = ""
|
data/lib/gh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.0.
|
220
|
+
rubygems_version: 2.0.7
|
221
221
|
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: layered github client
|