cinch-links-tumblr 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -25,8 +25,8 @@ You will need to add the Plugin and config to your list first;
|
|
25
25
|
@bot = Cinch::Bot.new do
|
26
26
|
configure do |c|
|
27
27
|
c.plugins.plugins = [Cinch::Plugins::LinksTumblr]
|
28
|
-
c.plugins.options[Cinch::Plugins::LinksTumblr] = {
|
29
|
-
|
28
|
+
c.plugins.options[Cinch::Plugins::LinksTumblr] = { :hostname => 'whatever.tumblr.com',
|
29
|
+
:password => 'password, if applicable' }
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
@@ -44,16 +44,21 @@ Once you have your Tumblr credentials, you need to add them to the configuration
|
|
44
44
|
@bot = Cinch::Bot.new do
|
45
45
|
configure do |c|
|
46
46
|
c.plugins.plugins = [Cinch::Plugins::LinksTumblr]
|
47
|
-
c.plugins.options[Cinch::Plugins::LinksTumblr] = {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
c.plugins.options[Cinch::Plugins::LinksTumblr] = { :hostname => 'whatever.tumblr.com',
|
48
|
+
:password => 'password, if applicable',
|
49
|
+
:consumer_key => CONSUMER_KEY,
|
50
|
+
:consumer_secret => CONSUMER_SECRET,
|
51
|
+
:token => TOKEN,
|
52
|
+
:token_secret => TOKEN_SECRET }
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
That should be all you need to get the Plugin working!
|
56
|
+
That should be all you need to get the Plugin working! Users can get the Tumblr info
|
57
|
+
(hostname / password) at any time by using `.tumblr` in the channel.
|
58
|
+
|
59
|
+
By default links tumbled will be logged to `yaml/tumblr.yml`, you can change this by specifying
|
60
|
+
a different loation with `c.plugins.options[Cinch::Plugins::LinksTumblr][:filename] = NEW_PATH`.
|
61
|
+
|
57
62
|
|
58
63
|
## Contributing
|
59
64
|
|
@@ -17,7 +17,7 @@ module Cinch::Plugins
|
|
17
17
|
|
18
18
|
def initialize(*args)
|
19
19
|
super
|
20
|
-
@storage = CinchStorage.new('yaml/tumblr.
|
20
|
+
@storage = CinchStorage.new(config[:filename] || 'yaml/tumblr.yml')
|
21
21
|
@storage.data[:history] ||= Hash.new
|
22
22
|
@hostname = config['hostname'] || nil
|
23
23
|
@password = config['password'] || nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-links-tumblr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cinch-storage
|