Skip to content

Instantly share code, notes, and snippets.

@repeatedly
Created September 7, 2017 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save repeatedly/0ad0da2f53f8edadb77a07303c97482a to your computer and use it in GitHub Desktop.
Save repeatedly/0ad0da2f53f8edadb77a07303c97482a to your computer and use it in GitHub Desktop.
rubygems 2.4.8と2.5.0以降の依存解決の違い

gem 2.4.8

  • with pre activesupport 4.2.8 installation
% gem i draper -v 1.4.0 --no-doc --explain
Gems to install:
  i18n-0.8.6
  thread_safe-0.3.6
  tzinfo-1.2.3
  minitest-5.10.3
  activesupport-4.2.8
  builder-3.2.3
  activemodel-4.2.8
  request_store-1.3.2
  rails-deprecated_sanitizer-1.0.3
  mini_portile2-2.2.0
  nokogiri-1.8.0
  rails-dom-testing-1.0.8
  loofah-2.0.3
  rails-html-sanitizer-1.0.3
  erubis-2.7.0
  actionview-4.2.8
  rack-1.6.8
  rack-test-0.6.3
  actionpack-4.2.8
  draper-1.4.0
  • without pre activesupport 4.2.8 installation
% gem i draper -v 1.4.0 --no-doc --explain
Gems to install:
  concurrent-ruby-1.0.5
  minitest-5.10.3
  thread_safe-0.3.6
  tzinfo-1.2.3
  i18n-0.8.6
  activesupport-5.1.3
  activemodel-5.1.3
  request_store-1.3.2
  mini_portile2-2.2.0
  nokogiri-1.8.0
  rails-dom-testing-2.0.3
  loofah-2.0.3
  rails-html-sanitizer-1.0.3
  erubi-1.6.1
  builder-3.2.3
  actionview-5.1.3
  rack-2.0.3
  rack-test-0.6.3
  actionpack-5.1.3
  draper-1.4.0

gem 2.6.13

  • with pre activesupport 4.2.8 installation
% gem i draper -v 1.4.0 --no-doc --explain
Gems to install:
  i18n-0.8.6
  thread_safe-0.3.6
  tzinfo-1.2.3
  minitest-5.10.3
  concurrent-ruby-1.0.5
  activesupport-5.1.3
  rack-2.0.3
  rack-test-0.6.3
  mini_portile2-2.2.0
  nokogiri-1.8.0
  loofah-2.0.3
  rails-html-sanitizer-1.0.3
  rails-dom-testing-2.0.3
  builder-3.2.3
  erubi-1.6.1
  actionview-5.1.3
  actionpack-5.1.3
  request_store-1.3.2
  activemodel-5.1.3
  draper-1.4.0
  • with pre activesupport 4.2.8 installation

Same with above.

To avoid the problem, need to install actionpack 4.2.8 / activemodel 4.2.8 together.

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