Sha256: 356ae4fd1cec90c155705dfdd0164d7310997d6fb7048da1dd28ba76f6845ca7

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

Just notes for me.

rails plugin new rows --full

mv rows rows_controller

cd rows_controller
med NOTES

cd test/dummy
rails g scaffold order name:string
rails g scaffold order::items price:string
rake db:drop db:create db:migrate db:seed
bin/setup

---------
gem install appraisal
appraisal generate --travis
appraisal install
appraisal rake test
appraisal rails-4.2.4 rake test

gem install wwtd
wwtd --local


-----------------------------------------------------
ruby -v; rails -v

----------
git clone rows3 rows4

cd rows4
cd test/dummy
rake db:drop db:create db:migrate
rake

cd rows4
rake

----------
git mv test/dummy test/dummy3
med Rakefile
med test/test_helper.rb
rake


--------
Problem?

Rails used 3.2.22 4.2.0 4.2.4

appraisal in GemFile a gem 'rails', "3.2.22" working fine with all rails
appraisal in GemFile a gem 'rails', "~> 4.2" error:
 in Rakefile
  before load 'rails/tasks/engine.rake' Rails 3.2.22
  after  load 'rails/tasks/engine.rake' Rails 4.2.4

ENV['BUNDLE_GEMFILE'] may help?

==> ./test/dummy3/config/boot.rb:
  ENV['BUNDLE_GEMFILE'] ||= gemfile       # notice ||

wwtd --local OK

Appraisal
---------
https://github.com/thoughtbot/appraisal

gem "appraisal"

appraise 'rails-5.1' do
  gem 'rails', '~> 5.1'
end

rvm:
  - 2.2.3
  - 2.4.1


$ gem install appraisal
$ appraisal install
$ appraisal generate --travis
$ appraisal rails-4.2.0 rake test
$ appraisal rails-4.2.4 rake test
$ appraisal rails-5.1 rails test
$ appraisal rake test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rows_controller-2.1.3 NOTES
rows_controller-2.1.2 NOTES