lib/rb-dayone.rb in rb-dayone-0.6.0 vs lib/rb-dayone.rb in rb-dayone-0.7.1
- old
+ new
@@ -36,11 +36,11 @@
end
end
# The location of the DayOne journal file as determined by
# the DayOne plist file stored in +~/Library/Preferences+.
- # @return [String] the DayONe journal location
+ # @return [String] the DayOne journal location
def auto_journal_location
@auto_journal_location ||= File.expand_path(plist_reader.journal_location)
end
# All DayOne entries, as file names
@@ -62,10 +62,11 @@
end
end
end
-Dir[File.join(lib_root, "rb-dayone", "*.rb")].each{ |f| require f }
+Dir[File.join(lib_root, "rb-dayone/*.rb")].each{ |f| require f }
+Dir[File.join(lib_root, "rb-dayone/search_engines/*.rb")].each{ |f| require f }
# Default values
DayOne::dayone_folder = File.join(ENV['HOME'], '.rb-dayone')
DayOne::plist_reader = DayOne::PlistReader.new
\ No newline at end of file