ghee 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 462a4d8a3e740db0e9b4a40805af96c81b0ed74d
4
+ data.tar.gz: 9a06b47ff1edbc1d70f2dfe6e9503ac3ca2e144a
5
+ SHA512:
6
+ metadata.gz: e3e937bf9e28c4dce553cec42207f5a74c3e4bedf4a3884e8841ee51b6ac78fe55c69d4ce82ecb3a617b00768d9139e3f9dd81df38e3fe38f49987b2178c7cb4
7
+ data.tar.gz: 22768296be799646c9d05aca4e78a837687a50e0bab2bb3c677afdfee2e579080f1792d325ba556b3bc673f93a038541932e0648f1dad38686f7b8c4008ffef3
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency 'faraday', '~> 0.8'
21
+ s.add_dependency 'faraday', '< 0.9', '>= 0.8'
22
22
  s.add_dependency 'faraday_middleware', '~> 0.9'
23
23
  s.add_dependency 'hashie', '~> 1.2'
24
24
  s.add_dependency 'multi_json', '~> 1.3'
@@ -6,7 +6,7 @@ class Ghee
6
6
  end
7
7
 
8
8
  def authorizations(number=nil)
9
- prefix = number ? "/authorizations/#{number}" : "/authorizations"
9
+ prefix = number ? "./authorizations/#{number}" : "./authorizations"
10
10
  Ghee::API::Authorizations::Proxy.new(connection, prefix)
11
11
  end
12
12
  end
@@ -17,7 +17,7 @@ class Ghee
17
17
  # Returns json
18
18
  #
19
19
  def events(params={})
20
- return Proxy.new(connection, "/events",params)
20
+ return Proxy.new(connection, "./events",params)
21
21
  end
22
22
 
23
23
  end
@@ -76,7 +76,7 @@ class Ghee
76
76
  #
77
77
  def gists(id=nil, params={})
78
78
  params = id if id.is_a?Hash
79
- path_prefix = (!id.is_a?(Hash) and id) ? "/gists/#{id}" : '/gists'
79
+ path_prefix = (!id.is_a?(Hash) and id) ? "./gists/#{id}" : './gists'
80
80
  Proxy.new(connection, path_prefix,params)
81
81
  end
82
82
  end
@@ -61,7 +61,7 @@ class Ghee
61
61
  #
62
62
  def teams(number=nil,params={})
63
63
  params = number if number.is_a?Hash
64
- prefix = (!number.is_a?(Hash) and number) ? "/teams/#{number}" : "#{path_prefix}/teams"
64
+ prefix = (!number.is_a?(Hash) and number) ? "./teams/#{number}" : "#{path_prefix}/teams"
65
65
  Ghee::API::Orgs::Teams::Proxy.new(connection, prefix, params)
66
66
  end
67
67
 
@@ -71,7 +71,7 @@ class Ghee
71
71
  #
72
72
  def repos(name=nil,params={})
73
73
  params = name if name.is_a?Hash
74
- prefix = (!name.is_a?(Hash) and name) ? "/repos/#{self["login"]}/#{name}" : "#{path_prefix}/repos"
74
+ prefix = (!name.is_a?(Hash) and name) ? "./repos/#{self["login"]}/#{name}" : "#{path_prefix}/repos"
75
75
  Ghee::API::Repos::Proxy.new(connection,prefix,params)
76
76
  end
77
77
  end
@@ -94,7 +94,7 @@ class Ghee
94
94
  #
95
95
  def orgs(name=nil, params={})
96
96
  params = name if name.is_a?Hash
97
- prefix = (!name.is_a?(Hash) and name) ? "/orgs/#{name}" : "user/orgs"
97
+ prefix = (!name.is_a?(Hash) and name) ? "./orgs/#{name}" : "user/orgs"
98
98
  Proxy.new(connection, prefix, params)
99
99
  end
100
100
  end
@@ -25,7 +25,7 @@ class Ghee
25
25
  #
26
26
  def repos(login,name = nil)
27
27
  repo = name.nil? ? login : "#{login}/#{name}"
28
- path_prefix = "/repos/#{repo}"
28
+ path_prefix = "./repos/#{repo}"
29
29
  proxy = Proxy.new(connection, path_prefix)
30
30
  proxy.repo_name = repo
31
31
  proxy
@@ -10,7 +10,7 @@ class Ghee
10
10
  module Issues
11
11
  class Proxy < ::Ghee::ResourceProxy
12
12
  def search(term, state = "open")
13
- url = "/legacy/issues/search/#{@repo.repo_name}/#{state}/#{term}"
13
+ url = "./legacy/issues/search/#{@repo.repo_name}/#{state}/#{term}"
14
14
  Ghee::API::Search::Issues::Proxy.new(connection, url)
15
15
  end
16
16
  end
@@ -27,7 +27,7 @@ class Ghee
27
27
  end
28
28
  class Proxy < ::Ghee::ResourceProxy
