Git Product home page Git Product logo

freemail's Introduction

RailsConf 2022 - RAILS_ENV=demo link

Can I break this?: Writing resilient "save" methods video link

freemail's People

Contributors

a17levine avatar arumugaraja-thirumani avatar dhiemstra avatar dominikplsek avatar ehsanidme avatar hamdiakoguz avatar junichiito avatar mariokam avatar meineerde avatar pi-chan avatar smudge avatar sonicdoe avatar vdbilt avatar yeah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

freemail's Issues

Check permissions on data files of the released gem

The currently released gem version 0.2.0 has different file permissions on the data file. Specifically, the disposable.txt is not world-readable:

-rw-r----- 1 user group  4695 Oct  4 17:04 disposable.txt
-rw-r--r-- 1 user group 50937 Oct  4 17:04 free.txt

This results in file access errors in our deployment environment since the actual application user is not allowed to read the file anymore after the gem was installed by a different user.

It would be great if you could release a new version (maybe even with the current state of the data :) ) which ensures that all the files are world-readable. For this, you probably need to change the file permission in your local checkout where build and push the gem.

Consider invalid format email

As of version 0.5.0, get_domain method is implemented like this:

  def self.get_domain(email)
    email.split('@').last.downcase.strip
  end

However, it can return wrong domain or raise error for invalid inputs:

Freemail.get_domain('apple.com@') #=> "apple.com"
Freemail.get_domain('@') #=> undefined method `downcase' for nil:NilClass (NoMethodError)

It should raise ArgumentError:

Freemail.get_domain('apple.com@') #=> ArgumentError
Freemail.get_domain('@') #=> ArgumentError

Or probably should return empty value (or nil):

Freemail.get_domain('apple.com@') #=> ""
Freemail.get_domain('@') #=> ""

Updating the domain lists

Hello dear maintainers,

First of all thanks for your work on this gem. Kudo!

I was looking at the domains list and probably the lists have been growing for the last 3 years.
I was wondering whether we could update it from time to time. For this I was thinking to this which provides frequently updated a list in different formats.

I would be glad to hear your opinion and, if needed, would be happy to contribute.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.