Sha256: e9798d7ab1a22adfe72fbabfff67f23a713c6580cdfc4425c093161ba8eb7256

Contents?: true

Size: 537 Bytes

Versions: 13

Compression:

Stored size: 537 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
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
woothee-0.4.2 lib/woothee/util.rb
woothee-0.4.1 lib/woothee/util.rb
woothee-0.4.0 lib/woothee/util.rb
woothee-0.3.9 lib/woothee/util.rb
woothee-0.3.8 lib/woothee/util.rb
woothee-0.3.5 lib/woothee/util.rb
woothee-0.3.4 lib/woothee/util.rb
woothee-0.3.3 lib/woothee/util.rb
woothee-0.3.2 lib/woothee/util.rb
woothee-0.3.0 lib/woothee/util.rb
woothee-0.2.4 lib/woothee/util.rb
woothee-0.2.1 lib/woothee/util.rb
woothee-0.2.0 lib/woothee/util.rb