Sha256: 2190b64ac6f203593d3ddf099c4db7f9998bbb0f37fca30650379568aa2bb2c5

Contents?: true

Size: 271 Bytes

Versions: 10

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Weibo < Base
    def id
      :weibo
    end

    def name
      "Weibo"
    end

    def full_version
      ua[/(?:__weibo__)([\d.]+)/i, 1] || "0.0"
    end

    def match?
      ua =~ /__weibo__/i
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/weibo.rb
browser-5.0.0 lib/browser/weibo.rb
browser-4.2.0 lib/browser/weibo.rb
browser-4.1.0 lib/browser/weibo.rb
browser-4.0.0 lib/browser/weibo.rb
browser-3.0.3 lib/browser/weibo.rb
browser-3.0.2 lib/browser/weibo.rb
browser-3.0.1 lib/browser/weibo.rb
browser-3.0.0 lib/browser/weibo.rb
browser-2.7.1 lib/browser/weibo.rb