Skip to content

Commit

Permalink
New gem template: prefer require_relative to require
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Nov 17, 2020
1 parent 1fa4ee3 commit 8a05fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
@@ -1,8 +1,8 @@
# frozen_string_literal: true

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

<%- config[:constant_array].each_with_index do |c, i| -%>
Expand Down

0 comments on commit 8a05fa1

Please sign in to comment.