Mange / roadie-rails

Making HTML emails comfortable for the Rails rockstars
MIT License
363 stars 65 forks source link

symlink all shared test files #29

Closed afeld closed 9 years ago

afeld commented 9 years ago

This way, the app files can be changed across all Rails versions at once.

Just FYI, I found the matching files with fdupes, then replaced with this script:

def symlink(dest, source)
  FileUtils.rm_rf(source)
  FileUtils.ln_s(dest, source)
end

Dir.glob('rails_*').each do |path|
  %w(mailers views).each do |subdir|
    symlink("../../shared/all/app/#{subdir}", "#{path}/app/#{subdir}")
  end

  unless %w(rails_30 rails_40_no_pipeline).include?(path)
    symlink("../../shared/pipeline/app/assets", "#{path}/app/assets")
  end
end
coveralls commented 9 years ago

Coverage Status

Coverage decreased (-0.11%) when pulling bcdc7eb8473b1910824f0eb7cbc7c01214c5ac0c on afeld:symlinks into cf0b3dfd7919db1edacc1d301a009c2045ffbad5 on Mange:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling bcdc7eb8473b1910824f0eb7cbc7c01214c5ac0c on afeld:symlinks into cf0b3dfd7919db1edacc1d301a009c2045ffbad5 on Mange:master.

Mange commented 9 years ago

Thank you. Seems so obvious in hindsight. Good thing you noticed this! :smile: