pry-send_tweet.rb 1.10.6 → 1.11.0
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 +6 -0
- data/lib/pry/send_tweet/commands/easter_eggs.rb +17 -1
- data/lib/pry/send_tweet/version.rb +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: ad214a885bb207c0852d333eb75c5af73f5987576dd8145d70c91572214ffadb
|
|
4
|
+
data.tar.gz: 92db1569863d0fc92628781b2b3a9efc37da117f5a2d261da3875345f66b5992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e26ff0bdcdf9f58fdf09e3c65caf5bbd09b70dfa9e85484a3365aab48db7245f32c54cb1f2fdd541c8f91cf5dd5d8157158e058f28c09eec3557a2703891d23
|
|
7
|
+
data.tar.gz: 1a61caefdc18d596b12b5ee024eb28e7c32e5e6c185dd47fbbf1fa202edba725c041244709289b1a1ff7410475e9372a7231fce1d3c9f281c1b97c574b17055e
|
data/CHANGELOG.md
CHANGED
|
@@ -393,9 +393,25 @@ Pry.commands.instance_eval do
|
|
|
393
393
|
'CRuby' => 'https://www.youtube.com/watch?v=H4YRPdRXKFs',
|
|
394
394
|
'CRuby' => 'https://www.youtube.com/watch?v=H4YRPdRXKFs',
|
|
395
395
|
'To write in C, is to think in C, the Unix way. Go away Java.' => 'https://www.youtube.com/watch?v=DiSgkXDhSg8',
|
|
396
|
-
'To write in C, is to think in C, the Unix way. Go away Java.' => 'https://www.youtube.com/watch?v=DiSgkXDhSg8'
|
|
396
|
+
'To write in C, is to think in C, the Unix way. Go away Java.' => 'https://www.youtube.com/watch?v=DiSgkXDhSg8',
|
|
397
|
+
'Reagan - Peace Through Strength' => 'https://www.youtube.com/watch?v=DWYrcnehito',
|
|
398
|
+
'No Doubt - Don\'t Speak' => 'https://www.youtube.com/watch?v=TR3Vdo5etCQ',
|
|
399
|
+
'Jesse Pinkman\'s Speech - Why Not Self-Acceptance?' => 'https://www.youtube.com/watch?v=njuIKGNcTVE'
|
|
397
400
|
}
|
|
398
401
|
command '🎧', '' do
|
|
402
|
+
oparser = Pry::Slop.new {|oparser|
|
|
403
|
+
oparser.banner 'Wow, Slop sucks as much as TheAlchemist from irc.hack3r.com'
|
|
404
|
+
oparser.on 'g=', 'grep=', 'Grep through the easter eggs using a pattern'
|
|
405
|
+
}.parse!(arg_string.split(' '))
|
|
406
|
+
if oparser.grep?
|
|
407
|
+
disco_biscuit = DISCO_BISCUITS.find {|biscuit|
|
|
408
|
+
pat = oparser.fetch_option(:g)
|
|
409
|
+
puts pat
|
|
410
|
+
biscuit =~ /#{pat}/i
|
|
411
|
+
}
|
|
412
|
+
_pry_.output.puts disco_biscuit.join("\n")
|
|
413
|
+
next
|
|
414
|
+
end
|
|
399
415
|
key = DISCO_BISCUITS.keys.uniq.sample
|
|
400
416
|
_pry_.output.puts [key, DISCO_BISCUITS[key]].join("\n")
|
|
401
417
|
end
|