Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update earthquake #181

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ TODO
* deal proxy
* spec

Screenshot
----------------------------
![Screenshot](/earthquake.png)

Copyright
----

Expand Down
3 changes: 2 additions & 1 deletion bin/earthquake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ require 'pathname'
$:.unshift Pathname.new(__FILE__).realpath.join('../../lib') if $0 == __FILE__
require 'earthquake/option_parser'
require "earthquake/version"

require 'active_support'
require 'active_support/deprecation'
option_parser = Earthquake::OptionParser.new(ARGV.dup)
options = nil
begin
Expand Down
Binary file added earthquake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/earthquake/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def self._eval_as_ruby_string(text)
default_stream = {
method: "POST",
host: "userstream.twitter.com",
path: "/2/user.json",
path: "/1.1/user.json",
ssl: true,
}

Expand Down
2 changes: 1 addition & 1 deletion lib/earthquake/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def default_config
secure: true,
output_interval: 1,
history_size: 1000,
api: { :host => 'userstream.twitter.com', :path => '/2/user.json', :ssl => true },
api: { :host => 'userstream.twitter.com', :path => '/1.1/user.json', :ssl => true },
confirm_type: :y,
expand_url: false,
thread_indent: " ",
Expand Down
2 changes: 1 addition & 1 deletion lib/earthquake/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ::TwitterOAuth::Client
result
end
end
alias_method_chain m, :cache
Module#prepend m, :cache
end
end
end
Expand Down