Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' into rails

  • Loading branch information...
commit 9093a87f65aaf8cf200e846dc25f56d9b0c9df0c 2 parents 4cc9464 + 80e3df1
Winton Welsh authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/gem_template/gems.rb
11 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)
Please sign in to comment.
Something went wrong with that request. Please try again.