aboutsummaryrefslogtreecommitdiff
path: root/stack-core.el
Commit message (Collapse)AuthorAgeFilesLines
* Renamed all files.Artur Malabarba2014-11-071-369/+0
| | | | Still a lot to be done inside them.
* Merge branch 'master' into authSean Allred2014-11-061-2/+7
|\ | | | | | | | | Conflicts: stack-core.el
| * Add API key to requestsSean Allred2014-11-051-2/+7
| |
* | Change constant to variableSean Allred2014-11-061-2/+4
| | | | | | | | | | As it is let-bound in the authentication flow, it is not truly a constant. Add a warning to the documentation appropriately.
* | Further explain `stack-cache-directory'Sean Allred2014-11-051-1/+3
| | | | | | | | | | I looked at it for a few minutes and wondered how to use it -- and I wrote the thing! :)
* | Implement OAuth2 authenticationSean Allred2014-11-051-1/+8
|/ | | | | Tested with commit 1749aa32c25d8eee9ca0753cb55bd7d134f320b7, current HEAD of the `gh-pages' branch.
* Descriptive comments to stack-core--decode-entitiesArtur Malabarba2014-11-041-0/+2
|
* Move " ago" out of stack--time-sinceArtur Malabarba2014-11-041-2/+1
|
* Trim unnecessary argArtur Malabarba2014-11-041-1/+1
|
* Make entities plist into a variable.Artur Malabarba2014-11-041-36/+42
|
* Make stack-core--seconds-to-string more descriptive.Artur Malabarba2014-11-041-6/+8
|
* Use our own seconds-to-string variable.Artur Malabarba2014-11-031-9/+20
|
* require time-dateArtur Malabarba2014-11-031-0/+1
|
* Define -decode-entities to decode html entities.Artur Malabarba2014-11-031-0/+55
|
* Implement and use `stack-cache-get' and `-set'Sean Allred2014-11-021-7/+23
|
* Fix return when file already existsSean Allred2014-11-021-2/+1
|
* Convenience function for retrieving cache filesSean Allred2014-11-021-1/+5
| | | | | This should be sorted somewhere... Maybe stack-cache.el needs to be its own file.
* Add function to retrieve cache filesSean Allred2014-11-021-0/+9
|
* Add cache directory as a customizable variableSean Allred2014-11-021-0/+4
|
* Use a simpler construct to test filter inclusionSean Allred2014-11-021-16/+7
| | | | | Also removed tests for `stack-core-filter-data--item-in-tree' since it no longer exists.
* Kill test cruftSean Allred2014-11-011-1/+0
|
* Remove test cruftSean Allred2014-11-011-2/+0
|
* Introduce `stack-core-silent-requests' as defaultSean Allred2014-11-011-0/+5
| | | | If this value is `t', requests will default to being silent.
* Return the correct type from filterSean Allred2014-11-011-11/+31
| | | | Vectors should not be turning into lists. See test cases.
* Fix syntax issueSean Allred2014-11-011-2/+5
|
* More work on data filter; add testsSean Allred2014-11-011-6/+13
|
* Add function to filter data structureSean Allred2014-11-011-0/+9
| | | | | | | | Only works on flat structures right now. This should be used and let-bound to a variable when that variable is going to be used a lot. Theoretically, it should be faster than traversing through the entire data structure. Think of this as a Emacs-local version of the API's own filter.
* Support older versions than 24.3Sean Allred2014-11-011-2/+1
|
* Use `url-retrieve-synchronously' dependendentlySean Allred2014-11-011-2/+6
| | | | | | | | Emacs 24.3 supposedly does not have a second argument to `url-retrieve-synchronously'. Introduce a switch dependent on `emacs-minor-version'. This hopefully fixes the url- issue.
* Strip properties from string sent to json-readSean Allred2014-10-311-1/+3
|
* Handle case where API response is compressedSean Allred2014-10-311-41/+56
| | | | | | | | | | | The StackExchange API explicitly states that responses to requests are gzipped. For some reason, they are not zipped when called locally on my machine, but they are zipped when run from Travis CI. I do not know if `url-retrieve-synchronously' is performing any magic. When I curl the request, I receive a gzipped response (as expected). A proper fix for this would be to somehow advise `url-*' to request as curl does.
* Housekeeping and performance enhancementsSean Allred2014-10-311-8/+9
|
* Make sure api-response is defined before parsingSean Allred2014-10-311-1/+1
| | | | Whoops.
* Give more informative message after json errorSean Allred2014-10-311-21/+28
|
* Throw an error when we receive one from the APISean Allred2014-10-311-0/+6
|
* Change *-make-request to return the content onlySean Allred2014-10-311-5/+1
|
* Simplify explanation of arguments structureSean Allred2014-10-311-7/+14
| | | | | The consing that was happening actually formed a much easier-to-understand list of lists.
* *Vastly* simplify default arguments functionSean Allred2014-10-311-10/+2
|
* Implement question list retrievalSean Allred2014-10-301-3/+5
|
* Fix circular initialization dependencySean Allred2014-10-301-2/+4
| | | | | | | | stack-filter needs stack-core to compile the filter, but stack-core uses the default filter to make a request. Note that setting `stack-core-filter' to `nil' still gives proper behaviour; no `filter' argument is passed through the method call.
* Initial commitSean Allred2014-10-301-0/+180
Well, not really. If you would like the old version history, please get in touch with me at code@seanallred.com. It's a wreck though and contains inconsistent information.