lib/eefgilm/gemfile.rb in eefgilm-1.1.1 vs lib/eefgilm/gemfile.rb in eefgilm-1.1.2
- old
+ new
@@ -33,9 +33,14 @@
group_block = :all
file_lines = gemfile.readlines
file_lines.each do |line|
self.source = line if line.match(/^source/)
+
+ if self.source == "source 'http://rubygems.org'\n"
+ self.source = "source 'https://rubygems.org'\n"
+ end
+
self.rubyversion = line if line.match(/^ruby/)
if line.match(/^\s*group/)
group_block = line.match(/^group (:.*)[,|\s]/)[1]
elsif line.match(/^\s*end/)