Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
e85947c7
Commit
e85947c7
authored
Jan 18, 2012
by
Holger Just
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into unstable
parents
a0a2776f
11b441f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Gemfile
Gemfile
+5
-3
repository.rb
app/models/repository.rb
+8
-0
environment.rb
config/environment.rb
+3
-0
No files found.
Gemfile
View file @
e85947c7
...
...
@@ -106,7 +106,9 @@ if File.readable?(gemfile_local)
end
# Load plugins' Gemfiles
Dir
.
glob
File
.
expand_path
(
"../vendor/plugins/*/Gemfile"
,
__FILE__
)
do
|
file
|
puts
"Loading
#{
file
}
..."
if
$DEBUG
# `ruby -d` or `bundle -v`
instance_eval
File
.
read
(
file
)
[
"plugins"
,
"chiliproject_plugins"
].
each
do
|
plugin_path
|
Dir
.
glob
File
.
expand_path
(
"../vendor/
#{
plugin_path
}
/*/Gemfile"
,
__FILE__
)
do
|
file
|
puts
"Loading
#{
file
}
..."
if
$DEBUG
# `ruby -d` or `bundle -v`
instance_eval
File
.
read
(
file
)
end
end
app/models/repository.rb
View file @
e85947c7
...
...
@@ -200,6 +200,14 @@ class Repository < ActiveRecord::Base
encoding
.
blank?
?
'UTF-8'
:
encoding
end
# Provide a log encoding even if the column was not created yet
# It's used by 20100714111653_build_initial_journals_for_acts_as_journalized
# for initial journal creaetion of the changesets while the colum is only
# created by 20110228000000_add_repositories_log_encoding
def
log_encoding
read_attribute
(
:log_encoding
)
end
# Fetches new changesets for all repositories of active projects
# Can be called periodically by an external script
# eg. ruby script/runner "Repository.fetch_changesets"
...
...
config/environment.rb
View file @
e85947c7
...
...
@@ -18,6 +18,9 @@
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# use RACK_ENV if we are running as a simple rack app
ENV
[
'RAILS_ENV'
]
||=
ENV
[
'RACK_ENV'
]
if
ENV
[
'RACK_ENV'
]
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION
=
'2.3.14'
unless
defined?
RAILS_GEM_VERSION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment