diff options
| author | Charney Kaye | 2017-02-06 10:13:54 -0500 | 
|---|---|---|
| committer | Charney Kaye | 2017-02-09 10:48:16 -0500 | 
| commit | 45771b01dae493024b1a9de93eab55d26281bfa6 (patch) | |
| tree | 3c4b6cb75be10cbdc747c896b12c7c3ef6eec549 /lib | |
| parent | 7ffa174c08c6e51576af327bab6a5f58d394a4a9 (diff) | |
| download | hcl-45771b01dae493024b1a9de93eab55d26281bfa6.tar.bz2 | |
fix deprecated impls, closes #72
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/app.rb | 4 | ||||
| -rw-r--r-- | lib/hcl/timesheet_resource.rb | 2 | 
2 files changed, 3 insertions, 3 deletions
| 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 | 
