Sha256: 23aaa5c5587670a8a220663764a0f0202ea34ae24dd0a34803179260cdf6b7d9

Contents?: true

Size: 579 Bytes

Versions: 12

Compression:

Stored size: 579 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
    # This used to be called `#to_s`, but that made things difficult when testing.
    def value
      maid = "Maid/#{ ::Maid.const_get(:VERSION) }"
      
      "#{ maid } (#{ RUBY_DESCRIPTION })"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
maid-0.6.0.alpha.6 lib/maid/user_agent.rb
maid-0.6.0.alpha.5 lib/maid/user_agent.rb
maid-0.6.0.alpha.4 lib/maid/user_agent.rb
maid-0.6.0.alpha.3 lib/maid/user_agent.rb
maid-0.6.0.alpha.2 lib/maid/user_agent.rb
maid-0.6.0.alpha.1 lib/maid/user_agent.rb
maid-0.5.0 lib/maid/user_agent.rb
maid-0.4.2 lib/maid/user_agent.rb
maid-0.5.0.alpha.1 lib/maid/user_agent.rb
maid-0.4.1 lib/maid/user_agent.rb
maid-0.4.0 lib/maid/user_agent.rb
maid-0.4.0.beta.2 lib/maid/user_agent.rb