Module: Geminabox::GemListMerge::CombineLocalAndRemoteGemVersions

Defined in:
lib/geminabox/gem_list_merge.rb

Constant Summary collapse

IGNORE_DEPENDENCIES =
0..-2

Class Method Summary collapse

Class Method Details

.merge(local_gem_list, remote_gem_list) ⇒ Object



32
33
34
35
36
37
# File 'lib/geminabox/gem_list_merge.rb', line 32

def self.merge(local_gem_list, remote_gem_list)
  merged = local_gem_list + remote_gem_list
  merged.uniq! {|val| val.values[IGNORE_DEPENDENCIES] }
  merged.sort_by! {|x| x.values[IGNORE_DEPENDENCIES] }
  merged
end