Skip to content

Releases: thutterer/initials

v0.4.3

Choose a tag to compare

@thutterer thutterer released this 30 Jun 07:23

Fixed:

  • Add missing xmlns="http://www.w3.org/2000/svg" attribute. Thanks @samuelpismel

Shrink ray!

Choose a tag to compare

@thutterer thutterer released this 22 Jan 18:14

Fixed:

  • Now only files in the lib/ folder are used when building the gem and files like the demo.png are not. This reduces the size of the gem by 90% 🙈

No name? No problem.

Choose a tag to compare

@thutterer thutterer released this 14 Jul 11:58

Fixed

  • Instead of raising an error, it now shows a question mark on grey background when provided with an empty name.

Shape up!

Choose a tag to compare

@thutterer thutterer released this 20 Jun 07:18

New

  • Adds an option to define the number of different background colors and makes sure that successive name values (A, B, C, ...) result in successive colors, with colors evenly distributed around the color (hue) wheel, resulting in a nice color palette.
  • Adds an option to set the shape of the initials background. Use :rect or the default :circle.

demo.png

v0.3.0

Choose a tag to compare

@thutterer thutterer released this 19 Jun 12:26

New

  • Now uses a system font stack which should pick a better font than a plain non-serif alone.
  • Adds an option to limit the initials length, so if you want all your avatars to only have a single letter, you can now set a limit of 1.

Ruby 3.0 compatibility

Choose a tag to compare

@thutterer thutterer released this 12 Jun 19:10
v0.2.1

Version 0.2.1

Hello World!

Choose a tag to compare

@thutterer thutterer released this 12 Jun 18:39

This is the first release of Initials. Checkout the README.md for instructions, but basically:

Initials.svg("Morty Smith", size: 64)