tw 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/History.txt +3 -0
- data/Manifest.txt +16 -0
- data/README.rdoc +50 -0
- data/Rakefile +27 -0
- data/bin/tw +39 -0
- data/lib/tw.rb +21 -0
- data/lib/tw/auth.rb +35 -0
- data/lib/tw/client.rb +57 -0
- data/lib/tw/conf.rb +54 -0
- data/lib/tw/opts.rb +27 -0
- data/lib/tw/render.rb +24 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/test/test_helper.rb +3 -0
- data/test/test_tw.rb +11 -0
- metadata +184 -0
data/.gemtest
ADDED
File without changes
|
data/History.txt
ADDED
data/Manifest.txt
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
History.txt
|
2
|
+
Manifest.txt
|
3
|
+
README.rdoc
|
4
|
+
Rakefile
|
5
|
+
lib/tw.rb
|
6
|
+
lib/tw/auth.rb
|
7
|
+
lib/tw/client.rb
|
8
|
+
lib/tw/conf.rb
|
9
|
+
lib/tw/opts.rb
|
10
|
+
lib/tw/render.rb
|
11
|
+
bin/tw
|
12
|
+
script/console
|
13
|
+
script/destroy
|
14
|
+
script/generate
|
15
|
+
test/test_helper.rb
|
16
|
+
test/test_tw.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
= tw
|
2
|
+
|
3
|
+
* http://github.com/shokai/tw
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
* twitter client.
|
8
|
+
|
9
|
+
|
10
|
+
== SYNOPSIS:
|
11
|
+
|
12
|
+
read timeline
|
13
|
+
|
14
|
+
% tw @username
|
15
|
+
% tw @username @user2 @user3
|
16
|
+
% tw @username/listname
|
17
|
+
|
18
|
+
tweet
|
19
|
+
|
20
|
+
% tw hello hello
|
21
|
+
|
22
|
+
|
23
|
+
== INSTALL:
|
24
|
+
|
25
|
+
* gem install tw
|
26
|
+
|
27
|
+
== LICENSE:
|
28
|
+
|
29
|
+
(The MIT License)
|
30
|
+
|
31
|
+
Copyright (c) 2012 Sho Hashimoto
|
32
|
+
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
34
|
+
a copy of this software and associated documentation files (the
|
35
|
+
'Software'), to deal in the Software without restriction, including
|
36
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
37
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
38
|
+
permit persons to whom the Software is furnished to do so, subject to
|
39
|
+
the following conditions:
|
40
|
+
|
41
|
+
The above copyright notice and this permission notice shall be
|
42
|
+
included in all copies or substantial portions of the Software.
|
43
|
+
|
44
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
45
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
46
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
47
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
48
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
49
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
50
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
gem 'hoe', '>= 2.1.0'
|
3
|
+
require 'hoe'
|
4
|
+
require 'fileutils'
|
5
|
+
require './lib/tw'
|
6
|
+
|
7
|
+
Hoe.plugin :newgem
|
8
|
+
# Hoe.plugin :website
|
9
|
+
# Hoe.plugin :cucumberfeatures
|
10
|
+
|
11
|
+
# Generate all the Rake tasks
|
12
|
+
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
|
+
$hoe = Hoe.spec 'tw' do
|
14
|
+
self.developer 'Sho Hashimoto', 'hashimoto@shokai.org'
|
15
|
+
self.rubyforge_name = self.name # TODO this is default value
|
16
|
+
self.extra_deps = [['oauth','>= 0.4.7', '< 1.0.0'],
|
17
|
+
['twitter', '>= 3.7.0', '< 4.0.0'],
|
18
|
+
['rainbow', '>= 1.1.4', '< 2.0.0']]
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
require 'newgem/tasks'
|
23
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
24
|
+
|
25
|
+
# TODO - want other tests/tasks run by default? Add them to the list
|
26
|
+
# remove_task :default
|
27
|
+
# task :default => [:spec, :features]
|
data/bin/tw
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require File.expand_path '../lib/tw', File.dirname(__FILE__)
|
3
|
+
|
4
|
+
c = Tw::Client.new
|
5
|
+
|
6
|
+
if ARGV.size < 1
|
7
|
+
Tw::Render.display c.mentions
|
8
|
+
elsif Tw::Opts.all_cmds? ARGV
|
9
|
+
Tw::Render.display ARGV.map{|arg|
|
10
|
+
if word = Tw::Opts.search_word?(arg)
|
11
|
+
res = c.search word
|
12
|
+
elsif user = Tw::Opts.username?(arg)
|
13
|
+
res = c.user_timeline user
|
14
|
+
elsif (user, list = Tw::Opts.listname?(arg)) != false
|
15
|
+
res = c.list_timeline(user, list)
|
16
|
+
end
|
17
|
+
res
|
18
|
+
}
|
19
|
+
else
|
20
|
+
if ARGV.size == 1 and ARGV.first =~ /^-+$/
|
21
|
+
ARGF.each do |line|
|
22
|
+
line.split(/(.{140})/u).select{|m|m.size>0}.each do |message|
|
23
|
+
c.tweet message
|
24
|
+
end
|
25
|
+
sleep 1
|
26
|
+
end
|
27
|
+
else
|
28
|
+
message = ARGV.join(' ')
|
29
|
+
if (len = message.split(//u).size) > 140
|
30
|
+
puts "tweet too long (#{len} chars)"
|
31
|
+
exit 1
|
32
|
+
else
|
33
|
+
puts "tweet \"#{message}\"? (#{len} chars)"
|
34
|
+
puts '[Y/n]'
|
35
|
+
exit if STDIN.gets.strip =~ /^n/i
|
36
|
+
end
|
37
|
+
c.tweet message
|
38
|
+
end
|
39
|
+
end
|
data/lib/tw.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__)) unless
|
2
|
+
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
|
+
|
4
|
+
require 'rubygems'
|
5
|
+
require 'oauth'
|
6
|
+
require 'twitter'
|
7
|
+
require 'yaml'
|
8
|
+
require 'time'
|
9
|
+
require 'rainbow'
|
10
|
+
require 'tw/auth'
|
11
|
+
require 'tw/client'
|
12
|
+
require 'tw/conf'
|
13
|
+
require 'tw/opts'
|
14
|
+
require 'tw/render'
|
15
|
+
|
16
|
+
module Tw
|
17
|
+
VERSION = '0.0.1'
|
18
|
+
|
19
|
+
class Error < StandardError
|
20
|
+
end
|
21
|
+
end
|
data/lib/tw/auth.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
module Tw
|
3
|
+
class Client
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
if !Conf['access_token'] or !Conf['access_secret']
|
7
|
+
consumer = OAuth::Consumer.new(Conf['consumer_key'], Conf['consumer_secret'],
|
8
|
+
:site => 'http://twitter.com')
|
9
|
+
begin
|
10
|
+
request_token = consumer.get_request_token
|
11
|
+
puts "open #{request_token.authorize_url}"
|
12
|
+
system "open #{request_token.authorize_url}"
|
13
|
+
print 'input PIN Number: '
|
14
|
+
oauth_verifier = gets.strip
|
15
|
+
access_token = request_token.get_access_token(:oauth_verifier => oauth_verifier)
|
16
|
+
Conf['access_token'] = access_token.token
|
17
|
+
Conf['access_secret'] = access_token.secret
|
18
|
+
rescue => e
|
19
|
+
raise Error.new "#{e.to_s}\ncheck config file(#{Conf.conf_file}) and twitter.com status."
|
20
|
+
end
|
21
|
+
Conf.open_conf_file('w+'){|f|
|
22
|
+
f.puts Conf.to_yaml
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
Twitter.configure do |c|
|
27
|
+
c.consumer_key = Conf['consumer_key']
|
28
|
+
c.consumer_secret = Conf['consumer_secret']
|
29
|
+
c.oauth_token = Conf['access_token']
|
30
|
+
c.oauth_token_secret = Conf['access_secret']
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
data/lib/tw/client.rb
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
module Tw
|
3
|
+
class Client
|
4
|
+
|
5
|
+
def mentions
|
6
|
+
Twitter.mentions.map{|m|
|
7
|
+
{
|
8
|
+
:id => m.id,
|
9
|
+
:user => m.user.screen_name,
|
10
|
+
:text => m.text,
|
11
|
+
:time => m.created_at
|
12
|
+
}
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def search(word)
|
17
|
+
Twitter.search(word).results.map{|m|
|
18
|
+
{
|
19
|
+
:id => m.id,
|
20
|
+
:user => m.from_user,
|
21
|
+
:text => m.text,
|
22
|
+
:time => m.created_at
|
23
|
+
}
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def user_timeline(user)
|
28
|
+
Twitter.user_timeline(user).map{|m|
|
29
|
+
{
|
30
|
+
:id => m.id,
|
31
|
+
:user => m.user.screen_name,
|
32
|
+
:text => m.text,
|
33
|
+
:time => m.created_at
|
34
|
+
}
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
def list_timeline(user,list)
|
39
|
+
Twitter.list_timeline(user, list).map{|m|
|
40
|
+
{
|
41
|
+
:id => m.id,
|
42
|
+
:user => m.user.screen_name,
|
43
|
+
:text => m.text,
|
44
|
+
:time => m.created_at
|
45
|
+
}
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
def tweet(message)
|
50
|
+
res = Twitter.update message
|
51
|
+
puts res.text
|
52
|
+
puts "http://twitter.com/#{res.user.screen_name}/status/#{res.id}"
|
53
|
+
puts res.created_at
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
data/lib/tw/conf.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
|
2
|
+
module Tw
|
3
|
+
class Conf
|
4
|
+
|
5
|
+
def self.default
|
6
|
+
{
|
7
|
+
'consumer_key' => 'AYhhkOC8H2yTZyelz3uw',
|
8
|
+
'consumer_secret' => '28Ba8YyFDSPgoCYAmH5ANqOmT6qVS8gIhKnUiDbIpU'
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.[](key)
|
13
|
+
ENV[key] || conf[key]
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.[]=(key,value)
|
17
|
+
conf[key] = value
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.conf_file
|
21
|
+
"#{ENV['HOME']}/.tw.conf"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.conf
|
25
|
+
@@conf ||= (
|
26
|
+
res = default
|
27
|
+
if File.exists? conf_file
|
28
|
+
begin
|
29
|
+
open_conf_file do |f|
|
30
|
+
res = YAML::load f.read
|
31
|
+
end
|
32
|
+
rescue => e
|
33
|
+
STDERR.puts e
|
34
|
+
File.delete conf_file
|
35
|
+
end
|
36
|
+
end
|
37
|
+
res
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.open_conf_file(opt=nil, &block)
|
42
|
+
if block_given?
|
43
|
+
yield open(self.conf_file, opt)
|
44
|
+
else
|
45
|
+
return open(self.conf_file, opt)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.to_yaml
|
50
|
+
self.conf.to_yaml
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
data/lib/tw/opts.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
module Tw
|
3
|
+
class Opts
|
4
|
+
def self.search_word?(str)
|
5
|
+
str =~ /^\?.+$/ ? str.scan(/^\?(.+)$/)[0][0] : false
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.username?(str)
|
9
|
+
str =~ /^@[a-zA-Z0-9_]+$/ ? str.scan(/^@([a-zA-Z0-9_]+)$/)[0][0] : false
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.listname?(str)
|
13
|
+
if str =~ /^@[a-zA-Z0-9_]+\/[a-zA-Z0-9_]+$/
|
14
|
+
return str.scan(/^@([a-zA-Z0-9_]+)\/([a-zA-Z0-9_]+)$/).first
|
15
|
+
end
|
16
|
+
false
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.cmd?(str)
|
20
|
+
search_word?(str) || username?(str) || listname?(str)
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.all_cmds?(argv)
|
24
|
+
argv.map{|arg| cmd? arg}.count(false) < 1
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/tw/render.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
module Tw
|
3
|
+
class Render
|
4
|
+
def self.color_code(str)
|
5
|
+
colors = Sickill::Rainbow::TERM_COLORS.keys - [:default, :black, :white]
|
6
|
+
n = str.each_byte.map{|c| c.to_i}.inject{|a,b|a+b}
|
7
|
+
return colors[n%colors.size]
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.display(hash)
|
11
|
+
hash.flatten.sort{|a,b|
|
12
|
+
a[:id] <=> b[:id]
|
13
|
+
}.uniq.each{|m|
|
14
|
+
line = "#{m[:time].strftime '[%m/%d %a] (%H:%M:%S)'} @#{m[:user]} : #{m[:text]}"
|
15
|
+
puts line.split(/(@[a-zA-Z0-9_]+)/).map{|term|
|
16
|
+
if term =~ /@[a-zA-Z0-9_]+/
|
17
|
+
term = term.color(color_code term).bright.underline
|
18
|
+
end
|
19
|
+
term
|
20
|
+
}.join('')
|
21
|
+
}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/script/console
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# File: script/console
|
3
|
+
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
+
|
5
|
+
libs = " -r irb/completion"
|
6
|
+
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
+
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
+
libs << " -r #{File.dirname(__FILE__) + '/../lib/tw.rb'}"
|
9
|
+
puts "Loading tw gem"
|
10
|
+
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/destroy'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/generate'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/test/test_helper.rb
ADDED
data/test/test_tw.rb
ADDED
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tw
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Sho Hashimoto
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: oauth
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.7
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.0.0
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.4.7
|
33
|
+
- - <
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.0.0
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: twitter
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.7.0
|
44
|
+
- - <
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 4.0.0
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.7.0
|
55
|
+
- - <
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 4.0.0
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rainbow
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.1.4
|
66
|
+
- - <
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.0
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.1.4
|
77
|
+
- - <
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.0.0
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rdoc
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.10'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '3.10'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: newgem
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.5.3
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 1.5.3
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: hoe
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ~>
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '3.0'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ~>
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '3.0'
|
128
|
+
description: ! '* twitter client.'
|
129
|
+
email:
|
130
|
+
- hashimoto@shokai.org
|
131
|
+
executables:
|
132
|
+
- tw
|
133
|
+
extensions: []
|
134
|
+
extra_rdoc_files:
|
135
|
+
- History.txt
|
136
|
+
- Manifest.txt
|
137
|
+
- README.rdoc
|
138
|
+
files:
|
139
|
+
- History.txt
|
140
|
+
- Manifest.txt
|
141
|
+
- README.rdoc
|
142
|
+
- Rakefile
|
143
|
+
- lib/tw.rb
|
144
|
+
- lib/tw/auth.rb
|
145
|
+
- lib/tw/client.rb
|
146
|
+
- lib/tw/conf.rb
|
147
|
+
- lib/tw/opts.rb
|
148
|
+
- lib/tw/render.rb
|
149
|
+
- bin/tw
|
150
|
+
- script/console
|
151
|
+
- script/destroy
|
152
|
+
- script/generate
|
153
|
+
- test/test_helper.rb
|
154
|
+
- test/test_tw.rb
|
155
|
+
- .gemtest
|
156
|
+
homepage: http://github.com/shokai/tw
|
157
|
+
licenses: []
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options:
|
160
|
+
- --main
|
161
|
+
- README.rdoc
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ! '>='
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
requirements: []
|
177
|
+
rubyforge_project: tw
|
178
|
+
rubygems_version: 1.8.24
|
179
|
+
signing_key:
|
180
|
+
specification_version: 3
|
181
|
+
summary: ! '* twitter client.'
|
182
|
+
test_files:
|
183
|
+
- test/test_helper.rb
|
184
|
+
- test/test_tw.rb
|