termtter 1.10.3 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,15 +2,30 @@
2
2
 
3
3
  Termtter is a terminal based Twitter client.
4
4
 
5
- For more information, see http://termtter.org/ and http://lingr.com/room/termtter
5
+ For more information, see http://termtter.github.com/ and http://lingr.com/room/termtter
6
6
 
7
- == INSTALL:
7
+ == INSTALL (for Gentoo Linux):
8
8
 
9
- % sudo gem install termtter
9
+ $ sudo emerge termtter
10
+
11
+ == INSTALL (for Mac OS X with XCode):
12
+
13
+ $ gem install termtter
14
+
15
+ == INSTALL (for Mac OS X without XCode):
16
+
17
+ Download termtter binary package https://github.com/termtter/termtter/downloads
18
+
19
+ == INSTALL (for developer):
20
+
21
+ $ gem install termtter
22
+ $ gem uninstall termtter
23
+
24
+ just for dependency libraries.
10
25
 
11
26
  == Run:
12
27
 
13
- % termtter
28
+ $ termtter
14
29
 
15
30
  == Commands:
16
31
 
@@ -22,14 +37,30 @@ Update status
22
37
 
23
38
  > update hi!
24
39
 
40
+ or
41
+
42
+ > u hi!
43
+
25
44
  Show replies
26
45
 
27
46
  > replies
28
47
 
48
+ or
49
+
50
+ > r
51
+
29
52
  Search
30
53
 
31
54
  > search termtter
32
55
 
56
+ or
57
+
58
+ > s termtter
59
+
60
+ Tweet fib
61
+
62
+ > fib 10
63
+
33
64
  == CONFIGURATION:
34
65
 
35
66
  If you would like to use a proxy server, add configurations like this:
@@ -85,7 +116,7 @@ You can also type `<` as curry.
85
116
 
86
117
  (The MIT License)
87
118
 
88
- Copyright (c) 2008-2009 The Termtter Development Team
119
+ Copyright (c) 2008-2012 The Termtter Development Team
89
120
 
90
121
  Permission is hereby granted, free of charge, to any person obtaining
91
122
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'bundler'
4
4
 
5
5
  require 'rake'
6
6
  require 'rake/clean'
7
- require 'rake/gempackagetask'
7
+ require 'rubygems/package_task'
8
8
  require 'rdoc/task'
9
9
 
10
10
  Bundler::GemHelper.install_tasks
data/lib/plugins/mongo.rb CHANGED
@@ -46,7 +46,8 @@ module Termtter::Client
46
46
  table[status['retweeted_status']['id']]['rt_by'] << status['user']['screen_name']
47
47
  }
48
48
 
49
- table.to_a.sort_by{|pair| pair[0]}[-40..-1].each{|pair|
49
+ cut_length = [table.to_a.length, 40].min
50
+ table.to_a.sort_by{|pair| pair[0]}[cut_length..-1].each{|pair|
50
51
  status = pair[1]['status']
51
52
  fav_by = pair[1]['fav_by']
52
53
  rt_by = pair[1]['rt_by']
@@ -5,7 +5,7 @@ require 'uri'
5
5
  module Termtter::Client
6
6
  public_storage[:uris] = []
7
7
 
8
- PROTOCOLS = %w(http https)
8
+ PROTOCOLS = %w(http https) unless defined? PROTOCOLS
9
9
 
10
10
  register_hook(
11
11
  :name => :uri_open,
@@ -8,8 +8,8 @@ config.set_default(:retry, 3)
8
8
  config.set_default(:dmsg_permission, false)
9
9
  config.set_default(:splash, <<SPLASH)
10
10
 
11
- <cyan>&lt;(@)//_</cyan> . . <on_green> #{(Time.now.year == 2011 && Time.now.month == 4 && Time.now.day == 1)?'Centertter':'Termtter'} <underline>#{Termtter::VERSION}</underline> </on_green>
12
- <cyan>\\\\</cyan> <on_green> http://termtter.org/ </on_green>
11
+ <cyan>&lt;(@)//_</cyan> . . <on_green> Termtter <underline>#{Termtter::VERSION}</underline> </on_green>
12
+ <cyan>\\\\</cyan> <on_green> http://termtter.github.com/ </on_green>
13
13
 
14
14
  SPLASH
15
15
 
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Termtter
4
- VERSION = "1.10.3"
4
+ VERSION = "1.11.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termtter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 10
9
- - 3
10
- version: 1.10.3
8
+ - 11
9
+ - 0
10
+ version: 1.11.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - jugyo
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-03-04 00:00:00 +09:00
20
+ date: 2012-04-01 00:00:00 +09:00
21
21
  default_executable: termtter
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency