You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

downloads.rb 286 B

2 years ago
123456789
  1. # frozen_string_literal: true
  2. require 'httparty'
  3. require 'json'
  4. IO.read("#{File.dirname(__FILE__)}/versions.txt").each_line do |version|
  5. json = HTTParty.get("http://rubygems.org/api/v1/downloads/cucumber-#{version.strip}.json")
  6. puts JSON.parse(json.body)['version_downloads']
  7. end

No Description

Contributors (1)