lib/trackler/track.rb in trackler-2.1.0.44 vs lib/trackler/track.rb in trackler-2.1.0.45

- old
+ new

@@ -86,14 +86,11 @@ def ignore_pattern config.fetch('ignore_pattern', 'example') end - def docs(positional_image_path_which_is_deprecated = nil, image_path: nil) - if positional_image_path_which_is_deprecated - warn "DEPRECATION WARNING:\ntrack.docs: Positional argument is deprecated, please use keyword argument 'image_path:' instead\neg: track.docs(image_path: #{positional_image_path_which_is_deprecated.inspect})\n" - end - OpenStruct.new(docs_by_topic(image_path || positional_image_path_which_is_deprecated || DEFAULT_IMAGE_PATH)) + def docs(image_path: DEFAULT_IMAGE_PATH) + OpenStruct.new(docs_by_topic(image_path)) end def img(file_path) Image.new(File.join(dir, file_path)) end