diff --git a/CHANGELOG.md b/CHANGELOG.md index 061685d..507974b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - 2020-02-01 + +### Fixed + +- There is no `hostname` on Lambda. + + ## [1.2.0] - 2019-11-15 ### Added diff --git a/lib/is_it_working/handler.rb b/lib/is_it_working/handler.rb index 269874a..e4b5848 100644 --- a/lib/is_it_working/handler.rb +++ b/lib/is_it_working/handler.rb @@ -32,7 +32,7 @@ class Handler def initialize(app=nil, route_path="/is_it_working", &block) @app = app @route_path = route_path - @hostname = `hostname`.chomp + @hostname = `hostname`.to_s.chomp @timers = [] @filters = [] @mutex = Mutex.new diff --git a/lib/is_it_working/version.rb b/lib/is_it_working/version.rb index a5b3603..2fb309f 100644 --- a/lib/is_it_working/version.rb +++ b/lib/is_it_working/version.rb @@ -1,3 +1,3 @@ module IsItWorking - VERSION = '1.2.0'.freeze + VERSION = '1.2.1'.freeze end