lib/sdoc_all/parts/rails.rb in sdoc_all-1.0.4 vs lib/sdoc_all/parts/rails.rb in sdoc_all-1.0.5
- old
+ new
@@ -54,17 +54,16 @@
:paths => paths.to_a,
:title => "rails-#{version}"
)
end
- module ClassMethods
+ class << self
def versions
[].tap do |versions|
Gem.source_index.search(Gem::Dependency.new('rails', :all)).each do |spec|
versions << spec.version
end
end.sort.map(&:to_s)
end
end
- extend ClassMethods
end
end