lib/storage.rb in sensible-cinema-0.25.3 vs lib/storage.rb in sensible-cinema-0.25.4

- old
+ new

@@ -13,18 +13,19 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Sensible Cinema. If not, see <http://www.gnu.org/licenses/>. =end -# use it like +# shamelessly stolen from the redcar project + class Storage class << self attr_writer :storage_dir end def self.storage_dir - @user_dir ||= File.join(File.expand_path('~'), ".storage") + @user_dir ||= File.join(File.expand_path('~'), ".sensible_cinema_storage") end # Open a storage file or create it if it doesn't exist. # # @param [String] a (short) name, should be suitable for use as a filename