A gem to which detects where a website is hosted
Tanguy Andreani <[email protected]> Thu, 4 Jul 2019 11:30:01 +0200
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <[email protected]> |
Would people be interested in this?
While developing a web service of mine, I thought it would be cool to detect where the user’s website is hosted and to use the matching icon instead of a generic "external url" one.
So I started developing it using both regexes and DNS queries. So far I have it implemented for both Neocities and Github pages but it could be extended to literally everything.
An example,
p which_host("example.com")
# :heroku
If you are interested in this, I could start working on a gem separate from my initial project and release it on Rubygems.
If someone had an idea of a (descriptive) name I’d gladly take it.
Sent via Migadu.com, world's easiest email hosting
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>