Sha256: da43905f2b5fd768e0a1d382ab7e94ffe7b0847197cf284cb419572209e74fe0

Contents?: true

Size: 311 Bytes

Versions: 26

Compression:

Stored size: 311 Bytes

Contents

module Paperclip
  class HttpUrlProxyAdapter < UriAdapter

    REGEXP = /\Ahttps?:\/\//

    def initialize(target)
      super(URI(target))
    end

  end
end

Paperclip.io_adapters.register Paperclip::HttpUrlProxyAdapter do |target|
  String === target && target =~ Paperclip::HttpUrlProxyAdapter::REGEXP
end

Version data entries

26 entries across 24 versions & 3 rubygems

Version Path
paperclip-4.3.7 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/paperclip-4.3.6/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-5.0.0.beta2 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-5.0.0.beta1 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.6 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.5 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.4 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.3 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.2 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.1 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.2/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.3/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.3.0 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.2.4 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.2.3 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.2.2 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-4.2.1 lib/paperclip/io_adapters/http_url_proxy_adapter.rb