Skip to content

Commit 439cc94

Browse files
committed
Remove outdated platform advice
1 parent 8d88cb6 commit 439cc94

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

README.adoc

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,32 +1705,6 @@ Put gems used only for development or testing in the appropriate group in the Ge
17051705
Use only established gems in your projects.
17061706
If you're contemplating on including some little-known gem you should do a careful review of its source code first.
17071707

1708-
=== OS-specific `Gemfile.lock` [[os-specific-gemfile-locks]]
1709-
1710-
OS-specific gems will by default result in a constantly changing `Gemfile.lock` for projects with multiple developers using different operating systems.
1711-
Add all OS X specific gems to a `darwin` group in the Gemfile, and all Linux specific gems to a `linux` group:
1712-
1713-
[source,ruby]
1714-
----
1715-
# Gemfile
1716-
group :darwin do
1717-
gem 'rb-fsevent'
1718-
gem 'growl'
1719-
end
1720-
1721-
group :linux do
1722-
gem 'rb-inotify'
1723-
end
1724-
----
1725-
1726-
To require the appropriate gems in the right environment, add the following to `config/application.rb`:
1727-
1728-
[source,ruby]
1729-
----
1730-
platform = RUBY_PLATFORM.match(/(linux|darwin)/)[0].to_sym
1731-
Bundler.require(platform)
1732-
----
1733-
17341708
=== `Gemfile.lock` [[gemfile-lock]]
17351709

17361710
Do not remove the `Gemfile.lock` from version control.

0 commit comments

Comments
 (0)