lib/concourse-resource/rubygems/version.rb in concourse-resource-rubygems-0.3.4 vs lib/concourse-resource/rubygems/version.rb in concourse-resource-rubygems-0.4.5
- old
+ new
@@ -1,5 +1,10 @@
module ConcourseResource
module RubyGems
- VERSION = '0.3.4'.freeze
+ VERSION = $LOADED_FEATURES
+ .map { |f| f.match %r{/concourse-resource-rubygems-(?<version>[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(\.pre)?)} }
+ .compact
+ .map { |gem| gem['version'] }
+ .uniq
+ .first
end
end