earthquake 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -9,5 +9,17 @@ options.delete(:help)
9
9
  options[:dir] = ARGV.shift unless ARGV.empty?
10
10
 
11
11
  $:.unshift(File.expand_path('../../lib', __FILE__)) if $0 == __FILE__
12
+
13
+ print "\e[31m"
14
+ puts %q{
15
+ _ _ _
16
+ ___ __ _ _ __| |_| |__ __ _ _ _ __ _| | _____
17
+ / _ \/ _` | '__| __| '_ \ / _` | | | |/ _` | |/ / _ \
18
+ | __/ (_| | | | |_| | | | (_| | |_| | (_| | < __/
19
+ \___|\__,_|_| \__|_| |_|\__, |\__,_|\__,_|_|\_\___|
20
+ |_| }.
21
+ gsub(/^\n/, '') + "v#{File.read(File.expand_path('../../VERSION', __FILE__))}".rjust(10) + "\n\n"
22
+ print "\e[0m"
23
+
12
24
  require 'earthquake'
13
25
  Earthquake.start(options)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{earthquake}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
12
- s.date = %q{2011-03-31}
12
+ s.date = %q{2011-04-04}
13
13
  s.default_executable = %q{earthquake}
14
14
  s.description = %q{Twitter Client on Terminal with Twitter Streaming API.}
15
15
  s.email = %q{jugyo.org@gmail.com}
@@ -60,7 +60,7 @@ Accordingly, you should renew the access token if it is old.
60
60
  }
61
61
  s.require_paths = ["lib"]
62
62
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
63
- s.rubygems_version = %q{1.6.0}
63
+ s.rubygems_version = %q{1.6.2}
64
64
  s.summary = %q{Twitter Client on Terminal.}
65
65
  s.test_files = [
66
66
  "spec/earthquake_spec.rb",
@@ -78,7 +78,7 @@ Accordingly, you should renew the access token if it is old.
78
78
  s.add_runtime_dependency(%q<awesome_print>, [">= 0"])
79
79
  s.add_runtime_dependency(%q<launchy>, [">= 0"])
80
80
  s.add_runtime_dependency(%q<oauth>, [">= 0"])
81
- s.add_runtime_dependency(%q<twitter_oauth>, [">= 0"])
81
+ s.add_runtime_dependency(%q<twitter_oauth>, ["= 0.4.3"])
82
82
  s.add_runtime_dependency(%q<slop>, [">= 0"])
83
83
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
84
84
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -91,7 +91,7 @@ Accordingly, you should renew the access token if it is old.
91
91
  s.add_dependency(%q<awesome_print>, [">= 0"])
92
92
  s.add_dependency(%q<launchy>, [">= 0"])
93
93
  s.add_dependency(%q<oauth>, [">= 0"])
94
- s.add_dependency(%q<twitter_oauth>, [">= 0"])
94
+ s.add_dependency(%q<twitter_oauth>, ["= 0.4.3"])
95
95
  s.add_dependency(%q<slop>, [">= 0"])
96
96
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
97
97
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -105,7 +105,7 @@ Accordingly, you should renew the access token if it is old.
105
105
  s.add_dependency(%q<awesome_print>, [">= 0"])
106
106
  s.add_dependency(%q<launchy>, [">= 0"])
107
107
  s.add_dependency(%q<oauth>, [">= 0"])
108
- s.add_dependency(%q<twitter_oauth>, [">= 0"])
108
+ s.add_dependency(%q<twitter_oauth>, ["= 0.4.3"])
109
109
  s.add_dependency(%q<slop>, [">= 0"])
110
110
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
111
111
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -33,7 +33,7 @@ Earthquake.init do
33
33
  target = twitter.status(in_reply_to_status_id)
34
34
  screen_name = target["user"]["screen_name"]
35
35
  text = "@#{screen_name} #{m[2]}"
36
- if confirm(["'@#{screen_name}: #{target["text"]}'", "reply '#{text}'"].join("\n"))
36
+ if confirm(["'@#{screen_name}: #{target["text"]}'".c(:info), "reply '#{text}'"].join("\n"))
37
37
  async_e { twitter.update(text, :in_reply_to_status_id => in_reply_to_status_id) }
38
38
  end
39
39
  end
@@ -44,8 +44,10 @@ Earthquake.init do
44
44
  end
45
45
 
46
46
  command :status do |m|
47
- # TODO: show reply to statuses
48
- puts_items twitter.status(m[1]).tap { |s| s["_detail"] = true }
47
+ puts_items tweet = twitter.status(m[1])
48
+ if tweet["in_reply_to_status_id"]
49
+ puts_items twitter.status(tweet["in_reply_to_status_id"]).tap { |t| t["_mark"] = " " }
50
+ end
49
51
  end
50
52
 
51
53
  # $xx
@@ -182,8 +184,10 @@ Earthquake.init do
182
184
  command :thread do |m|
183
185
  thread = [twitter.status(m[1])]
184
186
  while reply = thread.last["in_reply_to_status_id"]
187
+ print '.'.c(:info)
185
188
  thread << twitter.status(reply)
186
189
  end
190
+ print "\e[2K\e[0G"
187
191
  puts_items thread.reverse_each.with_index{|tweet, indent|
188
192
  tweet["_mark"] = " " * indent
189
193
  }
@@ -80,7 +80,7 @@ module Earthquake
80
80
  info << "(retweet of #{id2var(item["retweeted_status"]["id"])})"
81
81
  end
82
82
  info << Time.parse(item["created_at"]).strftime(config[:time_format])
83
- if item["_detail"] && item["source"]
83
+ if !config[:hide_app_name] && item["source"]
84
84
  info << (item["source"].u =~ />(.*)</ ? $1 : 'web')
85
85
  end
86
86
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: earthquake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.1
5
+ version: 0.6.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-31 00:00:00 +09:00
13
+ date: 2011-04-04 00:00:00 +09:00
14
14
  default_executable: earthquake
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -95,9 +95,9 @@ dependencies:
95
95
  requirement: &id008 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
- - - ">="
98
+ - - "="
99
99
  - !ruby/object:Gem::Version
100
- version: "0"
100
+ version: 0.4.3
101
101
  type: :runtime
102
102
  prerelease: false
103
103
  version_requirements: *id008
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  requirements: []
206
206
 
207
207
  rubyforge_project:
208
- rubygems_version: 1.6.0
208
+ rubygems_version: 1.6.2
209
209
  signing_key:
210
210
  specification_version: 3
211
211
  summary: Twitter Client on Terminal.