Sha256: 7778ebd1c4dbe56dffa340ac5d37baefb5de3655611dbee270e656c0f9d848de

Contents?: true

Size: 710 Bytes

Versions: 37

Compression:

Stored size: 710 Bytes

Contents

require 'bundler/gem_tasks'
require 'bundler'

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.pattern = 'test/unit/**/*_test.rb'
  t.ruby_opts << '-rubygems'
  t.libs << 'test'
  t.verbose = true
end

desc "Update the built-in CA root certificate file"
task :update_cert_file do
  require 'net/http'
  require 'uri'
  cert_uri = URI('http://curl.haxx.se/ca/cacert.pem')
  response = Net::HTTP.get_response(cert_uri)
  if response.code == '200'
    cert_path = File.expand_path('../lib/certs/cacert.pem', __FILE__)
    File.open(cert_path, 'w') { |cert_file| cert_file << response.body }
  else
    fail "Could not download certificate bundle from #{cert_uri}"
  end
end

task :default => "test"

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
active_utils-3.4.1 Rakefile
active_utils-3.4.0 Rakefile
active_utils-3.3.19 Rakefile
active_utils-3.3.18 Rakefile
active_utils-3.3.17 Rakefile
active_utils-3.3.16 Rakefile
active_utils-3.3.15 Rakefile
active_utils-3.3.14 Rakefile
active_utils-3.3.13 Rakefile
active_utils-3.3.12 Rakefile
active_utils-3.3.11 Rakefile
active_utils-3.3.10 Rakefile
active_utils-3.3.9 Rakefile
active_utils-3.3.8 Rakefile
active_utils-3.3.7 Rakefile
active_utils-3.3.6 Rakefile
active_utils-3.3.5 Rakefile
active_utils-3.3.4 Rakefile
active_utils-3.3.3 Rakefile
active_utils-3.3.2 Rakefile