favt 0.0.3 → 0.0.4

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: 549e07baa82e2556c6c5d4b71fe75079deca3878
4
- data.tar.gz: 6cf4cdbbb90778f743020f7befb4a01161f1521e
3
+ metadata.gz: aedc23e0bcdae4700ff82f11fb9649c7e34b84c1
4
+ data.tar.gz: 2462c92f33c9a4b6dbe1abd16548b2cfff106eaf
5
5
  SHA512:
6
- metadata.gz: ab5b66c40f197b272551609659ebb9556a29a2851ff1d4de0aeadaa5e37d05e8d9102bf1164131a41802bab6626409129ec097c95a522893b17a9c47bd92cf3f
7
- data.tar.gz: b8b8a0d389761a8c9376d07f622b4581459609d82990a69e01215d1fa86cb5b1aa1629d0fb1face7aae7de610ea850d845f6af5b1d69dd3cb83c2e38a5b851b7
6
+ metadata.gz: f8f4f6f550e146b9bf84f24c8459e45876e91e7480bac3ee0bc1828a2ceb33850c7dd1dcb95685fbd5330e5501e5cfdde2466d851ffae03b8449b8ec79cf58a9
7
+ data.tar.gz: 697466a1fe658d109f0df36352de4c9d4dadb5e0731e2b2bad492b82ef4f961dd38dba0406bfb982e05d312519ef0055f62e446166b13fafd4b47dac5f3cdbfc
data/bin/favt CHANGED
@@ -23,11 +23,34 @@ def option_parse
23
23
  return options
24
24
  end
25
25
 
26
+ def error_print(title)
27
+ print "Error!!".light_red
28
+ print " -- ".light_green
29
+ print title.uncolorize
30
+ end
31
+
32
+
26
33
  begin
27
34
  ft = Favt::TwitterClient.new(option_parse)
28
35
  ft.render()
29
- rescue Twitter::Error::TooManyRequests => e
30
- print "Error!!".light_red
31
- print " -- ".light_green
32
- print "Twitter API, Too Many Requests. Perhaps, Rate Limit Exceeded. \n".uncolorize
36
+ rescue Twitter::Error::TooManyRequests => e
37
+ error_print("Twitter API, Too Many Requests. Perhaps, Rate Limit Exceeded. \n")
38
+ rescue Errno::ENOENT
39
+ error_print("Config file is not found.\n")
40
+ print <<EOF
41
+
42
+ Config file examples (config.yaml)
43
+ -----------------------------------
44
+
45
+ client:
46
+ consumer_key: "uCFhVhtftsQbpSlox2KZnRCWp"
47
+ consumer_secret: "wzouRWR4aggXwcArfHeflkcvTDkezjFUhGLhU0D9ijj9fipMOP"
48
+ access_token: "7883842-IBrjYXVe6yPQ4JBLUm6WjRh8beZuMvmFtH1wckfkqT"
49
+ access_token_secret: "trdmKwy9CVYN4m6ZE99OmQP853B6ZlYXXWFccdZC1pOSg"
50
+
51
+ users:
52
+ - "esehara"
53
+
54
+ EOF
33
55
  end
56
+
@@ -6,12 +6,8 @@ lient:
6
6
 
7
7
  users:
8
8
  - "todesking"
9
- - "sudo_vi"
10
- - "sanjuusan"
11
- - "DHC_"
12
9
  - "toby_net"
13
10
  - "doom_k"
14
- - "pornanime"
15
11
  - "tadsan"
16
12
  - "ntddk"
17
13
  - "drillbits"
@@ -1,3 +1,3 @@
1
1
  module Favt
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: favt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - esehara shigeo