earthquake 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -9
- data/README.md +3 -3
- data/VERSION +1 -1
- data/earthquake.gemspec +1 -1
- data/lib/earthquake.rb +16 -7
- metadata +1 -1
data/Gemfile
CHANGED
@@ -1,23 +1,17 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
5
2
|
|
6
|
-
gem 'twitter-stream'
|
3
|
+
gem 'twitter-stream'
|
7
4
|
gem 'notify'
|
8
5
|
gem 'i18n'
|
9
|
-
gem 'activesupport'
|
10
|
-
gem 'awesome_print'
|
6
|
+
gem 'activesupport'
|
7
|
+
gem 'awesome_print'
|
11
8
|
gem 'launchy'
|
12
9
|
gem 'oauth'
|
13
10
|
gem 'twitter_oauth'
|
14
11
|
gem 'termcolor'
|
15
12
|
|
16
|
-
# Add dependencies to develop your gem here.
|
17
|
-
# Include everything needed to run rake, tests, features, etc.
|
18
13
|
group :development do
|
19
14
|
gem "rspec", "~> 2.3.0"
|
20
15
|
gem "bundler", "~> 1.0.0"
|
21
16
|
gem "jeweler", "~> 1.5.2"
|
22
|
-
gem "rcov", ">= 0"
|
23
17
|
end
|
data/README.md
CHANGED
@@ -61,7 +61,7 @@ The blue is excluded.
|
|
61
61
|
|
62
62
|
### Defining your commands
|
63
63
|
|
64
|
-
A command named 'foo':
|
64
|
+
#### A command named 'foo':
|
65
65
|
|
66
66
|
Earthquake.init do
|
67
67
|
command :foo do
|
@@ -69,7 +69,7 @@ A command named 'foo':
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
Handle the command args:
|
72
|
+
#### Handle the command args:
|
73
73
|
|
74
74
|
Earthquake.init do
|
75
75
|
command :hi do |m|
|
@@ -79,7 +79,7 @@ Handle the command args:
|
|
79
79
|
|
80
80
|
The 'm' is a MatchData.
|
81
81
|
|
82
|
-
Using regexp:
|
82
|
+
#### Using regexp:
|
83
83
|
|
84
84
|
Earthquake.init do
|
85
85
|
# Usage: :add 10 20
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/earthquake.gemspec
CHANGED
data/lib/earthquake.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
%w(
|
2
|
+
json
|
3
|
+
thread
|
4
|
+
readline
|
5
|
+
active_support/core_ext
|
6
|
+
active_support/dependencies
|
7
|
+
twitter/json_stream
|
8
|
+
notify
|
9
|
+
ap
|
10
|
+
launchy
|
11
|
+
oauth
|
12
|
+
twitter_oauth
|
13
|
+
termcolor
|
14
|
+
).each { |lib| require lib }
|
8
15
|
|
9
16
|
%w(
|
10
17
|
ext
|
@@ -15,3 +22,5 @@ Thread.abort_on_exception = true
|
|
15
22
|
twitter
|
16
23
|
commands
|
17
24
|
).each { |name| require_dependency File.expand_path("../earthquake/#{name}", __FILE__) }
|
25
|
+
|
26
|
+
Thread.abort_on_exception = true
|