lib/github-status/version.rb in concourse-github-status-0.5.0 vs lib/github-status/version.rb in concourse-github-status-0.5.7
- old
+ new
@@ -1,3 +1,8 @@
module GitHubStatus
- VERSION = '0.5.0'.freeze
+ VERSION = $LOADED_FEATURES
+ .map { |f| f.match %r{/concourse-github-status-(?<version>[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(\.pre)?)} }
+ .compact
+ .map { |gem| gem['version'] }
+ .uniq
+ .first
end