Sha256: 8813aee930f300abd62d6853dd44bdee5c46806c16e193638f7ce6aac2524e89
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
<% if data? %> require 'pathname' require 'rbconfig' require 'rbconfig/datadir' <% end %> module <%= module_name %> VERSION = '<%= version %>' <% if application? || extension? %> <% end %> <% if application? %> autoload :Application, '<%= name %>/application' <% end %> <% if extension? %> autoload :<%= extension_module_name %>, '<%= name %>/<%= extension_name %>' <% end %> <% if data? %> def self.datadir @@datadir ||= begin datadir = RbConfig.datadir('<%= name %>') if !File.exist?(datadir) warn "#{datadir} does not exist. Trying again with data directory relative to __FILE__." datadir = File.expand_path('../../data/<%= name %>', __FILE__) end Pathname.new(datadir) end end <% end %> end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.6.2 | data/shoe/templates/module.erb |
shoe-0.6.1 | data/shoe/templates/module.erb |
shoe-0.6.0 | data/shoe/templates/module.erb |