We already have Countries for countries, currency, phone numbers, languages (and Carmen also). Almost every http library does the status codes, I default to using Rack most of the time.
If you’re going to do something like this, probably be useful to just wrap countries with ‘literal-countries’?
Countries looks great. Unfortunately you don’t get any of the LSP benefits if you generate it dynamically, but Countries could be used to build the gem.
There is a gem for time zones. They change. They’re not static. Same with countries. In fact, country names are different depending on who you ask. Taiwan is one. Western Sahara is another.
Yeah, I mean the architecture of Faker would work for this use case. Namespacing for the different enums for better organization. Like a Swiss Army knife of enums.
Comments
If you’re going to do something like this, probably be useful to just wrap countries with ‘literal-countries’?