lib/jbundler/config.rb in jbundler-0.5.1 vs lib/jbundler/config.rb in jbundler-0.5.2
- old
+ new
@@ -101,17 +101,17 @@
end
def mirror
@mirror ||= jbundler_env('JBUNDLE_MIRROR')
# nice to have no leading slash
- @mirror.sub!( /\/$/, '' ) if @mirror
+ @mirror = @mirror.sub( /\/$/, '' ) if @mirror
@mirror
end
def rubygems_mirror
@rubygems_mirror ||= jbundler_env('BUNDLE_RUBYGEMS_MIRROR')
# here a leading slash is needed !!
- @rubygems_mirror.sub!( /([^\/])$/ , "\\1/" ) if @rubygems_mirror
+ @rubygems_mirror = @rubygems_mirror.sub( /([^\/])$/ , "\\1/" ) if @rubygems_mirror
@rubygems_mirror
end
def work_dir
@work_dir ||= jbundler_env('JBUNDLE_WORK_DIR') || 'target'