Sha256: e97b98a718f145d4cc921bc8f671e0cb65167cdfc995a17c9f05427e95a4aaa1
Contents?: true
Size: 242 Bytes
Versions: 2
Compression:
Stored size: 242 Bytes
Contents
module Nugem def self.camel_case(str) Thor::Util.camel_case str.tr('-', '_') end def self.expand_env(str) str.gsub(/\$([a-zA-Z_][a-zA-Z0-9_]*)|\${\g<1>}|%\g<1>%/) do ENV.fetch(Regexp.last_match(1), nil) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nugem-0.8.1 | lib/util.rb |
nugem-0.8.0 | lib/util.rb |