tumblr_draftking 0.8.2.1 → 0.8.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -3
- data/lib/draftking/client.rb +1 -0
- data/lib/draftking/patches/tumblr_client.rb +14 -0
- data/lib/draftking/posts.rb +5 -0
- data/lib/draftking/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f398e7746629d4541b94b0f7d70a1593de4bc27a
|
4
|
+
data.tar.gz: 1231bddcbb48a7c55a24851920ebe57764cb0f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1599d652d68bdf51b502621fcded6fa72b3b41592903df6be13b26e2df4d2b684fa3e5e7632176b6d46b4fe46924f271e528ff0bcae4761bebac1015fadfca3
|
7
|
+
data.tar.gz: 44d60f6f5fc04fbff89d906193cb47b8478bb82f5a310e8db815878d7b1151dbb2b74dde3978066c1acbf6eb73577190f58fa15aada46ccd482e7f42b5e8052f
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
# Changelog :: tumblr_draftking
|
2
|
+
## Version 0.8.2.2
|
3
|
+
+ Added patch for tumblr_client 0.8.5 to enable passing of all accepted parameters to Client#likes, Client#blog_likes
|
4
|
+
|
2
5
|
## Version 0.8.2.1
|
3
6
|
+ Expanded progress messages
|
4
7
|
+ Bugfix: corrected source of Post.comment (data.reblog.comment instead of data.caption)
|
data/README.md
CHANGED
@@ -12,9 +12,8 @@ DraftKing for Tumblr takes the hassle out of managing your draft queue!
|
|
12
12
|
+ **Randomize post order to add variety.**
|
13
13
|
+ **Manage multiple accounts.**
|
14
14
|
|
15
|
-
Version 0.8.2.
|
16
|
-
+
|
17
|
-
+ Bugfix: corrected source of Post.comment (data.reblog.comment instead of data.caption)
|
15
|
+
Version 0.8.2.2
|
16
|
+
+ Added patch for tumblr_client 0.8.5 to enable passing of all accepted parameters to Client#likes, Client#blog_likes
|
18
17
|
|
19
18
|
+ Please report any [issues] you encounter!
|
20
19
|
+ [Change Log](./CHANGELOG.md)
|
data/lib/draftking/client.rb
CHANGED
@@ -14,6 +14,7 @@ module DK
|
|
14
14
|
attr_accessor :shuffle, :keep_tree, :test_data, :mute
|
15
15
|
attr_accessor :simulate, :keep_tags, :before_id, :credit
|
16
16
|
attr_accessor :message, :source, :auto_tag, :state
|
17
|
+
attr_accessor :type
|
17
18
|
|
18
19
|
# Initialize instance of DraftKing for the specified blog
|
19
20
|
# @param options[:blog_name] [String] Target blog name
|
@@ -6,6 +6,15 @@ module Tumblr
|
|
6
6
|
validate_options([:limit, :before_id], options)
|
7
7
|
get(blog_path(blog_name, 'posts/draft'), options)
|
8
8
|
end
|
9
|
+
|
10
|
+
def blog_likes(blog_name, options = {})
|
11
|
+
validate_options([:limit, :before, :after, :offset], options)
|
12
|
+
url = blog_path(blog_name, 'likes')
|
13
|
+
|
14
|
+
params = { api_key: @consumer_key }
|
15
|
+
params.merge! options
|
16
|
+
get(url, params)
|
17
|
+
end
|
9
18
|
end
|
10
19
|
module User
|
11
20
|
def dashboard(options = {})
|
@@ -13,5 +22,10 @@ module Tumblr
|
|
13
22
|
validate_options(valid_opts, options)
|
14
23
|
get('v2/user/dashboard', options)
|
15
24
|
end
|
25
|
+
|
26
|
+
def likes(options = {})
|
27
|
+
validate_options([:limit, :offset, :before, :after], options)
|
28
|
+
get('v2/user/likes', options)
|
29
|
+
end
|
16
30
|
end
|
17
31
|
end
|
data/lib/draftking/posts.rb
CHANGED
@@ -148,6 +148,7 @@ module DK
|
|
148
148
|
# Dashboard integration
|
149
149
|
def call_source(options)
|
150
150
|
return @client.send('dashboard', options).first[1] if dashboard?
|
151
|
+
return @client.send('likes', options).first[1] if likes?
|
151
152
|
@client.send(@source, @blog_url, options).first[1]
|
152
153
|
end
|
153
154
|
|
@@ -184,5 +185,9 @@ module DK
|
|
184
185
|
def dashboard?
|
185
186
|
@source == :dashboard
|
186
187
|
end
|
188
|
+
|
189
|
+
def likes?
|
190
|
+
@source == :likes
|
191
|
+
end
|
187
192
|
end
|
188
193
|
end
|
data/lib/draftking/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tumblr_draftking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.2.
|
4
|
+
version: 0.8.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meissa Dia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tumblr_client
|
@@ -144,7 +144,7 @@ files:
|
|
144
144
|
- lib/tumblr_draftking.rb
|
145
145
|
homepage: https://github.com/meissadia/tumblr_draftking
|
146
146
|
licenses:
|
147
|
-
- Apache
|
147
|
+
- Apache-2.0
|
148
148
|
metadata: {}
|
149
149
|
post_install_message:
|
150
150
|
rdoc_options: []
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.6.10
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Take the hassle out of managing your Tumblr account!
|