Sha256: 66856aca15daa22c4607558d0e68866650a5ec918e3259f5c6d1102ac8e4835d
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
module Simple # :nodoc: end module Simple::Service module GemHelper # :nodoc: extend self def version(name) spec = Gem.loaded_specs[name] version = spec ? spec.version.to_s : "0.0.0" version += "+unreleased" if !spec || unreleased?(spec) version end private def unreleased?(spec) return false unless defined?(Bundler::Source::Gemspec) return true if spec.source.is_a?(::Bundler::Source::Gemspec) # :nocov: return true if spec.source.is_a?(::Bundler::Source::Path) false # :nocov: end end VERSION = GemHelper.version "simple-service" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-service-0.1.3 | lib/simple/service/version.rb |
simple-service-0.1.2 | lib/simple/service/version.rb |