shrinker:缩小文本中的 url 并将这些 url 存储在后端中

时间:2021-06-16 17:26:29
【文件属性】:
文件名称:shrinker:缩小文本中的 url 并将这些 url 存储在后端中
文件大小:22KB
文件格式:ZIP
更新时间:2021-06-16 17:26:29
Ruby 收缩机 替换所有出现的域并使用令牌创建缩短的链接。 安装 将此行添加到应用程序的 Gemfile 中: gem 'shrinker' 然后执行: $ bundle 或者自己安装: $ gem install shrinker 用法 Shrinker . configure do backend 'Redis' backend_options client : { port : 6388 , host : '192.168.12.22' } , expires_in : 2 . weeks # or connection: Redis.current expanded_domain /(www.)?google.com/ # this also works with protocol exclude_path /assets|images/ anchors
【文件预览】:
shrinker-master
----LICENSE.txt(1KB)
----.ruby-version(6B)
----lib()
--------shrinker.rb(1KB)
--------shrinker()
----Gemfile(142B)
----.ruby-gemset(9B)
----spec()
--------lib()
--------spec_helper.rb(85B)
--------support()
----Rakefile(28B)
----shrinker.gemspec(749B)
----README.md(2KB)
----.rspec(8B)
----.gitignore(154B)

网友评论