Sha256: 17b5bc20b4d2bbf326bcd22bff8da5506eb55e5ea5466ef3976997a45453b532

Contents?: true

Size: 589 Bytes

Versions: 17

Compression:

Stored size: 589 Bytes

Contents

# Version information for the host system, kind of like a browser's user agent string.
#
# This could potentially be a part of `Platform` or `VERSION` but both of those are used when building the gemspec,
# which can't depend on other gems.  FIXME: That's no longer accurate, so this could be `Platform.user_agent` instead.
module Maid::UserAgent
  class << self
    def short
      "Maid/#{ ::Maid.const_get(:VERSION) }"
    end

    # This used to be called `#to_s`, but that made things difficult when testing.
    def value
      "#{ short } (#{ RUBY_DESCRIPTION })"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
maid-0.10.0.pre.alpha.1 lib/maid/user_agent.rb
maid-0.9.0.alpha.2 lib/maid/user_agent.rb
maid-0.9.0.alpha.1 lib/maid/user_agent.rb
maid-0.8.0.alpha.4 lib/maid/user_agent.rb
maid-0.8.0.alpha.3 lib/maid/user_agent.rb
maid-0.8.0.alpha.2 lib/maid/user_agent.rb
maid-0.8.0.alpha.1 lib/maid/user_agent.rb
maid-0.7.0 lib/maid/user_agent.rb
maid-0.7.0.beta.1 lib/maid/user_agent.rb
maid-0.7.0.alpha.4 lib/maid/user_agent.rb
maid-0.7.0.alpha.2 lib/maid/user_agent.rb
maid-0.7.0.alpha.1 lib/maid/user_agent.rb
maid-0.6.1 lib/maid/user_agent.rb
maid-0.6.1.alpha.1 lib/maid/user_agent.rb
maid-0.6.0 lib/maid/user_agent.rb
maid-0.6.0.beta.2 lib/maid/user_agent.rb
maid-0.6.0.beta.1 lib/maid/user_agent.rb