tweetwine 0.4.1 → 0.4.2
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/CHANGELOG.rdoc +6 -0
- data/Rakefile +22 -23
- data/lib/tweetwine/cli.rb +167 -165
- data/lib/tweetwine/config.rb +3 -2
- data/lib/tweetwine/exceptions.rb +1 -0
- data/lib/tweetwine/version.rb +1 -1
- data/project.rb +16 -16
- data/test/fixture/{config_example.yaml → config_integration.yaml} +0 -0
- data/test/fixture/oauth.rb +11 -11
- data/test/{test_helper.rb → helper.rb} +16 -7
- data/test/{example/authorization_example.rb → integration/authorization_test.rb} +17 -17
- data/test/integration/global_options_test.rb +67 -0
- data/test/integration/helper.rb +70 -0
- data/test/integration/invalid_config_file_test.rb +28 -0
- data/test/integration/search_statuses_test.rb +81 -0
- data/test/integration/show_followers_test.rb +24 -0
- data/test/integration/show_friends_test.rb +24 -0
- data/test/integration/show_home_test.rb +47 -0
- data/test/integration/show_mentions_test.rb +24 -0
- data/test/integration/show_user_test.rb +48 -0
- data/test/integration/update_status_test.rb +199 -0
- data/test/integration/use_http_proxy_test.rb +71 -0
- data/test/{example/user_help_example.rb → integration/user_help_test.rb} +36 -36
- data/test/unit/character_encoding_test.rb +19 -15
- data/test/unit/cli_test.rb +9 -10
- data/test/unit/config_test.rb +73 -71
- data/test/unit/helper.rb +108 -0
- data/test/unit/http_test.rb +39 -39
- data/test/unit/oauth_test.rb +15 -16
- data/test/unit/obfuscate_test.rb +4 -4
- data/test/unit/option_parser_test.rb +12 -12
- data/test/unit/promise_test.rb +10 -10
- data/test/unit/support_test.rb +44 -45
- data/test/unit/tweet_helper.rb +1 -1
- data/test/unit/tweet_test.rb +42 -42
- data/test/unit/twitter_test.rb +300 -303
- data/test/unit/ui_test.rb +310 -312
- data/test/unit/uri_test.rb +7 -7
- data/test/unit/url_shortener_test.rb +77 -79
- data/tweetwine.gemspec +6 -15
- metadata +55 -145
- data/test/example/example_helper.rb +0 -58
- data/test/example/global_options_example.rb +0 -64
- data/test/example/search_statuses_example.rb +0 -76
- data/test/example/show_followers_example.rb +0 -24
- data/test/example/show_friends_example.rb +0 -24
- data/test/example/show_home_example.rb +0 -44
- data/test/example/show_mentions_example.rb +0 -24
- data/test/example/show_user_example.rb +0 -44
- data/test/example/update_status_example.rb +0 -183
- data/test/example/use_http_proxy_example.rb +0 -68
- data/test/unit/unit_helper.rb +0 -111
data/test/unit/uri_test.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'unit/helper'
|
4
4
|
|
5
|
-
module Tweetwine::Test
|
5
|
+
module Tweetwine::Test::Unit
|
6
6
|
|
7
|
-
class UriTest <
|
8
|
-
|
7
|
+
class UriTest < TestCase
|
8
|
+
describe "for percent-encoding strings" do
|
9
9
|
[
|
10
10
|
%w{a a},
|
11
11
|
%w{B B},
|
@@ -14,12 +14,12 @@ class UriTest < UnitTestCase
|
|
14
14
|
%w{- dash},
|
15
15
|
%w{_ underscore},
|
16
16
|
].each do |(char, desc)|
|
17
|
-
|
17
|
+
it "does not encode safe characters, case #{desc}" do
|
18
18
|
assert_equal char, Uri.percent_encode(char)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
|
22
|
+
it "encodes space character with percent-encoding, not with '+' character" do
|
23
23
|
assert_equal "%20", Uri.percent_encode(" ")
|
24
24
|
end
|
25
25
|
|
@@ -30,7 +30,7 @@ class UriTest < UnitTestCase
|
|
30
30
|
%w{: %3A colon},
|
31
31
|
%w{, %2C comma}
|
32
32
|
].each do |(char, expected, desc)|
|
33
|
-
|
33
|
+
it "encodes unsafe characters that URI.encode leaves by default unencoded, case #{desc}" do
|
34
34
|
assert_equal char, Uri.parser.escape(char)
|
35
35
|
assert_equal expected, Uri.percent_encode(char)
|
36
36
|
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'unit/helper'
|
4
4
|
|
5
|
-
module Tweetwine::Test
|
5
|
+
module Tweetwine::Test::Unit
|
6
6
|
|
7
|
-
class UrlShortenerTest <
|
8
|
-
|
7
|
+
class UrlShortenerTest < TestCase
|
8
|
+
before do
|
9
9
|
mock_http
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
describe "for initialization" do
|
13
|
+
it "raises exception if service should be disabled" do
|
14
|
+
assert_raises(RuntimeError) do
|
15
15
|
UrlShortener.new(
|
16
16
|
:disable => true,
|
17
17
|
:service_url => "http://shorten.it/create",
|
@@ -20,8 +20,8 @@ class UrlShortenerTest < UnitTestCase
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
23
|
+
it "raises exception if service URL is not given" do
|
24
|
+
assert_raises(RequiredOptionError) do
|
25
25
|
UrlShortener.new(
|
26
26
|
:service_url => nil,
|
27
27
|
:url_param_name => "url",
|
@@ -29,8 +29,8 @@ class UrlShortenerTest < UnitTestCase
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
it "raises exception if URL parameter name is not given" do
|
33
|
+
assert_raises(RequiredOptionError) do
|
34
34
|
UrlShortener.new(
|
35
35
|
:service_url => "http://shorten.it/create",
|
36
36
|
:url_param_name => nil,
|
@@ -38,8 +38,8 @@ class UrlShortenerTest < UnitTestCase
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
|
42
|
-
|
41
|
+
it "raises exception if XPath selector is not given" do
|
42
|
+
assert_raises(RequiredOptionError) do
|
43
43
|
UrlShortener.new(
|
44
44
|
:service_url => "http://shorten.it/create",
|
45
45
|
:url_param_name => "url",
|
@@ -47,7 +47,7 @@ class UrlShortenerTest < UnitTestCase
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
|
50
|
+
it "fallbacks to use GET method if method is not given explicitly" do
|
51
51
|
url_shortener = UrlShortener.new(
|
52
52
|
:service_url => "http://shorten.it/create",
|
53
53
|
:url_param_name => "url",
|
@@ -56,8 +56,8 @@ class UrlShortenerTest < UnitTestCase
|
|
56
56
|
url_shortener.shorten("http://www.ruby-doc.org/core/")
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
it "raises exception if given HTTP request method is unsupported" do
|
60
|
+
assert_raises(CommandLineError) do
|
61
61
|
UrlShortener.new(
|
62
62
|
:method => "put",
|
63
63
|
:service_url => "http://shorten.it/create",
|
@@ -67,75 +67,73 @@ class UrlShortenerTest < UnitTestCase
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
end
|
70
|
+
describe "when configured for HTTP GET" do
|
71
|
+
it "uses parameters as URL query parameters, with just the URL parameter" do
|
72
|
+
url_shortener = UrlShortener.new(
|
73
|
+
:method => "get",
|
74
|
+
:service_url => "http://shorten.it/create",
|
75
|
+
:url_param_name => "url",
|
76
|
+
:xpath_selector => "//input[@id='short_url']/@value")
|
77
|
+
@http.expects(:get).
|
78
|
+
with("http://shorten.it/create?url=http://www.ruby-doc.org/core/")
|
79
|
+
url_shortener.shorten("http://www.ruby-doc.org/core/")
|
80
|
+
end
|
82
81
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
end
|
82
|
+
it "uses parameters as URL query parameters, with additional extra parameters" do
|
83
|
+
url_shortener = UrlShortener.new(
|
84
|
+
:method => "get",
|
85
|
+
:service_url => "http://shorten.it/create",
|
86
|
+
:url_param_name => "url",
|
87
|
+
:extra_params => {
|
88
|
+
:token => "xyz"
|
89
|
+
},
|
90
|
+
:xpath_selector => "//input[@id='short_url']/@value")
|
91
|
+
@http.expects(:get).
|
92
|
+
with("http://shorten.it/create?token=xyz&url=http://www.ruby-doc.org/core/")
|
93
|
+
url_shortener.shorten("http://www.ruby-doc.org/core/")
|
96
94
|
end
|
95
|
+
end
|
97
96
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
97
|
+
describe "when configured for HTTP POST" do
|
98
|
+
it "uses parameters as payload, with just the URL parameter" do
|
99
|
+
url_shortener = UrlShortener.new(
|
100
|
+
:method => "post",
|
101
|
+
:service_url => "http://shorten.it/create",
|
102
|
+
:url_param_name => "url",
|
103
|
+
:xpath_selector => "//input[@id='short_url']/@value")
|
104
|
+
@http.expects(:post).
|
105
|
+
with("http://shorten.it/create", {:url => "http://www.ruby-doc.org/core/"})
|
106
|
+
url_shortener.shorten("http://www.ruby-doc.org/core/")
|
107
|
+
end
|
109
108
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
end
|
109
|
+
it "uses parameters as payload, with additional extra parameters" do
|
110
|
+
url_shortener = UrlShortener.new(
|
111
|
+
:method => "post",
|
112
|
+
:service_url => "http://shorten.it/create",
|
113
|
+
:url_param_name => "url",
|
114
|
+
:extra_params => {
|
115
|
+
:token => "xyz"
|
116
|
+
},
|
117
|
+
:xpath_selector => "//input[@id='short_url']/@value")
|
118
|
+
@http.expects(:post).
|
119
|
+
with("http://shorten.it/create",
|
120
|
+
:token => "xyz",
|
121
|
+
:url => "http://www.ruby-doc.org/core/")
|
122
|
+
url_shortener.shorten("http://www.ruby-doc.org/core/")
|
125
123
|
end
|
124
|
+
end
|
126
125
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
end
|
126
|
+
describe "in erroenous network situations" do
|
127
|
+
it "passes exceptions through" do
|
128
|
+
url_shortener = UrlShortener.new(
|
129
|
+
:method => "post",
|
130
|
+
:service_url => "http://shorten.it/create",
|
131
|
+
:url_param_name => "url",
|
132
|
+
:xpath_selector => "//input[@id='short_url']/@value")
|
133
|
+
@http.expects(:post).
|
134
|
+
with("http://shorten.it/create", :url => "http://www.ruby-doc.org/core/").
|
135
|
+
raises(HttpError.new(404, "Not Found"))
|
136
|
+
assert_raises(HttpError) { url_shortener.shorten("http://www.ruby-doc.org/core/") }
|
139
137
|
end
|
140
138
|
end
|
141
139
|
end
|
data/tweetwine.gemspec
CHANGED
@@ -3,23 +3,15 @@
|
|
3
3
|
require File.expand_path('project', File.dirname(__FILE__))
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.
|
7
|
-
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.email = Project.email
|
11
|
-
s.homepage = Project.homepage
|
12
|
-
s.authors = Project.authors
|
13
|
-
|
14
|
-
s.files = `git ls-files`.split("\n") + Dir["#{Project.dirs.man}/**/*.[1-9]"]
|
15
|
-
s.test_files = `git ls-files -- #{Project.dirs.test}/*`.split("\n")
|
6
|
+
Project.spec.each { |(key, value)| s.send "#{key}=", value }
|
7
|
+
|
8
|
+
s.files = `git ls-files`.split("\n") + Dir["#{Project.dirs[:man]}/**/*.[1-9]"]
|
9
|
+
s.test_files = `git ls-files -- #{Project.dirs[:test]}/*`.split("\n")
|
16
10
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
17
11
|
|
18
12
|
s.add_dependency 'oauth', '~> 0.4.4'
|
19
|
-
s.add_development_dependency 'contest', '~> 0.1.2'
|
20
|
-
s.add_development_dependency 'coulda', '~> 0.6.3'
|
21
13
|
s.add_development_dependency 'gem-man', '~> 0.2.0'
|
22
|
-
s.add_development_dependency '
|
14
|
+
s.add_development_dependency 'minitest', '~> 2.1.0'
|
23
15
|
s.add_development_dependency 'mocha', '~> 0.9.12'
|
24
16
|
s.add_development_dependency 'open4', '~> 1.0.1'
|
25
17
|
s.add_development_dependency 'rake', '~> 0.8.7'
|
@@ -34,7 +26,6 @@ default. For Ruby 1.8, you can install 'json' gem, for example.
|
|
34
26
|
|
35
27
|
END
|
36
28
|
|
37
|
-
s.has_rdoc = true
|
38
29
|
s.extra_rdoc_files = Dir['*.rdoc', 'LICENSE.txt']
|
39
|
-
s.rdoc_options << '--title' << Project.title << '--exclude' << Project.dirs
|
30
|
+
s.rdoc_options << '--title' << Project.extra[:title] << '--exclude' << Project.dirs[:test]
|
40
31
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tweetwine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 1
|
10
|
-
version: 0.4.1
|
5
|
+
version: 0.4.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Tuomas Kareinen
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
13
|
+
date: 2011-05-18 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: oauth
|
@@ -26,174 +20,97 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ~>
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 4
|
33
|
-
- 4
|
34
23
|
version: 0.4.4
|
35
24
|
type: :runtime
|
36
25
|
version_requirements: *id001
|
37
26
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
27
|
+
name: gem-man
|
39
28
|
prerelease: false
|
40
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
30
|
none: false
|
42
31
|
requirements:
|
43
32
|
- - ~>
|
44
33
|
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 1
|
49
|
-
- 2
|
50
|
-
version: 0.1.2
|
34
|
+
version: 0.2.0
|
51
35
|
type: :development
|
52
36
|
version_requirements: *id002
|
53
37
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
38
|
+
name: minitest
|
55
39
|
prerelease: false
|
56
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
41
|
none: false
|
58
42
|
requirements:
|
59
43
|
- - ~>
|
60
44
|
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
- 6
|
65
|
-
- 3
|
66
|
-
version: 0.6.3
|
45
|
+
version: 2.1.0
|
67
46
|
type: :development
|
68
47
|
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: gem-man
|
71
|
-
prerelease: false
|
72
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
hash: 23
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
- 2
|
81
|
-
- 0
|
82
|
-
version: 0.2.0
|
83
|
-
type: :development
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: mcmire-matchy
|
87
|
-
prerelease: false
|
88
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
hash: 15
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
- 5
|
97
|
-
- 2
|
98
|
-
version: 0.5.2
|
99
|
-
type: :development
|
100
|
-
version_requirements: *id005
|
101
48
|
- !ruby/object:Gem::Dependency
|
102
49
|
name: mocha
|
103
50
|
prerelease: false
|
104
|
-
requirement: &
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
105
52
|
none: false
|
106
53
|
requirements:
|
107
54
|
- - ~>
|
108
55
|
- !ruby/object:Gem::Version
|
109
|
-
hash: 35
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
- 9
|
113
|
-
- 12
|
114
56
|
version: 0.9.12
|
115
57
|
type: :development
|
116
|
-
version_requirements: *
|
58
|
+
version_requirements: *id004
|
117
59
|
- !ruby/object:Gem::Dependency
|
118
60
|
name: open4
|
119
61
|
prerelease: false
|
120
|
-
requirement: &
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
121
63
|
none: false
|
122
64
|
requirements:
|
123
65
|
- - ~>
|
124
66
|
- !ruby/object:Gem::Version
|
125
|
-
hash: 21
|
126
|
-
segments:
|
127
|
-
- 1
|
128
|
-
- 0
|
129
|
-
- 1
|
130
67
|
version: 1.0.1
|
131
68
|
type: :development
|
132
|
-
version_requirements: *
|
69
|
+
version_requirements: *id005
|
133
70
|
- !ruby/object:Gem::Dependency
|
134
71
|
name: rake
|
135
72
|
prerelease: false
|
136
|
-
requirement: &
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
137
74
|
none: false
|
138
75
|
requirements:
|
139
76
|
- - ~>
|
140
77
|
- !ruby/object:Gem::Version
|
141
|
-
hash: 49
|
142
|
-
segments:
|
143
|
-
- 0
|
144
|
-
- 8
|
145
|
-
- 7
|
146
78
|
version: 0.8.7
|
147
79
|
type: :development
|
148
|
-
version_requirements: *
|
80
|
+
version_requirements: *id006
|
149
81
|
- !ruby/object:Gem::Dependency
|
150
82
|
name: ronn
|
151
83
|
prerelease: false
|
152
|
-
requirement: &
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
153
85
|
none: false
|
154
86
|
requirements:
|
155
87
|
- - ~>
|
156
88
|
- !ruby/object:Gem::Version
|
157
|
-
hash: 5
|
158
|
-
segments:
|
159
|
-
- 0
|
160
|
-
- 7
|
161
|
-
- 3
|
162
89
|
version: 0.7.3
|
163
90
|
type: :development
|
164
|
-
version_requirements: *
|
91
|
+
version_requirements: *id007
|
165
92
|
- !ruby/object:Gem::Dependency
|
166
93
|
name: timecop
|
167
94
|
prerelease: false
|
168
|
-
requirement: &
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
169
96
|
none: false
|
170
97
|
requirements:
|
171
98
|
- - ~>
|
172
99
|
- !ruby/object:Gem::Version
|
173
|
-
hash: 25
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
- 3
|
177
|
-
- 5
|
178
100
|
version: 0.3.5
|
179
101
|
type: :development
|
180
|
-
version_requirements: *
|
102
|
+
version_requirements: *id008
|
181
103
|
- !ruby/object:Gem::Dependency
|
182
104
|
name: webmock
|
183
105
|
prerelease: false
|
184
|
-
requirement: &
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
185
107
|
none: false
|
186
108
|
requirements:
|
187
109
|
- - ~>
|
188
110
|
- !ruby/object:Gem::Version
|
189
|
-
hash: 11
|
190
|
-
segments:
|
191
|
-
- 1
|
192
|
-
- 6
|
193
|
-
- 2
|
194
111
|
version: 1.6.2
|
195
112
|
type: :development
|
196
|
-
version_requirements: *
|
113
|
+
version_requirements: *id009
|
197
114
|
description: |
|
198
115
|
A simple but tasty Twitter agent for command line use, designed for quickly
|
199
116
|
showing the latest tweets.
|
@@ -236,19 +153,7 @@ files:
|
|
236
153
|
- lib/tweetwine/version.rb
|
237
154
|
- man/tweetwine.7.ronn
|
238
155
|
- project.rb
|
239
|
-
- test/
|
240
|
-
- test/example/example_helper.rb
|
241
|
-
- test/example/global_options_example.rb
|
242
|
-
- test/example/search_statuses_example.rb
|
243
|
-
- test/example/show_followers_example.rb
|
244
|
-
- test/example/show_friends_example.rb
|
245
|
-
- test/example/show_home_example.rb
|
246
|
-
- test/example/show_mentions_example.rb
|
247
|
-
- test/example/show_user_example.rb
|
248
|
-
- test/example/update_status_example.rb
|
249
|
-
- test/example/use_http_proxy_example.rb
|
250
|
-
- test/example/user_help_example.rb
|
251
|
-
- test/fixture/config_example.yaml
|
156
|
+
- test/fixture/config_integration.yaml
|
252
157
|
- test/fixture/config_unit.yaml
|
253
158
|
- test/fixture/home.json
|
254
159
|
- test/fixture/mentions.json
|
@@ -261,10 +166,24 @@ files:
|
|
261
166
|
- test/fixture/update_without_urls.json
|
262
167
|
- test/fixture/user.json
|
263
168
|
- test/fixture/users.json
|
264
|
-
- test/
|
169
|
+
- test/helper.rb
|
170
|
+
- test/integration/authorization_test.rb
|
171
|
+
- test/integration/global_options_test.rb
|
172
|
+
- test/integration/helper.rb
|
173
|
+
- test/integration/invalid_config_file_test.rb
|
174
|
+
- test/integration/search_statuses_test.rb
|
175
|
+
- test/integration/show_followers_test.rb
|
176
|
+
- test/integration/show_friends_test.rb
|
177
|
+
- test/integration/show_home_test.rb
|
178
|
+
- test/integration/show_mentions_test.rb
|
179
|
+
- test/integration/show_user_test.rb
|
180
|
+
- test/integration/update_status_test.rb
|
181
|
+
- test/integration/use_http_proxy_test.rb
|
182
|
+
- test/integration/user_help_test.rb
|
265
183
|
- test/unit/character_encoding_test.rb
|
266
184
|
- test/unit/cli_test.rb
|
267
185
|
- test/unit/config_test.rb
|
186
|
+
- test/unit/helper.rb
|
268
187
|
- test/unit/http_test.rb
|
269
188
|
- test/unit/oauth_test.rb
|
270
189
|
- test/unit/obfuscate_test.rb
|
@@ -275,23 +194,19 @@ files:
|
|
275
194
|
- test/unit/tweet_test.rb
|
276
195
|
- test/unit/twitter_test.rb
|
277
196
|
- test/unit/ui_test.rb
|
278
|
-
- test/unit/unit_helper.rb
|
279
197
|
- test/unit/uri_test.rb
|
280
198
|
- test/unit/url_shortener_test.rb
|
281
199
|
- tweetwine.gemspec
|
282
200
|
- man/tweetwine.7
|
283
|
-
has_rdoc: true
|
284
201
|
homepage: https://github.com/tkareine/tweetwine
|
285
202
|
licenses: []
|
286
203
|
|
287
|
-
post_install_message:
|
288
|
-
|
289
|
-
|
290
|
-
default. For Ruby 1.8, you can install 'json' gem, for example.
|
291
|
-
|
204
|
+
post_install_message: "\n\
|
205
|
+
Tweetwine requires a JSON parser library. Ruby 1.9 comes bundled with one by\n\
|
206
|
+
default. For Ruby 1.8, you can install 'json' gem, for example.\n\n"
|
292
207
|
rdoc_options:
|
293
208
|
- --title
|
294
|
-
- tweetwine 0.4.
|
209
|
+
- tweetwine 0.4.2
|
295
210
|
- --exclude
|
296
211
|
- test
|
297
212
|
require_paths:
|
@@ -301,40 +216,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
301
216
|
requirements:
|
302
217
|
- - ">="
|
303
218
|
- !ruby/object:Gem::Version
|
304
|
-
hash: 3
|
305
|
-
segments:
|
306
|
-
- 0
|
307
219
|
version: "0"
|
308
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
221
|
none: false
|
310
222
|
requirements:
|
311
223
|
- - ">="
|
312
224
|
- !ruby/object:Gem::Version
|
313
|
-
hash: 3
|
314
|
-
segments:
|
315
|
-
- 0
|
316
225
|
version: "0"
|
317
226
|
requirements: []
|
318
227
|
|
319
228
|
rubyforge_project:
|
320
|
-
rubygems_version: 1.
|
229
|
+
rubygems_version: 1.8.2
|
321
230
|
signing_key:
|
322
231
|
specification_version: 3
|
323
232
|
summary: Tweetwine shows the latest tweets from the command line quickly.
|
324
233
|
test_files:
|
325
|
-
- test/
|
326
|
-
- test/example/example_helper.rb
|
327
|
-
- test/example/global_options_example.rb
|
328
|
-
- test/example/search_statuses_example.rb
|
329
|
-
- test/example/show_followers_example.rb
|
330
|
-
- test/example/show_friends_example.rb
|
331
|
-
- test/example/show_home_example.rb
|
332
|
-
- test/example/show_mentions_example.rb
|
333
|
-
- test/example/show_user_example.rb
|
334
|
-
- test/example/update_status_example.rb
|
335
|
-
- test/example/use_http_proxy_example.rb
|
336
|
-
- test/example/user_help_example.rb
|
337
|
-
- test/fixture/config_example.yaml
|
234
|
+
- test/fixture/config_integration.yaml
|
338
235
|
- test/fixture/config_unit.yaml
|
339
236
|
- test/fixture/home.json
|
340
237
|
- test/fixture/mentions.json
|
@@ -347,10 +244,24 @@ test_files:
|
|
347
244
|
- test/fixture/update_without_urls.json
|
348
245
|
- test/fixture/user.json
|
349
246
|
- test/fixture/users.json
|
350
|
-
- test/
|
247
|
+
- test/helper.rb
|
248
|
+
- test/integration/authorization_test.rb
|
249
|
+
- test/integration/global_options_test.rb
|
250
|
+
- test/integration/helper.rb
|
251
|
+
- test/integration/invalid_config_file_test.rb
|
252
|
+
- test/integration/search_statuses_test.rb
|
253
|
+
- test/integration/show_followers_test.rb
|
254
|
+
- test/integration/show_friends_test.rb
|
255
|
+
- test/integration/show_home_test.rb
|
256
|
+
- test/integration/show_mentions_test.rb
|
257
|
+
- test/integration/show_user_test.rb
|
258
|
+
- test/integration/update_status_test.rb
|
259
|
+
- test/integration/use_http_proxy_test.rb
|
260
|
+
- test/integration/user_help_test.rb
|
351
261
|
- test/unit/character_encoding_test.rb
|
352
262
|
- test/unit/cli_test.rb
|
353
263
|
- test/unit/config_test.rb
|
264
|
+
- test/unit/helper.rb
|
354
265
|
- test/unit/http_test.rb
|
355
266
|
- test/unit/oauth_test.rb
|
356
267
|
- test/unit/obfuscate_test.rb
|
@@ -361,6 +272,5 @@ test_files:
|
|
361
272
|
- test/unit/tweet_test.rb
|
362
273
|
- test/unit/twitter_test.rb
|
363
274
|
- test/unit/ui_test.rb
|
364
|
-
- test/unit/unit_helper.rb
|
365
275
|
- test/unit/uri_test.rb
|
366
276
|
- test/unit/url_shortener_test.rb
|