pry-send_tweet.rb 1.11.8 → 1.11.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8811a2b90876eea40581156a8591a96731a6012cd11532cfd3d63c1844856343
4
- data.tar.gz: b2deb6d6dd05b1efb987143ee4fc7f47dd4394cca5846f6f337511ce852221e9
3
+ metadata.gz: 7e84a0954209a500ebaa6e08952a5e9e2cba687f4aa02820a3a35550cd61a04c
4
+ data.tar.gz: bf3975b95f28c520dd2ffd61a3011abe3b14342c2d3dbfb7fd5d31504ef552ac
5
5
  SHA512:
6
- metadata.gz: c621e78897b1c5e7bbf91ecbf8ddcf18af56866fcfe195ed2d926bd112bec1ccd3e27e7ac96dbf86c60b410ee93f0d33f9c52642111851fcd5165794be11f88e
7
- data.tar.gz: fea65e0bd13a2f02b167dd0e0a78a833aa25996e6936aa85fc8025c9e1561360f136d8e84c751b8b9e821a84a9f8b0d1e273c73489bb6f14cc3ca60c8341fed1
6
+ metadata.gz: 4b1632ab058fdaa6e88eeaadbffc02903aa8a64d157ae3f84a048d912299340f1d7b7fc8c54a00a7def6a624bfab39d0b63349d784d9a01729aa2f7de1b8006f
7
+ data.tar.gz: f21c7463736e02111e73c068432e3853f3cc969fde50903782d0777b27cd5457f967d4b6c1fa1944b54c3281bd7feb0cffbd959bffe8bd177e20d5189da96bce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.11.9 (ChairmanKim)
4
+
5
+ * Add art.
6
+
7
+ * Erase duplicates when using `disco-biscuits -g`, `disco-biscuits --grep`.
8
+
3
9
  ## v1.11.8 (ChairmanKim)
4
10
 
5
11
  * Add art
data/README.md CHANGED
@@ -467,6 +467,10 @@ __#6__ Matching a pattern - with Vagrant, Tmux on FreeBSD 12.
467
467
 
468
468
  ![FreeBSD-6](/art/51-5e4dc5fd92.jpg)
469
469
 
470
+ __#7__ Still speedin' - with Vagrant, Tmux on FreeBSD 12.
471
+
472
+ ![FreeBSD-7](/art/51-b90d5dd6a6.jpg)
473
+
470
474
  ## <a id='license'>License</a>
471
475
 
472
476
  This project uses the MIT license, see [LICENSE.txt](./LICENSE.txt) for details.
Binary file
@@ -410,20 +410,21 @@ Pry.commands.instance_eval do
410
410
  'Rich The Kid - New Freezer ft. Kendrick Lamar (Bass Boosted)' => 'https://www.youtube.com/watch?v=VDJKBueqW3c',
411
411
  'Highlights: Liverpool Legends 5-5 FC Bayern Legends | Alonso, Gerrard, Kuyt and more' => 'https://www.youtube.com/watch?v=njiW0R1W8GI',
412
412
  'Ronald Regan Patriotic Speech' => 'https://www.youtube.com/watch?v=4hGQ97tCTOs',
413
- 'Kid CuDi Mr Rager Lyrics' => 'https://www.youtube.com/watch?v=PMPC2jY27rw'
413
+ 'Kid CuDi Mr Rager Lyrics' => 'https://www.youtube.com/watch?v=PMPC2jY27rw',
414
+ 'Mr. Rager-Kid Cudi' => 'https://www.youtube.com/watch?v=rCLBGY0huVE'
414
415
  }
415
416
  command '🎧', '' do
416
417
  args = arg_string.split(' ')
418
+ no_dups = DISCO_BISCUITS.uniq
417
419
  if %w(-g --grep).include?(args[0])
418
420
  pat = args[1]
419
- disco_biscuits = DISCO_BISCUITS.select {|(biscuit, _)| biscuit =~ /#{pat}/i }
421
+ disco_biscuits = no_dups.select {|(biscuit, _)| biscuit =~ /#{pat}/i }
420
422
  _pry_.pager.page disco_biscuits ?
421
423
  bright_green("Results\n\n") + disco_biscuits.map{|a| a.join("\n")}.join("\n\n") :
422
424
  bright_red("No match")
423
- next
425
+ else
426
+ _pry_.output.puts no_dups.sample.join("\n")
424
427
  end
425
- key = DISCO_BISCUITS.keys.uniq.sample
426
- _pry_.output.puts [key, DISCO_BISCUITS[key]].join("\n")
427
428
  end
428
429
  alias_command 'disco-biscuits', '🎧'
429
430
 
@@ -1,6 +1,6 @@
1
1
  class Pry
2
2
  module SendTweet
3
- VERSION = '1.11.8'
3
+ VERSION = '1.11.9'
4
4
  CODENAME = 'ChairmanKim'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-send_tweet.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.8
4
+ version: 1.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pry developers
@@ -69,6 +69,7 @@ files:
69
69
  - art/44-e44743a5bb.jpg
70
70
  - art/51-5e4dc5fd92.jpg
71
71
  - art/51-ad821fa377.jpg
72
+ - art/51-b90d5dd6a6.jpg
72
73
  - art/51-da43a4ef4f.jpg
73
74
  - art/51-e94c3387e1.jpg
74
75
  - art/52-eec4df2edf.jpg