Skip to content

Commit

Permalink
Merge pull request #2 from mattn/fix_error
Browse files Browse the repository at this point in the history
fix error.
thanks @mattn
  • Loading branch information
bovi committed Jan 4, 2013
2 parents 6dc1bb4 + 2528128 commit 10e4af0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mgem.rb
Expand Up @@ -92,7 +92,6 @@ def size; @gems.size; end
def activate(gem_name)
if check_gem(gem_name)
gems = active + @gems.select {|g| g.name == gem_name}
gems.uniq!
save_active_gems(gems)
puts "'#{gem_name}' activated!"
else
Expand Down Expand Up @@ -131,7 +130,7 @@ def check_gem(gem_name)

def save_active_gems(active_gem_list)
File.open(@config[:mgem_active], 'w+') do |f|
active_gem_list.flatten.uniq.each do |mrbgem|
active_gem_list.uniq.each do |mrbgem|
f.puts mrbgem.name
end
end
Expand Down

0 comments on commit 10e4af0

Please sign in to comment.