octokit 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/octokit/authentication.rb +4 -4
  3. data/lib/octokit/client.rb +70 -5
  4. data/lib/octokit/client/authorizations.rb +123 -29
  5. data/lib/octokit/client/commit_comments.rb +7 -7
  6. data/lib/octokit/client/commits.rb +11 -11
  7. data/lib/octokit/client/contents.rb +7 -7
  8. data/lib/octokit/client/deployments.rb +5 -5
  9. data/lib/octokit/client/downloads.rb +5 -5
  10. data/lib/octokit/client/emojis.rb +1 -1
  11. data/lib/octokit/client/events.rb +15 -15
  12. data/lib/octokit/client/feeds.rb +2 -2
  13. data/lib/octokit/client/gists.rb +17 -17
  14. data/lib/octokit/client/gitignore.rb +3 -3
  15. data/lib/octokit/client/hooks.rb +1 -1
  16. data/lib/octokit/client/issues.rb +16 -16
  17. data/lib/octokit/client/labels.rb +14 -14
  18. data/lib/octokit/client/legacy_search.rb +3 -3
  19. data/lib/octokit/client/markdown.rb +2 -2
  20. data/lib/octokit/client/meta.rb +2 -2
  21. data/lib/octokit/client/milestones.rb +6 -6
  22. data/lib/octokit/client/notifications.rb +10 -10
  23. data/lib/octokit/client/objects.rb +8 -8
  24. data/lib/octokit/client/organizations.rb +30 -30
  25. data/lib/octokit/client/pages.rb +4 -4
  26. data/lib/octokit/client/pub_sub_hubbub.rb +5 -5
  27. data/lib/octokit/client/pull_requests.rb +20 -20
  28. data/lib/octokit/client/rate_limit.rb +5 -5
  29. data/lib/octokit/client/refs.rb +9 -9
  30. data/lib/octokit/client/releases.rb +11 -11
  31. data/lib/octokit/client/repositories.rb +44 -44
  32. data/lib/octokit/client/search.rb +5 -5
  33. data/lib/octokit/client/stats.rb +6 -6
  34. data/lib/octokit/client/statuses.rb +3 -3
  35. data/lib/octokit/client/users.rb +36 -36
  36. data/lib/octokit/configurable.rb +4 -4
  37. data/lib/octokit/error.rb +4 -0
  38. data/lib/octokit/rate_limit.rb +1 -1
  39. data/lib/octokit/version.rb +1 -1
  40. metadata +9 -9
@@ -3,7 +3,7 @@ module Octokit
3
3
 
4
4
  # Methods for the Search API
5
5
  #
6
- # @see http://developer.github.com/v3/search/
6
+ # @see https://developer.github.com/v3/search/
7
7
  module Search
8
8
 
9
9
  # Search code
@@ -15,7 +15,7 @@ module Octokit
15
15
  # @option options [Fixnum] :page Page of paginated results
16
16
  # @option options [Fixnum] :per_page Number of items per page
17
17
  # @return [Sawyer::Resource] Search results object
18
- # @see http://developer.github.com/v3/search/#search-code
18
+ # @see https://developer.github.com/v3/search/#search-code
19
19
  def search_code(query, options = {})
20
20
  search "search/code", query, options
21
21
  end
@@ -29,7 +29,7 @@ module Octokit
29
29
  # @option options [Fixnum] :page Page of paginated results
30
30
  # @option options [Fixnum] :per_page Number of items per page
31
31
  # @return [Sawyer::Resource] Search results object
32
- # @see http://developer.github.com/v3/search/#search-issues
32
+ # @see https://developer.github.com/v3/search/#search-issues
33
33
  def search_issues(query, options = {})
34
34
  search "search/issues", query, options
35
35
  end
@@ -43,7 +43,7 @@ module Octokit
43
43
  # @option options [Fixnum] :page Page of paginated results
44
44
  # @option options [Fixnum] :per_page Number of items per page
45
45
  # @return [Sawyer::Resource] Search results object
