earthquake 0.7.2 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.4
data/earthquake.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{earthquake}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
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-06-15}
12
+ s.date = %q{2011-06-18}
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}
@@ -13,7 +13,8 @@ Earthquake.init do
13
13
  command :restart do
14
14
  puts 'restarting...'
15
15
  stop
16
- args = ARGV.push '-n' unless ARGV.include?('-n')
16
+ args = ARGV.dup
17
+ args.push '-n' unless args.include?('-n')
17
18
  exec File.expand_path('../../../bin/earthquake', __FILE__), *args
18
19
  end
19
20
 
@@ -126,6 +126,12 @@ module Earthquake
126
126
  end
127
127
  end
128
128
 
129
+ output :direct_message do |item|
130
+ next unless dm = item["direct_message"]
131
+ puts "[direct message]".c(:event) +
132
+ " #{dm["sender"]["screen_name"]} => #{dm["recipient"]["screen_name"]}: #{dm["text"]}"
133
+ end
134
+
129
135
  output :event do |item|
130
136
  next unless item["event"]
131
137
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: earthquake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.2
5
+ version: 0.7.4
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-06-15 00:00:00 +09:00
13
+ date: 2011-06-18 00:00:00 +09:00
14
14
  default_executable: earthquake
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency