/ontohub/lib/ |
H A D | prevent_mail_interceptor.rb | 4 def self.delivering_email(message) 5 unless deliver?(message) 6 message.perform_deliveries = false 7 Rails.logger.debug "Interceptor prevented sending mail #{message.inspect}!" 11 def self.deliver?(message) 12 message.to.any? { |recipient| recipient !~ RE }
|
H A D | proof_evaluation_state_updater.rb | 4 attr_reader :proof_attempt, :state, :message, :theorem 6 def initialize(proof_attempt, state, message = nil) 9 @message = message 14 proof_attempt.update_state!(state, message)
|
H A D | settings_validator.rb | 62 messages.map { |message| format_message(message) }.join("\n") 65 def format_message(message) 66 if message == 'is not included in the list' 67 message = 68 "#{message} (see the comments in the config/settings.yml at this key)" 70 indent_message(message, 2) 94 def indent_message(message, indentation) 95 message.split("\n").map { |line| "#{' ' * indentation}#{line}"}.join("\n")
|
/ontohub/app/helpers/ |
H A D | flash_helper.rb | 7 flash.each do |type, message| 10 message = '<a class="close" data-dismiss="alert">×</a>'.html_safe << h(message) 12 out << content_tag(:div, message, :class => "flash alert alert-#{type}") 20 preserve content_tag(:div, msg, class: 'alert alert-danger error-message')
|
H A D | files_helper.rb | 14 title = commit.message.split("\n").first 16 body = commit.message.split("\n")[1..-1].join("\n")
|
/ontohub/app/controllers/ |
H A D | application_controller.rb | 13 redirect_to root_url, alert: exception.message 18 text: exception.message 25 message = exception.message 26 if message.include?('foreign key constraint') 27 logger.warn(message) 28 # shorten the message 29 message = message.match(/DETAIL: .+/).to_s 32 flash: {error: "Whatever you tried to do - the server is unable to process your request because of a foreign key constraint. (#{message})" } [all...] |
H A D | filetypes_controller.rb | 5 render json: {status: 415, message: 'Media Type not supported'}, 21 message: '',
|
H A D | permissions_controller.rb | 13 flash[:alert] = e.message 20 render text: e.message
|
/ontohub/spec/lib/repository/ |
H A D | files_spec.rb | 13 let(:message) { 'Some commit message' } 20 before { repository.commit_file(userinfo, content, filepath, message) } 26 it { expect(repository.commit_message).to eq(message) } 33 repository.commit_file(userinfo, content, filepath, message) 42 let(:message2) { "#{message}_2" } 45 repository.commit_file(userinfo, content, filepath, message) 59 before { repository.commit_file(userinfo, content, fullpath, message) } 67 before { repository.commit_file(userinfo, content, filepath, message) } 71 repository.commit_file(userinfo, content, "#{filepath}/foo", message) [all...] |
/ontohub/lib/git_repository/ |
H A D | committing.rb | 12 def add_file(userinfo, tmp_path, target_path, message, &block) 13 commit_file(userinfo, File.open(tmp_path, 'rb').read, target_path, message, 18 def commit_file(userinfo, file_contents, target_path, message, &block) 40 options[:message] = message 64 if e.message.match(/undefined method.`\[\]'/) && 65 e.message.match(/Rugged..Blob./)
|
H A D | get_info_list.rb | 38 def commit_message_title(message) 39 message.split("\n").first 52 message: commit_message_title(changing_rugged_commit.message),
|
H A D | config.rb | 32 raise unless e.message.include?('No such section')
|
/ontohub/spec/models/repository/ |
H A D | jobcount_spec.rb | 13 let(:message) { 'test message' } 21 repository.save_file(tmpfile.path, path, message, user) 32 repository.save_file(tmpfile.path, path, message, user) 43 repository.save_file(tmpfile.path, path, message, user)
|
H A D | browsing_spec.rb | 16 let(:message) { 'test message' } 24 repository.save_file(tmpfile.path, path, message, user)
|
H A D | save_and_delete_file_spec.rb | 7 let(:message) { 'test message' } 24 @version = repository.save_file(file_path, target_path, message, user) 72 repository.save_file(file_path, target_path, message, user) 73 repository.save_file(file_path2, target_path, message, user) 86 @version_save = repository.save_file(file_path, target_path, message, user) 105 expect { repository.save_file(file_path, target_path, message, user) }.
|
/ontohub/app/controllers/users/ |
H A D | registrations_controller.rb | 8 redirect_to :edit_user_registration, :flash => {:error => exception.message}
|
/ontohub/app/models/ |
H A D | serialization.rb | 7 MIMETYPES = %w( text image video audio application multipart message model example )
|
/ontohub/script/ |
H A D | rebuild-ontohub | 66 message="$2" 67 print_failed_command "$cmd" "$message" 102 message="$1" 105 echo -e "\033[${color_code}m${message}\033[0m" 107 echo "$message"
|
/ontohub/spec/factories/ |
H A D | repository_factory.rb | 21 message = 'Some commit message' 22 commit_add1 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat1.clif')), filepath1, message) 23 commit_add2 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, filepath2)), filepath2, message) 24 commit_add3 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat2.clif')), filepath1, message)
|
/ontohub/lib/hets/ |
H A D | hets_error_process.rb | 24 raise Hets::HetsFileError.new(message) 31 def message method in class:Hets.HetsErrorProcess
|
/ontohub/app/controllers/api/v1/ |
H A D | actions_controller.rb | 10 render json: {status: response.message, location: response.location}
|
/ontohub/git/lib/ |
H A D | git_shell.rb | 32 message = "git-shell: Access denied for git command <#{@command}> by #{log_username}." 33 Rails.logger.warn message 42 message = "git-shell: Attempt to execute disallowed command <#{@command}> by #{log_username}." 43 Rails.logger.warn message
|
/ontohub/app/models/repository/ |
H A D | git.rb | 37 def delete_file(filepath, user, message = nil, &block) 44 def save_file(tmp_file, filepath, message, user, do_parse: true) 47 git.add_file(user_info(user), tmp_file, filepath, message) do |commit_oid| 57 def save_file_only(tmp_file, filepath, message, user) 59 git.add_file(user_info(user), tmp_file, filepath, message) do |commit_oid|
|
/ontohub/spec/controllers/ |
H A D | files_controller_spec.rb | 72 message: 'commit message', 86 let(:message) { "message" } 93 repository.save_file_only(tmpfile, filepath, message, user) 101 message: message, 106 it "should show a success message" do 120 it "should not show a success message" do 132 message [all...] |
/ontohub/app/fake_records/ |
H A D | repository_directory.rb | 36 message = "Create directory #{name}" 38 message, user)
|