
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
This gem adapts the Rails 3 routing code to generate Rails 2.3 routes on the back-end, so that you can upgrade your Rails 2 routes to Rails 3 format before your app is completely on Rails 3.
Why? If you have a Rails 2 application of significant size, and a whole group of programmers actively developing it, then "stopping the world" to upgrade to Rails 3 isn't really an option. Doing it on a dedicated branch isn't really any better, you run into the same issues with diverging codebases. This gem is one component of the infrastructure necessary to upgrade your app "live" one piece at a time.
This has only been tested with fairly basic routes. Don't try anything too fancy, its behavior will diverge from Rails 3 routing behavior in some more advanced cases. Some known unsupported functionality:
Add this line to your application's Gemfile:
gem 'fake_rails3_routes'
If your Rails 2.3 application doesn't yet use a Gemfile, do that upgrade first.
Then use the rails_upgrade gem (https://github.com/rails/rails_upgrade) to upgrade your routes file to Rails 3 format. Replace the first line with:
FakeRails3Routes.draw do
This gem includes a backport of the concerns
routing concept from
Rails 4. If you want to use concerns in Rails 3, just include the
routing_concerns
(https://github.com/rails/routing_concerns) gem in your Gemfile.
The vast majority of this gem is extracted directly from Rails 3, licensed under the MIT license. The modifications are released under this same license.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that fake_rails3_routes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.