lib/cinch/plugins/links-tumblr.rb in cinch-links-tumblr-1.0.1 vs lib/cinch/plugins/links-tumblr.rb in cinch-links-tumblr-1.0.2
- old
+ new
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
require 'open-uri'
require 'tumblr'
require 'yaml'
require 'cinch'
-require 'cinch-storage'
+require 'cinch/storage'
require 'cinch/toolbox'
module Cinch::Plugins
# Cinch Plugin to tumbl links from a given channel to a configured tumblr.
class LinksTumblr
@@ -17,10 +17,10 @@
self.help = 'Use .tumblr for the url/password for the channel\'s tumblr.'
def initialize(*args)
super
- @storage = CinchStorage.new(config[:filename] || 'yaml/tumblr.yml')
+ @storage = Cinch::Storage.new(config[:filename] || 'yaml/tumblr.yml')
@storage.data ||= {}
@hostname = config[:hostname]
@password = config[:password]
@creds = { consumer_key: config[:consumer_key],
consumer_secret: config[:consumer_secret],