Post

Gem Flico 2.0.0 Released!

Hey folks!

Happy to announce that Gem Flico v2.0.0 has been successfully released with Ruby version 3.2.2.

Flico is CLI tool to a create collage from user desired keywords using Flickr with MiniMagick Montage.

Its been a while that this gem didn’t get any updates but I will surely keep it updated!

A few learning from the upgrade:

  • Avoid calling Kernal.open with following code
    1
    2
    
      url = "http://<some website>/<some picture>.png"
      open(url, read_timeout: 10)
    

    instead if you are using open-uri then do

    1
    2
    3
    4
    
      require 'open-uri'
    
      url = "http://<some website>/<some picture>.png"
      URI.open(url, read_timeout: 10)
    
  • Bump up your dependencies sooner before they have a major release to avoid breaking changes.

  • Lock your dependencies, this will ensure that your gem doesn’t fail. Make sure to use:
    • a specific version like:
      1
      
        'rake', '~> 13.0.6'
      
    • closed version bounds like:
      1
      
        'rake', '~> 13.0', '>= 13.0.6'
      
    • but not open bounds like:
      1
      
        'rake', '>= 13.0.6'
      
  • Make frequent releases.

  • Maintain changelogs and releases.

Lots of good stuff on the way! Keep looking!

Thanks! :)

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.