Permalink
Browse files

Merge pull request #367 from ndbroadbent/remove_flat_map

Replace flat_map with map .. flatten to restore 1.8.7 compatibility
  • Loading branch information...
2 parents ea5b03b + f13b6e7 commit 9571da10d5af722b72404140ba00deed2197d832 @ndbroadbent ndbroadbent committed Feb 7, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/capistrano/recipes/deploy/assets.rb
@@ -110,9 +110,7 @@
current_assets = Set.new
manifests.each do |yaml|
manifest = YAML.load(yaml)
- current_assets += manifest.to_a.flatten.flat_map do |file|
- [file, "#{file}.gz"]
- end
+ current_assets += manifest.to_a.flatten.map {|f| [f, "#{f}.gz"] }.flatten
end
current_assets += %w(manifest.yml sources_manifest.yml)

0 comments on commit 9571da1

Please sign in to comment.