Sha256: abdaf77464b1c8eaee4aa5c74198b863e616db28aecb1ee472c8727fc4f0ab58
Contents?: true
Size: 643 Bytes
Versions: 15
Compression:
Stored size: 643 Bytes
Contents
#-- # Copyright (c) 2014-2015 JRuby Team # This source code is available under the MIT license. # See the file LICENSE.txt for details. #++ module Warbler module BundlerHelper def to_spec(spec) # JRuby <= 1.7.20 does not handle respond_to? with method_missing right # thus a `spec.respond_to?(:to_spec) ? spec.to_spec : spec` won't do : if ::Bundler.const_defined?(:StubSpecification) # since Bundler 1.10.1 spec = spec.to_spec if spec.is_a?(::Bundler::StubSpecification) else spec = spec.to_spec if spec.respond_to?(:to_spec) end spec end module_function :to_spec end end
Version data entries
15 entries across 15 versions & 2 rubygems