Searched refs:ref (Results 1 - 24 of 24) sorted by relevance

/ontohub/app/helpers/
H A Dhistory_helper.rb10 def ref method in class:HistoryHelper
11 params[:ref] || 'master'
15 @commit_id ||= repository.commit_id(params[:ref])
H A Dbreadcrumbs_helper.rb9 path: fancy_repository_path(repository, path: nil, ref: oid)
17 path: fancy_repository_path(repository, path: segment, ref: oid)
H A Dontology_helper.rb20 ref: resource.current_version.commit_oid,
H A Dontology_version_helper.rb15 ref: ontology_version.commit_oid,
H A Dfiles_helper.rb38 !params[:ref].nil?
/ontohub/spec/routing/
H A Ddiffs_routing_spec.rb7 repository_id: 'repopath', ref: 'master')
H A Dhistory_routing_spec.rb4 it { should route(:get, 'repositories/repopath/master/history').to(repository_id: 'repopath', controller: :history, action: :show, ref: 'master' ) }
H A Dfiles_routing_spec.rb18 it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', controller: :files, action: :action, ref: '12ab' ) }
19 it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', controller: :files, action: :show, ref: '12ab', path: 'some/path' ) }
/ontohub/app/controllers/
H A Dpath_helpers.rb9 !params[:ref].nil?
18 repository_ref_path repository_id: repository, ref: args[:ref], action: action, path: args[:path]
H A Ddiffs_controller.rb25 @commit_id ||= repository.commit_id(params[:ref])
H A Dfiles_controller.rb5 helper_method :repository, :ref, :oid, :path, :branch_name
76 def ref method in class:FilesController
77 params[:ref] || 'master'
94 @commit_id ||= repository.commit_id(params[:ref])
/ontohub/spec/controllers/
H A Ddiffs_controller_spec.rb16 before { get :show, repository_id: repository.to_param, ref: 'master' }
26 before { get :show, repository_id: repository.to_param, ref: 'master' }
33 before { get :show, repository_id: repository.to_param, ref: 'master' }
49 before { get :show, repository_id: repository.to_param, ref: 'master' }
59 before { get :show, repository_id: repository.to_param, ref: 'master' }
71 before { get :show, repository_id: repository.to_param, ref: 'master' }
/ontohub/lib/
H A Dgit_repository.rb115 def commit_id(ref)
116 return {oid: head_oid, branch_name: 'master'} if ref.nil?
117 if ref.match(/[0-9a-fA-F]{40}/)
118 commit_id_by_oid(ref)
120 commit_id_by_branch_name(ref)
142 repo.refs.map do |ref|
144 refname: ref.name,
145 name: ref.name.split('/')[-1],
146 commit: ref.target,
147 oid: ref
[all...]
H A Dontology_version_finder.rb3 REF_RE = %r{\A/?ref/([^/]+)(/[^?]+).*\Z}
H A Drouter_constraints.rb138 # Prune ref-portion
139 sub('/ref/mmt', '')
162 # remove the ref/:version_number portion from path
164 sub(%r{\A/ref/\d+/}, '')
/ontohub/git/lib/
H A Dontohub_net.rb17 attr_reader :cmd, :access_right, :repo_path, :key_id, :ref
19 def allowed?(cmd, repo_path, key, ref)
29 @ref = ref
/ontohub/app/fake_records/
H A Dhistory_entries_page.rb21 @commit_id = compute_ref(repository, opts[:ref])
48 def compute_ref(repository, ref)
49 repository.commit_id(ref || Settings.git.default_branch)
H A Ddiff.rb10 @commit_id = compute_ref(repository, opts[:ref])
42 def compute_ref(repository, ref)
43 repository.commit_id(ref || Settings.git.default_branch)
H A Drepository_file.rb33 [opts[:repository_id], opts[:ref], opts[:path]].compact.join('/'))
38 oid = compute_ref(repository, opts[:ref])[:oid]
183 commit_id = repository.commit_id(opts[:ref] || Settings.git.default_branch)
/ontohub/spec/fake_records/
H A Ddiff_spec.rb25 let(:diff) { Diff.new(repository_id: repository.path, ref: @commit2) }
/ontohub/lib/git_repository/
H A Dcloning.rb64 def reset_branch(old_head_oid, branch, ref)
66 git_exec('branch', '-f', branch, ref)
/ontohub/script/
H A Drename_refactor.rb299 REFERENCES\ (?<ref>\S+\(\S+\))(?<ondelete>[^\n]*)/x)
304 new_ref = translate(m[:ref]) || m[:ref]
306 translated = [m[:name], m[:key], m[:ref]].map { |t| translate(t) }
319 "REFERENCES #{m[:ref]}#{m[:ondelete]}\"")
/ontohub/spec/
H A Dhets_helper.rb9 regexp_ontology_path = %r{^/ref/\d+/(?<repo>[^/]+)/(?<ontology>.*)$}
135 specific << "ref%2F#{version}.*" if version
/ontohub/config/
H A Droutes.rb19 # Special (/ref-based) Loc/Id routes
20 specified_get '/ref/:reference/:repository_id/*locid' => 'ontology_versions#show',
34 specified_get '/ref/:reference/:repository_id/*locid' => 'api/v1/ontology_versions#show',
51 specified_get '/ref/mmt/:repository_id/*path' => 'ontologies#show',
67 specified_get '/ref/mmt/:repository_id/*path' => 'mappings#show',
82 specified_get '/ref/mmt/:repository_id/*path' => 'symbols#index',
98 specified_get '/ref/mmt/:repository_id/*path' => 'axioms#index',
114 specified_get '/ref/mmt/:repository_id/*path' => 'theorems#index',
129 specified_get '/ref/mmt/:repository_id/*path' => 'api/v1/proof_attempt_configurations#show',
754 get ':ref/file
[all...]

Completed in 483 milliseconds