RubyGems Navigation menu

pics_or_it_didnt_happen 1.1.5

Sometimes, you might want your HTML to include a one-off image file that is just for one person. Making this file public may be undesireable for security reasons, or perhaps simply because it is not worth the overhead of multiple HTTP requests. This gem provides a utility method that takes a locally-saved image file, perhaps within your non-public tmp directory, encodes it as Base64, and returns an HTML <img> element with the correct data URL attributes. It is made possible by the RFC 2397 scheme, which is now fairly well supported in modern browsers.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.1.5 - August 16, 2023 (5.5 KB)
  2. 1.1.4 - August 16, 2023 (5.5 KB)
  3. 1.1.3 - June 09, 2023 (5 KB)
  4. 1.1.2 - April 20, 2023 (5 KB)
  5. 1.0.0 - November 16, 2022 (5 KB)

Development Dependencies (1):

rspec >= 0

Owners:

Pushed by:

Authors:

  • Greg Matthew Crossley

SHA 256 checksum:

a87d7ca0a7f98e17dd516411a3fc36c4eeb13b1c1ce2192eabfae41bfd60b39a

Total downloads 1,891

For this version 394

License:

MIT

Required Ruby Version: >= 0

Links: