Commit graph

1692 commits

Author SHA1 Message Date
Vincent Ambo
aedfd7c7ac feat: Add support for form-encoded POST bodies 2019-02-26 17:30:49 +01:00
Vincent Ambo
d3a47d3b1c refactor: Move URL & method configuration to send()
This lets the builder proceed without returning a `Result` from the
initial call, which makes for a slightly nicer API.
2019-02-26 17:30:49 +01:00
Vincent Ambo
9ce0098bc0 docs(lib): Update docstrings for rustdoc output 2019-02-26 17:30:45 +01:00
Vincent Ambo
569e10e509 test: Add tests for HTTP verbs & POSTing data 2019-02-26 14:45:06 +01:00
Vincent Ambo
b71b44a672 fix: Correctly configure body sizes before setting read_function 2019-02-26 14:33:42 +01:00
Vincent Ambo
718d945753 refactor: Use mut self-consuming builder functions
Writing the functions this way makes it slightly nicer to chain them
without having to assign the request to an intermediate variable.
2019-02-26 14:33:02 +01:00
Vincent Ambo
c6c1746428 refactor: Introduce json feature and make it optional
Gates support for `serde_json` behind a Cargo feature called `json`
that is enabled by default.
2019-02-26 13:49:43 +01:00
Vincent Ambo
479a6b3442 feat: Support JSON body serialization in requests & responses
Uses `serde_json` to provide serialisation and deserialisation of
request/response bodies.
2019-02-26 13:46:02 +01:00
Vincent Ambo
b28f6e748d feat: Initial check-in of working client layer 2019-02-26 11:20:38 +01:00
Vincent Ambo
e95a82ca4c chore: Initial commit 2019-02-25 18:03:21 +01:00
Vincent Ambo
17060cece3 chore(Cargo): Bump version to 1.0.0
This library has been running in a production codebase for a while and
can be considered stable.

There is a minor breaking change between this version and the previous
0.1.0 in that the `ValidationError` enum has gained additional variants.
2019-02-13 14:18:07 +01:00
Vincent Ambo
cc1ee9c81d fix: Allow trailing bits in base64 encodings
After upgrading the base64 library, tests were failing because the new
default of the library is to disallow trailing bits in JWTs.

Some JWT provider implementations do however use this "forgiving"
version of base64-encoding, hence it is required for token validation.

This adds a base64::Config with the appropriate settings and also
chains base64-errors separately from other token errors.
2019-02-13 14:18:07 +01:00
Vincent Ambo
4051fe0ec8 chore(Cargo): Update base64 dependency 2019-02-13 14:18:07 +01:00
Vincent Ambo
83f1b769fb feat(adho): Add Kulturhuset and Forest & Brown wifis 2019-02-11 14:54:24 +01:00
Vincent Ambo
9b35db823f chore(init): Remove adjust-parens configuration
This package is actually kind of annoying.
2019-02-10 21:43:54 +01:00
Vincent Ambo
09daca2fea fix(init): Move ace-window-display-mode into hook function
For some reason that I can not be bothered to debug this mode will
only work correctly if initialised from inside this hook function (or
manually, after startup).
2019-02-10 21:43:54 +01:00
Vincent Ambo
bdff24f52b fix(init): Initialise ace-window-display-mode on launch 2019-02-10 21:43:54 +01:00
Vincent Ambo
4a53a084a5 feat(mail): Refresh unread mail count more often
Decreases the interval from 90 seconds to 30 seconds.
2019-02-10 21:43:54 +01:00
Vincent Ambo
dd5c880138 chore(nixos): Reshuffle EXWM screen assignment on adho 2019-02-10 21:43:54 +01:00
Vincent Ambo
5b5f051b13 refactor: Reutilise multi-term commands for Alacritty buffers
In practice I never use multi-term, but it's nice to have the same
buffer selection functionality for Alacritty buffers.
2019-02-10 21:43:54 +01:00
Vincent Ambo
2c5946163c fix(nix-mode): Use nix-indent-line as indentation function 2019-02-10 21:43:54 +01:00
Vincent Ambo
0f9136ab88 feat(custom): Enable intero-global-mode 2019-02-10 21:43:54 +01:00
Vincent Ambo
dd2ba5aafc fix: Use indent-relative in Kotlin buffers 2019-02-10 21:43:54 +01:00
Vincent Ambo
ee143eaf14 fix: Run GHCi-workaround /after/ switching to REPL buffer
This simply changes the advice position. This way around makes more
sense in case that the REPL is just being started up.
2019-02-10 21:43:54 +01:00
Vincent Ambo
bab9f15a33 fix: Add temporary workaround for Intero + GHC 8.4 bug
Adds a workaround for commercialhaskell/intero#569 by adding a
function that disables the offending GHCi flag in the Intero REPL, and
advising the `intero-repl` and `intero-repl-load` commands to always
execute it.

