earthquake 0.6.12 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -14
- data/VERSION +1 -1
- data/earthquake.gemspec +2 -16
- data/lib/earthquake.rb +3 -2
- data/lib/earthquake/core.rb +1 -0
- metadata +3 -7
data/Rakefile
CHANGED
@@ -23,20 +23,6 @@ Jeweler::Tasks.new do |gem|
|
|
23
23
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
24
|
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
25
25
|
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
|
-
gem.post_install_message = %{
|
27
|
-
The Twitter Client application info has been updated at 2011-03-20 15:00:00 UTC.
|
28
|
-
Accordingly, you should renew the access token if it is old.
|
29
|
-
|
30
|
-
1) In ~/.earthquake/config, remove these lines:
|
31
|
-
|
32
|
-
Earthquake.config[:token] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
33
|
-
Earthquake.config[:secret] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
34
|
-
|
35
|
-
2) Launch earthquake:
|
36
|
-
|
37
|
-
$ earthquake
|
38
|
-
|
39
|
-
}
|
40
26
|
gem.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
41
27
|
end
|
42
28
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.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.7.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-05-
|
12
|
+
s.date = %q{2011-05-11}
|
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}
|
@@ -44,20 +44,6 @@ Gem::Specification.new do |s|
|
|
44
44
|
]
|
45
45
|
s.homepage = %q{http://github.com/jugyo/earthquake}
|
46
46
|
s.licenses = ["MIT"]
|
47
|
-
s.post_install_message = %q{
|
48
|
-
The Twitter Client application info has been updated at 2011-03-20 15:00:00 UTC.
|
49
|
-
Accordingly, you should renew the access token if it is old.
|
50
|
-
|
51
|
-
1) In ~/.earthquake/config, remove these lines:
|
52
|
-
|
53
|
-
Earthquake.config[:token] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
54
|
-
Earthquake.config[:secret] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
55
|
-
|
56
|
-
2) Launch earthquake:
|
57
|
-
|
58
|
-
$ earthquake
|
59
|
-
|
60
|
-
}
|
61
47
|
s.require_paths = ["lib"]
|
62
48
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
63
49
|
s.rubygems_version = %q{1.6.2}
|
data/lib/earthquake.rb
CHANGED
@@ -13,6 +13,9 @@
|
|
13
13
|
twitter_oauth
|
14
14
|
).each { |lib| require lib }
|
15
15
|
|
16
|
+
Thread.abort_on_exception = true
|
17
|
+
Encoding.default_external = Encoding.find('UTF-8')
|
18
|
+
|
16
19
|
%w(
|
17
20
|
ext
|
18
21
|
core
|
@@ -24,5 +27,3 @@
|
|
24
27
|
commands
|
25
28
|
id_var
|
26
29
|
).each { |name| require_dependency File.expand_path("../earthquake/#{name}", __FILE__) }
|
27
|
-
|
28
|
-
Thread.abort_on_exception = true
|
data/lib/earthquake/core.rb
CHANGED
@@ -205,6 +205,7 @@ module Earthquake
|
|
205
205
|
args = {:title => 'earthquake'}.update(options)
|
206
206
|
title = args.delete(:title)
|
207
207
|
message = message.is_a?(String) ? message : message.inspect
|
208
|
+
# FIXME: Escaping should be done at Notify.notify
|
208
209
|
Notify.notify title, message.e, args
|
209
210
|
end
|
210
211
|
alias_method :n, :notify
|
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.7.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-05-
|
13
|
+
date: 2011-05-11 00:00:00 +09:00
|
14
14
|
default_executable: earthquake
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -181,11 +181,7 @@ has_rdoc: true
|
|
181
181
|
homepage: http://github.com/jugyo/earthquake
|
182
182
|
licenses:
|
183
183
|
- MIT
|
184
|
-
post_install_message:
|
185
|
-
The Twitter Client application info has been updated at 2011-03-20 15:00:00 UTC.\n\
|
186
|
-
Accordingly, you should renew the access token if it is old.\n\n\
|
187
|
-
1) In ~/.earthquake/config, remove these lines:\n\n Earthquake.config[:token] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\n Earthquake.config[:secret] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\n\n\
|
188
|
-
2) Launch earthquake:\n\n $ earthquake\n\n"
|
184
|
+
post_install_message:
|
189
185
|
rdoc_options: []
|
190
186
|
|
191
187
|
require_paths:
|