46
- # @see http://developer.github.com/v3/search/#search-repositories
46
+ # @see https://developer.github.com/v3/search/#search-repositories
47
47
  def search_repositories(query, options = {})
48
48
  search "search/repositories", query, options
49
49
  end
@@ -58,7 +58,7 @@ module Octokit
58
58
  # @option options [Fixnum] :page Page of paginated results
59
59
  # @option options [Fixnum] :per_page Number of items per page
60
60
  # @return [Sawyer::Resource] Search results object
61
- # @see http://developer.github.com/v3/search/#search-users
61
+ # @see https://developer.github.com/v3/search/#search-users
62
62
  def search_users(query, options = {})
63
63
  search "search/users", query, options
64
64
  end
@@ -3,14 +3,14 @@ module Octokit
3
3
 
4
4
  # Methods for the Repository Statistics API
5
5
  #
6
- # @see http://developer.github.com/v3/repos/statistics/
6
+ # @see https://developer.github.com/v3/repos/statistics/
7
7
  module Stats
8
8
 
9
9
  # Get contributors list with additions, deletions, and commit counts
10
10
  #
11
11
  # @param repo [String, Hash, Repository] A GitHub repository
12
12
  # @return [Array<Sawyer::Resource>] Array of contributor stats
13
- # @see http://developer.github.com/v3/repos/statistics/#contributors
13
+ # @see https://developer.github.com/v3/repos/statistics/#contributors
14
14
  # @example Get contributor stats for octokit
15
15
  # @client.contributors_stats('octokit/octokit.rb')
16
16
  def contributors_stats(repo, options = {})
@@ -23,7 +23,7 @@ module Octokit
23
23
  # @param repo [String, Hash, Repository] A GitHub repository
24
24
  # @return [Array<Sawyer::Resource>] The last year of commit activity grouped by
25
25
  # week. The days array is a group of commits per day, starting on Sunday.
26
- # @see http://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
26
+ # @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
27
27
  # @example Get commit activity for octokit
28
28
  # @client.commit_activity_stats('octokit/octokit.rb')
29
29
  def commit_activity_stats(repo, options = {})
@@ -35,7 +35,7 @@ module Octokit
35
35
  # @param repo [String, Hash, Repository] A GitHub repository
36
36
  # @return [Array<Sawyer::Resource>] Weekly aggregate of the number of additions
37
37
  # and deletions pushed to a repository.
38
- # @see http://developer.github.com/v3/repos/statistics/#code-frequency
38
+ # @see https://developer.github.com/v3/repos/statistics/#code-frequency
39
39
  # @example Get code frequency stats for octokit
40
40
  # @client.code_frequency_stats('octokit/octokit.rb')
41
41
  def code_frequency_stats(repo, options = {})
@@ -49,7 +49,7 @@ module Octokit
49
49
  # counts in all. all is everyone combined, including the owner in the last
50
50
  # 52 weeks. If you’d like to get the commit counts for non-owners, you can
51
51
  # subtract all from owner.
52
- # @see http://developer.github.com/v3/repos/statistics/#participation
52
+ # @see https://developer.github.com/v3/repos/statistics/#participation
53
53
  # @example Get weekly commit counts for octokit
54
54
  # @client.participation_stats("octokit/octokit.rb")
55
55
  def participation_stats(repo, options = {})
@@ -61,7 +61,7 @@ module Octokit
61
61
  # @param repo [String, Hash, Repository] A GitHub repository
62
62
  # @return [Array<Array>] Arrays containing the day number, hour number, and
63
63
  # number of commits
64
- # @see http://developer.github.com/v3/repos/statistics/#punch-card
64
+ # @see https://developer.github.com/v3/repos/statistics/#punch-card
65
65
  # @example Get octokit punch card
66
66
  # @octokit.punch_card_stats
67
67
  def punch_card_stats(repo, options = {})
@@ -3,7 +3,7 @@ module Octokit
3
3
 
4
4
  # Methods for the Commit Statuses API
5
5
  #
6
- # @see http://developer.github.com/v3/repos/statuses/
6
+ # @see https://developer.github.com/v3/repos/statuses/
7
7
  module Statuses
8
8
  COMBINED_STATUS_MEDIA_TYPE = "application/vnd.github.she-hulk-preview+json"
9
9
 
@@ -12,7 +12,7 @@ module Octokit
12
12
  # @param repo [String, Repository, Hash] A GitHub repository
13
13
  # @param sha [String] The SHA1 for the commit
14
14
  # @return [Array<Sawyer::Resource>] A list of statuses
15
- # @see http://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
15
+ # @see https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
16
16
  def statuses(repo, sha, options = {})
17
17
  get "repos/#{Repository.new(repo)}/statuses/#{sha}", options
18
18
  end
@@ -39,7 +39,7 @@ module Octokit
39
39
  # @option options [String] :target_url A link to more details about this status
40
40
  # @option options [String] :description A short human-readable description of this status
41
41
  # @return [Sawyer::Resource] A status
42
- # @see http://developer.github.com/v3/repos/statuses/#create-a-status
42
+ # @see https://developer.github.com/v3/repos/statuses/#create-a-status
43
43
  def create_status(repo, sha, state, options = {})
44
44
  options.merge!(:state => state)
45
45
  post "repos/#{Repository.new(repo)}/statuses/#{sha}", options
@@ -3,7 +3,7 @@ module Octokit
3
3
 
4
4
  # Methods for the Users API
5
5
  #
6
- # @see http://developer.github.com/v3/users/
6
+ # @see https://developer.github.com/v3/users/
7
7
  module Users
8
8
 
9
9
  # List all GitHub users
@@ -15,7 +15,7 @@ module Octokit
15
15
  # @option options [Integer] :since The integer ID of the last User that
16
16
  # you’ve seen.
17
17
  #
18
- # @see http://developer.github.com/v3/users/#get-all-users
18
+ # @see https://developer.github.com/v3/users/#get-all-users
19
19
  #
20
20
  # @return [Array<Sawyer::Resource>] List of GitHub users.
21
21
  def all_users(options = {})
@@ -26,8 +26,8 @@ module Octokit
26
26
  #
27
27
  # @param user [String] A GitHub user name.
28
28
  # @return [Sawyer::Resource]
29
- # @see http://developer.github.com/v3/users/#get-a-single-user
30
- # @see http://developer.github.com/v3/users/#get-the-authenticated-user
29
+ # @see https://developer.github.com/v3/users/#get-a-single-user
30
+ # @see https://developer.github.com/v3/users/#get-the-authenticated-user
31
31
  # @example
32
32
  # Octokit.user("sferik")
33
33
  def user(user=nil, options = {})
@@ -44,7 +44,7 @@ module Octokit
44
44
  # @param app_id [String] Client Id we received when our application was registered with GitHub. Defaults to client_id.
45
45
  # @param app_secret [String] Client Secret we received when our application was registered with GitHub. Defaults to client_secret.
46
46
  # @return [Sawyer::Resource] Hash holding the access token.
47
- # @see http://developer.github.com/v3/oauth/#web-application-flow
47
+ # @see https://developer.github.com/v3/oauth/#web-application-flow
48
48
  # @example
49
49
  # Octokit.exchange_code_for_token('aaaa', 'xxxx', 'yyyy', {:accept => 'application/json'})
50
50
  def exchange_code_for_token(code, app_id = client_id, app_secret = client_secret, options = {})
@@ -83,7 +83,7 @@ module Octokit
83
83
  # @option options [Boolean] :hireable
84
84
  # @option options [String] :bio
85
85
  # @return [Sawyer::Resource]
86
- # @see http://developer.github.com/v3/users/#update-the-authenticated-user
86
+ # @see https://developer.github.com/v3/users/#update-the-authenticated-user
87
87
  # @example
88
88
  # Octokit.update_user(:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false)
89
89
  def update_user(options)
@@ -94,7 +94,7 @@ module Octokit
94
94
  #
