From ee589b2133f224b31eb980e1cceafcc5b9f12e4d Mon Sep 17 00:00:00 2001 From: Rakesh Sharma Date: Thu, 30 Apr 2015 18:55:48 +0530 Subject: [PATCH 1/8] added support and test cases for Ubuntu Desktop and firefox and chromium latest browser --- dist/min/sniffer.min.js | 2 +- dist/min/sniffer.module.min.js | 2 +- dist/min/sniffer.pure.min.js | 2 +- dist/sniffer.js | 13 +++++++++- dist/sniffer.module.js | 13 +++++++++- dist/sniffer.pure.js | 13 +++++++++- src/sniffer.js | 13 +++++++++- test/test.js | 46 ++++++++++++++++++++++++++++++++++ 8 files changed, 97 insertions(+), 7 deletions(-) diff --git a/dist/min/sniffer.min.js b/dist/min/sniffer.min.js index 074af32..b0f17bc 100644 --- a/dist/min/sniffer.min.js +++ b/dist/min/sniffer.min.js @@ -5,4 +5,4 @@ * * MIT License */ -!function(a){var b=function(a){function b(){for(var a in g)c(g[a])}function c(b){for(var c=0;c Date: Thu, 30 Apr 2015 19:03:06 +0530 Subject: [PATCH 2/8] added support and test cases for Ubuntu Desktop and firefox and chromium latest browser --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 38b8f1f..c36f635 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Class names/shortcodes in square brackets. - **Windows** *[win]* - **Mac OS X** *[osx]* +- **Ubuntu** *[ubuntu]* - **Windows Phone** *[winphone]* - **Android** *[android]* - **iOS** *[ios]* From 5a526ad4b9e8f3e8bbb29ffd3c79ebf15e901e05 Mon Sep 17 00:00:00 2001 From: Rakesh Sharma Date: Mon, 4 May 2015 18:33:29 +0530 Subject: [PATCH 3/8] added support and test case for fedora linux desktop os --- .gitignore | 4 +- dist/min/sniffer.min.js | 2 +- dist/min/sniffer.module.min.js | 2 +- dist/min/sniffer.pure.min.js | 2 +- dist/sniffer.js | 27 ++++++++++- dist/sniffer.module.js | 27 ++++++++++- dist/sniffer.pure.js | 27 ++++++++++- src/sniffer.js | 27 ++++++++++- test/test.js | 88 +++++++++++++++++++++++++++++++++- 9 files changed, 197 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index b512c09..d4e0572 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules +.idea +dist \ No newline at end of file diff --git a/dist/min/sniffer.min.js b/dist/min/sniffer.min.js index b0f17bc..d948deb 100644 --- a/dist/min/sniffer.min.js +++ b/dist/min/sniffer.min.js @@ -5,4 +5,4 @@ * * MIT License */ -!function(a){var b=function(a){function b(){for(var a in g)c(g[a])}function c(b){for(var c=0;c Date: Tue, 5 May 2015 16:29:01 +0300 Subject: [PATCH 4/8] cleanup --- src/sniffer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sniffer.js b/src/sniffer.js index 0e86ffd..5936927 100644 --- a/src/sniffer.js +++ b/src/sniffer.js @@ -308,14 +308,14 @@ var Sniffer = function(ua) { { test: ['Fedora'], os: { - fullName: 'Fedora Linux', + fullName: 'Fedora', name: 'fedora', $version: { - search: /Fedora\//, + search: 'Fedora/', prop: 'majorVersion', names: { - '20':'Heisenbug', - '19': "Schrödinger's Cat", + '20': 'Heisenbug', + '19': 'Schrödinger\'s Cat', '18': 'Spherical Cow', '17': 'Beefy Miracle', '16': 'Verne', @@ -327,7 +327,7 @@ var Sniffer = function(ua) { '10': 'Cambridge', '9': 'Sulphur', '8': 'Werewolf', - '7': 'Moonshine', + '7': 'Moonshine' } } } From e7a09958f08d6e5a5e7b170a50c41b6b7c3c7f07 Mon Sep 17 00:00:00 2001 From: Oleg Korsunsky Date: Tue, 5 May 2015 16:31:31 +0300 Subject: [PATCH 5/8] add Fedora to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c36f635..55430c8 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Class names/shortcodes in square brackets. - **Windows** *[win]* - **Mac OS X** *[osx]* - **Ubuntu** *[ubuntu]* +- **Fedora** *[fedora]* - **Windows Phone** *[winphone]* - **Android** *[android]* - **iOS** *[ios]* From 02fec75f705f80163a31458cad3947fad8011213 Mon Sep 17 00:00:00 2001 From: Oleg Korsunsky Date: Tue, 5 May 2015 16:38:36 +0300 Subject: [PATCH 6/8] cleanup --- src/sniffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sniffer.js b/src/sniffer.js index 5936927..b8036af 100644 --- a/src/sniffer.js +++ b/src/sniffer.js @@ -301,7 +301,7 @@ var Sniffer = function(ua) { test: ['Ubuntu'], os: { fullName: 'Ubuntu', - name: 'ubuntu', + name: 'ubuntu' } }, // Fedora From f7191ed59950b9070bee5a838e2aab162eb00a15 Mon Sep 17 00:00:00 2001 From: Oleg Korsunsky Date: Tue, 5 May 2015 16:39:46 +0300 Subject: [PATCH 7/8] 2.3.0 --- dist/min/sniffer.min.js | 4 ++-- dist/min/sniffer.module.min.js | 4 ++-- dist/min/sniffer.pure.min.js | 4 ++-- dist/sniffer.js | 14 +++++++------- dist/sniffer.module.js | 14 +++++++------- dist/sniffer.pure.js | 14 +++++++------- package.json | 2 +- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dist/min/sniffer.min.js b/dist/min/sniffer.min.js index d948deb..005ca6b 100644 --- a/dist/min/sniffer.min.js +++ b/dist/min/sniffer.min.js @@ -1,8 +1,8 @@ /*! * Sniffer is a clientside browser/engine/os/device detection tool - * v. 2.2.0 | https://github.com/wilddeer/Sniffer + * v. 2.3.0 | https://github.com/wilddeer/Sniffer * Copyright Oleg Korsunsky | http://wd.dizaina.net/ * * MIT License */ -!function(a){var b=function(a){function b(){for(var a in g)c(g[a])}function c(b){for(var c=0;c Date: Tue, 5 May 2015 16:43:03 +0300 Subject: [PATCH 8/8] fix gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index d4e0572..eb79dd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules .idea -dist \ No newline at end of file