lib/mb/bootstrap/template.rb in motherbrain-1.1.1 vs lib/mb/bootstrap/template.rb in motherbrain-1.1.2

- old
+ new

@@ -1,7 +1,5 @@ -require 'faraday_middleware/response/follow_redirects' - module MotherBrain module Bootstrap class Template class << self # Install a bootstrap template into the templates directory @@ -22,10 +20,10 @@ if filename_or_url.match(URI.regexp) if filename_or_url.match(URI.regexp(['http','https'])) uri = URI.parse(filename_or_url) begin conn = Faraday.new do |b| - b.use FaradayMiddleware::FollowRedirects + b.use Ridley::Middleware::FollowRedirects b.adapter :net_http end response = conn.get filename_or_url template_path.open("w+") do |file| file.write(response.body)