{"action":"created","issue":{"url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/4","repository_url":"https://api.github.com/repos/taylorthurlow/panda-motd","labels_url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/4/comments","events_url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/4/events","html_url":"https://github.com/taylorthurlow/panda-motd/issues/4","id":322661523,"number":4,"title":"Fails to run on 18.04 Ubuntu Budgie LTS","user":{"login":"eightseventhreethree","id":12215946,"avatar_url":"https://avatars1.githubusercontent.com/u/12215946?v=4","gravatar_id":"","url":"https://api.github.com/users/eightseventhreethree","html_url":"https://github.com/eightseventhreethree","followers_url":"https://api.github.com/users/eightseventhreethree/followers","following_url":"https://api.github.com/users/eightseventhreethree/following{/other_user}","gists_url":"https://api.github.com/users/eightseventhreethree/gists{/gist_id}","starred_url":"https://api.github.com/users/eightseventhreethree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eightseventhreethree/subscriptions","organizations_url":"https://api.github.com/users/eightseventhreethree/orgs","repos_url":"https://api.github.com/users/eightseventhreethree/repos","events_url":"https://api.github.com/users/eightseventhreethree/events{/privacy}","received_events_url":"https://api.github.com/users/eightseventhreethree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-14T03:30:14Z","updated_at":"2018-05-14T04:02:04Z","closed_at":null,"author_association":"NONE","body":"### Bug description\r\nFails to run.\r\n\r\n### Reproduction steps\r\nSteps to reproduce the behavior:\r\n1. Installed using `sudo gem install panda-motd`\r\n2. ran: `sudo panda-motd`\r\n3. Got the error below.\r\n\r\n```\r\nrush@rush-Latitude-E6540:~/ruby_projects/panda-motd$ sudo gem install panda-motd\r\n[sudo] password for rush: \r\nFetching: colorize-0.8.1.gem (100%)\r\nSuccessfully installed colorize-0.8.1\r\nFetching: require_all-2.0.0.gem (100%)\r\nSuccessfully installed require_all-2.0.0\r\nFetching: ruby-units-2.3.0.gem (100%)\r\nSuccessfully installed ruby-units-2.3.0\r\nFetching: drydock-0.6.9.gem (100%)\r\nSuccessfully installed drydock-0.6.9\r\nFetching: storable-0.8.9.gem (100%)\r\nSuccessfully installed storable-0.8.9\r\nFetching: sysinfo-0.8.1.gem (100%)\r\nSuccessfully installed sysinfo-0.8.1\r\nFetching: panda-motd-0.0.4.gem (100%)\r\nSuccessfully installed panda-motd-0.0.4\r\nParsing documentation for colorize-0.8.1\r\nInstalling ri documentation for colorize-0.8.1\r\nParsing documentation for require_all-2.0.0\r\nInstalling ri documentation for require_all-2.0.0\r\nParsing documentation for ruby-units-2.3.0\r\nInstalling ri documentation for ruby-units-2.3.0\r\nParsing documentation for drydock-0.6.9\r\nInstalling ri documentation for drydock-0.6.9\r\nParsing documentation for storable-0.8.9\r\nInstalling ri documentation for storable-0.8.9\r\nParsing documentation for sysinfo-0.8.1\r\nInstalling ri documentation for sysinfo-0.8.1\r\nParsing documentation for panda-motd-0.0.4\r\nInstalling ri documentation for panda-motd-0.0.4\r\nDone installing documentation for colorize, require_all, ruby-units, drydock, storable, sysinfo, panda-motd after 0 seconds\r\n7 gems installed\r\n\r\nrush@rush-Latitude-E6540:~/ruby_projects/panda-motd$ sudo panda-motd\r\nTraceback (most recent call last):\r\n\t6: from /usr/local/bin/panda-motd:23:in `<main>'\r\n\t5: from /usr/local/bin/panda-motd:23:in `load'\r\n\t4: from /var/lib/gems/2.5.0/gems/panda-motd-0.0.4/bin/panda-motd:5:in `<top (required)>'\r\n\t3: from /var/lib/gems/2.5.0/gems/panda-motd-0.0.4/lib/panda_motd.rb:6:in `new_motd'\r\n\t2: from /var/lib/gems/2.5.0/gems/panda-motd-0.0.4/lib/panda_motd.rb:6:in `new'\r\n\t1: from /var/lib/gems/2.5.0/gems/panda-motd-0.0.4/lib/panda_motd/motd.rb:8:in `initialize'\r\n/var/lib/gems/2.5.0/gems/panda-motd-0.0.4/lib/panda_motd/config.rb:13:in `components_enabled': undefined method `map' for nil:NilClass (NoMethodError)\r\n```\r\n### Expected behavior\r\nExpected the application to create the config file and run.\r\n\r\n### Screenshots\r\n![screenshot from 2018-05-13 23-28-25](https://user-images.githubusercontent.com/12215946/39977095-90242440-5705-11e8-9282-cb9159499d91.png)\r\n\r\n### OS Information\r\n - OS: 18.04 Ubuntu Budgie LTS"},"comment":{"url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/comments/388690741","html_url":"https://github.com/taylorthurlow/panda-motd/issues/4#issuecomment-388690741","issue_url":"https://api.github.com/repos/taylorthurlow/panda-motd/issues/4","id":388690741,"user":{"login":"eightseventhreethree","id":12215946,"avatar_url":"https://avatars1.githubusercontent.com/u/12215946?v=4","gravatar_id":"","url":"https://api.github.com/users/eightseventhreethree","html_url":"https://github.com/eightseventhreethree","followers_url":"https://api.github.com/users/eightseventhreethree/followers","following_url":"https://api.github.com/users/eightseventhreethree/following{/other_user}","gists_url":"https://api.github.com/users/eightseventhreethree/gists{/gist_id}","starred_url":"https://api.github.com/users/eightseventhreethree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eightseventhreethree/subscriptions","organizations_url":"https://api.github.com/users/eightseventhreethree/orgs","repos_url":"https://api.github.com/users/eightseventhreethree/repos","events_url":"https://api.github.com/users/eightseventhreethree/events{/privacy}","received_events_url":"https://api.github.com/users/eightseventhreethree/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T04:02:04Z","updated_at":"2018-05-14T04:02:04Z","author_association":"NONE","body":"I enabled a couple of them. Here is what I have. Let me know if I'm missing something. Thanks again for quick reply. \r\n\r\n```\r\n# The components section contains an ordered list of components you wish to\r\n# print in the MOTD. They will be printed in the order they are defined in\r\n# this file. Duplicate components will override previous definitions. Every\r\n# component has an \"enabled\" setting which will turn the component on or off.\r\n\r\ncomponents:\r\n  #####\r\n  # ASCII Text Art\r\n  #   Generates ASCII pictures of strings. Currently only shows the hostname.\r\n  #\r\n  # Settings\r\n  #   font: The figlet font to render the text with. All supported fonts\r\n  #     can be found at http://www.figlet.org/fontdb.cgi\r\n  #   color: The color of the resulting text art. Supports the standard base-8\r\n  #     colors: black, red, green, yellow, blue, magenta, cyan, and white. You\r\n  #     can also use 'default' for your default terminal color. Additionally,\r\n  #     you can prefix any of the base colors with 'light_' to get the lighter\r\n  #     version.\r\n  #####\r\n\r\n   ascii_text_art:\r\n     enabled: true\r\n     font: slant\r\n     color: red\r\n\r\n  #####\r\n  # Service Status\r\n  #   Displays the current state of services running on the system. Currently\r\n  #   only supports systemd.\r\n  #\r\n  # Settings\r\n  #   services: Pairs following the format \"service_name: Pretty Name\". The\r\n  #     service_name is the name of the systemd service to look for, NOT\r\n  #     including the '.service' suffix. The pretty name is the name that is\r\n  #     used in the MOTD to represent that service.\r\n  #####\r\n\r\n  # service_status:\r\n  #   enabled: true\r\n  #   services:\r\n  #     chunkwm: chunkwm\r\n  #     ssh: skhd\r\n  #     elasticsearch@5.6: elasticsearch\r\n  #     mysql: MySQL\r\n\r\n  #####\r\n  # Uptime\r\n  #   Displays the current uptime of the machine.\r\n  #\r\n  # Settings\r\n  #   prefix: The text to prepend to the uptime string.\r\n  #####\r\n\r\n   uptime:\r\n     enabled: true\r\n     prefix: up\r\n\r\n  #####\r\n  # SSL Certificates\r\n  #   Displays the validity and expiration dates of SSL certificates.\r\n  #\r\n  # Settings\r\n  #   certs: Pairs following the format \"PrettyName: absolute_cert_file_path\".\r\n  #     The absolute_cert_file_path is the absolute file path of the SSL\r\n  #     certificate. The pretty name is the name that is used in the MOTD to\r\n  #     represent that certificate, typically a domain name.\r\n  #####\r\n\r\n  # ssl_certificates:\r\n  #   enabled: true\r\n  #   certs:\r\n  #     taylorjthurlow.com: /etc/letsencrypt/live/taylorjthurlow.com/cert.pem\r\n\r\n  #####\r\n  # Filesystems\r\n  #   Displays filesystem usage information.\r\n  #\r\n  # Settings\r\n  #   filesystems: Pairs following the format \"filesystem_name: Pretty Name\".\r\n  #     The filesystem_name is the name of the filesystem listed when using the\r\n  #     `df` command line tool. The pretty name is the name that is used in the\r\n  #     MOTD to represent that filesystem.\r\n  #####\r\n\r\n  # filesystems:\r\n  #   enabled: true\r\n  #   filesystems:\r\n  #     /dev/sda1: Ubuntu\r\n  #     /dev/sdc1: Data\r\n\r\n\r\n  #####\r\n  # Last Login\r\n  #   Displays previous login information for users.\r\n  #\r\n  # Settings\r\n  #   users: A list of user names which you are interested in receiving login\r\n  #     information about. The key is the username, and the value is the number\r\n  #     of recent logins you'd like to display.\r\n  #####\r\n\r\n   last_login:\r\n     enabled: true\r\n     users:\r\n       rush: 1\r\n  #     stoyan: 1\r\n```"}}
{"actor":{"display_login":"eightseventhreethree"}}