pry-send_tweet.rb 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pry/send_tweet/commands/base_command.rb +2 -0
- data/lib/pry/send_tweet/commands/easter_eggs.rb +4 -1
- data/lib/pry/send_tweet/commands/send_tweet.rb +13 -0
- data/lib/pry/send_tweet/version.rb +1 -1
- data/samples/tmuxinator-vagrant.yml +2 -2
- 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: 06436fc4b347d4f44cbcf90ad9156bc939e38fb0a4fd5779733f5827e4096d08
|
4
|
+
data.tar.gz: 48c7b69845b7e7c63c66b6f5cbd3d082d6b317da256a7711d0ef1ee78d2ab6d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df945a2f68af1c1487cd171010b23c1ea1410985514d7c9b162682510f0eb1e3c8b2ab4ec44cfc784a9234585babd1d4a483bd12d3d9432d6072b3def09b22c7
|
7
|
+
data.tar.gz: c4520271d390cd3fbc33be6ac8b1726125c55468788650173717fff5cf493d944268b71915873c0d6910672997e63051af68f79e2be6c90c98a700621d78a829
|
data/CHANGELOG.md
CHANGED
@@ -355,7 +355,10 @@ Pry.commands.instance_eval do
|
|
355
355
|
'King Of Spain thinks he can bully Vikings and he didn\'t expect this...' => 'https://www.youtube.com/watch?v=jj2gKyxcTew',
|
356
356
|
'CCR-Fortunate Son.' => 'https://www.youtube.com/watch?v=N7qkQewyubs',
|
357
357
|
'CCR-Fortunate Son.' => 'https://www.youtube.com/watch?v=N7qkQewyubs',
|
358
|
-
'Martin Cahill (A General) - The Beit Art Heist' => 'https://www.youtube.com/watch?v=r7zn7bjKnoI'
|
358
|
+
'Martin Cahill (A General) - The Beit Art Heist' => 'https://www.youtube.com/watch?v=r7zn7bjKnoI',
|
359
|
+
'Chief Keef - Colors (Official Screen Lyrics)' => 'https://www.youtube.com/watch?v=PvsC5ijT70A',
|
360
|
+
'Hazrat Fatima (as) Khutba-3 at masjid Kufa' => 'https://www.youtube.com/watch?v=s-2CP5ozHNQ',
|
361
|
+
'We Must Fight - President Reagan (TyDale\'s Version)' => 'https://www.youtube.com/watch?v=JDVT-8tUfiE'
|
359
362
|
}
|
360
363
|
command '🎧', '' do
|
361
364
|
key = DISCO_BISCUITS.keys.uniq.sample
|
@@ -25,10 +25,12 @@ class Pry::SendTweet::SendTweet < Pry::SendTweet::BaseCommand
|
|
25
25
|
'format of HH:MM:SS) to wait before creating the tweet asynchronously.'
|
26
26
|
o.on 'n', 'no-newline',
|
27
27
|
"Remove newlines (\\n) from a tweet before sending it."
|
28
|
+
o.on 'v', 'version', 'Print the version information of fry-send_tweet.rb'
|
28
29
|
end
|
29
30
|
|
30
31
|
def process(args)
|
31
32
|
super
|
33
|
+
return __print_version_information if opts.version?
|
32
34
|
tweet_creator = create_tweet_creator(compose_tweet_with_editor)
|
33
35
|
if opts.present?('delay')
|
34
36
|
time_obj, sleep_seconds = parse_duration_str(opts['delay'])
|
@@ -147,5 +149,16 @@ class Pry::SendTweet::SendTweet < Pry::SendTweet::BaseCommand
|
|
147
149
|
end
|
148
150
|
[time_obj, sleep_seconds]
|
149
151
|
end
|
152
|
+
|
153
|
+
def __print_version_information
|
154
|
+
side1 = [
|
155
|
+
bright_green('fry'),
|
156
|
+
bold('-send_tweet.rb '),
|
157
|
+
bright_red("v#{Fry::SendTweet::VERSION}")
|
158
|
+
].join
|
159
|
+
side2 = bright_yellow(Fry::SendTweet::CODENAME)
|
160
|
+
_pry_.pager.page [side1, side2].join(" | ")
|
161
|
+
end
|
162
|
+
|
150
163
|
Pry.commands.add_command self
|
151
164
|
end
|
@@ -5,7 +5,7 @@ windows:
|
|
5
5
|
- twitter:
|
6
6
|
layout: even-horizontal
|
7
7
|
panes:
|
8
|
-
- source ~/.zshrc && cd /app && RUBYOPT="-
|
9
|
-
- source ~/.zshrc && cd /app && RUBYOPT="-
|
8
|
+
- source ~/.zshrc && cd /app && RUBYOPT="-W1" pry -r pry-send_tweet -e read-tweets
|
9
|
+
- source ~/.zshrc && cd /app && RUBYOPT="-W1" pry -r pry-send_tweet
|
10
10
|
- sh:
|
11
11
|
-
|