gh 0.13.1 → 0.13.2

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/response.rb +1 -1
  3. data/lib/gh/version.rb +1 -1
  4. metadata +44 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dabc2d2ed05fc0c8dcb21a473ddf644950b5d78a
4
- data.tar.gz: 7670fe47a26f12b8505510c85298e19393c58f1a
3
+ metadata.gz: 8c33d42eb352f1313b9b6ef920070203495c20e8
4
+ data.tar.gz: 0488c19e6a994380ad2c070ee2a15d36f91886e2
5
5
  SHA512:
6
- metadata.gz: ff85094deaf0eec9dc13dcb76bd87a0b9df6b23fc3be9c994e45be32c2d72d6c3b39aa395a4d21646d022fd9ba505361dc7425a34d6831fd46e831160bd8b0f0
7
- data.tar.gz: 93760643a49d175139ad8875a1d76c0bed0d46f1cf74b03a2bb5e1116b1bf289f7c4a626e68076e5cb03cf9a831bf61de4024e1103c8384573cde8167bf5ae23
6
+ metadata.gz: 039e9e04530b49e2a685e813d68ec21410b8ae1fb9da5cc4f42e46c4a5b00fa8dac854fa0b651a5f3ace20185f7c4819254cf6ea8fb1f1d8f0767627a2aa2b31
7
+ data.tar.gz: 2094c53dd2aa4ca96a3ba0792864d45a0a5ae758ce56830c5527f5357032f0a4021710dc27e0f649127e06104c825895ba06e01132d4eed15268895d709eefb4
@@ -23,10 +23,10 @@ module GH
23
23
  @headers = Hash[headers.map { |k,v| [k.downcase, v] }]
24
24
 
25
25
  case body
26
+ when nil, '' then @data = {}
26
27
  when respond_to(:to_str) then @body = body.to_str
27
28
  when respond_to(:to_hash) then @data = body.to_hash
28
29
  when respond_to(:to_ary) then @data = body.to_ary
29
- when nil, '' then @data = {}
30
30
  else raise ArgumentError, "cannot parse #{body.inspect}"
31
31
  end
32
32
 
@@ -1,4 +1,4 @@
1
1
  module GH
2
2
  # Public: Library version.
3
- VERSION = "0.13.1"
3
+ VERSION = "0.13.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -11,117 +11,117 @@ cert_chain: []
11
11
  date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - '>='
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0'
20
- type: :development
21
- prerelease: false
19
+ name: rspec
22
20
  version_requirements: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - '>='
22
+ - - ">="
25
23
  - !ruby/object:Gem::Version
26
24
  version: '0'
25
+ prerelease: false
26
+ type: :development
27
27
  - !ruby/object:Gem::Dependency
28
- name: webmock
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - '>='
30
+ - - ">="
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
- type: :development
35
- prerelease: false
33
+ name: webmock
36
34
  version_requirements: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - '>='
36
+ - - ">="
39
37
  - !ruby/object:Gem::Version
40
38
  version: '0'
39
+ prerelease: false
40
+ type: :development
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ~>
44
+ - - "~>"
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0.8'
48
- type: :runtime
49
- prerelease: false
47
+ name: faraday
50
48
  version_requirements: !ruby/object:Gem::Requirement
51
49
  requirements:
52
- - - ~>
50
+ - - "~>"
53
51
  - !ruby/object:Gem::Version
54
52
  version: '0.8'
53
+ prerelease: false
54
+ type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
- name: backports
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - '>='
58
+ - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- type: :runtime
63
- prerelease: false
61
+ name: backports
64
62
  version_requirements: !ruby/object:Gem::Requirement
65
63
  requirements:
66
- - - '>='
64
+ - - ">="
67
65
  - !ruby/object:Gem::Version
68
66
  version: '0'
67
+ prerelease: false
68
+ type: :runtime
69
69
  - !ruby/object:Gem::Dependency
70
- name: multi_json
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - ~>
72
+ - - "~>"
74
73
  - !ruby/object:Gem::Version
75
74
  version: '1.0'
76
- type: :runtime
77
- prerelease: false
75
+ name: multi_json
78
76
  version_requirements: !ruby/object:Gem::Requirement
79
77
  requirements:
80
- - - ~>
78
+ - - "~>"
81
79
  - !ruby/object:Gem::Version
82
80
  version: '1.0'
81
+ prerelease: false
82
+ type: :runtime
83
83
  - !ruby/object:Gem::Dependency
84
- name: addressable
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
- - - '>='
86
+ - - ">="
88
87
  - !ruby/object:Gem::Version
89
88
  version: '0'
90
- type: :runtime
91
- prerelease: false
89
+ name: addressable
92
90
  version_requirements: !ruby/object:Gem::Requirement
93
91
  requirements:
94
- - - '>='
92
+ - - ">="
95
93
  - !ruby/object:Gem::Version
96
94
  version: '0'
95
+ prerelease: false
96
+ type: :runtime
97
97
  - !ruby/object:Gem::Dependency
98
- name: net-http-persistent
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
- - - '>='
100
+ - - ">="
102
101
  - !ruby/object:Gem::Version
103
102
  version: '2.7'
104
- type: :runtime
105
- prerelease: false
103
+ name: net-http-persistent
106
104
  version_requirements: !ruby/object:Gem::Requirement
107
105
  requirements:
108
- - - '>='
106
+ - - ">="
109
107
  - !ruby/object:Gem::Version
110
108
  version: '2.7'
109
+ prerelease: false
110
+ type: :runtime
111
111
  - !ruby/object:Gem::Dependency
112
- name: net-http-pipeline
113
112
  requirement: !ruby/object:Gem::Requirement
114
113
  requirements:
115
- - - '>='
114
+ - - ">="
116
115
  - !ruby/object:Gem::Version
117
116
  version: '0'
118
- type: :runtime
119
- prerelease: false
117
+ name: net-http-pipeline
120
118
  version_requirements: !ruby/object:Gem::Requirement
121
119
  requirements:
122
- - - '>='
120
+ - - ">="
123
121
  - !ruby/object:Gem::Version
124
122
  version: '0'
123
+ prerelease: false
124
+ type: :runtime
125
125
  description: multi-layer client for the github api v3
126
126
  email:
127
127
  - konstantin.mailinglists@googlemail.com
@@ -161,17 +161,17 @@ require_paths:
161
161
  - lib
162
162
  required_ruby_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.2.0
174
+ rubygems_version: 2.1.10
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: layered github client