lib/zenpush.rb in zenpush-0.2.0 vs lib/zenpush.rb in zenpush-0.3.0
- old
+ new
@@ -9,22 +9,22 @@
# Zendesk API
def z
@z ||= ZenPush::Zendesk.new
end
- def file_to_category_forum_entry(file)
+ def file_to_category_forum_topic(file)
absolute_path = File.realpath(file)
file_extension = File.extname(file)
parts = absolute_path.split('/')
if ZenPush.z.options[:filenames_use_dashes_instead_of_spaces]
parts.each { |el| el.gsub!(/-/, ' ') }
end
- entry_name = File.basename(parts[-1], file_extension)
+ topic_name = File.basename(parts[-1], file_extension)
forum_name = parts[-2]
category_name = parts[-3]
- return category_name, forum_name, entry_name
+ return category_name, forum_name, topic_name
end
end