Sha256: 5ad045fa23aa12e5536d898a5e2eabdc9567270e59bd886b4611758ff36d8911
Contents?: true
Size: 487 Bytes
Versions: 14
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true require 'active_support' require 'lhc/version' module LHC class Request module UserAgentConcern extend ActiveSupport::Concern included do Typhoeus::Config.user_agent = begin version = LHC::VERSION application = defined?(Rails) ? Rails.application.class.parent_name : nil "LHC (#{[version, application].compact.join('; ')}) [https://github.com/local-ch/lhc]" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems