Sha256: 742b21fc94fb9e35500c725bb11962ef709f19779098fa0f749e7aa1dfd2be25

Contents?: true

Size: 494 Bytes

Versions: 40

Compression:

Stored size: 494 Bytes

Contents

require "<%= config[:namespaced_path] %>/version"
<%- if config[:ext] -%>
require "<%= config[:namespaced_path] %>/<%= config[:underscored_name] %>"
<%- end -%>

<%- config[:constant_array].each_with_index do |c, i| -%>
<%= "  " * i %>module <%= c %>
<%- end -%>
<%= "  " * config[:constant_array].size %>class Error < StandardError; end
<%= "  " * config[:constant_array].size %># Your code goes here...
<%- (config[:constant_array].size-1).downto(0) do |i| -%>
<%= "  " * i %>end
<%- end -%>

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
bundler-2.1.0.pre.1 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.6 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.5 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.4 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.3 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.1 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.0 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.2 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.0.pre.3 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.3 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.1 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.0.0 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.0.pre.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.0.0.pre.1 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.1 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.0 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.0.pre.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-1.17.0.pre.1 lib/bundler/templates/newgem/lib/newgem.rb.tt