pry-send_tweet.rb 1.10.0 → 1.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78bff5b21f922b57c5cd438f33f38ee172c243c8ce29ef688118f8e12baacfbc
4
- data.tar.gz: be4c652844446bae203a85e6f7ffac0872d80da78b0315895398998c10a47c19
3
+ metadata.gz: 06436fc4b347d4f44cbcf90ad9156bc939e38fb0a4fd5779733f5827e4096d08
4
+ data.tar.gz: 48c7b69845b7e7c63c66b6f5cbd3d082d6b317da256a7711d0ef1ee78d2ab6d5
5
5
  SHA512:
6
- metadata.gz: 50798286f87bd953c680d1dd1103b6f8f34ba591362f7626fdec42506d69d54964b7fcaee09ed45239bd21f78137d329baea57459c32253bdcd6f2d5b445a900
7
- data.tar.gz: d99ce37256ea606b02930baf9e8b71ca9a9cfdeaf46af50400b971115d79e1f5c07a97ec26b5854c048775ea577974d4b8f4c7f9dd2e621b9ae92eb73ad11735
6
+ metadata.gz: df945a2f68af1c1487cd171010b23c1ea1410985514d7c9b162682510f0eb1e3c8b2ab4ec44cfc784a9234585babd1d4a483bd12d3d9432d6072b3def09b22c7
7
+ data.tar.gz: c4520271d390cd3fbc33be6ac8b1726125c55468788650173717fff5cf493d944268b71915873c0d6910672997e63051af68f79e2be6c90c98a700621d78a829
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.10.1 (PresidentReagan)
4
+
5
+ * Add disco biscuit(s).
6
+
7
+ * Enable warnings on FreeBSD.
8
+
9
+ * Add `send-tweet -v`, `send-tweet --version`.
10
+
3
11
  ## v1.10.0 (PresidentReagan)
4
12
 
5
13
  * Add disco biscuits
@@ -1,3 +1,5 @@
1
+ Fry = Pry
2
+
1
3
  class Pry::Slop
2
4
  DEFAULT_OPTIONS.merge!(strict: true)
3
5
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  class Pry
2
2
  module SendTweet
3
- VERSION = '1.10.0'
3
+ VERSION = '1.10.1'
4
4
  CODENAME = 'PresidentReagan'
5
5
  end
6
6
  end
@@ -5,7 +5,7 @@ windows:
5
5
  - twitter:
6
6
  layout: even-horizontal
7
7
  panes:
8
- - source ~/.zshrc && cd /app && RUBYOPT="-W0" pry -r pry-send_tweet -e read-tweets
9
- - source ~/.zshrc && cd /app && RUBYOPT="-W0" pry -r pry-send_tweet
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
  -
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.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pry developers