aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-01-22 16:12:13 +0100
committerhellekin <hellekin@cepheide.org>2021-01-22 16:12:13 +0100
commit1cfcdac7958878dc7e3823a2185cdfeb648e3818 (patch)
treec4d0a76593efd6ca2d1f72b145f9b4dd3edb9a41
parent482b50bec11401a65fcc066e12818b8eea360dac (diff)
downloadincommon-map-1cfcdac7958878dc7e3823a2185cdfeb648e3818.tar.gz
WIP: display versionv0.1.1
-rw-r--r--app/lib/incommon.rb10
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