[issue #64] Merge branch 'master' into 64-project_wiki
Conflicts: Gemfile.lock config/locales/en.yml db/schema.rb
This commit is contained in:
commit
24124766f4
|
@ -12,6 +12,5 @@ public/assets/*
|
||||||
config/initializers/local.rb
|
config/initializers/local.rb
|
||||||
public/system/*
|
public/system/*
|
||||||
public/downloads/*
|
public/downloads/*
|
||||||
.rvmrc
|
|
||||||
*.swp
|
*.swp
|
||||||
*.tmproj
|
*.tmproj
|
||||||
|
|
4
Gemfile
4
Gemfile
|
@ -36,7 +36,7 @@ gem "gollum", "1.3.1"
|
||||||
gem "redcarpet", "1.17.2"
|
gem "redcarpet", "1.17.2"
|
||||||
gem 'creole'
|
gem 'creole'
|
||||||
gem 'rdiscount'
|
gem 'rdiscount'
|
||||||
gem 'org-ruby'
|
#gem 'org-ruby'
|
||||||
gem 'RedCloth'
|
gem 'RedCloth'
|
||||||
gem 'wikicloth'
|
gem 'wikicloth'
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ group :development do
|
||||||
gem 'ruby_parser'
|
gem 'ruby_parser'
|
||||||
|
|
||||||
# debug
|
# debug
|
||||||
gem 'ruby-debug'
|
# gem 'ruby-debug19', :require => 'ruby-debug', :platforms => :mri_19
|
||||||
# gem 'looksee'
|
# gem 'looksee'
|
||||||
# gem 'awesome_print'
|
# gem 'awesome_print'
|
||||||
# gem 'wirble'
|
# gem 'wirble'
|
||||||
|
|
16
Gemfile.lock
16
Gemfile.lock
|
@ -63,7 +63,6 @@ GEM
|
||||||
capistrano_colors (0.5.5)
|
capistrano_colors (0.5.5)
|
||||||
chronic (0.6.6)
|
chronic (0.6.6)
|
||||||
cocaine (0.2.1)
|
cocaine (0.2.1)
|
||||||
columnize (0.3.5)
|
|
||||||
creole (0.4.2)
|
creole (0.4.2)
|
||||||
daemons (1.1.4)
|
daemons (1.1.4)
|
||||||
delayed_job (2.1.4)
|
delayed_job (2.1.4)
|
||||||
|
@ -110,8 +109,6 @@ GEM
|
||||||
yui-compressor (>= 0.9.3)
|
yui-compressor (>= 0.9.3)
|
||||||
json (1.6.3)
|
json (1.6.3)
|
||||||
kgio (2.6.0)
|
kgio (2.6.0)
|
||||||
linecache (0.46)
|
|
||||||
rbx-require-relative (> 0.0.4)
|
|
||||||
mail (2.2.19)
|
mail (2.2.19)
|
||||||
activesupport (>= 2.3.6)
|
activesupport (>= 2.3.6)
|
||||||
i18n (>= 0.4.0)
|
i18n (>= 0.4.0)
|
||||||
|
@ -136,8 +133,6 @@ GEM
|
||||||
omniauth-openid (1.0.1)
|
omniauth-openid (1.0.1)
|
||||||
omniauth (~> 1.0)
|
omniauth (~> 1.0)
|
||||||
rack-openid (~> 1.3.1)
|
rack-openid (~> 1.3.1)
|
||||||
org-ruby (0.6.0)
|
|
||||||
rubypants (>= 0.2.0)
|
|
||||||
orm_adapter (0.0.5)
|
orm_adapter (0.0.5)
|
||||||
paperclip (2.5.0)
|
paperclip (2.5.0)
|
||||||
activerecord (>= 2.3.0)
|
activerecord (>= 2.3.0)
|
||||||
|
@ -169,14 +164,11 @@ GEM
|
||||||
rails3-jquery-autocomplete (1.0.4)
|
rails3-jquery-autocomplete (1.0.4)
|
||||||
rails (~> 3.0)
|
rails (~> 3.0)
|
||||||
railties (3.0.11)
|
railties (3.0.11)
|
||||||
actionpack (= 3.0.11)
|
|
||||||
activesupport (= 3.0.11)
|
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
rdoc (~> 3.4)
|
rdoc (~> 3.4)
|
||||||
thor (~> 0.14.4)
|
thor (~> 0.14.4)
|
||||||
raindrops (0.8.0)
|
raindrops (0.8.0)
|
||||||
rake (0.9.2.2)
|
rake (0.9.2.2)
|
||||||
rbx-require-relative (0.0.5)
|
|
||||||
rdiscount (1.6.8)
|
rdiscount (1.6.8)
|
||||||
rdoc (3.11)
|
rdoc (3.11)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
|
@ -195,15 +187,9 @@ GEM
|
||||||
activesupport (~> 3.0)
|
activesupport (~> 3.0)
|
||||||
railties (~> 3.0)
|
railties (~> 3.0)
|
||||||
rspec (~> 2.7.0)
|
rspec (~> 2.7.0)
|
||||||
ruby-debug (0.10.4)
|
|
||||||
columnize (>= 0.1)
|
|
||||||
ruby-debug-base (~> 0.10.4.0)
|
|
||||||
ruby-debug-base (0.10.4)
|
|
||||||
linecache (>= 0.3)
|
|
||||||
ruby-openid (2.1.8)
|
ruby-openid (2.1.8)
|
||||||
ruby_parser (2.3.1)
|
ruby_parser (2.3.1)
|
||||||
sexp_processor (~> 3.0)
|
sexp_processor (~> 3.0)
|
||||||
rubypants (0.2.0)
|
|
||||||
russian (0.6.0)
|
russian (0.6.0)
|
||||||
i18n (>= 0.5.0)
|
i18n (>= 0.5.0)
|
||||||
sanitize (2.0.3)
|
sanitize (2.0.3)
|
||||||
|
@ -269,7 +255,6 @@ DEPENDENCIES
|
||||||
newrelic_rpm
|
newrelic_rpm
|
||||||
omniauth (~> 1.0.1)
|
omniauth (~> 1.0.1)
|
||||||
omniauth-openid (~> 1.0.1)
|
omniauth-openid (~> 1.0.1)
|
||||||
org-ruby
|
|
||||||
paperclip (~> 2.5)
|
paperclip (~> 2.5)
|
||||||
pg (~> 0.11.0)
|
pg (~> 0.11.0)
|
||||||
rails (= 3.0.11)
|
rails (= 3.0.11)
|
||||||
|
@ -280,7 +265,6 @@ DEPENDENCIES
|
||||||
redcarpet (= 1.17.2)
|
redcarpet (= 1.17.2)
|
||||||
rr
|
rr
|
||||||
rspec-rails (~> 2.7.0)
|
rspec-rails (~> 2.7.0)
|
||||||
ruby-debug
|
|
||||||
ruby_parser
|
ruby_parser
|
||||||
russian
|
russian
|
||||||
schema_plus (~> 0.2.1)
|
schema_plus (~> 0.2.1)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class AutoBuildListsController < ApplicationController
|
class AutoBuildListsController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => :auto_build
|
before_filter :authenticate_user!, :except => :auto_build
|
||||||
before_filter :find_auto_build_list, :only => :destroy
|
before_filter :find_auto_build_list, :only => :destroy
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class BuildListsController < ApplicationController
|
class BuildListsController < ApplicationController
|
||||||
CALLBACK_ACTIONS = [:publish_build, :status_build, :pre_build, :post_build, :circle_build, :new_bbdt]
|
CALLBACK_ACTIONS = [:publish_build, :status_build, :pre_build, :post_build, :circle_build, :new_bbdt]
|
||||||
NESTED_ACTIONS = [:index, :new, :create]
|
NESTED_ACTIONS = [:index, :new, :create]
|
||||||
|
@ -39,7 +40,7 @@ class BuildListsController < ApplicationController
|
||||||
Arch.where(:id => params[:arches]).each do |arch|
|
Arch.where(:id => params[:arches]).each do |arch|
|
||||||
Platform.main.where(:id => params[:bpls]).each do |bpl|
|
Platform.main.where(:id => params[:bpls]).each do |bpl|
|
||||||
@build_list = @project.build_lists.build(params[:build_list])
|
@build_list = @project.build_lists.build(params[:build_list])
|
||||||
@build_list.commit_hash = @project.git_repository.commits(@build_list.project_version.match(/(.+)_latest$/).to_a.last || @build_list.project_version).first.id
|
@build_list.commit_hash = @project.git_repository.commits(@build_list.project_version.match(/^latest_(.+)/).to_a.last || @build_list.project_version).first.id
|
||||||
@build_list.bpl = bpl; @build_list.arch = arch; @build_list.user = current_user
|
@build_list.bpl = bpl; @build_list.arch = arch; @build_list.user = current_user
|
||||||
flash_options = {:project_version => @build_list.project_version, :arch => arch.name, :bpl => bpl.name, :pl => @build_list.pl}
|
flash_options = {:project_version => @build_list.project_version, :arch => arch.name, :bpl => bpl.name, :pl => @build_list.pl}
|
||||||
if @build_list.save
|
if @build_list.save
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class CategoriesController < ApplicationController
|
class CategoriesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_category, :only => [:show, :edit, :update, :destroy]
|
before_filter :find_category, :only => [:show, :edit, :update, :destroy]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class CollaboratorsController < ApplicationController
|
class CollaboratorsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class CommentsController < ApplicationController
|
class CommentsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :set_commentable, :only => [:index, :edit, :create, :update, :destroy]
|
before_filter :set_commentable, :only => [:index, :edit, :create, :update, :destroy]
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ContainersController < ApplicationController
|
class ContainersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class DownloadsController < ApplicationController
|
class DownloadsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
class EventLogsController < ApplicationController
|
class EventLogsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::BaseController < ApplicationController
|
class Git::BaseController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
@ -39,4 +40,4 @@ class Git::BaseController < ApplicationController
|
||||||
def set_current_branch
|
def set_current_branch
|
||||||
@current_branch = @branches.select{|b| b.name == @treeish }.first
|
@current_branch = @branches.select{|b| b.name == @treeish }.first
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::BlobsController < Git::BaseController
|
class Git::BlobsController < Git::BaseController
|
||||||
before_filter :set_path
|
before_filter :set_path
|
||||||
before_filter :set_commit_hash
|
before_filter :set_commit_hash
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::CommitsController < Git::BaseController
|
class Git::CommitsController < Git::BaseController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::RepositoriesController < Git::BaseController
|
class Git::RepositoriesController < Git::BaseController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@ -7,4 +8,4 @@ class Git::RepositoriesController < Git::BaseController
|
||||||
render :template => "git/repositories/empty" unless @tree
|
render :template => "git/repositories/empty" unless @tree
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::TreesController < Git::BaseController
|
class Git::TreesController < Git::BaseController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@ -13,4 +14,4 @@ class Git::TreesController < Git::BaseController
|
||||||
|
|
||||||
render :template => "git/repositories/show"
|
render :template => "git/repositories/show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
class GroupsController < ApplicationController
|
class GroupsController < ApplicationController
|
||||||
is_related_controller!
|
is_related_controller!
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class IssuesController < ApplicationController
|
class IssuesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_project
|
before_filter :find_project
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class MembersController < ApplicationController
|
class MembersController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
is_related_controller!
|
is_related_controller!
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class PersonalRepositoriesController < ApplicationController
|
class PersonalRepositoriesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_repository#, :only => [:show, :destroy, :add_project, :remove_project, :make_private, :settings]
|
before_filter :find_repository#, :only => [:show, :destroy, :add_project, :remove_project, :make_private, :settings]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
class PlatformsController < ApplicationController
|
class PlatformsController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => :easy_urpmi
|
before_filter :authenticate_user!, :except => :easy_urpmi
|
||||||
before_filter :find_platform, :only => [:freeze, :unfreeze, :clone, :edit, :destroy]
|
before_filter :find_platform, :only => [:freeze, :unfreeze, :clone, :edit, :destroy]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class PrivateUsersController < ApplicationController
|
class PrivateUsersController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_platform_and_private_users
|
before_filter :find_platform_and_private_users
|
||||||
|
@ -13,7 +14,7 @@ class PrivateUsersController < ApplicationController
|
||||||
|
|
||||||
@pair = PrivateUser.generate_pair(params[:platform_id], current_user.id)
|
@pair = PrivateUser.generate_pair(params[:platform_id], current_user.id)
|
||||||
@urpmi_list = @platform.urpmi_list(request.host, @pair)
|
@urpmi_list = @platform.urpmi_list(request.host, @pair)
|
||||||
redirect_to platform_private_users_path(params[:platform_id]), :notice => "Логин: #{@pair[:login]} Пароль: #{@pair[:pass]}"
|
redirect_to platform_private_users_path(params[:platform_id]), :notice => I18n.t('flash.private_users', :login => @pair[:login], :password => @pair[:pass])
|
||||||
end
|
end
|
||||||
|
|
||||||
#def destroy
|
#def destroy
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class PrivatesController < ApplicationController
|
class PrivatesController < ApplicationController
|
||||||
require 'digest/sha2'
|
require 'digest/sha2'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProductBuildListsController < ApplicationController
|
class ProductBuildListsController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => [:status_build]
|
before_filter :authenticate_user!, :except => [:status_build]
|
||||||
load_and_authorize_resource :platform, :only => [:create]
|
load_and_authorize_resource :platform, :only => [:create]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProductsController < ApplicationController
|
class ProductsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_product, :only => [:show, :edit, :update, :destroy]
|
before_filter :find_product, :only => [:show, :edit, :update, :destroy]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProjectsController < ApplicationController
|
class ProjectsController < ApplicationController
|
||||||
is_related_controller!
|
is_related_controller!
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class RepositoriesController < ApplicationController
|
class RepositoriesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_repository, :except => [:index, :new, :create]
|
before_filter :find_repository, :except => [:index, :new, :create]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class RpcController < ApplicationController
|
class RpcController < ApplicationController
|
||||||
exposes_xmlrpc_methods
|
exposes_xmlrpc_methods
|
||||||
|
|
||||||
|
@ -11,30 +12,30 @@ class RpcController < ApplicationController
|
||||||
# client.call("project_versions", 1)
|
# client.call("project_versions", 1)
|
||||||
|
|
||||||
def platforms
|
def platforms
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :message => 'список платформ')
|
ActiveSupport::Notifications.instrument "event_log.observer", :message => I18n.t('event_log.notices.platforms_list')
|
||||||
Platform.select('name').where("platform_type = ?", 'main').map(&:name)
|
Platform.select('name').where("platform_type = ?", 'main').map(&:name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_projects
|
def user_projects
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :message => 'список пользовательских проектов')
|
ActiveSupport::Notifications.instrument "event_log.observer", :message => I18n.t('event_log.notices.users_list')
|
||||||
current_user.projects.map{|p| { :id => p.id, :name => p.name } }
|
current_user.projects.map{|p| { :id => p.id, :name => p.name } }
|
||||||
end
|
end
|
||||||
|
|
||||||
def project_versions id
|
def project_versions id
|
||||||
p = Project.find_by_id(id)
|
p = Project.find_by_id(id)
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :object => p, :message => "список версий")
|
ActiveSupport::Notifications.instrument "event_log.observer", :object => p, :message => I18n.t('event_log.notices.versions_list')
|
||||||
p.project_versions.collect {|tag| tag.name.gsub(/^\w+\./, "")} rescue 'not found'
|
p.tags.map(&:name) rescue 'not found'
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_status id
|
def build_status id
|
||||||
bl = BuildList.find_by_id(id)
|
bl = BuildList.find_by_id(id)
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :object => bl, :message => 'статус сборки')
|
ActiveSupport::Notifications.instrument "event_log.observer", :object => bl, :message => I18n.t('event_log.notices.status')
|
||||||
bl.try(:status) || 'not found'
|
bl.try(:status) || 'not found'
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_packet project_id, repo_id
|
def build_packet project_id, repo_id
|
||||||
# p = Project.find_by_id(project_id); r = Repository.find_by_id(repo_id)
|
# p = Project.find_by_id(project_id); r = Repository.find_by_id(repo_id)
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :message => 'сборка пакета')
|
ActiveSupport::Notifications.instrument "event_log.observer", :message => I18n.t('event_log.notices.project_build')
|
||||||
'unknown' # TODO: build packet
|
'unknown' # TODO: build packet
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Settings::NotifiersController < ApplicationController
|
class Settings::NotifiersController < ApplicationController
|
||||||
layout "sessions"
|
layout "sessions"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class SubscribesController < ApplicationController
|
class SubscribesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||||
def open_id
|
def open_id
|
||||||
# raise env['omniauth.auth'].inspect
|
# raise env['omniauth.auth'].inspect
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
class UsersController < ApplicationController
|
class UsersController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_user, :only => [:show, :edit, :update, :destroy]
|
before_filter :find_user, :only => [:show, :edit, :update, :destroy]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
def choose_title
|
def choose_title
|
||||||
title = if ['categories', 'personal_repositories', 'downloads'].include?(controller.controller_name)
|
title = if ['categories', 'personal_repositories', 'downloads'].include?(controller.controller_name)
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module CommentsHelper
|
module CommentsHelper
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module CommitHelper
|
module CommitHelper
|
||||||
|
|
||||||
def render_commit_stats(stats)
|
def render_commit_stats(stats)
|
||||||
|
@ -36,4 +37,4 @@ module CommitHelper
|
||||||
truncate(message, :length => 42, :omission => "...")
|
truncate(message, :length => 42, :omission => "...")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module DiffHelper
|
module DiffHelper
|
||||||
|
|
||||||
def render_diff(diff)
|
def render_diff(diff)
|
||||||
|
@ -14,4 +15,4 @@ module DiffHelper
|
||||||
res.html_safe
|
res.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module GitHelper
|
module GitHelper
|
||||||
|
|
||||||
def render_path
|
def render_path
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module IssuesHelper
|
module IssuesHelper
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module PlatformsHelper
|
module PlatformsHelper
|
||||||
def repository_name_postfix(platform)
|
def repository_name_postfix(platform)
|
||||||
return "" unless platform
|
return "" unless platform
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module ProjectsHelper
|
module ProjectsHelper
|
||||||
def git_repo_url(name)
|
def git_repo_url(name)
|
||||||
if current_user
|
if current_user
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module Settings::NotifiersHelper
|
module Settings::NotifiersHelper
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module SubscribesHelper
|
module SubscribesHelper
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# coding: UTF-8
|
# -*- encoding : utf-8 -*-
|
||||||
|
|
||||||
class UserMailer < ActionMailer::Base
|
class UserMailer < ActionMailer::Base
|
||||||
default :from => APP_CONFIG['do-not-reply-email']
|
default :from => APP_CONFIG['do-not-reply-email']
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# If rules goes one by one CanCan joins them by 'OR' sql operator
|
# If rules goes one by one CanCan joins them by 'OR' sql operator
|
||||||
# If rule has multiple conditions CanCan joins them by 'AND' sql operator
|
# If rule has multiple conditions CanCan joins them by 'AND' sql operator
|
||||||
# WARNING:
|
# WARNING:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Arch < ActiveRecord::Base
|
class Arch < ActiveRecord::Base
|
||||||
has_many :build_lists, :dependent => :destroy
|
has_many :build_lists, :dependent => :destroy
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Authentication < ActiveRecord::Base
|
class Authentication < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class AutoBuildList < ActiveRecord::Base
|
class AutoBuildList < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :arch
|
belongs_to :arch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class BuildList < ActiveRecord::Base
|
class BuildList < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :arch
|
belongs_to :arch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class BuildList::Filter
|
class BuildList::Filter
|
||||||
def initialize(project, options = {})
|
def initialize(project, options = {})
|
||||||
@project = project
|
@project = project
|
||||||
|
@ -73,4 +74,4 @@ class BuildList::Filter
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class BuildList::Item < ActiveRecord::Base
|
class BuildList::Item < ActiveRecord::Base
|
||||||
|
|
||||||
belongs_to :build_list
|
belongs_to :build_list
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Category < ActiveRecord::Base
|
class Category < ActiveRecord::Base
|
||||||
has_many :projects, :dependent => :nullify
|
has_many :projects, :dependent => :nullify
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Comment < ActiveRecord::Base
|
class Comment < ActiveRecord::Base
|
||||||
belongs_to :commentable, :polymorphic => true
|
belongs_to :commentable, :polymorphic => true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Container < ActiveRecord::Base
|
class Container < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id'
|
belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Download < ActiveRecord::Base
|
class Download < ActiveRecord::Base
|
||||||
PREV_LOG_FILE = "#{ APP_CONFIG['nginx_log'] }.0"
|
PREV_LOG_FILE = "#{ APP_CONFIG['nginx_log'] }.0"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class EventLog < ActiveRecord::Base
|
class EventLog < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
belongs_to :object, :polymorphic => true
|
belongs_to :object, :polymorphic => true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class EventLogObserver < ActiveRecord::Observer
|
class EventLogObserver < ActiveRecord::Observer
|
||||||
observe :user, :private_user, :platform, :repository, :project, :product, :build_list, :auto_build_list, :product_build_list
|
observe :user, :private_user, :platform, :repository, :project, :product, :build_list, :auto_build_list, :product_build_list
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Git::Repository
|
class Git::Repository
|
||||||
delegate :commits, :commit, :tree, :tags, :heads, :commit_count, :log, :branches, :to => :repo
|
delegate :commits, :commit, :tree, :tags, :heads, :commit_count, :log, :branches, :to => :repo
|
||||||
|
|
||||||
|
@ -37,4 +38,4 @@ class Git::Repository
|
||||||
[commits(treeish, options[:per_page], skip), options[:page], last_page]
|
[commits(treeish, options[:per_page], skip), options[:page], last_page]
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Group < ActiveRecord::Base
|
class Group < ActiveRecord::Base
|
||||||
belongs_to :owner, :class_name => 'User'
|
belongs_to :owner, :class_name => 'User'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Issue < ActiveRecord::Base
|
class Issue < ActiveRecord::Base
|
||||||
STATUSES = ['open', 'closed']
|
STATUSES = ['open', 'closed']
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
#require 'lib/build_server.rb'
|
#require 'lib/build_server.rb'
|
||||||
class Platform < ActiveRecord::Base
|
class Platform < ActiveRecord::Base
|
||||||
VISIBILITIES = ['open', 'hidden']
|
VISIBILITIES = ['open', 'hidden']
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class PrivateUser < ActiveRecord::Base
|
class PrivateUser < ActiveRecord::Base
|
||||||
require 'digest/sha2'
|
require 'digest/sha2'
|
||||||
require 'active_support/secure_random'
|
require 'active_support/secure_random'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Product < ActiveRecord::Base
|
class Product < ActiveRecord::Base
|
||||||
ATTRS_TO_CLONE = [ 'build_path', 'build_script', 'counter', 'ks', 'menu', 'tar', 'use_cron', 'cron_tab' ]
|
ATTRS_TO_CLONE = [ 'build_path', 'build_script', 'counter', 'ks', 'menu', 'tar', 'use_cron', 'cron_tab' ]
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProductBuildList < ActiveRecord::Base
|
class ProductBuildList < ActiveRecord::Base
|
||||||
BUILD_STARTED = 2
|
BUILD_STARTED = 2
|
||||||
BUILD_COMPLETED = 0
|
BUILD_COMPLETED = 0
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Project < ActiveRecord::Base
|
class Project < ActiveRecord::Base
|
||||||
VISIBILITIES = ['open', 'hidden']
|
VISIBILITIES = ['open', 'hidden']
|
||||||
MAX_OWN_PROJECTS = 32000
|
MAX_OWN_PROJECTS = 32000
|
||||||
|
@ -54,7 +55,7 @@ class Project < ActiveRecord::Base
|
||||||
:pl => auto_build_list.pl,
|
:pl => auto_build_list.pl,
|
||||||
:bpl => auto_build_list.bpl,
|
:bpl => auto_build_list.bpl,
|
||||||
:arch => auto_build_list.arch,
|
:arch => auto_build_list.arch,
|
||||||
:project_version => collected_project_versions.last,
|
:project_version => versions.last,
|
||||||
:build_requires => true,
|
:build_requires => true,
|
||||||
:update_type => 'bugfix') unless build_lists.for_creation_date_period(Time.current - 15.seconds, Time.current).present?
|
:update_type => 'bugfix') unless build_lists.for_creation_date_period(Time.current - 15.seconds, Time.current).present?
|
||||||
end
|
end
|
||||||
|
@ -75,16 +76,6 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO deprecate and remove project_versions and collected_project_versions ?
|
|
||||||
def project_versions
|
|
||||||
res = tags.select{|tag| tag.name =~ /^v\./}
|
|
||||||
return res if res and res.size > 0
|
|
||||||
tags
|
|
||||||
end
|
|
||||||
def collected_project_versions
|
|
||||||
project_versions.collect{|tag| tag.name.gsub(/^\w+\./, "")}
|
|
||||||
end
|
|
||||||
|
|
||||||
def tags
|
def tags
|
||||||
self.git_repository.tags #.sort_by{|t| t.name.gsub(/[a-zA-Z.]+/, '').to_i}
|
self.git_repository.tags #.sort_by{|t| t.name.gsub(/[a-zA-Z.]+/, '').to_i}
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProjectImport < ActiveRecord::Base
|
class ProjectImport < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class ProjectToRepository < ActiveRecord::Base
|
class ProjectToRepository < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :repository
|
belongs_to :repository
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Relation < ActiveRecord::Base
|
class Relation < ActiveRecord::Base
|
||||||
belongs_to :target, :polymorphic => true
|
belongs_to :target, :polymorphic => true
|
||||||
belongs_to :object, :polymorphic => true
|
belongs_to :object, :polymorphic => true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Repository < ActiveRecord::Base
|
class Repository < ActiveRecord::Base
|
||||||
belongs_to :platform
|
belongs_to :platform
|
||||||
belongs_to :owner, :polymorphic => true
|
belongs_to :owner, :polymorphic => true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Rpm < ActiveRecord::Base
|
class Rpm < ActiveRecord::Base
|
||||||
belongs_to :arch
|
belongs_to :arch
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
module Settings
|
module Settings
|
||||||
def self.table_name_prefix
|
def self.table_name_prefix
|
||||||
'settings_'
|
'settings_'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Settings::Notifier < ActiveRecord::Base
|
class Settings::Notifier < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class Subscribe < ActiveRecord::Base
|
class Subscribe < ActiveRecord::Base
|
||||||
belongs_to :subscribeable, :polymorphic => true
|
belongs_to :subscribeable, :polymorphic => true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
ROLES = ['admin']
|
ROLES = ['admin']
|
||||||
LANGUAGES_FOR_SELECT = [['Russian', 'ru'], ['English', 'en']]
|
LANGUAGES_FOR_SELECT = [['Russian', 'ru'], ['English', 'en']]
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
.content
|
.content
|
||||||
.inner
|
.inner
|
||||||
.patch_and_diff
|
.patch_and_diff
|
||||||
#{link_to "raw diff", commit_path(@project, @commit.id, :diff)} | #{link_to "patch", commit_path(@project, @commit.id, :patch)}
|
= link_to "raw diff", commit_path(@project, @commit.id, :diff)
|
||||||
|
\|
|
||||||
|
= link_to "patch", commit_path(@project, @commit.id, :patch)
|
||||||
.clear
|
.clear
|
||||||
= render_commit_stats(@commit.stats)
|
= render_commit_stats(@commit.stats)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
%th.last
|
%th.last
|
||||||
- @projects.each do |project|
|
- @projects.each do |project|
|
||||||
%tr{:class => cycle("odd", "even")}
|
%tr{:class => cycle("odd", "even")}
|
||||||
%td
|
%td= link_to project.name, project_path(project)
|
||||||
= link_to project.name, project_path(project)
|
|
||||||
%td.last
|
%td.last
|
||||||
#{link_to t("layout.show"), project_path(project)} | #{link_to t("layout.delete"), url_for (:action => :remove_project, :project_id => project.id), :confirm => t("layout.projects.confirm_delete")}
|
= link_to t("layout.show"), project_path(project)
|
||||||
|
\|
|
||||||
|
= link_to t("layout.delete"), url_for(:action => :remove_project, :project_id => project.id), :confirm => t("layout.projects.confirm_delete")
|
|
@ -7,4 +7,6 @@
|
||||||
%td
|
%td
|
||||||
= link_to project.name, project_path(project)
|
= link_to project.name, project_path(project)
|
||||||
%td.last
|
%td.last
|
||||||
#{link_to t("layout.show"), project_path(project)} | #{link_to t("layout.delete"), url_for (:action => :remove_project, :project_id => project.id), :confirm => t("layout.projects.confirm_delete")}
|
= link_to t("layout.show"), project_path(project)
|
||||||
|
\|
|
||||||
|
= link_to t("layout.delete"), url_for(:action => :remove_project, :project_id => project.id), :confirm => t("layout.projects.confirm_delete")
|
||||||
|
|
|
@ -32,8 +32,9 @@ rm -f srpm.cpio
|
||||||
|
|
||||||
# Commit and push changes
|
# Commit and push changes
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "Automatic import for version $version"
|
git commit -m "Automatic import for version $version"
|
||||||
git push origin HEAD
|
git branch $git_branch # Ensure branch exists
|
||||||
|
git push origin master $git_branch
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm -rf $tmp_dir
|
rm -rf $tmp_dir
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
@ -34,4 +35,4 @@ project_id = 1 # FIXME
|
||||||
repo_id = 1 # FIXME
|
repo_id = 1 # FIXME
|
||||||
pp client.call("build_packet", project_id, repo_id)
|
pp client.call("build_packet", project_id, repo_id)
|
||||||
|
|
||||||
puts 'DONE'
|
puts 'DONE'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
require File.expand_path('../boot', __FILE__)
|
require File.expand_path('../boot', __FILE__)
|
||||||
|
|
||||||
require 'rails/all'
|
require 'rails/all'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
|
||||||
# Set up gems listed in the Gemfile.
|
# Set up gems listed in the Gemfile.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# This configuration file works with both the Compass command line tool and within Rails.
|
# This configuration file works with both the Compass command line tool and within Rails.
|
||||||
# Require any additional compass plugins here.
|
# Require any additional compass plugins here.
|
||||||
|
|
||||||
|
@ -12,4 +13,4 @@ sass_dir = "app/stylesheets"
|
||||||
javascripts_dir = "public/javascripts"
|
javascripts_dir = "public/javascripts"
|
||||||
|
|
||||||
http_stylesheets_path = "/stylesheets"
|
http_stylesheets_path = "/stylesheets"
|
||||||
http_javascripts_path = "/javascripts"
|
http_javascripts_path = "/javascripts"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
|
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
|
||||||
set :rvm_type, :user
|
set :rvm_type, :user
|
||||||
|
|
||||||
|
@ -27,9 +28,9 @@ set :scm, :git
|
||||||
set :repository, "git@github.com:warpc/rosa-build.git"
|
set :repository, "git@github.com:warpc/rosa-build.git"
|
||||||
set :deploy_via, :remote_cache
|
set :deploy_via, :remote_cache
|
||||||
|
|
||||||
require 'lib/recipes/nginx'
|
require './lib/recipes/nginx'
|
||||||
require 'lib/recipes/unicorn'
|
require './lib/recipes/unicorn'
|
||||||
require 'lib/recipes/bluepill'
|
require './lib/recipes/bluepill'
|
||||||
|
|
||||||
namespace :deploy do
|
namespace :deploy do
|
||||||
task :stub_xml_rpc do
|
task :stub_xml_rpc do
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
set :branch, "pingwinsoft"
|
set :branch, "pingwinsoft"
|
||||||
|
|
||||||
set :domain, "b.pingwinsoft.ru" # "195.19.76.12"
|
set :domain, "b.pingwinsoft.ru" # "195.19.76.12"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# Load the rails application
|
# Load the rails application
|
||||||
require File.expand_path('../application', __FILE__)
|
require File.expand_path('../application', __FILE__)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
Rosa::Application.configure do
|
Rosa::Application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb
|
# Settings specified here will take precedence over those in config/application.rb
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
Rosa::Application.configure do
|
Rosa::Application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb
|
# Settings specified here will take precedence over those in config/application.rb
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
Rosa::Application.configure do
|
Rosa::Application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb
|
# Settings specified here will take precedence over those in config/application.rb
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
DEFAULT_KS = <<-eos
|
DEFAULT_KS = <<-eos
|
||||||
timezone Europe/Moscow
|
timezone Europe/Moscow
|
||||||
auth --useshadow --enablemd5
|
auth --useshadow --enablemd5
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
Rails.application.config.generators do |g|
|
Rails.application.config.generators do |g|
|
||||||
g.test_framework = :rspec
|
g.test_framework = :rspec
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Add new inflection rules using the following format
|
# Add new inflection rules using the following format
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
||||||
|
|
||||||
require 'modules'
|
require 'modules'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
|
@ -5,4 +6,4 @@
|
||||||
# Mime::Type.register_alias "text/html", :iphone
|
# Mime::Type.register_alias "text/html", :iphone
|
||||||
|
|
||||||
Mime::Type.register "text/plain", :diff
|
Mime::Type.register "text/plain", :diff
|
||||||
Mime::Type.register "text/plain", :patch
|
Mime::Type.register "text/plain", :patch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
Warden::Manager.after_authentication do |user,auth,opts| # after_set_user, :except => fetch
|
Warden::Manager.after_authentication do |user,auth,opts| # after_set_user, :except => fetch
|
||||||
ActiveSupport::Notifications.instrument("event_log.observer", :object => user)
|
ActiveSupport::Notifications.instrument("event_log.observer", :object => user)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
||||||
if html_tag =~ /<label/
|
if html_tag =~ /<label/
|
||||||
%|<div class="fieldWithErrors">#{html_tag} <span class="error">#{[instance.error_message].join(', ')}</span></div>|.html_safe
|
%|<div class="fieldWithErrors">#{html_tag} <span class="error">#{[instance.error_message].join(', ')}</span></div>|.html_safe
|
||||||
else
|
else
|
||||||
html_tag
|
html_tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- encoding : utf-8 -*-
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
Rosa::Application.config.session_store :cookie_store, :key => '_rosa_session'
|
Rosa::Application.config.session_store :cookie_store, :key => '_rosa_session'
|
||||||
|
|
|
@ -580,7 +580,16 @@ en:
|
||||||
download: Statistics
|
download: Statistics
|
||||||
auto_build_list: Auto rebuild list
|
auto_build_list: Auto rebuild list
|
||||||
settings:
|
settings:
|
||||||
notifier: Notifies setting
|
saved: Settings saved success
|
||||||
|
save_error: Setting update error
|
||||||
|
|
||||||
|
private_users: "Login: %{login} Password: %{password}"
|
||||||
|
|
||||||
|
subscribe:
|
||||||
|
saved: Subscription on notifications for this task is created
|
||||||
|
destroyed: Subscription on notifications for this task is cleaned
|
||||||
|
|
||||||
|
exception_message: Access violation to this page!
|
||||||
|
|
||||||
attributes:
|
attributes:
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
en:
|
||||||
|
event_log:
|
||||||
|
controllers:
|
||||||
|
products_controller: 'Product Management'
|
||||||
|
platforms_controller: 'Management of platforms'
|
||||||
|
repositories_controller: 'Manage Repositories'
|
||||||
|
projects_controller: 'Project Management'
|
||||||
|
build_lists_controller: 'Management index chart'
|
||||||
|
auto_build_lists_controller: 'Control automatic build'
|
||||||
|
product_build_lists_controller: 'Build management products'
|
||||||
|
'devise/registrations_controller': 'User Registration'
|
||||||
|
'devise/sessions_controller': 'User Authentication'
|
||||||
|
'devise/passwords_controller': 'password recovery'
|
||||||
|
'users/omniauth_callbacks_controller': 'External authentication of users'
|
||||||
|
rpc_controller: 'XML RPC'
|
||||||
|
private_users_controller: 'access to private repositories'
|
||||||
|
personal_repositories_controller: 'Managing personal repositories'
|
||||||
|
actions:
|
||||||
|
'devise/sessions_controller':
|
||||||
|
create: 'input'
|
||||||
|
destroy: 'exit'
|
||||||
|
'users/omniauth_callbacks_controller':
|
||||||
|
open_id: 'login via OpenID'
|
||||||
|
projects_controller:
|
||||||
|
auto_build: 'sent to the automatic assembly'
|
||||||
|
build_lists_controller:
|
||||||
|
create: 'sent to assembly'
|
||||||
|
cancel: 'assembly abolished'
|
||||||
|
publish: 'assembly issued'
|
||||||
|
auto_build_lists_controller:
|
||||||
|
create: 'assigned'
|
||||||
|
destroy: 'canceled'
|
||||||
|
product_build_lists_controller:
|
||||||
|
create: 'sent to assembly'
|
||||||
|
rpc_controller:
|
||||||
|
xe_index: inquiry
|
||||||
|
private_users_controller:
|
||||||
|
create: 'given'
|
||||||
|
destroy: 'deleted'
|
||||||
|
personal_repositories_controller:
|
||||||
|
change_visibility: 'status change'
|
||||||
|
create: 'created'
|
||||||
|
update: 'updated'
|
||||||
|
destroy: 'deleted'
|
||||||
|
notices:
|
||||||
|
platforms_list: a list of platforms
|
||||||
|
users_list: list of custom projects
|
||||||
|
versions_list: version list
|
||||||
|
status: the status of the assembly
|
||||||
|
project_build: build package
|
|
@ -42,3 +42,9 @@ ru:
|
||||||
create: 'создано'
|
create: 'создано'
|
||||||
update: 'обновлено'
|
update: 'обновлено'
|
||||||
destroy: 'удалено'
|
destroy: 'удалено'
|
||||||
|
notices:
|
||||||
|
platforms_list: список платформ
|
||||||
|
users_list: список пользовательских проектов
|
||||||
|
versions_list: список версий
|
||||||
|
status: статус сборки
|
||||||
|
project_build: сборка пакета
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue