alltweets 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 7209a890231103fe57957d3fcbe06d227b486866
4
- data.tar.gz: 754e9c955e9d4294b2f424fe06b72555be0464da
3
+ metadata.gz: ec536fe270b3bceeb188693663e177427f319ae6
4
+ data.tar.gz: fcd4b24a0cd54e0eab46c1f0d4d44d30ed5a760e
5
5
  SHA512:
6
- metadata.gz: 01cc04153d323d7302b350beb962105563b433e9df0fa1f8a70dd6057b6c61f396f940039b9943bf243316d69c0d122b1a7c084239d84a71c98d62ebe155b238
7
- data.tar.gz: 68b9ceca0851731e0cb81f3823a6ff110f3d0236a64691e4003249b65ac39399396a30c4cf355ef3a87e84e040ea45d6076f2de73bb1b5263abb763131a334e6
6
+ metadata.gz: cbb26f12f8e65a4be411a9ad371f60c7ed047522307056f16dc9be36fa252b44c5bcb7d0bad84aca12cb7c5da5e7d449fdc321ce343f11b569e97691cb8b00b8
7
+ data.tar.gz: 7d7e24c593612f698c94aba9406d706d5f1fc115c534fb03334a159eaec45fe85331de471b1b637aac507296802fce7e5e1c5d1b398c85f3925ab9ced0380a2d
data/README.md CHANGED
@@ -18,6 +18,7 @@ $ gem install alltweets
18
18
 
19
19
  * `-r`, `--retweets`: Include retweets
20
20
  * `-y`, `--yaml`: Use YAML instead of JSON
21
+ * `-v`, `--version`: Print version and exit
21
22
  * `-h`, `--help`: Show help message
22
23
 
23
24
  ### Example
@@ -17,7 +17,7 @@ module AllTweets
17
17
  end
18
18
 
19
19
  def run
20
- warn "Downloading #{@screen_name}'s all tweets"
20
+ warn "Downloading @#{@screen_name}'s all tweets"
21
21
  result = @collector.get_all_tweets(@screen_name, include_retweets: @opts[:retweets]).map(&:to_h)
22
22
 
23
23
  if @opts[:yaml]
@@ -60,7 +60,11 @@ module AllTweets
60
60
  request_token = consumer.get_request_token
61
61
 
62
62
  warn "1) Open: #{request_token.authorize_url}".colorize(:cyan)
63
- Launchy.open(request_token.authorize_url)
63
+ begin
64
+ Launchy.open(request_token.authorize_url)
65
+ rescue Launchy::CommandNotFoundError
66
+ warn "Warning: Clouldn't open web browser".colorize(:yellow)
67
+ end
64
68
 
65
69
  $stderr.print "2) Enter the PIN: ".colorize(:cyan)
66
70
  pin = $stdin.gets.strip
@@ -1,3 +1,3 @@
1
1
  module AllTweets
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alltweets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Otsuka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize