Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcus Ramberg marcusramberg

View GitHub Profile
View gist:5f81ba535a7595744455c322af41087b
.
├── Jenkinsfile
├── README.md
├── build.gradle
├── gradle
│   └── wrapper
│   ├── gradle-wrapper.jar
│   └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
View gist:078fae6cadf5a04c8203457750158198
$ prove -l
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
t/config.t ....................... ok
t/connection.t ................... ok
t/connection_name.t .............. ok
t/irc-basic.t .................... ok
t/irc-commands.t ................. ok
View gist:89ff0e5a876a57029769efcf38e453ee
$ prove -l
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
t/config.t ....................... ok
t/connection.t ................... ok
t/connection_name.t .............. ok
t/irc-basic.t .................... ok
t/irc-commands.t ................. ok
View gist:bc95c78a4c550e478560ace1ec8cc421
CORE
Perl v5.30.0 (5.16)
Convos 3.08 (3.00)
Crypt::Eksblowfish 0.009 (0.009)
File::HomeDir 1.004 (1.00)
File::ReadBackwards 1.05 (1.05)
IO::Socket::SSL 2.066 (2.009)
IRC::Utils 0.12 (0.12)
JSON::Validator 3.16 (3.16)
View gist:45edd3f1292b599b468bc5290eb66f12
This file has been truncated, but you can view the full file.
$ prove -l
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
Can't call method "path" on an undefined value at /Users/marcus/Source/convos/lib/Convos/Plugin/Helpers.pm line 33.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
t/config.t .......................
View gist:ae350e9b99204ad587c3f4abf25e328e
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
t/config.t .......................
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
t/connection.t ................... ok
t/connection_name.t .............. ok
t/irc-basic.t .................... ok
View gist:cf623b20880000ace36fea26e5005cad
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..c6b983e6e 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context')
View gist:d22fae35c86191d931ee3778c5be9e84
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..db04ef688 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context'
View gist:e7a43a23c5ee46df49f3a3b444d83974
2019-08-11 20:54:02 ERROR (MainThread) [hass_nabucasa.iot] Error handling message
Traceback (most recent call last):
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 220, in _handle_connection
self.cloud, msg["handler"], msg["payload"]
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 274, in async_handle_message
return await handler(cloud, payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 286, in async_handle_google_actions
return await cloud.client.async_google_message(payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/client.py", line 147, in async_google_message
self._hass, self.google_config, self.prefs.cloud_user, payload