earthquake 0.7.5 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/earthquake.gemspec +2 -2
- data/lib/earthquake/commands.rb +5 -1
- data/lib/earthquake/get_access_token.rb +1 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
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.
|
8
|
+
s.version = "0.8.0"
|
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-
|
12
|
+
s.date = %q{2011-08-31}
|
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}
|
data/lib/earthquake/commands.rb
CHANGED
@@ -115,7 +115,7 @@ Earthquake.init do
|
|
115
115
|
|
116
116
|
command %r|^:retweet\s+(\d+)\s+(.*)$|, :as => :retweet do |m|
|
117
117
|
target = twitter.status(m[1])
|
118
|
-
text = "#{m[2]} #{config[:quotetweet] ? "QT" : "RT"} @#{target["user"]["screen_name"]}: #{target["text"]}
|
118
|
+
text = "#{m[2]} #{config[:quotetweet] ? "QT" : "RT"} @#{target["user"]["screen_name"]}: #{target["text"]}"
|
119
119
|
if confirm("unofficial retweet '#{text}'")
|
120
120
|
async_e { twitter.update(text) }
|
121
121
|
end
|
@@ -259,4 +259,8 @@ Earthquake.init do
|
|
259
259
|
command %r|^:alias\s+?(:\w+)\s+(.+)|, :as => :alias do |m|
|
260
260
|
alias_command m[1], m[2]
|
261
261
|
end
|
262
|
+
|
263
|
+
command :reauthorize do
|
264
|
+
get_access_token
|
265
|
+
end
|
262
266
|
end
|
@@ -21,6 +21,7 @@ module Earthquake
|
|
21
21
|
|
22
22
|
puts "Saving 'token' and 'secret' to '#{config[:file]}'"
|
23
23
|
File.open(config[:file], 'a') do |f|
|
24
|
+
f << "\n"
|
24
25
|
f << "Earthquake.config[:token] = '#{config[:token]}'"
|
25
26
|
f << "\n"
|
26
27
|
f << "Earthquake.config[:secret] = '#{config[:secret]}'"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: earthquake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.8.0
|
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-
|
13
|
+
date: 2011-08-31 00:00:00 +09:00
|
14
14
|
default_executable: earthquake
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|