Skip to content

Commit

Permalink
use Mobile-Detect@2.8.30
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Dec 24, 2017
1 parent 0b79c52 commit 8f36215
Show file tree
Hide file tree
Showing 8 changed files with 1,397 additions and 1,271 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.4.1:
date: 2017-12-24
changes:
- use Mobile-Detect@2.8.30

v1.4.0:
date: 2017-12-09
changes:
Expand Down
22 changes: 4 additions & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = function (grunt) {
},
gzSize: {
cmd: 'cat mobile-detect.min.js | gzip -9f | wc -c'
},
cpReadme: {
cmd: 'cp README.md ../mobile-detect.js@gh-pages/index.md'
}
},
jasmine_node: {
Expand Down Expand Up @@ -71,21 +74,6 @@ module.exports = function (grunt) {
files: '<%= jshint.lib_test.src %>',
tasks: ['jshint:lib_test', 'jasmine_node']
}
},
copy: {
jsdelivr: {
files: [
{
expand: true,
src: [
'mobile-detect.min.js',
'mobile-detect.js',
'mobile-detect-modernizr.js'
],
dest: '../jsdelivr/files/mobile-detect.js/<%= pkg.version %>/'
}
]
}
}
});

Expand All @@ -96,12 +84,10 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-contrib-copy');

// Default task.
grunt.registerTask('default', ['jshint', 'exec:generate', 'jasmine_node', 'uglify', 'exec:gzSize']);
grunt.registerTask('skip-tests', ['jshint', 'exec:generate', 'uglify', 'exec:gzSize']);
grunt.registerTask('dev', ['jshint']);
grunt.registerTask('gh-pages', ['jshint', 'exec:generate', 'jsdoc']);
grunt.registerTask('jsdelivr', ['copy:jsdelivr']);
grunt.registerTask('gh-pages', ['jshint', 'exec:generate', 'jsdoc', 'exec:cpReadme']);
};
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can find out information about the device rendering your web page:
* [Mobile Grade (A, B, C)](http://jquerymobile.com/gbs/)
* specific versions (e.g. WebKit)

Current `master` branch is using detection logic from **Mobile-Detect@2.8.28**
Current `master` branch is using detection logic from **Mobile-Detect@2.8.30**

# Live Demo

Expand Down Expand Up @@ -104,9 +104,9 @@ You can easily extend it, e.g. `android`, `iphone`, etc.

## Size (bytes)

* development: 67933
* minified: 37785
* minified + gzipped: 15754 (`cat mobile-detect.min.js | gzip -9f | wc -c`)
* development: 68349
* minified: 38036
* minified + gzipped: 15897 (`cat mobile-detect.min.js | gzip -9f | wc -c`)

# Installation

Expand All @@ -120,11 +120,11 @@ You can easily extend it, e.g. `android`, `iphone`, etc.

## CDN - [jsDelivr](http://www.jsdelivr.com/#!mobile-detect.js)

<script src="//cdn.jsdelivr.net/npm/mobile-detect@1.4.0/mobile-detect.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/mobile-detect@1.4.1/mobile-detect.min.js"></script>

## cdnjs - [cdnjs.com](https://cdnjs.com/libraries/mobile-detect)

<script src="//cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.0/mobile-detect.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.1/mobile-detect.min.js"></script>

# Extending/Modifying Behaviour

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobile-detect",
"version": "1.4.0",
"version": "1.4.1",
"description": "Device detection (phone, tablet, desktop, mobile grade, os, versions)",
"homepage": "http://hgoebl.github.io/mobile-detect.js/",
"keywords": [
Expand Down
34 changes: 19 additions & 15 deletions mobile-detect.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions mobile-detect.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobile-detect",
"version": "1.4.0",
"version": "1.4.1",
"description": "Device detection (phone, tablet, desktop, mobile grade, os, versions)",
"main": "mobile-detect.js",
"typings": "mobile-detect",
Expand Down Expand Up @@ -35,7 +35,6 @@
"devDependencies": {
"grunt": "~1.0.1",
"grunt-contrib-concat": "~1.0.1",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-jshint": "~1.0.0",
"grunt-contrib-uglify": "~2.0.0",
"grunt-contrib-watch": "~1.0.0",
Expand Down
Loading

0 comments on commit 8f36215

Please sign in to comment.