Sha256: f61bbcc24dd962ea213f5dd3ecee53b54741c5a8b06d5f7d7c7f02c81d8102a7
Contents?: true
Size: 237 Bytes
Versions: 49
Compression:
Stored size: 237 Bytes
Contents
#!/usr/bin/env ruby content = IO.read(ARGV[0]) content.gsub!(/Doing.settings((\[.*?\])+)/) do m = Regexp.last_match keypath = m[0].scan(/\['([^\]]+)'\]/).map { |e| e[0] }.join('.') "Doing.setting('#{keypath}')" end puts content
Version data entries
49 entries across 49 versions & 1 rubygems