Searched refs:message (Results 1 - 25 of 45) sorted by relevance

12

/ontohub/lib/
H A Dprevent_mail_interceptor.rb4 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 Dproof_evaluation_state_updater.rb4 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 Dsettings_validator.rb62 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 Dflash_helper.rb7 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 Dfiles_helper.rb14 title = commit.message.split("\n").first
16 body = commit.message.split("\n")[1..-1].join("\n")
/ontohub/app/controllers/
H A Dapplication_controller.rb13 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 Dfiletypes_controller.rb5 render json: {status: 415, message: 'Media Type not supported'},
21 message: '',
H A Dpermissions_controller.rb13 flash[:alert] = e.message
20 render text: e.message
/ontohub/spec/lib/repository/
H A Dfiles_spec.rb13 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 Dcommitting.rb12 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 Dget_info_list.rb38 def commit_message_title(message)
39 message.split("\n").first
52 message: commit_message_title(changing_rugged_commit.message),
H A Dconfig.rb32 raise unless e.message.include?('No such section')
/ontohub/spec/models/repository/
H A Djobcount_spec.rb13 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 Dbrowsing_spec.rb16 let(:message) { 'test message' }
24 repository.save_file(tmpfile.path, path, message, user)
H A Dsave_and_delete_file_spec.rb7 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 Dregistrations_controller.rb8 redirect_to :edit_user_registration, :flash => {:error => exception.message}
/ontohub/app/models/
H A Dserialization.rb7 MIMETYPES = %w( text image video audio application multipart message model example )
/ontohub/script/
H A Drebuild-ontohub66 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 Drepository_factory.rb21 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 Dhets_error_process.rb24 raise Hets::HetsFileError.new(message)
31 def message method in class:Hets.HetsErrorProcess
/ontohub/app/controllers/api/v1/
H A Dactions_controller.rb10 render json: {status: response.message, location: response.location}
/ontohub/git/lib/
H A Dgit_shell.rb32 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 Dgit.rb37 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 Dfiles_controller_spec.rb72 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 Drepository_directory.rb36 message = "Create directory #{name}"
38 message, user)

Completed in 82 milliseconds

12