Sha256: 66257bdfcf33cee19a6613cb648197a6cbe2bd742476cf46cdba01f8520c3c7f

Contents?: true

Size: 1.46 KB

Versions: 41

Compression:

Stored size: 1.46 KB

Contents

require 'mini_magick'
require 'frameit/frame_downloader'
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 'frameit/options'
require 'frameit/trim_box'

require 'fastlane_core'

module Frameit
  class << self
    attr_accessor :config
  end

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
  UI = FastlaneCore::UI
  ROOT = Pathname.new(File.expand_path('../..', __FILE__))

  # Defaults to latest, might be a time stamp if defined in the Framefile.json
  def self.frames_version
    return @frames_version if @frames_version
    @frames_version = "latest"

    config_files = Dir["./**/Framefile.json"]
    if config_files.count > 0
      config = ConfigParser.new.load(config_files.first)
      if config.data["device_frame_version"].to_s.length > 0
        @frames_version = config.data["device_frame_version"]
      end
    end

    UI.success("Using device frames version '#{@frames_version}'")

    return @frames_version
  end
end

# rubocop:disable all
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
# rubocop:enable all

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 frameit/lib/frameit.rb
fastlane-2.73.0 frameit/lib/frameit.rb
fastlane-2.73.0.beta.20180105010003 frameit/lib/frameit.rb
fastlane-2.73.0.beta.20180104010004 frameit/lib/frameit.rb
fastlane-2.73.0.beta.20180103010003 frameit/lib/frameit.rb
fastlane-2.72.0 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20180102010003 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20180101010003 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20171231010003 frameit/lib/frameit.rb
fastlane-2.71.1 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20171230010003 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20171229010003 frameit/lib/frameit.rb
fastlane-2.72.0.beta.20171228010004 frameit/lib/frameit.rb
fastlane-2.71.0 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171227010004 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171226010004 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171225010003 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171224010003 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171223010003 frameit/lib/frameit.rb
fastlane-2.71.0.beta.20171222010003 frameit/lib/frameit.rb