95
95
  # @param user [String] Username of the user whose list of followers you are getting.
96
96
  # @return [Array<Sawyer::Resource>] Array of hashes representing users followers.
97
- # @see http://developer.github.com/v3/users/followers/#list-followers-of-a-user
97
+ # @see https://developer.github.com/v3/users/followers/#list-followers-of-a-user
98
98
  # @example
99
99
  # Octokit.followers('pengwynn')
100
100
  def followers(user=login, options = {})
@@ -105,7 +105,7 @@ module Octokit
105
105
  #
106
106
  # @param user [String] Username of the user who you are getting the list of the people they follow.
107
107
  # @return [Array<Sawyer::Resource>] Array of hashes representing users a user is following.
108
- # @see http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
108
+ # @see https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
109
109
  # @example
110
110
  # Octokit.following('pengwynn')
111
111
  def following(user=login, options = {})
@@ -123,8 +123,8 @@ module Octokit
123
123
  # @param user [String] Username of first user
124
124
  # @param target [String] Username of the target user
125
125
  # @return [Boolean] True following target user, false otherwise.
126
- # @see http://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user
127
- # @see http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another
126
+ # @see https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user
127
+ # @see https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another
128
128
  # @example
129
129
  # @client.follows?('pengwynn')
130
130
  # @example
@@ -146,7 +146,7 @@ module Octokit
146
146
  #
147
147
  # @param user [String] Username of the user to follow.
148
148
  # @return [Boolean] True if follow was successful, false otherwise.
149
- # @see http://developer.github.com/v3/users/followers/#follow-a-user
149
+ # @see https://developer.github.com/v3/users/followers/#follow-a-user
150
150
  # @example
151
151
  # @client.follow('holman')
152
152
  def follow(user, options = {})
@@ -159,7 +159,7 @@ module Octokit
159
159
  #
160
160
  # @param user [String] Username of the user to unfollow.
161
161
  # @return [Boolean] True if unfollow was successful, false otherwise.
162
- # @see http://developer.github.com/v3/users/followers/#unfollow-a-user
162
+ # @see https://developer.github.com/v3/users/followers/#unfollow-a-user
163
163
  # @example
164
164
  # @client.unfollow('holman')
165
165
  def unfollow(user, options = {})
@@ -173,16 +173,11 @@ module Octokit
173
173
  # @option options [String] :sort (created) Sort: <tt>created</tt> or <tt>updated</tt>.
174
174
  # @option options [String] :direction (desc) Direction: <tt>asc</tt> or <tt>desc</tt>.
175
175
  # @return [Array<Sawyer::Resource>] Array of hashes representing repositories starred by user.
176
- # @see http://developer.github.com/v3/activity/starring/#list-repositories-being-starred
176
+ # @see https://developer.github.com/v3/activity/starring/#list-repositories-being-starred
177
177
  # @example
178
178
  # Octokit.starred('pengwynn')
179
179
  def starred(user=login, options = {})
180
- if user == login && user_authenticated?
181
- path = "user/starred"
182
- else
183
- path = "users/#{user}/starred"
184
- end
185
- paginate path, options
180
+ paginate user_path(user, 'starred'), options
186
181
  end
187
182
 
188
183
  # Check if you are starring a repo.
@@ -191,7 +186,7 @@ module Octokit
191
186
  #
192
187
  # @param repo [String, Hash, Repository] A GitHub repository
193
188
  # @return [Boolean] True if you are following the repo, false otherwise.
194
- # @see http://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository
189
+ # @see https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository
195
190
  # @example
196
191
  # @client.starred?('pengwynn/octokit')
197
192
  def starred?(repo, options = {})
@@ -208,7 +203,7 @@ module Octokit
208
203
  #
209
204
  # @param key_id [Integer] Key to retreive.
210
205
  # @return [Sawyer::Resource] Hash representing the key.
211
- # @see http://developer.github.com/v3/users/keys/#get-a-single-public-key
206
+ # @see https://developer.github.com/v3/users/keys/#get-a-single-public-key
212
207
  # @example
213
208
  # @client.key(1)
214
209
  # @example Retrieve public key contents
@@ -230,7 +225,7 @@ module Octokit
230
225
  # Requires authenticated client.
231
226
  #
232
227
  # @return [Array<Sawyer::Resource>] Array of hashes representing public keys.
233
- # @see http://developer.github.com/v3/users/keys/#list-your-public-keys
228
+ # @see https://developer.github.com/v3/users/keys/#list-your-public-keys
234
229
  # @example
235
230
  # @client.keys
236
231
  def keys(options = {})
@@ -242,7 +237,7 @@ module Octokit
242
237
  # Requires authenticated client.
243
238
  #
244
239
  # @return [Array<Sawyer::Resource>] Array of hashes representing public keys.
245
- # @see http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
240
+ # @see https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
246
241
  # @example
247
242
  # @client.user_keys('pengwynn'
248
243
  def user_keys(user, options = {})
@@ -257,7 +252,7 @@ module Octokit
257
252
  # @param title [String] Title to give reference to the public key.
258
253
  # @param key [String] Public key.
259
254
  # @return [Sawyer::Resource] Hash representing the newly added public key.
260
- # @see http://developer.github.com/v3/users/keys/#create-a-public-key
255
+ # @see https://developer.github.com/v3/users/keys/#create-a-public-key
261
256
  # @example
262
257
  # @client.add_key('Personal projects key', 'ssh-rsa AAA...')
263
258
  def add_key(title, key, options = {})
@@ -273,7 +268,7 @@ module Octokit
273
268
  # @option options [String] :title
274
269
  # @option options [String] :key
275
270
  # @return [Sawyer::Resource] Hash representing the updated public key.
276
- # @see http://developer.github.com/v3/users/keys/#update-a-public-key
271
+ # @see https://developer.github.com/v3/users/keys/#update-a-public-key
277
272
  # @example
278
273
  # @client.update_key(1, :title => 'new title', :key => "ssh-rsa BBB")
279
274
  def update_key(key_id, options = {})
@@ -286,7 +281,7 @@ module Octokit
286
281
  #
287
282
  # @param id [String] Id of the public key to remove.
288
283
  # @return [Boolean] True if removal was successful, false otherwise.
289
- # @see http://developer.github.com/v3/users/keys/#delete-a-public-key
284
+ # @see https://developer.github.com/v3/users/keys/#delete-a-public-key
290
285
  # @example
291
286
  # @client.remove_key(1)
292
287
  def remove_key(id, options = {})
@@ -298,7 +293,7 @@ module Octokit
298
293
  # Requires authenticated client.
299
294
  #
300
295
  # @return [Array<String>] Array of email addresses.
301
- # @see http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
296
+ # @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
302
297
  # @example
303
298
  # @client.emails
304
299
  def emails(options = {})
@@ -311,7 +306,7 @@ module Octokit
311
306
  #
312
307
  # @param email [String] Email address to add to the user.
313
308
  # @return [Array<String>] Array of all email addresses of the user.
314
- # @see http://developer.github.com/v3/users/emails/#add-email-addresses
309
+ # @see https://developer.github.com/v3/users/emails/#add-email-addresses
315
310
  # @example
316
311
  # @client.add_email('new_email@user.com')
317
312
  def add_email(email, options = {})
@@ -325,7 +320,7 @@ module Octokit
325
320
  #
326
321
  # @param email [String] Email address to remove.
327
322
  # @return [Array<String>] Array of all email addresses of the user.
328
- # @see http://developer.github.com/v3/users/emails/#delete-email-addresses
323
+ # @see https://developer.github.com/v3/users/emails/#delete-email-addresses
329
324
  # @example
330
325
  # @client.remove_email('old_email@user.com')
331
326
  def remove_email(email)
@@ -339,20 +334,25 @@ module Octokit
339
334
  #
340
335
  # @return [Array<Sawyer::Resource>] Array of repositories.
341
336
  #
