gh 0.12.4 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gh/remote.rb +2 -1
  3. data/lib/gh/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a56c4c17ee71f68db237e4582b5811d66889f38
4
- data.tar.gz: af184f84676c05fcac89acb9d5af8e66955fa551
3
+ metadata.gz: 6c7ceba15f857e76771348766e427455e1a0afef
4
+ data.tar.gz: a84dc5b1a868f94fffd2b292a694113c9ff6498d
5
5
  SHA512:
6
- metadata.gz: 3d9357c7ea456a9863bda2017013092666bb056a169df92003502d61dafb52d3a27d385f90a449148df1bc9e133fda70a86083d6818ee635bd163e32c43fbee2
7
- data.tar.gz: 1d206e2deecfc1f971d7feaa6bef2531a67f3635b3c02a6270c586de0f7b63aad2187558bbcd18afef05ed7c29df10337fe09a249898ef63388a7199d325cfac
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 = options[:headers].try(:dup) || {
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
@@ -1,4 +1,4 @@
1
1
  module GH
2
2
  # Public: Library version.
3
- VERSION = "0.12.4"
3
+ VERSION = "0.13.0"
4
4
  end
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.12.4
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-03 00:00:00.000000000 Z
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.5
220
+ rubygems_version: 2.0.7
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: layered github client