diff options
author | hellekin <hellekin@cepheide.org> | 2021-01-22 16:12:13 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2021-01-22 16:12:13 +0100 |
commit | 1cfcdac7958878dc7e3823a2185cdfeb648e3818 (patch) | |
tree | c4d0a76593efd6ca2d1f72b145f9b4dd3edb9a41 /app/lib/incommon.rb | |
parent | 482b50bec11401a65fcc066e12818b8eea360dac (diff) | |
download | incommon-map-1cfcdac7958878dc7e3823a2185cdfeb648e3818.tar.gz |
WIP: display versionv0.1.1
Diffstat (limited to 'app/lib/incommon.rb')
-rw-r--r-- | app/lib/incommon.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/lib/incommon.rb b/app/lib/incommon.rb index e03b0e9..78ba894 100644 --- a/app/lib/incommon.rb +++ b/app/lib/incommon.rb @@ -6,12 +6,10 @@ module INCOMMON module_function def repo_url(version) case version - when /^HEAD/ - query="h=#{version}" - when /^incommon-map @(.*)/ - query="h=HEAD&id=#{$1}" - when /^incommon-map (v.*)/ - query="h=#{$1}" + when /^incommon-map (.*)@(.*)/ + query="h=#{$1}&id=#{$2}" + else + query="h=HEAD" end URI.parse("https://code.cepheide.org/incommon-map.git/tree/?#{query}").to_s end |