Last active
September 20, 2017 03:29
-
-
Save kaosf/6d43be9b737a8837b272 to your computer and use it in GitHub Desktop.
earthquakeをRuby 2.4.0でインストールして動かすためのGemfile on 2017-02-20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/earthquake の fork を修正してます
ちなみにちゃんと
vendor/bundle/ruby/2.3.0/bundler/gems/earthquake-6296939f9bc9/consumer.yml
の key:
と secret:
を設定しましょう.本家 earthquake をインストールすれば分かるようになってます.
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以上では上記エラーが発生するため.
Ruby 2.4.0で動かなくなってたのでactivesupportのバージョンを4系に留めないようにする.
あと 2.2.0 という記述がコメントに残っていたのを修正.
エラーは出なくなってる.ただし大量のDEPRECATION WARNINGが出る.
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://
に変更.
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
Ruby 2.3.1でも動かせるようにしてます on 2016-05-05