Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active September 20, 2017 03:29
Show Gist options
  • Save kaosf/6d43be9b737a8837b272 to your computer and use it in GitHub Desktop.
Save kaosf/6d43be9b737a8837b272 to your computer and use it in GitHub Desktop.
earthquakeをRuby 2.4.0でインストールして動かすためのGemfile on 2017-02-20
source 'https://rubygems.org'
gem 'earthquake',
git: 'https://github.com/kaosf/earthquake',
branch: 'master'
# SHA1: b845de4c363aa3df7820f049d36aae210969d1d2
gem 'twitter-stream',
git: 'https://github.com/kaosf/twitter-stream',
branch: 'master'
# SHA1: 45ce963d56e6e383f0e001522a817e7538438f71
gem 'eventmachine', '1.0.4'
# Copy "consumer.yml" from original earthquake library directory.
# Paste it to "vendor/bundle/ruby/2.4.0/bundler/gems/earthquake-b637b10d2905/consumer.yml".
# Run "bundle install --binstubs .bundle/bin --path vendor/bundle"
# or "bundle install --path vendor/bundle" and launch earthquake by
# "bundle exec earthquake"
@kaosf
Copy link
Author

kaosf commented May 5, 2016

Ruby 2.3.1でも動かせるようにしてます on 2016-05-05

@kaosf
Copy link
Author

kaosf commented May 5, 2016

動かせるようにしてるというか動くのを確認してます&& kaosf/earthquake の fork を修正してます

@kaosf
Copy link
Author

kaosf commented May 5, 2016

ちなみにちゃんと

vendor/bundle/ruby/2.3.0/bundler/gems/earthquake-6296939f9bc9/consumer.yml

key:secret: を設定しましょう.本家 earthquake をインストールすれば分かるようになってます.

@kaosf
Copy link
Author

kaosf commented Oct 6, 2016

gem 'activesupport', '~> 4.2.7'
# To fix the following error on activesupport version 5:
#
# /some/where/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/deprecation/proxy_wrappers.rb:124:in `initialize': undefined method `instance' for ActiveSupport::Deprecation:Class (NoMethodError)

を追加.activesupport 5以上では上記エラーが発生するため.

@kaosf
Copy link
Author

kaosf commented Jan 13, 2017

Ruby 2.4.0で動かなくなってたのでactivesupportのバージョンを4系に留めないようにする.

あと 2.2.0 という記述がコメントに残っていたのを修正.

エラーは出なくなってる.ただし大量のDEPRECATION WARNINGが出る.

@kaosf
Copy link
Author

kaosf commented Feb 20, 2017

The git source `git://github.com/kaosf/earthquake` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/kaosf/twitter-stream` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.

という警告を解消するために git://https:// に変更.

@kaosf
Copy link
Author

kaosf commented Mar 15, 2017

activesupport 5.0.2に更新することでDEPRECATION WARNINGは出なくなる

bundle update activesupport

Gemfile.lock のactivesupportのバージョンが更新されていることを確認

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment