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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d62852619c1f43d417a6fa2f80b1faf262894811
4
- data.tar.gz: efb665b7cc340c90e2461b5552c92a2cb5a8a116
3
+ metadata.gz: eb382be2082a29c9b21ad314d02bde3eb8baff17
4
+ data.tar.gz: 545ac79f6785b9905d0d9d67be233c60791be2d0
5
5
  SHA512:
6
- metadata.gz: 8352729c11bfa57905371c892efd521770ff250c60e3d8332d2d646cb07435471636f7664ebc1742c16ebe86d9752072c7653ae92176cb5e09915e6f370dfc94
7
- data.tar.gz: 07b582b26ca18ffef22803f225a4a62212b7733ec1714d72cdd4fba67c8f4143b00b31bdfc3fa1a681538c79d750cdd59a8546537342a5db4a2f70aa295577ba
6
+ metadata.gz: 60cc5e192b5410da05edbaef98e738ad00671f2ba886dd2067f9c225778c190b8520503e36ef639ac7eaf314e8cce9a82e84a0b5ef8071a17c955e46a6d1bbf5
7
+ data.tar.gz: 744d0c91a942b2867dd70a94c4252540ee6ebfadd54f2c4d0dda68fb571cc117b38ca928bb75d5c7e6d29199e0b212687e2ea3a5720e3024c758cc1908bf0fb8
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.0.3 2014-01-08
2
+
3
+ * bugfix for rainbow 1.99.x #54
4
+ * use launchy gem to open OAuth-URL #53
5
+
1
6
  === 1.0.2 2013-11-27
2
7
 
3
8
  * fix syntax error on ruby1.8.7
data/lib/tw.rb CHANGED
@@ -12,6 +12,7 @@ require 'json'
12
12
  require 'args_parser'
13
13
  require 'rainbow'
14
14
  require 'parallel'
15
+ require 'launchy'
15
16
  require 'tw/conf'
16
17
  require 'tw/client/auth'
17
18
  require 'tw/client/request'
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 = Sickill::Rainbow::TERM_COLORS.keys - [:default, :black, :white]
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
@@ -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 cmd = "open #{request_token.authorize_url}"
46
- system cmd
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
@@ -1,3 +1,3 @@
1
1
  module Tw
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
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.2
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: 2013-11-27 00:00:00.000000000 Z
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