Skip to content

Commit

Permalink
Deal with robocop warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 16, 2017
1 parent f83c137 commit f6bab94
Show file tree
Hide file tree
Showing 109 changed files with 110 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
Expand Down
1 change: 1 addition & 0 deletions lib/browser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true

require "browser/browser"
require "browser/rails" if defined?(::Rails)
1 change: 1 addition & 0 deletions lib/browser/accept_language.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class AcceptLanguage
def self.languages
Expand Down
1 change: 1 addition & 0 deletions lib/browser/action_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "action_controller/railtie"

module Browser
Expand Down
1 change: 1 addition & 0 deletions lib/browser/alipay.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Alipay < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Base
include DetectVersion
Expand Down
1 change: 1 addition & 0 deletions lib/browser/blackberry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class BlackBerry < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/bot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Bot
def self.detect_empty_ua!
Expand Down
1 change: 1 addition & 0 deletions lib/browser/browser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "set"
require "yaml"
require "pathname"
Expand Down
1 change: 1 addition & 0 deletions lib/browser/chrome.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Chrome < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/detect_version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module DetectVersion
private
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "browser/device/base"
require "browser/device/unknown"
require "browser/device/ipad"
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/blackberry_playbook.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class BlackBerryPlaybook < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/ipad.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Ipad < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/iphone.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Iphone < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/ipod_touch.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class IpodTouch < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/kindle.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Kindle < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/kindle_fire.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class KindleFire < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/playstation3.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class PlayStation3 < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/playstation4.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class PlayStation4 < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/psp.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class PSP < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/psvita.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class PSVita < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/surface.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Surface < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/tv.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class TV < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/unknown.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Unknown < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/wii.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Wii < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/wiiu.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class WiiU < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/xbox_360.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class Xbox360 < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/device/xbox_one.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Device
class XboxOne < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/edge.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Edge < InternetExplorer
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/firefox.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Firefox < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/generic.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Generic < Base
NAMES = {
Expand Down
1 change: 1 addition & 0 deletions lib/browser/internet_explorer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class InternetExplorer < Base
# https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx#TriToken
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "browser/meta/base"
require "browser/meta/generic_browser"
require "browser/meta/id"
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
def self.rules
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/device.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Device < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/generic_browser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class GenericBrowser < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Id < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/ie.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class IE < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/ios.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class IOS < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/mobile.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Mobile < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/modern.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Modern < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/platform.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Platform < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/proxy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Proxy < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/safari.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Safari < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/tablet.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Tablet < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/meta/webkit.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
module Meta
class Webkit < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/micro_messenger.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class MicroMessenger < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/middleware.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "uri"
require "browser/middleware/context"

Expand Down
1 change: 1 addition & 0 deletions lib/browser/middleware/context.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Middleware
class Context
Expand Down
1 change: 1 addition & 0 deletions lib/browser/middleware/context/additions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "browser/middleware/context/url_methods"

module Browser
Expand Down
1 change: 1 addition & 0 deletions lib/browser/middleware/context/url_methods.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Middleware
class Context
Expand Down
1 change: 1 addition & 0 deletions lib/browser/nokia.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Nokia < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/opera.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Opera < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/phantom_js.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class PhantomJS < Base
def id
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "browser/platform/base"
require "browser/platform/ios"
require "browser/platform/linux"
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/adobe_air.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class AdobeAir < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/android.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class Android < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/blackberry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class BlackBerry < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/chrome_os.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class ChromeOS < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/firefox_os.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class FirefoxOS < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/ios.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class IOS < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/linux.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class Linux < Base
Expand Down
1 change: 1 addition & 0 deletions lib/browser/platform/mac.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Browser
class Platform
class Mac < Base
Expand Down
Loading

0 comments on commit f6bab94

Please sign in to comment.