tw 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/tw.rb +1 -0
- data/lib/tw/app/render.rb +1 -1
- data/lib/tw/client/auth.rb +2 -3
- data/lib/tw/version.rb +1 -1
- data/tw.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb382be2082a29c9b21ad314d02bde3eb8baff17
|
4
|
+
data.tar.gz: 545ac79f6785b9905d0d9d67be233c60791be2d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cc5e192b5410da05edbaef98e738ad00671f2ba886dd2067f9c225778c190b8520503e36ef639ac7eaf314e8cce9a82e84a0b5ef8071a17c955e46a6d1bbf5
|
7
|
+
data.tar.gz: 744d0c91a942b2867dd70a94c4252540ee6ebfadd54f2c4d0dda68fb571cc117b38ca928bb75d5c7e6d29199e0b212687e2ea3a5720e3024c758cc1908bf0fb8
|
data/History.txt
CHANGED
data/lib/tw.rb
CHANGED
data/lib/tw/app/render.rb
CHANGED
@@ -22,7 +22,7 @@ module Tw::App
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.color_code(str)
|
25
|
-
colors =
|
25
|
+
colors = Rainbow::Color::Named::NAMES.keys - [:default, :black, :white]
|
26
26
|
n = str.each_byte.map{|c| c.to_i}.inject{|a,b|a+b}
|
27
27
|
return colors[n%colors.size]
|
28
28
|
end
|
data/lib/tw/client/auth.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module Tw
|
3
2
|
class Client
|
4
3
|
def self.client
|
@@ -42,8 +41,8 @@ module Tw
|
|
42
41
|
consumer = OAuth::Consumer.new(Conf['consumer_key'], Conf['consumer_secret'],
|
43
42
|
:site => 'http://api.twitter.com')
|
44
43
|
request_token = consumer.get_request_token
|
45
|
-
puts
|
46
|
-
|
44
|
+
puts "open #{request_token.authorize_url}"
|
45
|
+
Launchy.open request_token.authorize_url
|
47
46
|
print 'input PIN Number: '
|
48
47
|
verifier = STDIN.gets.strip
|
49
48
|
access_token = request_token.get_access_token(:oauth_verifier => verifier)
|
data/lib/tw/version.rb
CHANGED
data/tw.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_dependency 'rainbow', '>= 1.1.4'
|
24
24
|
gem.add_dependency 'args_parser', '>= 0.2.0'
|
25
25
|
gem.add_dependency 'parallel', '>= 0.8.2'
|
26
|
+
gem.add_dependency 'launchy', '>= 2.4.2'
|
26
27
|
|
27
28
|
gem.add_development_dependency 'rake'
|
28
29
|
gem.add_development_dependency 'bundler', '~> 1.3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.8.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: launchy
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.4.2
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.4.2
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rake
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|