lib/jefferies_tube/version.rb in jefferies_tube-0.1.2 vs lib/jefferies_tube/version.rb in jefferies_tube-0.1.3

- old
+ new

@@ -1,3 +1,9 @@ module JefferiesTube - VERSION = "0.1.2" + VERSION = "0.1.3" + + def self.latest_rubygems_version + JSON.parse(Net::HTTP.get('rubygems.org', '/api/v1/versions/jefferies_tube/latest.json'))["version"] + rescue + nil + end end