lib/frameit.rb in frameit-1.0.1 vs lib/frameit.rb in frameit-2.0.0

- old
+ new

@@ -1,13 +1,27 @@ require 'mini_magick' require 'frameit/version' require 'frameit/frame_converter' +require 'frameit/device_types' +require 'frameit/runner' +require 'frameit/screenshot' +require 'frameit/config_parser' +require 'frameit/offsets' require 'frameit/editor' +require 'frameit/template_finder' +require 'frameit/strings_parser' +require 'frameit/mac_editor' require 'frameit/dependency_checker' require 'fastlane_core' module Frameit Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore - - Frameit::DependencyChecker.check_dependencies end + + +class ::Hash + def fastlane_deep_merge(second) + merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 } + self.merge(second, &merger) + end +end \ No newline at end of file