lib/coverband/s3_web.rb in coverband-1.5.4 vs lib/coverband/s3_web.rb in coverband-2.0.0.alpha

- old
+ new

@@ -1,21 +1,19 @@ +# frozen_string_literal: true + require 'sinatra/base' module Coverband - class S3Web < Sinatra::Base - set :public_folder, proc { File.expand_path('public', Gem::Specification.find_by_name('simplecov-html').full_gem_path) } get '/' do - s3.get_object(bucket: Coverband.configuration.s3_bucket, key:'coverband/index.html').body.read + s3.get_object(bucket: Coverband.configuration.s3_bucket, key: 'coverband/index.html').body.read end private def s3 @s3 ||= Aws::S3::Client.new end - end - end