Skip to content

Commit d359ec1

Browse files
committed
- updated to newest version without snapshot flag
1 parent c3f0296 commit d359ec1

File tree

5 files changed

+56
-27
lines changed

5 files changed

+56
-27
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "breinify-api",
3-
"version": "1.0.0-snapshot",
3+
"version": "1.0.3",
44
"description": "This is a JavaScript library simplifying the usage of the Breinify API",
55
"authors": [
66
"Philipp Meisen <philipp@breinify.com>",

dist/breinify-api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* breinify-api
3-
* v1.0.2-snapshot
3+
* v1.0.3
44
**/
55
/*
66
* We inject a dependencyScope variable, which will be used
@@ -12373,7 +12373,7 @@ dependencyScope.jQuery = $;;
1237312373
});
1237412374

1237512375
var BreinifyConfig = function (config) {
12376-
this.version = '1.0.2-snapshot';
12376+
this.version = '1.0.3';
1237712377

1237812378
/*
1237912379
* Validate the passed config-parameters.
@@ -12534,7 +12534,7 @@ dependencyScope.jQuery = $;;
1253412534

1253512535
var BreinifyUser = function (user, onReady) {
1253612536
var instance = this;
12537-
instance.version = '1.0.2-snapshot';
12537+
instance.version = '1.0.3';
1253812538

1253912539
// set the values provided
1254012540
instance.setAll(user);
@@ -12766,7 +12766,7 @@ dependencyScope.jQuery = $;;
1276612766
* The one and only instance of the library.
1276712767
*/
1276812768
var Breinify = {
12769-
version: '1.0.2-snapshot',
12769+
version: '1.0.3',
1277012770
jQueryVersion: $.fn.jquery
1277112771
};
1277212772

dist/breinify-api.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gruntfile.js

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* "grunt-string-replace": "^1.2.1",
1616
* "main-bower-files": "^2.11.1"
1717
*
18-
* Template Version: 1.0.0
18+
* Template Version: 1.0.2
1919
*
2020
* Change Log:
2121
*
@@ -68,6 +68,8 @@ module.exports = function (grunt) {
6868
grunt.loadNpmTasks('grunt-string-replace');
6969
//noinspection JSUnresolvedFunction
7070
grunt.loadNpmTasks('grunt-contrib-jasmine');
71+
//noinspection JSUnresolvedFunction
72+
grunt.loadNpmTasks('grunt-sync-json');
7173

7274
//noinspection JSUnresolvedFunction
7375
grunt.initConfig({
@@ -79,6 +81,23 @@ module.exports = function (grunt) {
7981
*/
8082
pkg: grunt.file.readJSON('package.json'),
8183

84+
'sync-json': {
85+
'options': {
86+
'indent': 2,
87+
'include': [
88+
'name',
89+
'description',
90+
'version',
91+
'author as authors'
92+
]
93+
},
94+
bower: {
95+
files: {
96+
'bower.json': 'package.json'
97+
}
98+
}
99+
},
100+
82101
/*
83102
* For some tasks, we want to clean up a little.
84103
*/
@@ -172,19 +191,21 @@ module.exports = function (grunt) {
172191
paths: bowerPaths,
173192
overrides: {
174193
'brein-util': {'main': 'common/dist/brein-util-common.js'},
175-
'cryptojslib': {'main': [
176-
'components/core.js',
194+
'cryptojslib': {
195+
'main': [
196+
'components/core.js',
177197

178-
// base64 encoding
179-
'components/enc-base64.js',
198+
// base64 encoding
199+
'components/enc-base64.js',
180200

181-
// 'rollups/md5.js',
182-
'components/md5.js',
201+
// 'rollups/md5.js',
202+
'components/md5.js',
183203

184-
// 'rollups/hmac-sha256.js'
185-
'components/sha256.js',
186-
'components/hmac.js'
187-
]}
204+
// 'rollups/hmac-sha256.js'
205+
'components/sha256.js',
206+
'components/hmac.js'
207+
]
208+
}
188209
}
189210
},
190211
dest: 'target/dep'
@@ -336,6 +357,7 @@ module.exports = function (grunt) {
336357
tasks.push('clean:dep');
337358
tasks.push('createBowerDir');
338359
}
360+
tasks.push('sync-json:bower');
339361
tasks.push('bower-install-simple:dep');
340362
tasks.push('bower:dep');
341363

@@ -378,6 +400,13 @@ module.exports = function (grunt) {
378400
grunt.task.run('dist', 'jasmine:test', 'jasmine:testWithJQuery');
379401
});
380402

403+
//noinspection JSUnresolvedFunction
404+
grunt.registerTask('publish', 'Publishes the package to npm', function () {
405+
406+
//noinspection JSUnresolvedVariable
407+
grunt.task.run('dist', 'jasmine:test', 'jasmine:testWithJQuery');
408+
});
409+
381410
//noinspection JSUnresolvedFunction
382411
grunt.registerTask('help', 'Help output regarding the tasks', function () {
383412
console.log('Usage:');

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name": "breinify-api",
3-
"version": "1.0.2-snapshot",
3+
"version": "1.0.3",
44
"description": "This is a JavaScript library simplifying the usage of the Breinify API",
55
"authors": [
66
"Philipp Meisen <philipp@breinify.com>",
77
"Marco Recchioni <marco@breinify.com>",
88
"Diane Keng <diane@breinify.com>"
99
],
10-
1110
"license": "MIT",
1211
"private": false,
1312
"repository": {
@@ -18,9 +17,9 @@
1817
"scripts": {
1918
"test": "grunt test"
2019
},
21-
"dependencies": {
22-
},
20+
"dependencies": {},
2321
"devDependencies": {
22+
"cdnjs-importer": "^2.0.0-beta",
2423
"grunt": "^0.4.5",
2524
"grunt-bower-install-simple": "^1.2.1",
2625
"grunt-contrib-clean": "^1.0.0",
@@ -31,8 +30,9 @@
3130
"grunt-contrib-uglify": "^1.0.1",
3231
"grunt-contrib-watch": "^1.0.0",
3332
"grunt-string-replace": "^1.2.1",
34-
"main-bower-files": "^2.11.1",
33+
"grunt-sync-json": "^0.4.0",
3534
"jasmine-jquery": "^2.1.1",
36-
"jquery": "2.2.2"
35+
"jquery": "2.2.2",
36+
"main-bower-files": "^2.11.1"
3737
}
3838
}

0 commit comments

Comments
 (0)