Sha256: 4a46b5370b37285a50c2f327bf55ef4680658e271eb4232ab2a30a04ade2d45f
Contents?: true
Size: 619 Bytes
Versions: 4
Compression:
Stored size: 619 Bytes
Contents
# Web Application Builder module WAB # Returns a file contents from the gem export directory. def self.get_export(path) if path.nil? || path.empty? path = '/index.html' elsif !path.start_with?('/') path = "/#{path}" end raise ForbiddenError.new(path) if path.include?('..') path = File.expand_path("#{__dir__}/../export#{path}") File.open(path) { |f| f.read() } end end require 'wab/controller' require 'wab/data' require 'wab/errors' require 'wab/open_controller' require 'wab/shell' require 'wab/shell_logger' require 'wab/utils' require 'wab/uuid' require 'wab/version'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wabur-0.6.2 | lib/wab.rb |
wabur-0.6.1 | lib/wab.rb |
wabur-0.6.0 | lib/wab.rb |
wabur-0.5.0 | lib/wab.rb |