pry-send_tweet.rb 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pry/send_tweet/commands/read_tweets.rb +4 -4
- data/lib/pry/send_tweet/commands/send_tweet.rb +5 -5
- data/lib/pry/send_tweet/commands/twitter_action.rb +5 -5
- data/lib/pry/send_tweet/commands/twitter_search.rb +3 -2
- data/lib/pry/send_tweet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537e0e6e65fc0bed50a05e83610b69f28f1cf85880aff4a9dbbab09bba3387f0
|
4
|
+
data.tar.gz: 2f60bc834dc6791358b98c293e24c55c0b97a81518cfaa9ad10b6e12d3f62627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f2f3f901c2abee29dcbcb6afa4ad4ed576a8ba555b54b63eef3490b6985555106c52b379e1728e3fde52379b25987c153ad6f0f20b91225e1dacaf2596d556
|
7
|
+
data.tar.gz: b284f42bdbd27f5717164e868f565c7a3a8d2720a5770096d0c8475c76f7cce9fc16e6a7434d37e55123b2bb7a1361da32511df400410e2a7e7e681e1ccd610a
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
class Pry::SendTweet::ReadTweets < Pry::SendTweet::BaseCommand
|
2
2
|
require_relative 'read_tweets/translate_actions'
|
3
3
|
include TranslateActions
|
4
|
-
|
4
|
+
|
5
5
|
match 'read-tweets'
|
6
|
-
description '
|
6
|
+
description 'Read tweets.'
|
7
7
|
banner <<-BANNER
|
8
8
|
read-tweets [OPTIONS]
|
9
9
|
|
@@ -19,9 +19,9 @@ class Pry::SendTweet::ReadTweets < Pry::SendTweet::BaseCommand
|
|
19
19
|
o.on 'l=', 'likes=',
|
20
20
|
'Read tweets you or another user have liked.',
|
21
21
|
argument: :optional
|
22
|
-
o.on 'r=', 'replies=', 'A username whose replies you want to read'
|
22
|
+
o.on 'r=', 'replies=', 'A username whose replies you want to read.'
|
23
23
|
o.on 'm', 'mentions', 'Read tweets that @mention you.'
|
24
|
-
o.on 'x=', 'translate=', 'Translate a tweet'
|
24
|
+
o.on 'x=', 'translate=', 'Translate a tweet.'
|
25
25
|
o.on 'w', 'with-retweets', 'Include retweets.'
|
26
26
|
end
|
27
27
|
|
@@ -2,7 +2,7 @@ class Pry::SendTweet::SendTweet < Pry::SendTweet::BaseCommand
|
|
2
2
|
MAX_TWEET_SIZE = 280
|
3
3
|
|
4
4
|
match 'send-tweet'
|
5
|
-
description 'Send a tweet'
|
5
|
+
description 'Send a tweet.'
|
6
6
|
command_options argument_required: false
|
7
7
|
banner <<-BANNER
|
8
8
|
send-tweet [options]
|
@@ -12,19 +12,19 @@ class Pry::SendTweet::SendTweet < Pry::SendTweet::BaseCommand
|
|
12
12
|
|
13
13
|
def options(o)
|
14
14
|
o.on 'f=', 'file=',
|
15
|
-
'One or more paths to
|
15
|
+
'One or more paths to file(s) to attach to a tweet.',
|
16
16
|
as: Array
|
17
17
|
o.on 'r=', 'reply-to=',
|
18
18
|
'An absolute url to a tweet you want to reply to.'
|
19
19
|
o.on 's=', 'self-destruct=',
|
20
20
|
'The number of seconds (represented as a number or a timestamp in the ' \
|
21
21
|
'format of HH:MM:SS) to wait before automatically deleting the tweet ' \
|
22
|
-
'asynchronously'
|
22
|
+
'asynchronously.'
|
23
23
|
o.on 'd=', 'delay=',
|
24
24
|
'The number of seconds (represented as a number or a timestamp in the ' \
|
25
|
-
'format of HH:MM:SS) to wait before creating the tweet asynchronously'
|
25
|
+
'format of HH:MM:SS) to wait before creating the tweet asynchronously.'
|
26
26
|
o.on 'n', 'no-newline',
|
27
|
-
"Remove newlines (\\n) from a tweet before sending it"
|
27
|
+
"Remove newlines (\\n) from a tweet before sending it."
|
28
28
|
end
|
29
29
|
|
30
30
|
def process(args)
|
@@ -14,11 +14,11 @@ class Pry::SendTweet::TwitterAction < Pry::SendTweet::BaseCommand
|
|
14
14
|
include DeleteTweetActions
|
15
15
|
|
16
16
|
match 'twitter-action'
|
17
|
-
description 'Like, unlike, follow, unfollow and more'
|
17
|
+
description 'Like, unlike, follow, unfollow and more.'
|
18
18
|
banner <<-B
|
19
19
|
twitter-action OPTIONS
|
20
20
|
|
21
|
-
|
21
|
+
#{description}
|
22
22
|
B
|
23
23
|
|
24
24
|
def options(o)
|
@@ -32,9 +32,9 @@ class Pry::SendTweet::TwitterAction < Pry::SendTweet::BaseCommand
|
|
32
32
|
#
|
33
33
|
o.on 'follow=', 'Follow one or more users', as: Array
|
34
34
|
o.on 'unfollow=', 'Unfollow one or more users', as: Array
|
35
|
-
o.on 'show-followers=', 'Show the newest
|
35
|
+
o.on 'show-followers=', 'Show the newest users to have followed you or ' \
|
36
36
|
'another user', argument: :optional
|
37
|
-
o.on 'show-following', 'Show the newest
|
37
|
+
o.on 'show-following', 'Show the newest users you currently follow'
|
38
38
|
#
|
39
39
|
# Delete tweets and reweets
|
40
40
|
#
|
@@ -66,7 +66,7 @@ class Pry::SendTweet::TwitterAction < Pry::SendTweet::BaseCommand
|
|
66
66
|
#
|
67
67
|
# Muting
|
68
68
|
#
|
69
|
-
o.on 'mute-user=', 'One or more
|
69
|
+
o.on 'mute-user=', 'One or more usernames to mute', as: Array
|
70
70
|
o.on 'unmute-user=', 'One or more usernames to unmute', as: Array
|
71
71
|
end
|
72
72
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Pry::SendTweet::TwitterSearch < Pry::SendTweet::BaseCommand
|
2
2
|
match 'twitter-search'
|
3
|
-
description 'Search Twitter
|
3
|
+
description 'Search Twitter.'
|
4
4
|
command_options argument_required: true, shellwords: false
|
5
5
|
banner <<-BANNER
|
6
6
|
twitter-search [options] query
|
@@ -9,7 +9,8 @@ class Pry::SendTweet::TwitterSearch < Pry::SendTweet::BaseCommand
|
|
9
9
|
BANNER
|
10
10
|
|
11
11
|
def options(o)
|
12
|
-
o.on 'c=', 'count=', "The number of tweets to show. Default is
|
12
|
+
o.on 'c=', 'count=', "The number of tweets to show. Default is " \
|
13
|
+
"#{Pry::SendTweet::DEFAULT_READ_SIZE}."
|
13
14
|
end
|
14
15
|
|
15
16
|
def process(query)
|