lib/bones/app/plugins.rb in bones-3.8.0 vs lib/bones/app/plugins.rb in bones-3.8.1
- old
+ new
@@ -80,11 +80,11 @@
end
fetcher = Gem::SpecFetcher.fetcher
specs = fetcher.find_matching dep
- specs.map! { |(name, version, _), _|
+ specs.map! { |(name, _, _), _|
next unless name =~ %r/^bones-(.*?)(?:-(\d+))?$/i
$2 ? [$1, $2.to_i] : $1
}
specs.compact!
@@ -96,10 +96,10 @@
# FIXME: check for rubygems version 1.8.X
if Gem::Specification.respond_to? :find_by_name
begin
Gem::Specification.find_by_name(name, version)
true
- rescue Gem::LoadError => err
+ rescue Gem::LoadError
false
end
else
dep = Gem::Dependency.new name, version
!Gem.source_index.search(dep).empty?