jugyo-termtter 0.7.0 → 0.7.5

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.
data/run_termtter.rb CHANGED
@@ -14,8 +14,6 @@ require 'termtter'
14
14
  plugin 'standard_plugins'
15
15
  plugin 'stdout'
16
16
 
17
- configatron.update_interval
18
-
19
17
  conf_file = File.expand_path('~/.termtter')
20
18
  if File.exist? conf_file
21
19
  load conf_file
@@ -16,28 +16,6 @@ class TestTermtter < Test::Unit::TestCase
16
16
  end
17
17
  end
18
18
 
19
- def test_get_timeline
20
- statuses = swap_open('friends_timeline.json') { @twitter.get_timeline('') }
21
-
22
- assert_equal 3, statuses.size
23
-
24
- assert_equal 102, statuses[0].user_id
25
- assert_equal 'test2', statuses[0].user_screen_name
26
- assert_equal 'Test User 2', statuses[0].user_name
27
- assert_equal 'texttext 2', statuses[0].text
28
- assert_equal 'http://twitter.com/test2', statuses[0].user_url
29
- assert_equal 'http://s3.amazonaws.com/twitter_production/profile_images/000/102.png', statuses[0].user_profile_image_url
30
- assert_equal 'Sat Jan 03 21:13:45 +0900 2009', statuses[0].created_at.to_s
31
-
32
- assert_equal 100, statuses[2].user_id
33
- assert_equal 'test0', statuses[2].user_screen_name
34
- assert_equal 'Test User 0', statuses[2].user_name
35
- assert_equal 'texttext 0', statuses[2].text
36
- assert_equal 'http://twitter.com/test0', statuses[2].user_url
37
- assert_equal 'http://s3.amazonaws.com/twitter_production/profile_images/000/100.png', statuses[2].user_profile_image_url
38
- assert_equal 'Sat Jan 03 21:13:45 +0900 2009', statuses[2].created_at.to_s
39
- end
40
-
41
19
  def test_search
42
20
  statuses = swap_open('search.json') { @twitter.search('') }
43
21
  assert_equal 3, statuses.size
metadata CHANGED
@@ -1,16 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jugyo-termtter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
+ - bubblegum
8
+ - hakobe
9
+ - hitode909
7
10
  - jugyo
11
+ - koichiro
12
+ - mattn
13
+ - motemen
14
+ - Sixeight
8
15
  - ujihisa
16
+ - yanbe
9
17
  autorequire:
10
18
  bindir: bin
11
19
  cert_chain: []
12
20
 
13
- date: 2009-01-07 00:00:00 -08:00
21
+ date: 2009-01-09 00:00:00 -08:00
14
22
  default_executable: termtter
15
23
  dependencies:
16
24
  - !ruby/object:Gem::Dependency
@@ -31,6 +39,15 @@ dependencies:
31
39
  - !ruby/object:Gem::Version
32
40
  version: "0"
33
41
  version:
42
+ - !ruby/object:Gem::Dependency
43
+ name: highline
44
+ version_requirement:
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
34
51
  - !ruby/object:Gem::Dependency
35
52
  name: hoe
36
53
  version_requirement:
@@ -58,34 +75,44 @@ files:
58
75
  - PostInstall.txt
59
76
  - README.rdoc
60
77
  - Rakefile
61
- - run_termtter.rb
62
78
  - bin/termtter
63
- - lib/termtter.rb
64
- - lib/filter.rb
79
+ - lib/filter/en2ja.rb
80
+ - lib/filter/english.rb
81
+ - lib/filter/expand-tinyurl.rb
82
+ - lib/filter/fib.rb
83
+ - lib/filter/reverse.rb
84
+ - lib/filter/yhara.rb
85
+ - lib/plugin/bomb.rb
86
+ - lib/plugin/confirm.rb
65
87
  - lib/plugin/english.rb
66
88
  - lib/plugin/erb.rb
67
89
  - lib/plugin/favorite.rb
68
90
  - lib/plugin/fib.rb
69
91
  - lib/plugin/filter.rb
92
+ - lib/plugin/follow.rb
93
+ - lib/plugin/group.rb
70
94
  - lib/plugin/growl.rb
95
+ - lib/plugin/history.rb
71
96
  - lib/plugin/keyword.rb
72
97
  - lib/plugin/log.rb
73
98
  - lib/plugin/notify-send.rb
74
99
  - lib/plugin/plugin.rb
100
+ - lib/plugin/quicklook.rb
101
+ - lib/plugin/reload.rb
75
102
  - lib/plugin/say.rb
76
103
  - lib/plugin/shell.rb
104
+ - lib/plugin/sl.rb
105
+ - lib/plugin/spam.rb
77
106
  - lib/plugin/standard_plugins.rb
78
107
  - lib/plugin/stdout.rb
79
108
  - lib/plugin/translation.rb
80
109
  - lib/plugin/uri-open.rb
81
- - lib/filter/english.rb
82
- - lib/filter/reverse.rb
83
- - lib/filter/yhara.rb
84
- - lib/filter/expand-tinyurl.rb
85
- - lib/filter/en2ja.rb
86
- - test/test_termtter.rb
110
+ - lib/plugin/yhara.rb
111
+ - lib/termtter.rb
112
+ - run_termtter.rb
87
113
  - test/friends_timeline.json
88
114
  - test/search.json
115
+ - test/test_termtter.rb
89
116
  has_rdoc: true
90
117
  homepage: http://github.com/jugyo/termtter
91
118
  post_install_message: PostInstall.txt
data/lib/filter.rb DELETED
@@ -1,28 +0,0 @@
1
- module Termtter
2
- module Client
3
- @@filters = []
4
-
5
- class << self
6
- def add_filter(&filter)
7
- @@filters << filter
8
- end
9
-
10
- def clear_filters
11
- @@filters.clear
12
- end
13
-
14
- # memo: each filter must return Array of Status
15
- def apply_filters(statuses)
16
- filtered = statuses
17
- @@filters.each do |f|
18
- filtered = f.call(filtered)
19
- end
20
- filtered
21
- rescue => e
22
- puts "Error: #{e}"
23
- puts e.backtrace.join("\n")
24
- statuses
25
- end
26
- end
27
- end
28
- end