/ontohub/app/helpers/ |
H A D | history_helper.rb | 10 def ref method in class:HistoryHelper 11 params[:ref] || 'master' 15 @commit_id ||= repository.commit_id(params[:ref])
|
H A D | breadcrumbs_helper.rb | 9 path: fancy_repository_path(repository, path: nil, ref: oid) 17 path: fancy_repository_path(repository, path: segment, ref: oid)
|
H A D | ontology_helper.rb | 20 ref: resource.current_version.commit_oid,
|
H A D | ontology_version_helper.rb | 15 ref: ontology_version.commit_oid,
|
H A D | files_helper.rb | 38 !params[:ref].nil?
|
/ontohub/spec/routing/ |
H A D | diffs_routing_spec.rb | 7 repository_id: 'repopath', ref: 'master')
|
H A D | history_routing_spec.rb | 4 it { should route(:get, 'repositories/repopath/master/history').to(repository_id: 'repopath', controller: :history, action: :show, ref: 'master' ) }
|
H A D | files_routing_spec.rb | 18 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 D | path_helpers.rb | 9 !params[:ref].nil? 18 repository_ref_path repository_id: repository, ref: args[:ref], action: action, path: args[:path]
|
H A D | diffs_controller.rb | 25 @commit_id ||= repository.commit_id(params[:ref])
|
H A D | files_controller.rb | 5 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 D | diffs_controller_spec.rb | 16 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 D | git_repository.rb | 115 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 D | ontology_version_finder.rb | 3 REF_RE = %r{\A/?ref/([^/]+)(/[^?]+).*\Z}
|
H A D | router_constraints.rb | 138 # 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 D | ontohub_net.rb | 17 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 D | history_entries_page.rb | 21 @commit_id = compute_ref(repository, opts[:ref]) 48 def compute_ref(repository, ref) 49 repository.commit_id(ref || Settings.git.default_branch)
|
H A D | diff.rb | 10 @commit_id = compute_ref(repository, opts[:ref]) 42 def compute_ref(repository, ref) 43 repository.commit_id(ref || Settings.git.default_branch)
|
H A D | repository_file.rb | 33 [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 D | diff_spec.rb | 25 let(:diff) { Diff.new(repository_id: repository.path, ref: @commit2) }
|
/ontohub/lib/git_repository/ |
H A D | cloning.rb | 64 def reset_branch(old_head_oid, branch, ref) 66 git_exec('branch', '-f', branch, ref)
|
/ontohub/script/ |
H A D | rename_refactor.rb | 299 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 D | hets_helper.rb | 9 regexp_ontology_path = %r{^/ref/\d+/(?<repo>[^/]+)/(?<ontology>.*)$} 135 specific << "ref%2F#{version}.*" if version
|
/ontohub/config/ |
H A D | routes.rb | 19 # 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...] |