Sha256: 226636910b93cd11e18a694922ef2993800ebf58a08ae8e4faa2108f2d8eff71

Contents?: true

Size: 394 Bytes

Versions: 15

Compression:

Stored size: 394 Bytes

Contents

module CASino
  module ProcessorConcern
    module Browser
      def browser_info(user_agent)
        user_agent = UserAgent.parse(user_agent)
        "#{user_agent.browser} (#{user_agent.platform})"
      end

      def same_browser?(user_agent, other_user_agent)
        user_agent == other_user_agent || browser_info(user_agent) == browser_info(other_user_agent)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
casino-3.0.4 app/processors/casino/processor_concern/browser.rb
casino-2.0.7 app/processors/casino/processor_concern/browser.rb
casino-3.0.3 app/processors/casino/processor_concern/browser.rb
casino-3.0.2 app/processors/casino/processor_concern/browser.rb
casino-3.0.1 app/processors/casino/processor_concern/browser.rb
casino-3.0.0 app/processors/casino/processor_concern/browser.rb
casino-3.0.0.pre.2 app/processors/casino/processor_concern/browser.rb
casino-3.0.0.pre.1 app/processors/casino/processor_concern/browser.rb
casino-2.0.6 app/processors/casino/processor_concern/browser.rb
casino-2.0.5 app/processors/casino/processor_concern/browser.rb
casino-2.0.4 app/processors/casino/processor_concern/browser.rb
casino-2.0.3 app/processors/casino/processor_concern/browser.rb
casino-2.0.2 app/processors/casino/processor_concern/browser.rb
casino-2.0.1 app/processors/casino/processor_concern/browser.rb
casino-2.0.0 app/processors/casino/processor_concern/browser.rb