earthquake 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,7 +8,6 @@ gem 'awesome_print'
8
8
  gem 'launchy'
9
9
  gem 'oauth'
10
10
  gem 'twitter_oauth'
11
- gem 'ruby-growl'
12
11
 
13
12
  group :development do
14
13
  gem "rspec", "~> 2.3.0"
data/Gemfile.lock CHANGED
@@ -29,7 +29,6 @@ GEM
29
29
  rspec-expectations (2.3.0)
30
30
  diff-lcs (~> 1.1.2)
31
31
  rspec-mocks (2.3.0)
32
- ruby-growl (3.0)
33
32
  twitter-stream (0.1.12)
34
33
  eventmachine (>= 0.12.8)
35
34
  roauth (>= 0.0.2)
@@ -51,6 +50,5 @@ DEPENDENCIES
51
50
  notify
52
51
  oauth
53
52
  rspec (~> 2.3.0)
54
- ruby-growl
55
53
  twitter-stream
56
54
  twitter_oauth
data/README.md CHANGED
@@ -80,7 +80,7 @@ Commands
80
80
 
81
81
  And there are more commands!
82
82
 
83
- Customize
83
+ Configuration
84
84
  ----
85
85
 
86
86
  The config file is **~/.earthquake/config**.
@@ -91,6 +91,21 @@ The config file is **~/.earthquake/config**.
91
91
 
92
92
  The blue is excluded.
93
93
 
94
+ Desktop Notification
95
+ ----
96
+
97
+ To enable desktop notification, install whichever below:
98
+
99
+ * ruby-growl (gem install ruby-growl)
100
+ * growlnotify (http://growl.info/extras.php#growlnotify)
101
+ * notify-send (sudo aptitude install libnotify-bin)
102
+ * libnotify (https://github.com/splattael/libnotify)
103
+
104
+ Call Earthquake.notify for desktop notification.
105
+ You can try it by using the :eval command:
106
+
107
+ ⚡ :eval notify 'Hello World!'
108
+
94
109
  Plugin
95
110
  ----
96
111
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
data/earthquake.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{earthquake}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
@@ -79,7 +79,6 @@ Accordingly that, You should renew the access token if it is old.
79
79
  s.add_runtime_dependency(%q<launchy>, [">= 0"])
80
80
  s.add_runtime_dependency(%q<oauth>, [">= 0"])
81
81
  s.add_runtime_dependency(%q<twitter_oauth>, [">= 0"])
82
- s.add_runtime_dependency(%q<ruby-growl>, [">= 0"])
83
82
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
84
83
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
85
84
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -92,7 +91,6 @@ Accordingly that, You should renew the access token if it is old.
92
91
  s.add_dependency(%q<launchy>, [">= 0"])
93
92
  s.add_dependency(%q<oauth>, [">= 0"])
94
93
  s.add_dependency(%q<twitter_oauth>, [">= 0"])
95
- s.add_dependency(%q<ruby-growl>, [">= 0"])
96
94
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
97
95
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
98
96
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -106,7 +104,6 @@ Accordingly that, You should renew the access token if it is old.
106
104
  s.add_dependency(%q<launchy>, [">= 0"])
107
105
  s.add_dependency(%q<oauth>, [">= 0"])
108
106
  s.add_dependency(%q<twitter_oauth>, [">= 0"])
109
- s.add_dependency(%q<ruby-growl>, [">= 0"])
110
107
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
111
108
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
112
109
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -60,7 +60,6 @@ module Earthquake
60
60
  end
61
61
 
62
62
  def confirm(message, type = :y)
63
- message = message.c(36)
64
63
  case type
65
64
  when :y
66
65
  print "#{message} [Yn] "
@@ -90,6 +90,9 @@ module Earthquake
90
90
  text.gsub!(/(?:^#([^\s]+))|(?:\s+#([^\s]+))/) do |i|
91
91
  i.c(color_of($1 || $2))
92
92
  end
93
+ text.gsub!(URI.regexp(["http", "https"])) do |i|
94
+ i.c(4).c(36)
95
+ end
93
96
 
94
97
  if item["_highlights"]
95
98
  item["_highlights"].each do |h|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: earthquake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -101,20 +101,9 @@ dependencies:
101
101
  type: :runtime
102
102
  prerelease: false
103
103
  version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
105
- name: ruby-growl
106
- requirement: &id009 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: "0"
112
- type: :runtime
113
- prerelease: false
114
- version_requirements: *id009
115
104
  - !ruby/object:Gem::Dependency
116
105
  name: rspec
117
- requirement: &id010 !ruby/object:Gem::Requirement
106
+ requirement: &id009 !ruby/object:Gem::Requirement
118
107
  none: false
119
108
  requirements:
120
109
  - - ~>
@@ -122,10 +111,10 @@ dependencies:
122
111
  version: 2.3.0
123
112
  type: :development
124
113
  prerelease: false
125
- version_requirements: *id010
114
+ version_requirements: *id009
126
115
  - !ruby/object:Gem::Dependency
127
116
  name: bundler
128
- requirement: &id011 !ruby/object:Gem::Requirement
117
+ requirement: &id010 !ruby/object:Gem::Requirement
129
118
  none: false
130
119
  requirements:
131
120
  - - ~>
@@ -133,10 +122,10 @@ dependencies:
133
122
  version: 1.0.0
134
123
  type: :development
135
124
  prerelease: false
136
- version_requirements: *id011
125
+ version_requirements: *id010
137
126
  - !ruby/object:Gem::Dependency
138
127
  name: jeweler
139
- requirement: &id012 !ruby/object:Gem::Requirement
128
+ requirement: &id011 !ruby/object:Gem::Requirement
140
129
  none: false
141
130
  requirements:
142
131
  - - ~>
@@ -144,7 +133,7 @@ dependencies:
144
133
  version: 1.5.2
145
134
  type: :development
146
135
  prerelease: false
147
- version_requirements: *id012
136
+ version_requirements: *id011
148
137
  description: Twitter Client on Terminal with Twitter Streaming API.
149
138
  email: jugyo.org@gmail.com
150
139
  executables: