summaryrefslogtreecommitdiff
path: root/spec/support/builders.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-09 21:39:51 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-10-26 15:36:14 -0300
commitab325bde24853207450904b06a55b4a9766fdbf0 (patch)
tree05d011d5f25f870f46528c15489a5f4add72c974 /spec/support/builders.rb
parentfbb9c2dada3d98ce7932f9767ea3b2bdbba04eef (diff)
downloadbundler-ab325bde24853207450904b06a55b4a9766fdbf0.tar.gz
Remove unnecessary stuff from specs
Since we no longer test against rubygems versions that old.
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r--spec/support/builders.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index fa32b12b65..188b1d3eb7 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -210,12 +210,7 @@ module Spec
# The yard gem iterates over Gem.source_index looking for plugins
build_gem "yard" do |s|
s.write "lib/yard.rb", <<-Y
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new("1.8.10")
- specs = Gem::Specification
- else
- specs = Gem.source_index.find_name('')
- end
- specs.sort_by(&:name).each do |gem|
+ Gem::Specification.sort_by(&:name).each do |gem|
puts gem.full_name
end
Y