Skip to content

Commit

Permalink
Changing Linux to GNU/Linux Fixes #14 Refs #5276
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jun 10, 2014
1 parent a0ba5a3 commit a1001f8
Show file tree
Hide file tree
Showing 12 changed files with 224 additions and 238 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -19,7 +19,7 @@ notifications:
rooms:
- piwik:3HWhNh21qPfDACQXTrJOb0mW
- piwikpro:7OABSbDrywSTo2nv9lD2svXG

irc:
skip_join: true
on_success: change
Expand Down
2 changes: 1 addition & 1 deletion DeviceDetector.php
Expand Up @@ -29,7 +29,7 @@ class DeviceDetector
*
* @var array
*/
protected static $desktopOsArray = array('AmigaOS', 'IBM', 'Linux', 'Mac', 'Unix', 'Windows', 'BeOS');
protected static $desktopOsArray = array('AmigaOS', 'IBM', 'GNU/Linux', 'Mac', 'Unix', 'Windows', 'BeOS');

/**
* Constant used as value for unknown browser / os
Expand Down
4 changes: 2 additions & 2 deletions Parser/OperatingSystem.php
Expand Up @@ -54,7 +54,7 @@ class OperatingSystem extends ParserAbstract
'INF' => 'Inferno',
'KNO' => 'Knoppix',
'KBT' => 'Kubuntu',
'LIN' => 'Linux',
'LIN' => 'GNU/Linux',
'LBT' => 'Lubuntu',
'MAC' => 'Mac',
'MDR' => 'Mandriva',
Expand Down Expand Up @@ -129,7 +129,7 @@ class OperatingSystem extends ParserAbstract
'IBM' => array('OS2'),
'iOS' => array('IOS'),
'RISC OS' => array('ROS'),
'Linux' => array('LIN', 'ARL', 'DEB', 'KNO', 'MIN', 'UBT', 'KBT', 'XBT', 'LBT', 'FED', 'RHT', 'MDR', 'GNT', 'SAB', 'SLW', 'SSE', 'PPY', 'CES', 'BTR', 'YNS', 'PRS', 'SAF'),
'GNU/Linux' => array('LIN', 'ARL', 'DEB', 'KNO', 'MIN', 'UBT', 'KBT', 'XBT', 'LBT', 'FED', 'RHT', 'MDR', 'GNT', 'SAB', 'SLW', 'SSE', 'PPY', 'CES', 'BTR', 'YNS', 'PRS', 'SAF'),
'Mac' => array('MAC'),
'Mobile Gaming Console' => array('PSP', 'NDS', 'XBX'),
'Other Mobile' => array('WOS', 'POS', 'SBA', 'TIZ', 'SMG'),
Expand Down
4 changes: 2 additions & 2 deletions Tests/fixtures/car_browser.yml
Expand Up @@ -2,7 +2,7 @@
-
user_agent: Mozilla/5.0 (X11; u; Linux; C) AppleWebKit /533.3 (Khtml, like Gheko) QtCarBrowser Safari/533.3
os:
name: Linux
name: GNU/Linux
short_name: LIN
version:
client:
Expand All @@ -14,5 +14,5 @@
type: car browser
brand: TA
model: Model S
os_family: Linux
os_family: GNU/Linux
browser_family: Safari

0 comments on commit a1001f8

Please sign in to comment.