lib/schema_dev/gem.rb in schema_dev-3.0.0 vs lib/schema_dev/gem.rb in schema_dev-3.0.1
- old
+ new
@@ -99,10 +99,10 @@
end
def schema_monkey_version
@monkey_version ||= begin
gems = JSON.parse Faraday.get('https://rubygems.org/api/v1/versions/schema_monkey.json').body
- gems.reject(&it["prerelease"]).sort_by{|g| Time.new(g["built_at"])}.last["number"]
+ gems.reject(&it["prerelease"]).sort_by(&it["number"].split('.')).last["number"]
end
end
def freshen
Dir.chdir gem_root do