/ontohub/app/helpers/ |
H A D | ontology_version_helper.rb | 2 def failed?(ontology_version) 3 ontology_version.state == 'failed' 6 def can_edit?(ontology_version) 7 can?(:write, ontology_version.repository) && 8 failed?(ontology_version) && 9 ontology_version.latest_version? 12 def btn_url(ontology_version) 14 path: ontology_version.path, 15 ref: ontology_version.commit_oid, 17 exact_commit: !ontology_version [all...] |
/ontohub/spec/lib/ |
H A D | timeout_worker_spec.rb | 23 let(:ontology_version) { create :ontology_version } 24 let(:ontology) { ontology_version.ontology } 30 worker.perform(ontology_version.id) 31 ontology_version.reload 35 expect(ontology_version.state).to eq('failed') 39 expect(ontology_version.last_error).to include('The job reached the timeout limit') 49 let(:ontology_version) { create :ontology_version, state: 'done' } 51 it 'will not touch the state of the ontology_version' d [all...] |
/ontohub/db/data/ |
H A D | 20160614065104_create_missing_commits.rb | 3 OntologyVersion.where(commit_id: nil).find_each do |ontology_version| 4 commit = Commit.where(repository_id: ontology_version.repository.id, 5 commit_oid: ontology_version.commit_oid). 7 fill_in_commit_data(commit, ontology_version) 8 ontology_version.commit = commit 9 ontology_version.save! 19 def retrieve_user_info(ontology_version) 20 user_id = select_attributes(ontology_version, :user_id)[:user_id] 27 def fill_in_commit_data(commit, ontology_version) 28 user_info = retrieve_user_info(ontology_version) [all...] |
/ontohub/lib/hets/provers/ |
H A D | importer.rb | 5 attr_accessor :ontology_version, :io 8 def initialize(ontology_version, io) 9 self.ontology_version = ontology_version 20 unless ontology_version.provers.include?(prover) 21 ontology_version.provers << prover 24 ontology_version.save!
|
/ontohub/lib/ |
H A D | iri_url_builder.rb | 21 reference: ontology_version.number, 27 path = File.dirname(ontology_version.basepath) 32 File.basename(ontology_version.basepath) 35 def ontology_version method in class:IRIUrlBuilder.Builder 40 ontology_version.ontology 44 ontology_version.ontology.repository
|
H A D | proof_execution.rb | 33 ontology.import_proof(ontology_version, 34 ontology_version.pusher, 44 def ontology_version method in class:ProofExecution
|
H A D | timeout_worker.rb | 30 def state_not_terminal?(ontology_version) 31 !OntologyVersion::States::TERMINAL_STATES.include?(ontology_version.state)
|
/ontohub/spec/models/repository/ |
H A D | retry_failed_spec.rb | 6 let(:ontology_version){ create :ontology_version } 7 let(:ontology){ ontology_version.ontology }
|
H A D | access_spec.rb | 27 let(:ontology_version) { create :ontology_version } 28 let(:repository) { ontology_version.repository }
|
/ontohub/app/models/ |
H A D | oops_request.rb | 3 belongs_to :ontology_version
|
H A D | proof_attempt.rb | 56 ontology_version = theorem.ontology.current_version 57 unless ontology_version.provers.include?(prover) 58 ontology_version.provers << prover 59 ontology_version.save!
|
H A D | oops_response.rb | 20 self.symbols = request.ontology_version.ontology.symbols.
|
/ontohub/spec/models/ |
H A D | oops_request_spec.rb | 5 it { should belong_to :ontology_version }
|
H A D | ontology_version_spec.rb | 17 let(:ontology_version) { create :ontology_version } 22 #{ontology_version.repository.path}/ 25 expect(ontology_version.url).to match(version_url_regex)
|
/ontohub/app/controllers/ |
H A D | oops_requests_controller.rb | 14 ontology_version.create_oops_request! 16 respond_with(*resource_chain, ontology_version, resource) 30 def ontology_version method in class:OopsRequestsController 35 ontology_version.request 39 unless ontology_version.oops_request_creatable?
|
/ontohub/app/models/ontology/ |
H A D | versions.rb | 5 belongs_to :ontology_version 34 if self.ontology_version 35 self.ontology_version 42 return self.ontology_version if self.state == 'done' 50 real_process_state = active_version != self.ontology_version 51 if user && (user.admin || ontology_version.try(:pusher) == user)
|
/ontohub/spec/factories/ |
H A D | ontology_version_factory.rb | 2 factory :ontology_version do 11 version.ontology.ontology_version = version 24 factory :ontology_version_with_file, :parent => :ontology_version do
|
H A D | oops_factory.rb | 5 association :ontology_version
|
/ontohub/spec/controllers/ |
H A D | users_controller_spec.rb | 18 ontology_version = create :ontology_version_with_file 19 commit = ontology_version.commit
|
H A D | oops_request_controller_spec.rb | 31 state: :pending, ontology_version: version 45 ontology_version: version, state: :failed 61 ontology_version: version,
|
/ontohub/spec/models/ontology_version/ |
H A D | parsing_spec.rb | 6 let(:ontology_version) { ontology.save_file(ontology_file('owl/pizza.owl'), 'message', user) } 109 "#{Hostname.url_authority}#{ontology_version.locid}" 113 ontology_version 126 let(:commit) { ontology_version.commit } 131 ontology_version 140 expect(ontology_version.state_updated_at).to_not be(nil) 148 expect(commit.commit_oid).to eq(ontology_version.commit_oid) 157 ontology_version 172 ontology_version 185 ontology_version [all...] |
H A D | proving_spec.rb | 7 let(:ontology_version) { ontology.current_version } 10 let(:prove_options) { ontology_version.prove_options }
|
/ontohub/app/models/oops_request/ |
H A D | responses.rb | 37 r = Oops::Client.request :content => ontology_version.raw_data 39 r = Oops::Client.request :url => ontology_version.url
|
/ontohub/features/step_definitions/ |
H A D | ontology_state_steps.rb | 3 @ontology_version = @ontology.current_version 7 @ontology_version = FactoryGirl.create :ontology_version, state: state 8 @ontology = @ontology_version.ontology 23 @ontology_version.update_state!(state) 37 within %{#{el_css}[#{field}="#{@ontology_version.id}"][#{field_klass}="OntologyVersion"]} do
|
/ontohub/spec/lib/oops_request/ |
H A D | responses_spec.rb | 5 let!(:version) { create :ontology_version }
|