Vincent Ambo
15d460bab3
refactor(db): Use ConverseError instead of unwrapping/expecting
2018-04-08 19:22:42 +02:00
Vincent Ambo
fdc1abe7cc
feat(errors): Introduce error module with custom error type
...
Introduces an error type using the failure crate. This type has
foreign error links established to various errors that can occur
within Converse.
2018-04-08 19:21:56 +02:00
Vincent Ambo
c8cee945c5
refactor(main): Move handlers into separate handler module
2018-04-08 19:21:41 +02:00
Vincent Ambo
67a0642f8c
feat(main): Support CONVERSE_BIND_HOST environment variable
2018-04-08 18:44:41 +02:00
Vincent Ambo
a1a6b77fdf
refactor(main): Use actix-web extractor pattern
2018-04-08 18:42:01 +02:00
Vincent Ambo
316036b0a8
refactor(db): Establish Post->Thread association
...
This makes it possible to query posts by thread via Diesel.
2018-04-08 18:30:01 +02:00
Vincent Ambo
6e56f8e729
feat(main/templates): Add barebones single-thread view
2018-04-08 18:02:01 +02:00
Vincent Ambo
7dca9183c5
feat(db): Add initial GetThread message
...
Adds a GetThread message that returns a thread by ID. This does not
yet load posts.
2018-04-08 17:42:14 +02:00
Vincent Ambo
3db069c60d
feat(main): Add support for Tera templates
...
Sets up the structure required to carry Tera templates in the
actix-web state.
The (still very barebones) index renderer has been updated to render a
Tera template.
2018-04-08 17:30:03 +02:00
Vincent Ambo
b83dd99e30
chore(cargo): Add dependency on tera
...
Adds tera as the templating engine.
2018-04-08 17:14:38 +02:00
Vincent Ambo
1402cfd948
feat(main): Add barebares thread listing
...
This ties together the first components here (actix, diesel etc.) to
provide a _very_ simple thread overview.
2018-04-08 17:05:28 +02:00
Vincent Ambo
36e520a2b2
feat(db): Implement ListThreads message
...
Implements support for a message for listing threads. This does not
have any pagination support yet.
2018-04-08 17:04:45 +02:00
Vincent Ambo
bea6eb8eb3
feat(db): Bootstrap DbExecutor actor
...
Bootstraps an Actix actor carrying DB connections. This actor will be
used to interact with converse's database.
2018-04-08 16:41:34 +02:00
Vincent Ambo
5604d933e8
feat(main): Add minimal thread listing example
2018-04-08 16:08:26 +02:00
Vincent Ambo
f3f509d463
feat(main): Bootstrap project entrypoint
...
This doesn't really do anything yet.
2018-04-08 15:49:27 +02:00
Vincent Ambo
72691c8d63
feat(models/schema): Map up posts & threads table
2018-04-08 15:49:19 +02:00
Vincent Ambo
042eb88fd7
feat(migrations): Add posts & threads tables
2018-04-08 15:48:56 +02:00
Vincent Ambo
106ade6e41
chore: Add bootstrapped Cargo project
2018-04-08 15:48:49 +02:00
Vincent Ambo
2fd8fa2321
chore: Initial commit
2018-04-08 15:48:38 +02:00
Samuel Dionne-Riel
9478f88681
Adds nix-shell
test for special-cased ruby interpreter.
...
The test fakes the interpreter only to verify the arguments it would be
given.
2018-04-08 00:45:28 -04:00
Samuel Dionne-Riel
399f43c3d5
nix-shell: Fixes use with ruby shebangs.
...
The ported code in 80ebc553ec
was incorrectly ported.
```
- $envCommand = "exec $execArgs $interpreter -e 'load(\"$script\")' -- ${\(join ' ', (map shellEscape, @savedArgs))}";
...
+ envCommand = (format("exec %1% %2% -e 'load(\"%3%\") -- %4%") % execArgs % interpreter % script % joined.str()).str();
```
The single-quote finishing the small ruby snippet was lost in
translation.
2018-04-07 22:38:45 -04:00
Nicolas Dudebout
d8a1c27806
fix typo in nix-env man page
2018-04-07 21:10:46 -04:00
Bogdan Seniuc
b828051659
release.nix: Use $sourceRoot instead of hardcoded source directory
2018-04-07 10:15:41 +03:00
Doug Beardsley
72902ec399
Add missing eval-okay-regex-split.exp test file
2018-04-06 12:18:59 -06:00
Eelco Dolstra
e10a7ec7eb
Merge pull request #2036 from AmineChikhaoui/disk-cache-ttl
...
Make the TTL for disk cache configurable
2018-04-06 12:51:26 +02:00
AmineChikhaoui
e01b01c579
update/re-order the options docs
2018-04-06 11:09:52 +01:00
AmineChikhaoui
62d75ad3e1
rename the options to mention it's a narinfo TTL as disk cache is used all over the place for other operations
2018-04-06 11:05:15 +01:00
AmineChikhaoui
33b08899d5
re-order the options using the alphabetical order and improve the example in the positive lookup case
2018-04-06 10:51:19 +01:00
AmineChikhaoui
86930ed414
add documentation for the local disk cache TTL config
2018-04-06 10:51:18 +01:00
AmineChikhaoui
2855c3d965
Make the TTL for disk cache configurable, we can now completely disable
...
disk cache lookup for example by doing:
nix copy --from <binary-cahe> <store-path> --option \
positive-disk-cache-ttl 0
Issues: #1885 #2035
2018-04-06 10:51:18 +01:00
Eelco Dolstra
27e9ce0eb2
Merge pull request #2040 from erictapen/doc-tofile-writetextfile
...
document that writeTextFile from Nixpkgs is an alternative to toFile
2018-04-06 11:27:55 +02:00
Andrew Dunham
0081a1eac2
Use $CPPFLAGS when detecting version of aws-sdk-cpp
2018-04-06 00:25:34 -07:00
Eelco Dolstra
1d9742b95f
<nix/buildenv.nix>: Ignore dangling symlinks
...
Fixes
error: getting status of '/nix/store/j8p0vv89k1pf0cn7kmfsdcs7bshwga1i-firefox-52.7.2esr/share/icons/hicolor/48x48/apps/firefox.png': No such file or directory
https://github.com/NixOS/nix/issues/1934
Also improve error message on directory/non-directory collisions.
2018-04-05 20:04:42 +02:00
Eelco Dolstra
5c904e10eb
<nix/buildenv.nix>: Skip non-directory top-level paths
...
Fixes https://github.com/NixOS/nix/issues/1934 (at least the "error:
opening directory '/nix/store/...-linux-config-4.4.14': Not a
directory" issue).
2018-04-05 19:34:56 +02:00
Matthew Justin Bauer
d7a84d330c
Setup nix_path correctly in nix-profile-daemon
...
We need nixpkgs to be set in NIX_PATH for Nix 1.12 to work correctly
2018-04-04 18:02:59 -05:00
Vincent Ambo
01aed568e5
feat: Update to NixOS 18.03
...
As the subject says ...
This only includes some minor changes in configuration. Most
interestingly several packages that I used to have in this repository
as custom packages are now available in `nixos-unstable`.
Unfortunately they weren't included in NixOS 18.03 though ...
Either way, this is cleaner.
2018-04-04 17:10:12 +02:00
Abseil Team
abd0824ba6
- 985074b3d2f08388125a0004a4984f1d64fb0fcf In the internal implementation, avoid conflicting definit... by Abseil Team <absl-team@google.com>
...
GitOrigin-RevId: 985074b3d2f08388125a0004a4984f1d64fb0fcf
Change-Id: I1a564ac086a36bb52d36aeb5f500c7099d2ee032
2018-04-04 10:42:31 -04:00
Justin Humm
045eb84409
document that writeTextFile from Nixpkgs is an alternative to builtins.toFile
2018-04-03 23:26:47 +02:00
Abseil Team
0e5c3e8f16
- 7f2f6ad0cc3488cb57dfc5d1050c38862a2e42ef Only check for a specific message in the bad_cast
tests... by Matt Calabrese <calabrese@google.com>
...
- 6a8e56df0d6820c48ee8f39146c7e1fba8a394e7 This prevents a uint32_t value from potentially being log... by Matt Calabrese <calabrese@google.com>
- 00a77f5569086654837c03d06206349642364395 Add doc-comments to `absl::LogSeverity` and its helpers. by Abseil Team <absl-team@google.com>
- bf877655e420ebff42bede238523d360b53a80fa Enforce the Abseil-wide assumption that CHAR_BIT == 8. by Mark Barolak <mbar@google.com>
GitOrigin-RevId: 7f2f6ad0cc3488cb57dfc5d1050c38862a2e42ef
Change-Id: Id210255c9301442b0379dca147a806c85452f772
2018-04-03 14:35:40 -04:00
Tuomas Tynkkynen
af86132e1a
libexpr: Make unsafeGetAttrPos not crash on noPos
...
Currently e.g. `builtins.unsafeGetAttrPos "abort" builtins` will
eventually segfault because pos->file is an unset Symbol.
Found by afl-fuzz.
2018-04-03 15:54:42 +03:00
Abseil Team
7b3c38a062
- f1b5ee8ff389dead0ba5671ad564a46aa1e8d216 Using %d with a uint32_t appears to work on some compiler... by Abseil Team <absl-team@google.com>
...
- f8fabe263281d0f57692b1e72014c34dc8a85340 Internal change. by Abseil Team <absl-team@google.com>
GitOrigin-RevId: f1b5ee8ff389dead0ba5671ad564a46aa1e8d216
Change-Id: I207dfc6ba2cd55653652e6bfc9d3699a9e114c1d
2018-04-02 09:36:44 -04:00
Chris Feng
87db8b42a3
Preserve keyboard grab state after quitting fullscreen mode
...
* exwm-layout.el (exwm-layout-set-fullscreen)
(exwm-layout-unset-fullscreen, exwm-layout-toggle-fullscreen): Ditto.
2018-04-01 23:38:48 +08:00
Chris Feng
fbdcd42b0a
Add support for various key processing variables
...
* exwm-input.el (exwm-input--mimic-read-event): New function for
handling `extra-keyboard-modifiers' and `keyboard-translate-table'.
(exwm-input--cache-event): Do not unread events here.
(exwm-input--on-KeyPress-line-mode)
(exwm-input--on-KeyPress-char-mode): Compare with preprocessed events
and unread raw ones.
* exwm-input.el (exwm-input--on-KeyPress-line-mode): Add support for
`overriding-terminal-local-map'.
2018-04-01 23:30:19 +08:00
Vincent Ambo
eaac33465d
fix(custom): Mark gruber-darker safe, again.
...
This comes up again and again and again and again, for reasons I don't
understand or have time to care about.
2018-03-31 21:06:50 +02:00
Daniel Høyer Iversen
3b6b55ae73
Merge pull request #164 from horse315/master
...
fixed Hysen thermostat ctor & added comments
2018-03-31 15:57:17 +02:00
Daniel Høyer Iversen
e9f4bb6372
Merge pull request #169 from ooo89/master
...
Add support for Clas Ohlsson OEM branded SP3
2018-03-31 15:56:06 +02:00
Graham Christensen
3fbaa230a2
Merge pull request #2026 from grahamc/multi-user-linux
...
Expand the multi-user installer to support Linuxes with systemd
2018-03-30 16:04:11 -04:00
Ryan Trinkle
f2273b11f5
Add test eval-okay-nested-with
2018-03-30 15:41:16 -04:00
Graham Christensen
4eb40c72ed
macos: Handle when a build user doesn't have a user ID
2018-03-30 13:57:00 -04:00
Graham Christensen
f06f8102bd
Use a looser comparison for the 'user note' check
...
We use grep instead of an equality check because it is difficult
to extract _just_ the user's note, instead it is prefixed with
some plist junk. This was causing the user note to always be set,
even if there was no reason for it.
2018-03-30 11:38:08 -04:00