Skip to content

Commit

Permalink
Additioanl fix to issue #64: more accurate license information
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhus committed Sep 27, 2016
1 parent 11415c0 commit 7f30afe
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 49 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Mykhailo Stadnyk
Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 23 additions & 0 deletions gauge.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gauge.min.js.map

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const replace = require('gulp-replace');
const babel = require('gulp-babel');
const fsc = require('fs-cli');
const semver = require('semver');
const inject = require('gulp-inject-string');

/**
* @typedef {{argv: object}} yargs
Expand Down Expand Up @@ -123,7 +124,9 @@ gulp.task('build:prod', done => {
'});' +
'}(typeof module !== "undefined" ? ' +
'module.exports : window));'))
.pipe(uglify())
.pipe(uglify({
preserveComments: (node, comment) => comment.line === 1
}))
.pipe(gulp.dest('dist/' + type))
.on('end', () => {
let pkg = JSON.parse(fs.readFileSync('./package.json'));
Expand Down Expand Up @@ -276,7 +279,9 @@ gulp.task('build:es5', ['clean'], () => {
'});' +
'}(typeof module !== "undefined" ? module.exports : window));'))
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(uglify())
.pipe(uglify({
preserveComments: (node, comment) => comment.line === 1
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('.'))
.on('end', () => {
Expand Down
7 changes: 2 additions & 5 deletions lib/Animation.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 23 additions & 0 deletions lib/BaseGauge.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*!
* The MIT License (MIT)
*
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
require('./polyfill');

const SmartCanvas = require('./SmartCanvas');
Expand Down
7 changes: 2 additions & 5 deletions lib/Collection.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/DomObserver.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/GenericOptions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/LinearGauge.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/RadialGauge.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/SmartCanvas.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/drawings.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 2 additions & 5 deletions lib/vendorize.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*!
* @license
* Minimalistic HTML5 Canvas Gauge implementation
* The MIT License (MIT)
*
* This code is subject to MIT license.
*
* Copyright (c) 2012 Mykhailo Stadnyk <mikhus@gmail.com>
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"gulp-eslint": "^3.0.1",
"gulp-gzip": "^1.4.0",
"gulp-help-doc": "^1.0.7",
"gulp-inject-string": "^1.1.0",
"gulp-mocha": "^3.0.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
Expand Down

0 comments on commit 7f30afe

Please sign in to comment.