Sha256: e6464efd82550553c85b48d233c528d428600ee2b6ec37b2082b9eab65d3183a

Contents?: true

Size: 637 Bytes

Versions: 15

Compression:

Stored size: 637 Bytes

Contents

# -*- coding: utf-8 -*-

module Woothee::Util
  def update_map(target, source)
    source.keys.each do |key|
      next if key == Woothee::KEY_LABEL or key == Woothee::KEY_TYPE
      if source[key].length > 0
        target[key] = source[key]
      end
    end
  end

  def update_category(target, category)
    target[Woothee::ATTRIBUTE_CATEGORY] = category
  end

  def update_version(target, version)
    target[Woothee::ATTRIBUTE_VERSION] = version
  end

  def update_os(target, os)
    target[Woothee::ATTRIBUTE_OS] = os
  end

  def update_os_version(target, version)
    target[Woothee::ATTRIBUTE_OS_VERSION] = version
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
woothee-1.13.0 lib/woothee/util.rb
woothee-1.11.1 lib/woothee/util.rb
woothee-1.11.0 lib/woothee/util.rb
woothee-1.10.0 lib/woothee/util.rb
woothee-1.9.0 lib/woothee/util.rb
woothee-1.8.0 lib/woothee/util.rb
woothee-1.7.0 lib/woothee/util.rb
woothee-1.5.0 lib/woothee/util.rb
woothee-1.4.0 lib/woothee/util.rb
woothee-1.3.0 lib/woothee/util.rb
woothee-1.2.0 lib/woothee/util.rb
woothee-1.1.1 lib/woothee/util.rb
woothee-1.1.0 lib/woothee/util.rb
woothee-1.0.1 lib/woothee/util.rb
woothee-1.0.0 lib/woothee/util.rb