Commit Graph
101 Commits
Author SHA1 Message Date
Vincent Jacques a9b9765254 Acknowledge branch coverage lack 2013-09-06 11:17:09 +02:00
Vincent Jacques c819580ce8 Get status of Github API (#188) 2013-09-06 11:01:33 +02:00
Vincent Jacques f2feb81dae Add default parameters to greatly reduce code redoundancy 2013-09-06 11:01:32 +02:00
Vincent Jacques 1d0ba7ef64 Don't assume there is a 'message' field in case of error 2013-09-05 18:23:47 +02:00
Vincent Jacques fb6980ce36 Move the DEBUG_ON_RESPONSE call to Requester.__requestEncode 2013-08-23 19:05:53 +02:00
Vincent Jacques e084b51381 #193: Fix test coverage 2013-08-23 14:51:34 +02:00
Vincent Jacques 64cf539c83 #193: Add a param to Requester.requestXxx for request headers 2013-08-23 11:31:01 +02:00
Vincent Jacques 03d7fb012e #193: Add remarks 2013-08-23 11:15:17 +02:00
Vincent Jacques bae0a37d18 #193: Don't use a try-except for a usual execution flow in GithubObject.update
(and factorize assignment of headers in _storeAndUseAttributes,
as done for rawData)
2013-08-23 11:10:35 +02:00
Vincent Jacques fb7325884e Fix remarks on #189 to #193 2013-08-23 09:32:47 +02:00
Vincent Jacques 0f74e4389b Review of #189: pep8, copyrights, style, remarks
For remarks, run: git grep "#189"
They are only my first thoughts while reviewing this pull request,
and should be reviewed themselves.
2013-08-22 12:12:38 +02:00
Vincent Jacques 1787765a61 Review of #189: use dict.get
http://docs.python.org/2/library/stdtypes.html#dict.get
2013-08-22 11:41:15 +02:00
Vincent Jacques cc1bcd5f2d Merge branch 'develop' into topic/ConditionalRequest
Conflicts:
	.gitignore
	github/Requester.py
2013-08-22 11:01:51 +02:00
Vincent Jacques 8a2624e3a1 Merge branch 'topic/RememberHeaders' into develop (#192)
Conflicts:
	github/Issue.py
	github/MainClass.py
	github/PaginatedList.py
	github/Repository.py
	github/Requester.py
2013-08-22 10:30:14 +02:00
Vincent Jacques 5c475c7683 First review of #192 (pep8, headers... nothing important)
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
AKFish 70a7e9c83d Fix update 2013-08-22 07:45:27 +08:00
AKFish 5b09f6c821 Implement conditional request 2013-08-21 23:17:59 +08:00
AKFish 6fd05baf6b Handle response code 304 2013-08-21 23:09:30 +08:00
Vincent Jacques 20107078d2 Fix copyrights (#181 #182 #184 #186 #187) 2013-08-21 16:08:02 +02:00
AKFish e06257d060 Enable debug in TestCase 2013-08-21 20:58:29 +08:00
AKFish 1d18ea75cc Add debug / test mechanism 2013-08-21 19:25:05 +08:00
Vincent Jacques 07c0871281 Merge branch 'topic/HandleNonJsonResponses' into develop 2013-08-20 22:54:16 +02:00
Ed Jackson 211e4633ee Minor enhancements to rate limiting information
If rate limiting information hasn't been retrieved already, it will be checked
rather than just assuming 5000 requests remaining of 5000.

Add an additional attribute `rate_limiting_resettime` to reflect github's new
X-RateLimit-Reset header. This integer value is a unix timestamp.

RateLimiting unit test updated accordingly.
2013-08-06 10:42:57 -05:00
Mark Roddy 304d387114 Handle github api response that isn't valid json 2013-07-19 20:24:50 -04:00
Vincent Jacques 06a3d87098 Change source file header format 2013-07-13 19:03:53 +02:00
Vincent Jacques 56309b90f2 Run the script added in previous commit 2013-07-13 11:10:00 +02:00
Vincent Jacques db2a9db721 Add two new types of exceptions (issue #152) 2013-05-17 14:27:17 +02:00
Vincent Jacques 319ff29d25 Merge branch 'develop' 2013-04-25 20:14:31 +02:00
Vincent Jacques aa7df884c4 Small fixes in doc 2013-04-25 15:27:26 +02:00
Vincent Jacques 97af2b6da2 Fix pagination with secret-key authentication (issue #158) 2013-04-25 14:31:51 +02:00
Jonathan J Hunt a8e5a16ba5 Fixed pep8 2013-04-24 12:30:39 -07:00
Jonathan J Hunt f7b3e9956d Added default user agent. 2013-04-24 12:28:02 -07:00
Vincent Jacques 73f9ae8f21 Merge branch 'topic/SpecificExceptions' into develop 2013-04-22 22:23:04 +02:00
Vincent Jacques db5560bd65 Add a script to check copyrights with git log. And fix copyrights. 2013-03-29 16:54:15 +01:00
Vincent Jacques 0bc368973a Raise a specific exception for non-existing objects (issue #152) 2013-03-29 13:10:59 +01:00
Vincent Jacques 7b3e4c15ed Raise a specific exception for bad credentials (issue #152) 2013-03-29 13:01:06 +01:00
Vincent Jacques 1c47be4e89 Document #pragma no covers (Issue #154) 2013-03-28 21:50:17 +01:00
Vincent Jacques 8a9afbb1aa Remove branches for hypothetical unknown Authorization headers 2013-03-28 21:49:39 +01:00
Vincent Jacques 1c67359a31 Improve test coverage a bit 2013-03-28 21:28:01 +01:00
Vincent Jacques c85af79db1 Fix authentication with Python 3 (Issue #153) 2013-03-28 20:05:13 +01:00
Vincent Jacques e25a6a49d1 Add Github.per_page to tweak PaginatedList (Issue #145) 2013-03-14 12:01:41 +01:00
Vincent Jacques 03a256a405 Publish version 1.12.2 2013-03-03 18:44:25 +01:00
Vincent Jacques 9e6b086c2d Remove a deprecation warning 2013-03-03 18:35:50 +01:00
Vincent Jacques 0ddb34d987 Fix decoding on Python3 (bytes instead of str) (Issue #142) 2013-03-03 18:32:10 +01:00
Vincent Jacques 7a415fda66 Change home page 2013-02-16 21:19:49 +01:00
Vincent Jacques 64f2640ed1 Conform to pep8 2013-02-07 18:48:40 +01:00
Vincent Jacques 2215010b0e Retrieve scopes for current oauth token from response headers (Issue #134) 2013-02-06 00:04:29 +01:00
Vincent Jacques 681128d41a Refactor 2013-02-05 23:38:45 +01:00
Vincent Jacques 27ed941f7b Remove useless Content-Length header 2013-02-05 23:24:51 +01:00
Vincent Jacques 3cbc81551a Refactor: put form/multipart encoding in Requester
And remove my fucking credentials from git! (Password changed, btw)
2013-02-05 19:47:52 +01:00