Sha256: 7e0c203df78c2b0ed4ef05f21845676644341ef4bbc44cf88a50867507f710a4
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
require 'rubygems/dependency_installer' # # limit activesupport version if not on ruby 2.2 or higher # @see https://www.tiredpixel.com/2014/01/05/curses-conditional-ruby-gem-installation-within-a-gemspec/ # di = Gem::DependencyInstaller.new begin if RUBY_VERSION >= '2.2' di.install "activesupport", "~> 4.2.8" else di.install "activesupport", "< 5.0.0" end rescue => e warn "#{$0}: #{e}" exit! end # https://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using # create dummy rakefile to indicate success f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") f.write("task :default\n") f.close
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-2.1.0 | ext/mkrf_conf.rb |
chatterbot-2.0.5 | ext/mkrf_conf.rb |
chatterbot-2.0.4 | ext/mkrf_conf.rb |