twsh 0.4.0 → 0.4.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 +4 -4
- data/lib/myun2/twitter_shell/ls.rb +1 -1
- data/lib/myun2/twitter_shell/shell.rb +8 -1
- data/lib/myun2/twitter_shell/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2016eeb546e1f9225a187e1b8d62dc24dbdb4a51
|
4
|
+
data.tar.gz: 292c4cfba3b60bd88620e2485f0a194c38b66c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c9d0408f5427973b71b5a3db51c658322a41eb74abb58c29ae44f35e9d2ce2d51786543fe1802ee09c7272d2bcbfe9f4e158216aa85262779d15418ae58558b
|
7
|
+
data.tar.gz: b339a713b7cf0c6a422563e58f66511f201cee77dfa4a33e24347d276994c1bb377694310c9f131b445b058165f3b781709f23535bfbb7ba1a6ad69587163313
|
@@ -21,7 +21,7 @@ module Myun2
|
|
21
21
|
screen_name = u['screen_name']
|
22
22
|
text = t['text']
|
23
23
|
|
24
|
-
if params && params[0].include?('l')
|
24
|
+
if params && params.length > 0 && params[0].include?('l')
|
25
25
|
datetime = t['created_at']
|
26
26
|
"#{datetime} <#{screen_name}:#{user_name}>: #{text}"
|
27
27
|
else
|
@@ -14,11 +14,13 @@ module Myun2
|
|
14
14
|
if @profile = Profile.load
|
15
15
|
@client = Client.new(@profile.data)
|
16
16
|
if params && params.length > 0
|
17
|
-
self.send(*params)
|
17
|
+
return self.send(*params)
|
18
18
|
end
|
19
19
|
else
|
20
20
|
puts "Please first login"
|
21
21
|
end
|
22
|
+
|
23
|
+
version
|
22
24
|
super
|
23
25
|
end
|
24
26
|
|
@@ -34,9 +36,14 @@ module Myun2
|
|
34
36
|
|
35
37
|
def tail(*params)
|
36
38
|
#ls(*params)
|
39
|
+
puts "Waiting for timelime..."
|
37
40
|
Tail.new(@profile.data, *params)
|
38
41
|
end
|
39
42
|
|
43
|
+
def version
|
44
|
+
puts "twsh #{VERSION}"
|
45
|
+
end
|
46
|
+
|
40
47
|
def prompt
|
41
48
|
"twsh:$ "
|
42
49
|
end
|