ruby script to generate the routes based on the rails PR.

https://github.com/stevegraham/rails/pull/1
This commit is contained in:
c9s 2014-05-16 18:03:20 +08:00
parent 0e488403a9
commit 6b39b72ebe

6
gen_routes.rb Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env ruby
arr = ["foo", "bar", "baz", "qux", "quux", "corge", "grault", "garply"]
paths = arr.permutation(3).map { |a| "/#{a.join '/'}" }
paths.each do |path|
puts "rtree_insert_path(n, \"#{path}\", NULL);"
end