twsh 0.4.0 → 0.4.1

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: 24834b86fff05996f38adaf1cb37a2bce681cf46
4
- data.tar.gz: a101230727eb845e810bfad185c36f83a3043145
3
+ metadata.gz: 2016eeb546e1f9225a187e1b8d62dc24dbdb4a51
4
+ data.tar.gz: 292c4cfba3b60bd88620e2485f0a194c38b66c16
5
5
  SHA512:
6
- metadata.gz: 5429e70ef437988d945a689b5b37cf74f2a082303b7c803827540620de1efe0fba1af61bc1cafcb89b4baa18db5b477b4e57a5362d11b4fb31a634c78d5f319a
7
- data.tar.gz: d95cacd919ab56ab318f58eb2e6808fd379ce63ab5c1fc1eba4c4630d32f2430410af0dbb43d97fc6cefb9682f136b43ccf9e860c32ed978ddb08536b14b9903
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
@@ -1,5 +1,5 @@
1
1
  module Myun2
2
2
  class TwitterShell
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - myun2