29
29
  def issues(repo, term, state = "open")
30
- url = "/legacy/issues/search/#{repo}/#{state}/#{term}"
30
+ url = "./legacy/issues/search/#{repo}/#{state}/#{term}"
31
31
  Issues::Proxy.new(connection, url)
32
32
  end
33
33
  end
@@ -30,7 +30,7 @@ class Ghee
30
30
  #
31
31
  def repos(name=nil, params={})
32
32
  params = name if name.is_a?Hash
33
- prefix = name.is_a?(String) ? "/repos/#{self["login"]}/#{name}" : "#{path_prefix}/repos"
33
+ prefix = name.is_a?(String) ? "./repos/#{self["login"]}/#{name}" : "#{path_prefix}/repos"
34
34
  Ghee::API::Repos::Proxy.new(connection,prefix, params)
35
35
  end
36
36
 
@@ -43,7 +43,7 @@ class Ghee
43
43
  #
44
44
  def orgs(org=nil, params={})
45
45
  params = org if org.is_a?Hash
46
- prefix = org.is_a?(String) ? "/orgs/#{org}" : "#{path_prefix}/orgs"
46
+ prefix = org.is_a?(String) ? "./orgs/#{org}" : "#{path_prefix}/orgs"
47
47
  Ghee::API::Orgs::Proxy.new(connection, prefix, params)
48
48
  end
49
49
 
@@ -55,7 +55,7 @@ class Ghee
55
55
  # Returns json
56
56
  #
57
57
  def user
58
- Proxy.new(connection, '/user')
58
+ Proxy.new(connection, './user')
59
59
  end
60
60
 
61
61
  # Get a single user
@@ -65,7 +65,7 @@ class Ghee
65
65
  # Returns json
66
66
  #
67
67
  def users(user)
68
- Proxy.new(connection, "/users/#{user}")
68
+ Proxy.new(connection, "./users/#{user}")
69
69
  end
70
70
  end
71
71
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  class Ghee
3
- VERSION = "0.9.10"
3
+ VERSION = "0.9.11"
4
4
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
5
- prerelease:
4
+ version: 0.9.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Rauh
@@ -10,28 +9,31 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2014-03-19 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: faraday
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - <
19
+ - !ruby/object:Gem::Version
20
+ version: '0.9'
21
+ - - '>='
21
22
  - !ruby/object:Gem::Version
22
23
  version: '0.8'
23
24
  type: :runtime
24
25
  prerelease: false
25
26
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
27
  requirements:
28
- - - ~>
28
+ - - <
29
+ - !ruby/object:Gem::Version
30
+ version: '0.9'
31
+ - - '>='
29
32
  - !ruby/object:Gem::Version
30
33
  version: '0.8'
31
34
  - !ruby/object:Gem::Dependency
32
35
  name: faraday_middleware
33
36
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
37
  requirements:
36
38
  - - ~>
37
39
  - !ruby/object:Gem::Version
@@ -39,7 +41,6 @@ dependencies:
39
41
  type: :runtime
40
42
  prerelease: false
41
43
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
44
  requirements:
44
45
  - - ~>
45
46
  - !ruby/object:Gem::Version
@@ -47,7 +48,6 @@ dependencies:
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: hashie
49
50
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
@@ -55,7 +55,6 @@ dependencies:
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
58
  requirements:
60
59
  - - ~>
61
60
  - !ruby/object:Gem::Version
@@ -63,7 +62,6 @@ dependencies:
63
62
  - !ruby/object:Gem::Dependency
64
63
  name: multi_json
65
64
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
65
  requirements:
68
66
  - - ~>
69
67
  - !ruby/object:Gem::Version
@@ -71,7 +69,6 @@ dependencies:
71
69
  type: :runtime
72
70
  prerelease: false
73
71
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
72
  requirements:
76
73
  - - ~>
77
74
  - !ruby/object:Gem::Version
@@ -79,7 +76,6 @@ dependencies:
79
76
  - !ruby/object:Gem::Dependency
80
77
  name: highline
81
78
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
79
  requirements:
84
80
  - - ~>
85
81
  - !ruby/object:Gem::Version
@@ -87,7 +83,6 @@ dependencies:
87
83
  type: :runtime
88
84
  prerelease: false
89
85
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
86
  requirements:
92
87
  - - ~>
93
88
  - !ruby/object:Gem::Version
@@ -95,39 +90,34 @@ dependencies:
95
90
  - !ruby/object:Gem::Dependency
96
91
  name: rake
97
92
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
93
  requirements:
100
- - - ! '>='
94
+ - - '>='
101
95
  - !ruby/object:Gem::Version
102
96
  version: '0'
103
97
  type: :development
104
98
  prerelease: false
105
99
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
100
  requirements:
108
- - - ! '>='
101
+ - - '>='
109
102
  - !ruby/object:Gem::Version
110
103
  version: '0'
111
104
  - !ruby/object:Gem::Dependency
112
105
  name: json_pure
