hayato1980-clitwitter 0.0.6 → 0.1.0
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/VERSION +1 -1
- data/bin/clitwit-get +3 -3
- data/clitwitter.gemspec +4 -4
- data/lib/clitwitter.rb +1 -1
- data/lib/{twit.rb → clitwitter/twit.rb} +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/bin/clitwit-get
CHANGED
@@ -16,14 +16,14 @@ class Color
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
twit = Clitwitter::
|
19
|
+
twit = ::Clitwitter::Twitter.new
|
20
20
|
loop do
|
21
21
|
begin
|
22
22
|
timeline = twit.friends_timeline({})
|
23
|
-
rescue Twitter::Unavailable
|
23
|
+
rescue ::Twitter::Unavailable
|
24
24
|
puts "Twitter Service Unavailable #{Time.now}"
|
25
25
|
timeline = []
|
26
|
-
rescue Timeout::Error
|
26
|
+
rescue ::Timeout::Error
|
27
27
|
puts "Twitter Timeout #{Time.now}"
|
28
28
|
timeline = []
|
29
29
|
end
|
data/clitwitter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{clitwitter}
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Hayato"]
|
12
|
-
s.date = %q{2009-08-
|
12
|
+
s.date = %q{2009-08-14}
|
13
13
|
s.description = %q{command line twitter client}
|
14
14
|
s.email = %q{haya10.ito+github@gmail.com}
|
15
15
|
s.executables = ["clitwit-get", "clitwit-post"]
|
@@ -30,14 +30,14 @@ Gem::Specification.new do |s|
|
|
30
30
|
"bin/clitwit-post",
|
31
31
|
"clitwitter.gemspec",
|
32
32
|
"lib/clitwitter.rb",
|
33
|
-
"lib/twit.rb",
|
33
|
+
"lib/clitwitter/twit.rb",
|
34
34
|
"spec/ruby-clitwitter_spec.rb",
|
35
35
|
"spec/spec_helper.rb"
|
36
36
|
]
|
37
37
|
s.homepage = %q{http://github.com/hayato1980/ruby-clitwitter}
|
38
38
|
s.rdoc_options = ["--charset=UTF-8"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.3.
|
40
|
+
s.rubygems_version = %q{1.3.4}
|
41
41
|
s.summary = %q{command line twitter client}
|
42
42
|
s.test_files = [
|
43
43
|
"spec/ruby-clitwitter_spec.rb",
|
data/lib/clitwitter.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'twit
|
2
|
+
require 'clitwitter/twit'
|
@@ -11,7 +11,7 @@ class Twitter
|
|
11
11
|
|
12
12
|
if ENV.include?('HTTP_PROXY')
|
13
13
|
host,port= ENV['HTTP_PROXY'].sub(/^http:\/\//,"").split /:/
|
14
|
-
Twitter::HTTPAuth.http_proxy( host, port)
|
14
|
+
::Twitter::HTTPAuth.http_proxy( host, port)
|
15
15
|
end
|
16
16
|
|
17
17
|
client = ::Twitter::HTTPAuth.new(@tw["username"], @tw["password"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hayato1980-clitwitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hayato
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-14 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -75,7 +75,7 @@ files:
|
|
75
75
|
- bin/clitwit-post
|
76
76
|
- clitwitter.gemspec
|
77
77
|
- lib/clitwitter.rb
|
78
|
-
- lib/twit.rb
|
78
|
+
- lib/clitwitter/twit.rb
|
79
79
|
- spec/ruby-clitwitter_spec.rb
|
80
80
|
- spec/spec_helper.rb
|
81
81
|
has_rdoc: false
|