I did not manage to locate a common entrypoint to the REPL, but it's
probably not worth spending more time on as this will be fixed
properly in a future GHC release.
2019-02-10 21:43:54 +01:00
Vincent Ambo
0cf7af4403 fix(cargo): Disable keybinding for 'cargo clean' 2019-02-10 21:43:54 +01:00
Vincent Ambo
d74692acf2 chore(custom): Configure Intero to use 0.1.31 backend 2019-02-10 21:43:54 +01:00
Vincent Ambo
e0a8a6f35f feat(functions): Add function to start inferior Erlang via Nix 2019-02-10 21:43:54 +01:00
Vincent Ambo
5b32cd74c6 feat(mail): Add counsel-notmuch support 2019-02-10 21:43:54 +01:00
Vincent Ambo
dea6ece741 chore(init): Comment out multi-term configuration
Multi-term is currently broken, I think this may be related to Emacs
26, but as I don't actively use it much I haven't investigated more.
2019-02-10 21:43:54 +01:00
Vincent Ambo
660fc549f4 feat(init): Reintroduce sly configuration
Sly is back!
2019-02-10 21:43:54 +01:00
Vincent Ambo
47ba177c00 fix(init): Fix setup of lisp modes 2019-02-10 21:43:54 +01:00
Vincent Ambo
169b6754d0 chore(custom): Add some Aprila-related settings 2019-02-10 21:43:54 +01:00
Vincent Ambo
4fe8d78dbb refactor: Begin moving package configuration to use-package
This is the first in a series of commits for refactoring my
configuration to make use of jwiegley's use-package.

In the previous layout of the configuration there were some questions
around what settings go into which file, but in the end it is all just
related to which packages are being configured (besides settings
related to global Emacs behaviour).

This commit introduces use-package forms for all currently used
packages (which are still installed via Nix, not via package.el) but
does not yet clean up the rest of the configuration in a suitable way.

Note that this version introduces a bug in which the configuration of
telephone line is not correctly initialised after package setup.
2019-02-10 21:43:54 +01:00
Vincent Ambo
1942ec574f docs: Mention global log stream value in README 2019-02-04 16:31:12 +01:00
Vincent Ambo
6d2a8adacc feat: Add best-effort support for non-GCP Error Reporting
This adds support for a special log stream name called "global", which
instead of setting that as a log stream changes the resource
descriptor to be of the `global` monitored resource descriptor.

According to the information we have in #4 logs submitted to that
resource descriptor should be compatible with Stackdriver Error
Reporting. This is relevant when running journaldriver outside of GCP
as there is no way to utilise Error Reporting with the log stream
resource.

This relates to #4. I'm unsure about saying whether or not it "fixes"
it.
2019-02-04 16:31:12 +01:00
Vincent Ambo
f661e4e6eb feat(home): Add initial home-manager configuration for ChromeOS
Adds a home-manager configuration that can be used in a Crostini
container running Nix. There isn't any truly ChromeOS-specific stuff
in this yet, as I've set up the interoperability with garcon etc.
manually for now.
2019-02-03 21:04:44 +00:00
Vincent Ambo
a1751798f1 chore(pkgs): Remove wine again
Never managed to get it to work for the things I wanted anyways.
2019-01-30 10:19:48 +01:00
Vincent Ambo
998e1bb7a1 feat(emacs): Add elm-mode back in 2019-01-30 10:14:50 +01:00
Vincent Ambo
f32222c36f chore(adho): Add Kitty's network 2019-01-30 10:14:32 +01:00
Felix Wiedmann
245d3bd154 chore(build): kubectl upgraded to the latest stable version (1.13.2)
Updates the kubectl version used in the Docker build to the latest
stable release. Please see the Kubernetes documentation for details.
2019-01-21 11:25:07 +01:00
Vincent Ambo
2682d05ffc chore(build): Move Nix commit for releases to latest NixOS stable
Updates a few build dependencies, most notably Go to 1.11. The chosen
commit is the current stable `nixos-18.09` tag in nixpkgs-channels.

While doing this I also checked whether it is now possible to remove
the exception for allowing references, but it's not.

Go may in the future gain support for fully reproducible builds, see
for example issue #16860 on their compiler. At that point maybe we can
drop a few settings here.
2019-01-21 11:25:07 +01:00
Vincent Ambo
a53e75741f fix(build): Depend on GNU Parallel during build
CI builds for `master` track unstable nixpkgs releases, in which
parallel is no longer part of the standard build environment.

However, this tool is required for executing some of the tests.
2019-01-21 11:25:07 +01:00
Vincent Ambo
432bb85f48 feat: Open firewall port 3000 2018-12-26 01:01:15 +01:00
Vincent Ambo
a06aae7236 feat(adho): Enable virtualbox & LXC 2018-12-26 01:01:15 +01:00
Vincent Ambo
54d56a39a6 feat(adho): Add The Kasbah & Google Oslo networks 2018-12-26 01:01:15 +01:00
Vincent Ambo
52d9ae8944 chore(adho): Switch to 2.4Ghz home network 2018-12-26 01:01:15 +01:00
Vincent Ambo
40027f008f fix(emacs): Fix sly package (again) 2018-12-26 01:01:15 +01:00
Martin Lehmann
54db9785d6 feat(main): Support specifying kubectl args in ResourceSets 2018-12-11 10:58:52 +01:00
Vincent Ambo
93e6146404 chore(pkgs): wine -> wineStaging 64-bit 2018-11-07 00:13:37 +01:00