113
106
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
107
  requirements:
116
- - - ! '>='
108
+ - - '>='
117
109
  - !ruby/object:Gem::Version
118
110
  version: '0'
119
111
  type: :development
120
112
  prerelease: false
121
113
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
114
  requirements:
124
- - - ! '>='
115
+ - - '>='
125
116
  - !ruby/object:Gem::Version
126
117
  version: '0'
127
118
  - !ruby/object:Gem::Dependency
128
119
  name: rspec
129
120
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
121
  requirements:
132
122
  - - ~>
133
123
  - !ruby/object:Gem::Version
@@ -135,7 +125,6 @@ dependencies:
135
125
  type: :development
136
126
  prerelease: false
137
127
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
128
  requirements:
140
129
  - - ~>
141
130
  - !ruby/object:Gem::Version
@@ -143,81 +132,71 @@ dependencies:
143
132
  - !ruby/object:Gem::Dependency
144
133
  name: webmock
145
134
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
135
  requirements:
148
- - - ! '>='
136
+ - - '>='
149
137
  - !ruby/object:Gem::Version
150
138
  version: '0'
151
139
  type: :development
152
140
  prerelease: false
153
141
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
142
  requirements:
156
- - - ! '>='
143
+ - - '>='
157
144
  - !ruby/object:Gem::Version
158
145
  version: '0'
159
146
  - !ruby/object:Gem::Dependency
160
147
  name: vcr
161
148
  requirement: !ruby/object:Gem::Requirement
162
- none: false
163
149
  requirements:
164
- - - ! '>='
150
+ - - '>='
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0'
167
153
  type: :development
168
154
  prerelease: false
169
155
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
156
  requirements:
172
- - - ! '>='
157
+ - - '>='
173
158
  - !ruby/object:Gem::Version
174
159
  version: '0'
175
160
  - !ruby/object:Gem::Dependency
176
161
  name: ZenTest
177
162
  requirement: !ruby/object:Gem::Requirement
178
- none: false
179
163
  requirements:
180
- - - ! '>='
164
+ - - '>='
181
165
  - !ruby/object:Gem::Version
182
166
  version: '0'
183
167
  type: :development
184
168
  prerelease: false
185
169
  version_requirements: !ruby/object:Gem::Requirement
186
- none: false
187
170
  requirements:
188
- - - ! '>='
171
+ - - '>='
189
172
  - !ruby/object:Gem::Version
190
173
  version: '0'
191
174
  - !ruby/object:Gem::Dependency
192
175
  name: autotest-growl
193
176
  requirement: !ruby/object:Gem::Requirement
194
- none: false
195
177
  requirements:
196
- - - ! '>='
178
+ - - '>='
197
179
  - !ruby/object:Gem::Version
198
180
  version: '0'
199
181
  type: :development
200
182
  prerelease: false
201
183
  version_requirements: !ruby/object:Gem::Requirement
202
- none: false
203
184
  requirements:
204
- - - ! '>='
185
+ - - '>='
205
186
  - !ruby/object:Gem::Version
206
187
  version: '0'
207
188
  - !ruby/object:Gem::Dependency
208
189
  name: uuidtools
209
190
  requirement: !ruby/object:Gem::Requirement
210
- none: false
211
191
  requirements:
212
- - - ! '>='
192
+ - - '>='
213
193
  - !ruby/object:Gem::Version
214
194
  version: '0'
215
195
  type: :development
216
196
  prerelease: false
217
197
  version_requirements: !ruby/object:Gem::Requirement
218
- none: false
219
198
  requirements:
220
- - - ! '>='
199
+ - - '>='
221
200
  - !ruby/object:Gem::Version
222
201
  version: '0'
223
202
  description: A complete, simple, and intuitive ruby API for all things Github.
@@ -288,27 +267,26 @@ files:
288
267
  - spec/spec_helper.rb
289
268
  homepage: http://github.com/rauhryan/ghee
290
269
  licenses: []
270
+ metadata: {}
291
271
  post_install_message:
292
272
  rdoc_options: []
293
273
  require_paths:
294
274
  - lib
295
275
  required_ruby_version: !ruby/object:Gem::Requirement
296
- none: false
297
276
  requirements:
298
- - - ! '>='
277
+ - - '>='
299
278
  - !ruby/object:Gem::Version
300
279
  version: '0'
301
280
  required_rubygems_version: !ruby/object:Gem::Requirement
302
- none: false
303
281
  requirements:
304
- - - ! '>='
282
+ - - '>='
305
283
  - !ruby/object:Gem::Version
306
284
  version: '0'
307
285
  requirements: []
308
286
  rubyforge_project: ghee
309
- rubygems_version: 1.8.24
287
+ rubygems_version: 2.0.14
310
288
  signing_key:
311
- specification_version: 3
289
+ specification_version: 4
312
290
  summary: Access Github in ruby.
313
291
  test_files:
314
292
  - spec/fyeah.jpg