0

Padrino 0.10 gem 安装了 activesupprt 3.0.9,它需要 ruby​​ >= 1.8.7。

我正在使用 Ruby 1.8.6 有人可以建议我哪个版本的 Padrino 可以在 Ruby 1.8.6 上正常工作吗?

我不想升级 Ruby 版本至少 5-6 个月。这是我当前的 gemfile

source :rubygems

# Server requirements
# gem 'thin' or mongrel

# Project requirements
gem 'rake'
gem 'rack-flash'

# Component requirements
#gem 'haml'
gem 'SystemTimer', :require => "system_timer"
gem 'mongoid'
gem 'bson_ext', :require => "mongo"
gem "state_machine"

# Test requirements
gem 'rspec', :group => "test"
gem 'rack-test', :group => "test", :require => "rack/test"
gem 'mongoid-rspec', :group => "test"

# Padrino
gem 'padrino', '0.10.0'
4

2 回答 2

0

v. 0.9.9 适用于 ruby​​ 1.8.6

  Installing rake (0.9.2)
  Installing SystemTimer (1.2.3) with native extensions
  Installing activesupport (2.3.5)
  Installing bson (1.0.9)
  Installing bson_ext (1.3.1) with native extensions
  Using bundler (1.0.7)
  Installing diff-lcs (1.1.3)
  Installing durran-validatable (2.0.1)
  Installing fuzzyhash (0.0.11)
  Installing i18n (0.6.0)
  Installing mongo (1.0.9)
  Installing will_paginate (2.3.16)
  Installing mongoid (1.9.0)
  Installing rack (1.3.1)
  Installing tilt (1.3.3)
  Installing sinatra (1.2.6)
  Installing thor (0.14.6)
  Installing usher (0.8.3)
  Installing padrino-core (0.9.9)
  Installing padrino-gen (0.9.9)
  Installing padrino-helpers (0.9.9)
  Installing padrino-admin (0.9.9)
  Installing tmail (1.2.7.1) with native extensions
  Installing padrino-mailer (0.9.9)
  Installing padrino (0.9.9)
  Installing rack-flash (0.1.2)
  Installing rack-test (0.6.0)
  Installing rspec-core (2.6.4)
  Installing rspec-expectations (2.6.0)
  Installing rspec-mocks (2.6.0)
  Installing rspec (2.6.0)
  Installing state_machine (1.0.2)
  Your bundle is complete! It was installed into ./vendor/bundle_gems

我需要设置 mongoid ~> 1.9.0 的版本并删除 mongoid-rspecs 因为它需要主动支持 3.0,但主动支持 3.0 需要 ruby​​ >= 1.8.7

于 2011-09-05T07:20:45.093 回答
0

v. 0.9.8应该与 ruby​​ 1.8.6 一起使用。

于 2011-08-29T10:55:49.790 回答