Sha256: 706a0f09639939dceda0de1fb8169e0ca1acef07ac6aa0f3b6738152d2b81539
Contents?: true
Size: 569 Bytes
Versions: 19
Compression:
Stored size: 569 Bytes
Contents
module RSpec::Httpd module GemHelper extend self def version(name) spec = Gem.loaded_specs[name] return "unreleased" unless spec version = spec.version.to_s version += "+unreleased" if 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) return true if spec.source.is_a?(::Bundler::Source::Path) false end end VERSION = GemHelper.version "rspec-httpd" end
Version data entries
19 entries across 19 versions & 1 rubygems