342
- # @see http://developer.github.com/v3/activity/watching/#list-repositories-being-watched
337
+ # @see https://developer.github.com/v3/activity/watching/#list-repositories-being-watched
343
338
  #
344
339
  # @example
345
340
  # @client.subscriptions("pengwynn")
346
341
  def subscriptions(user=login, options = {})
347
- if user == login && user_authenticated?
348
- path = "user/subscriptions"
349
- else
350
- path = "users/#{user}/subscriptions"
351
- end
352
- paginate path, options
342
+ paginate user_path(user, 'subscriptions'), options
353
343
  end
354
344
  alias :watched :subscriptions
355
345
 
356
346
  end
347
+
348
+ private
349
+ # convenience method for constructing a user specific path, if the user is logged in
350
+ def user_path(user, path)
351
+ if user == login && user_authenticated?
352
+ "user/#{path}"
353
+ else
354
+ "users/#{user}/#{path}"
355
+ end
356
+ end
357
357
  end
358
358
  end
@@ -4,20 +4,20 @@ module Octokit
4
4
  # in {Default}
5
5
  module Configurable
6
6
  # @!attribute [w] access_token
7
- # @see http://developer.github.com/v3/oauth/
7
+ # @see https://developer.github.com/v3/oauth/
8
8
  # @return [String] OAuth2 access token for authentication
9
9
  # @!attribute api_endpoint
10
10
  # @return [String] Base URL for API requests. default: https://api.github.com/
11
11
  # @!attribute auto_paginate
12
12
  # @return [Boolean] Auto fetch next page of results until rate limit reached
13
13
  # @!attribute client_id
14
- # @see http://developer.github.com/v3/oauth/
14
+ # @see https://developer.github.com/v3/oauth/
15
15
  # @return [String] Configure OAuth app key
16
16
  # @!attribute [w] client_secret
17
- # @see http://developer.github.com/v3/oauth/
17
+ # @see https://developer.github.com/v3/oauth/
18
18
  # @return [String] Configure OAuth app secret
19
19
  # @!attribute default_media_type
20
- # @see http://developer.github.com/v3/media/
20
+ # @see https://developer.github.com/v3/media/
21
21
  # @return [String] Configure preferred media type (for API versioning, for example)
22
22
  # @!attribute connection_options
23
23
  # @see https://github.com/lostisland/faraday
@@ -218,4 +218,8 @@ module Octokit
218
218
 
219
219
  # Raised when client fails to provide valid Content-Type
220
220
  class MissingContentType < ArgumentError; end
221
+
222
+ # Raised when a method requires an application client_id
223
+ # and secret but none is provided
224
+ class ApplicationCredentialsRequired < StandardError; end
221
225
  end
@@ -11,7 +11,7 @@ module Octokit
11
11
  # @!attribute [w] resets_in
12
12
  # @return [Fixnum] Number of seconds when rate limit resets
13
13
  #
14
- # @see http://developer.github.com/v3/#rate-limiting
14
+ # @see https://developer.github.com/v3/#rate-limiting
15
15
  class RateLimit < Struct.new(:limit, :remaining, :resets_at, :resets_in)
16
16
 
17
17
  # Get rate limit info from HTTP response
@@ -2,6 +2,6 @@ module Octokit
2
2
 
3
3
  # Current version
4
4
  # @return [String]
5
- VERSION = "3.0.0".freeze
5
+ VERSION = "3.1.0".freeze
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,34 +10,34 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-27 00:00:00.000000000 Z
13
+ date: 2014-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '1.0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '1.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sawyer
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: 0.5.3
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 0.5.3
43
43
  description: Simple wrapper for the GitHub API
@@ -49,7 +49,7 @@ executables: []
49
49
  extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
- - .document
52
+ - ".document"
53
53
  - CONTRIBUTING.md
54
54
  - LICENSE.md
55
55
  - README.md
@@ -114,12 +114,12 @@ require_paths:
114
114
  - lib
115
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: 1.9.2
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.3.5
125
125
  requirements: []