FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
documentcloud/config/preinitializer.rb at gm_processing · documentcloud/documentcloud · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
documentcloud
/
documentcloud
Public archive
Notifications
You must be signed in to change notification settings
Fork
157
Star
425
Code
Issues
194
Pull requests
16
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
documentcloud
/
config
/
preinitializer.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (18 loc) · 606 Bytes
Breadcrumbs
documentcloud
/
config
/
preinitializer.rb
Copy path
File metadata and controls
21 lines (18 loc) · 606 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
begin
require
'rubygems'
require
'bundler'
rescue
LoadError
raise
"Could not load the bundler gem. Install it with `gem install bundler`."
end
if
Gem
::
Version
.
new
(
Bundler
::
VERSION
)
<=
Gem
::
Version
.
new
(
"0.9.24"
)
raise
RuntimeError
,
"Your bundler version is too old for Rails 2.3.
\n
"
+
"Run `gem install bundler` to upgrade."
end
begin
# Set up load paths for all bundled gems
ENV
[
"BUNDLE_GEMFILE"
]
=
File
.
expand_path
(
"../../Gemfile"
,
__FILE__
)
Bundler
.
setup
rescue
Bundler
::
GemNotFound
raise
RuntimeError
,
"Bundler couldn't find some gems.
\n
"
+
"Did you run `bundle install`?"
end
Back
|
FazBrowse Home
|
New Git URL