Permalink
Browse files

Merge branch 'master' into spec-activerecord

  • Loading branch information...
2 parents b51a78a + 80e3df1 commit d1a0dc3029f52d5e501bf10448545040f6879e0e @winton committed Jan 2, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/gem_template/gems.rb
View
@@ -84,10 +84,13 @@ def gemset=(gemset)
end
def gemset_names
- [ :default, :solo ] + @gemsets[gemspec.name.to_sym].inject([]) { |array, (key, value)|
- array.push(key) if value.is_a?(::Hash)
- array
- }
+ (
+ [ :default, :solo ] +
+ @gemsets[gemspec.name.to_sym].inject([]) { |array, (key, value)|
+ array.push(key) if value.is_a?(::Hash)
+ array
+ }
+ ).uniq
end
def gemspec(reload=false)

0 comments on commit d1a0dc3

Please sign in to comment.