Sha256: dc3df29d5f81b8baea0518e4ad7f0213e69eeaccf4fbeffed0b6cb11e3932590

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

require 'bundler'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'haravan_theme'

task :default => [:spec]

Rake::TestTask.new 'spec' do |t|
  ENV['test'] = 'true'
  t.libs = ['lib', 'spec']
  t.ruby_opts << '-rubygems'
  t.verbose = true
  t.test_files = FileList['spec/**/*_spec.rb']
end

desc "Update the built-in CA root certificate file"
task :update_cert_file do
  require 'net/http'
  require 'uri'
  cert_uri = URI(HaravanTheme::REMOTE_CERT_FILE)
  response = Net::HTTP.get_response(cert_uri)
  if response.code == '200'
    File.open(HaravanTheme::CA_CERT_FILE, 'wb') { |cert_file| cert_file << response.body }
  else
    fail "Could not download certificate bundle from #{cert_uri}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
haravan_theme-0.0.26 Rakefile
haravan_theme-0.0.25 Rakefile