diff --git a/README.md b/README.md index 570040a..eff7f18 100644 --- a/README.md +++ b/README.md @@ -374,6 +374,10 @@ TODO * deal proxy * spec +Screenshot +---------------------------- +![Screenshot](/earthquake.png) + Copyright ---- diff --git a/bin/earthquake b/bin/earthquake index 3656f9c..663bd78 100755 --- a/bin/earthquake +++ b/bin/earthquake @@ -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 diff --git a/earthquake.png b/earthquake.png new file mode 100644 index 0000000..50c67a7 Binary files /dev/null and b/earthquake.png differ diff --git a/lib/earthquake/commands.rb b/lib/earthquake/commands.rb index 36773b5..a827225 100644 --- a/lib/earthquake/commands.rb +++ b/lib/earthquake/commands.rb @@ -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, } diff --git a/lib/earthquake/core.rb b/lib/earthquake/core.rb index cc5dc03..f6f35a6 100644 --- a/lib/earthquake/core.rb +++ b/lib/earthquake/core.rb @@ -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: " ", diff --git a/lib/earthquake/twitter.rb b/lib/earthquake/twitter.rb index 25abbec..6c3b4f3 100644 --- a/lib/earthquake/twitter.rb +++ b/lib/earthquake/twitter.rb @@ -29,7 +29,7 @@ class ::TwitterOAuth::Client result end end - alias_method_chain m, :cache + Module#prepend m, :cache end end end