aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/templates/newgem/lib/newgem.rb.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/lib/newgem.rb.tt')
-rw-r--r--lib/bundler/templates/newgem/lib/newgem.rb.tt12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/lib/newgem.rb.tt b/lib/bundler/templates/newgem/lib/newgem.rb.tt
new file mode 100644
index 0000000000..7d8ad90ab0
--- /dev/null
+++ b/lib/bundler/templates/newgem/lib/newgem.rb.tt
@@ -0,0 +1,12 @@
+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 %># Your code goes here...
+<%- (config[:constant_array].size-1).downto(0) do |i| -%>
+<%= " " * i %>end
+<%- end -%>