Last active
November 12, 2020 22:08
-
-
Save jcortesg/54e36d64359bea4c355bd05066368b93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
names =["authenticity_token", "number_tickets", "entry_id", "entry_is_free", "is_iframe", "discount_code", "5389", "5390", "5391", "5402", "0_5391","id" ]
values = []
hash = { version: 1, variables: [{names: names , values[ values]}]}
Array(0..10).each {|n| values << ["FMDPnvGr3xwKQELKBZ5QHmZIw5U4iDMNzy9xiv6Bc+U=", 1, 498 , true, true, "test-code", "jhon", "cortes", "jhon.cortes+#{n}@vaico.co", "Empresa/Institución 0", "jhon.cortes+#{n}@vaico.co", "test-1"]}
File.open("sample.json", "wb") { |file| file.puts JSON.pretty_generate(hash) }