From 45771b01dae493024b1a9de93eab55d26281bfa6 Mon Sep 17 00:00:00 2001 From: Charney Kaye Date: Mon, 6 Feb 2017 10:13:54 -0500 Subject: fix deprecated impls, closes #72 --- lib/hcl/app.rb | 4 ++-- lib/hcl/timesheet_resource.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb index 14f626d..4f2530b 100644 --- a/lib/hcl/app.rb +++ b/lib/hcl/app.rb @@ -48,9 +48,9 @@ module HCl if command? @command result = send @command, *@args if not result.nil? - if result.respond_to? :join + if result.respond_to? :join, include_all=false puts result.join(', ') - elsif result.respond_to? :to_s + elsif result.respond_to? :to_s, include_all=false puts result end end diff --git a/lib/hcl/timesheet_resource.rb b/lib/hcl/timesheet_resource.rb index e230f1f..271ac2c 100644 --- a/lib/hcl/timesheet_resource.rb +++ b/lib/hcl/timesheet_resource.rb @@ -12,7 +12,7 @@ module HCl @data.key?(method.to_sym) ? @data[method] : super end - def respond_to? method + def respond_to? method, include_all=false (@data && @data.key?(method.to_sym)) || super end -- cgit v1.2.3