tumblr_draftking 0.8.3.1 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a84fbff38a43cc1fd25c685987816d31740f5004
4
- data.tar.gz: 138e73cb0fe57bc992326af67a8a27c1bfe03605
3
+ metadata.gz: 5342bd98ea909db6e98c94d631ca8e3a37d95e86
4
+ data.tar.gz: 19b5f32880a4f6a1f2aa4949e3b5b77723081d11
5
5
  SHA512:
6
- metadata.gz: c774c61c855248ba16a2e7d82103d9f33ad0a5cc09b489d371186c1383ba32c555b77ea93dd7837935869b4e7fd8f04e2bd6042af0b2e89f022ba8f72dd52846
7
- data.tar.gz: b3926738e0d46b55264eb20f7f2639c194c7ae5590fad9c6debb0bb5cb1d2a6e6a5e898219a008ce8ee4948268519808160ff30971f2b4db115d80931bb10356
6
+ metadata.gz: f2719dbc3d7d3e5e4ee043bc5d38808cc2ba7c59219fe7624a5e5aac7035f33061ec93da3c1bca98622479a0d1fa5c9812b61eb25f883ba3ccf9221048391d4b
7
+ data.tar.gz: d2d6ccb11cc72c68453fa881ca0fcbfeeb6679cd0f15a255b003b4b25a357cebc6a6c9611c68b9cb91b0b5d31b7cb9f5c7d77f7ec33be7f9a5b9805ffbeb2b7c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Changelog :: tumblr_draftking
2
+ ## Version 0.8.4
3
+ + New: CLI now has (-greedy, -g) flags to select on all items in queue before performing action.
4
+
2
5
  ## Version 0.8.3.1
3
6
  + Fix: Update @blog_url in DK::Client#process_options to target posts for a blog_name modified after DK::Client creation.
4
7
 
data/README.md CHANGED
@@ -14,8 +14,8 @@ DraftKing for Tumblr takes the hassle out of managing your draft queue!
14
14
  + **Randomize post order to add variety.**
15
15
  + **Manage multiple accounts.**
16
16
 
17
- Version 0.8.3.1
18
- + Fix: Update @blog_url in DK::Client#process_options to target posts for a blog_name modified after DK::Client creation.
17
+ Version 0.8.4
18
+ + New: CLI now has (-greedy, -g) flags to select on all items in queue before performing action.
19
19
 
20
20
  + Please report any [issues] you encounter!
21
21
  + [Change Log](./CHANGELOG.md)
@@ -19,6 +19,7 @@ module DK
19
19
  d[:source] = 'Modify posts from your : d-drafts, q-queue'
20
20
  d[:state] = 'Set post state: d-draft, q-queued'
21
21
  d[:tags] = 'Auto-Generate tags based on user comment.'
22
+ d[:greedy] = 'Select entire queue before processing the action.'
22
23
  d
23
24
  end
24
25
 
@@ -19,6 +19,7 @@ module DK
19
19
  option :mute, type: :boolean, aliases: :m, desc: Options.op_strings[:mute]
20
20
  option :keep_tags, type: :boolean, aliases: :k, desc: Options.op_strings[:keep_tags]
21
21
  option :keep_comments, type: :boolean, aliases: :K, desc: Options.op_strings[:keep_comments]
22
+ option :greedy, type: :boolean, aliases: :g, desc: Options.op_strings[:greedy]
22
23
  option :credit, type: :boolean, desc: Options.op_strings[:credit], default: true
23
24
  option :tags, type: :boolean, desc: Options.op_strings[:tags], default: true
24
25
  option :config, type: :string, desc: Options.op_strings[:config]
@@ -34,7 +34,7 @@ module DK
34
34
  options[:message] = 'Moving Drafts -> Queue: '
35
35
  options[:shuffle] = true
36
36
  options[:state] = DK::QUEUE
37
- options[:limit] ||= @q_space
37
+ options[:limit] ||= options[:greedy] ? nil : @q_space
38
38
  post_operation(options) do |post, index|
39
39
  next false unless index_within_limit?(index, @q_space)
40
40
  next false unless post.has_key_text?(@key_text)
@@ -1,3 +1,3 @@
1
1
  module DK
2
- VERSION = '0.8.3.1'.freeze
2
+ VERSION = '0.8.4'.freeze
3
3
  end
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.3.1
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meissa Dia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tumblr_client