Sha256: e2c06786f89e4c305548bb46bd602338d841d59cf3b3b19c2c9124fe84ad9196

Contents?: true

Size: 524 Bytes

Versions: 22

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

require "rake/testtask"
require "rubocop/rake_task"

task default: %i[test rubocop]

Rake::TestTask.new do |t|
  t.pattern = "./test/**/*_test.rb"
end

RuboCop::RakeTask.new

#
# helpers
#

def fetch_file(url, dest)
  ::File.open(dest, "w") do |file|
    resp = Faraday.get(url)
    unless resp.status == 200
      abort("bad response when fetching: #{url}\n" \
        "Status #{resp.status}: #{resp.body}")
    end
    file.write(resp.body)
    puts "Successfully fetched: #{url}"
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
telnyx-3.0.5 Rakefile
telnyx-3.0.4 Rakefile
telnyx-3.0.3 Rakefile
telnyx-3.0.2 Rakefile
telnyx-3.0.0 Rakefile
telnyx-2.9.0 Rakefile
telnyx-2.8.0 Rakefile
telnyx-2.7.0 Rakefile
telnyx-2.6.0 Rakefile
telnyx-2.5.0 Rakefile
telnyx-2.4.0 Rakefile
telnyx-2.3.0 Rakefile
telnyx-2.2.0 Rakefile
telnyx-0.1.0 Rakefile
telnyx-0.0.8 Rakefile
telnyx-0.0.7 Rakefile
telnyx-0.0.6 Rakefile
telnyx-0.0.5 Rakefile
telnyx-0.0.4 Rakefile
telnyx-0.0.3 Rakefile