distance_of_time_in_words:用Rails更好的时间间隔

时间:2021-05-03 11:38:56
【文件属性】:
文件名称:distance_of_time_in_words:用Rails更好的时间间隔
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-03 11:38:56
Ruby 多蒂 该dotiw库可将distance_of_time_in_words添加到任何Ruby项目中,或使用更准确的输出覆盖Rails中的默认实现。 您是否想将精度降低到秒? 我也是。这就是为什么我制造了这种宝石。 安装 添加到您的Gemfile 。 gem 'dotiw' 运行bundle install 。 纯Ruby require 'dotiw' include DOTIW :: Methods 滑轨 require 'dotiw' include ActionView :: Helpers :: DateHelper include ActionView :: Helpers :: TextHelper include ActionView :: Helpers :: NumberHelper distance_of_time_in_words 以此为例: >> dis
【文件预览】:
distance_of_time_in_words-master
----.gitignore(71B)
----.rspec(31B)
----gemfiles()
--------rails_5.2.gemfile(146B)
--------rails_4.gemfile(144B)
--------rails_5.1.gemfile(146B)
--------rails_6.0.gemfile(146B)
--------rails_5.0.gemfile(146B)
--------.bundle()
----CONTRIBUTING.md(1KB)
----CHANGELOG.md(3KB)
----.github()
--------workflows()
----spec()
--------spec_helper.rb(204B)
--------lib()
----README.markdown(8KB)
----lib()
--------dotiw()
--------dotiw.rb(934B)
----benchmarks()
--------time_hash_bench.rb(469B)
----dotiw.gemspec(1KB)
----Appraisals(270B)
----Gemfile(69B)
----MIT-LICENSE(1KB)
----Rakefile(225B)

网友评论