文件名称:seed_sort_toolkit:rails 种子文件排序工具
文件大小:7KB
文件格式:ZIP
更新时间:2024-07-10 11:52:23
Ruby
种子分类工具包 SeedSortToolkit是 rails 种子文件排序工具。 这个工具可以在不改变内容和格式的情况下,只替换顺序。 笔记: 如果您使用YAML.load和 sort 以及YAML.dump 。 你的种子的格式, diff 出来一点。 例如: 字符串的引号( "" , '' ) 将消失。 nil列将为空白。 该工具不会导致上述问题。 安装 将此行添加到应用程序的 Gemfile 中: gem 'seed_sort_toolkit' 然后执行: $ bundle 或者自己安装: $ gem install seed_sort_toolkit 用法 # numbers.yml data3 : id : 3 name : " three " data1 : id : 1 name : " one " data2 : id : 2
【文件预览】:
seed_sort_toolkit-master
----.coveralls.yml(23B)
----LICENSE.txt(1KB)
----lib()
--------seed_sort_toolkit.rb(113B)
--------seed_sort_toolkit()
----Gemfile(102B)
----Rakefile(134B)
----.travis.yml(57B)
----test()
--------minitest_helper.rb(152B)
--------test_data.rb(1013B)
--------test_sortable_seed_yaml.rb(1KB)
----README.md(2KB)
----.gitignore(118B)
----seed_sort_toolkit.gemspec(1KB)