Sha256: 52d16689d6959653827304e41a5162cf411388bd0a73ccca84eb96be2cca6eb6

Contents?: true

Size: 295 Bytes

Versions: 13

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require 'tempfile'
require 'fusuma/config'

module Fusuma
  module ConfigHelper
    module_function

    def load_config_yml=(string)
      Config.custom_path = Tempfile.open do |temp_file|
        temp_file.tap { |f| f.write(string) }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
fusuma-plugin-wmctrl-1.3.0 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-1.2.0 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-1.1.0 spec/helpers/config_helper.rb
fusuma-plugin-keypress-0.5.0 spec/helpers/config_helper.rb
fusuma-plugin-sendkey-0.6.4 spec/helpers/config_helper.rb
fusuma-plugin-keypress-0.4.2 spec/helpers/config_helper.rb
fusuma-plugin-sendkey-0.6.3 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-1.0.1 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-1.0.0 spec/helpers/config_helper.rb
fusuma-plugin-sendkey-0.6.2 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-0.4.3 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-0.4.2 spec/helpers/config_helper.rb
fusuma-plugin-keypress-0.4.1 spec/helpers/config_helper.rb