pry-send_tweet.rb 1.11.7 → 1.11.8

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
  SHA256:
3
- metadata.gz: 25c98d15275f465b166eaf2b0c5ccd8ff0ed4d5e98689c4cfe7e5d03c7a19f51
4
- data.tar.gz: 18e2457ac1261bb43106ed4c02ed0b283aab39eab247740f3aa97f067e974432
3
+ metadata.gz: 8811a2b90876eea40581156a8591a96731a6012cd11532cfd3d63c1844856343
4
+ data.tar.gz: b2deb6d6dd05b1efb987143ee4fc7f47dd4394cca5846f6f337511ce852221e9
5
5
  SHA512:
6
- metadata.gz: acb7818859aae0475e80c7fe83e35835fe8489c89d2e2bc0dcb634e84ddb8eee53504f53cc53fd61fb07ffc9ff9ccdcc4ca477bd3c388204dca109ff2a183862
7
- data.tar.gz: ea1ba8609a090d7370e5030cbc2b978e68d088190d2b163b6dcd0a4a9840d2c3b0a13ab61597f08707c76db0f7b31880797be2d6569d7979055dc10f3215f39f
6
+ metadata.gz: c621e78897b1c5e7bbf91ecbf8ddcf18af56866fcfe195ed2d926bd112bec1ccd3e27e7ac96dbf86c60b410ee93f0d33f9c52642111851fcd5165794be11f88e
7
+ data.tar.gz: fea65e0bd13a2f02b167dd0e0a78a833aa25996e6936aa85fc8025c9e1561360f136d8e84c751b8b9e821a84a9f8b0d1e273c73489bb6f14cc3ca60c8341fed1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.11.8 (ChairmanKim)
4
+
5
+ * Add art
6
+
7
+ * Render multiple matches when using `disco-biscuits -g`, `disco-biscuits --grep`.
8
+
3
9
  ## v1.11.7 (ChairmanKim)
4
10
 
5
11
  * Add disco biscuit(s).
data/README.md CHANGED
@@ -459,10 +459,14 @@ __#4__ Trying to get in touch with @realdonaldtrump on FreeBSD 12.
459
459
 
460
460
  ![FreeBSD-4](/art/51-e94c3387e1.jpg)
461
461
 
462
- __#5__ Translating a tweet - with Vagrant,tmux on FreeBSD 12.
462
+ __#5__ Translating a tweet - with Vagrant, Tmux on FreeBSD 12.
463
463
 
464
464
  ![FreeBSD-5](/art/51-ad821fa377.jpg)
465
465
 
466
+ __#6__ Matching a pattern - with Vagrant, Tmux on FreeBSD 12.
467
+
468
+ ![FreeBSD-6](/art/51-5e4dc5fd92.jpg)
469
+
466
470
  ## <a id='license'>License</a>
467
471
 
468
472
  This project uses the MIT license, see [LICENSE.txt](./LICENSE.txt) for details.
Binary file
@@ -416,8 +416,10 @@ Pry.commands.instance_eval do
416
416
  args = arg_string.split(' ')
417
417
  if %w(-g --grep).include?(args[0])
418
418
  pat = args[1]
419
- disco_biscuit = DISCO_BISCUITS.find {|(biscuit, _)| biscuit =~ /#{pat}/i }
420
- _pry_.pager.page disco_biscuit ? disco_biscuit.join("\n") : "No match"
419
+ disco_biscuits = DISCO_BISCUITS.select {|(biscuit, _)| biscuit =~ /#{pat}/i }
420
+ _pry_.pager.page disco_biscuits ?
421
+ bright_green("Results\n\n") + disco_biscuits.map{|a| a.join("\n")}.join("\n\n") :
422
+ bright_red("No match")
421
423
  next
422
424
  end
423
425
  key = DISCO_BISCUITS.keys.uniq.sample
@@ -1,6 +1,6 @@
1
1
  class Pry
2
2
  module SendTweet
3
- VERSION = '1.11.7'
3
+ VERSION = '1.11.8'
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.7
4
+ version: 1.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pry developers
@@ -67,6 +67,7 @@ files:
67
67
  - README.md
68
68
  - Vagrantfile
69
69
  - art/44-e44743a5bb.jpg
70
+ - art/51-5e4dc5fd92.jpg
70
71
  - art/51-ad821fa377.jpg
71
72
  - art/51-da43a4ef4f.jpg
72
73
  - art/51-e94c3387e1.jpg