domainator:从 URL 解析注册的域名

时间:2021-07-02 22:37:09
【文件属性】:
文件名称:domainator:从 URL 解析注册的域名
文件大小:14KB
文件格式:ZIP
更新时间:2021-07-02 22:37:09
Ruby 域名器 从 URI 中提取注册的域名。 安装 将此行添加到应用程序的 Gemfile 中: gem 'domainator' 然后执行: $ bundle 或者自己安装: $ gem install domainator 用法 解析域 使用 Domainator 解析域有两种方法: Domainator.parse和Domainator#parse 。 域名解析器 使用 URI 对象或可解析的 URI 字符串调用Domainator.parse方法。 Domainator . parse ( 'http://www.google.com' ) # => "google.com" uri = URI . parse ( 'http://maps.google.co.uk/map?foo=bar' ) Domainator . parse ( uri ) # => "goog
【文件预览】:
domainator-master
----domainator.gemspec(950B)
----Rakefile(28B)
----Gemfile(95B)
----.rspec(8B)
----spec()
--------domainator_spec.rb(3KB)
--------spec_helper.rb(594B)
----.gitignore(185B)
----lib()
--------domainator()
--------domainator.rb(2KB)
--------extensions.txt(18KB)
----README.md(4KB)
----LICENSE.txt(1KB)

网友评论