Commit 70aea552 by Rashid Khan

Merge branch 'master' into derive

parents 2c17a4d5 4e6bc71f
...@@ -189,6 +189,42 @@ module.exports = function (grunt) { ...@@ -189,6 +189,42 @@ module.exports = function (grunt) {
dest: '<%= pkg.name %>-latest' dest: '<%= pkg.name %>-latest'
} }
] ]
},
zip_release: {
options: {
archive: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.zip'
},
files : [
{
expand: true,
cwd: '<%= destDir %>',
src: ['**/*'],
dest: '<%= pkg.name %>-<%= pkg.version %>'
},
{
expand: true,
src: ['LICENSE.md', 'README.md'],
dest: '<%= pkg.name %>-<%= pkg.version %>'
}
]
},
tgz_release: {
options: {
archive: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
},
files : [
{
expand: true,
cwd: '<%= destDir %>',
src: ['**/*'],
dest: '<%= pkg.name %>-<%= pkg.version %>'
},
{
expand: true,
src: ['LICENSE.md', 'README.md'],
dest: '<%= pkg.name %>-<%= pkg.version %>'
}
]
} }
}, },
s3: { s3: {
...@@ -206,6 +242,21 @@ module.exports = function (grunt) { ...@@ -206,6 +242,21 @@ module.exports = function (grunt) {
dest: 'kibana/kibana/<%= pkg.name %>-latest.tar.gz', dest: 'kibana/kibana/<%= pkg.name %>-latest.tar.gz',
} }
] ]
},
release: {
bucket: 'download.elasticsearch.org',
access: 'private',
// debug: true, // uncommment to prevent actual upload
upload: [
{
src: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.zip',
dest: 'kibana/kibana/<%= pkg.name %>-<%= pkg.version %>.zip',
},
{
src: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz',
dest: 'kibana/kibana/<%= pkg.name %>-<%= pkg.version %>.tar.gz',
}
]
} }
} }
}; };
...@@ -306,6 +357,16 @@ module.exports = function (grunt) { ...@@ -306,6 +357,16 @@ module.exports = function (grunt) {
'clean:temp' 'clean:temp'
]); ]);
// build, then zip and upload to s3
grunt.registerTask('release', [
'distribute:load_s3_config',
'build',
'compress:zip_release',
'compress:tgz_release',
's3:release',
'clean:temp'
]);
// collect the key and secret from the .aws-config.json file, finish configuring the s3 task // collect the key and secret from the .aws-config.json file, finish configuring the s3 task
grunt.registerTask('distribute:load_s3_config', function () { grunt.registerTask('distribute:load_s3_config', function () {
var config = grunt.file.readJSON('.aws-config.json'); var config = grunt.file.readJSON('.aws-config.json');
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"company": "Elasticsearch BV" "company": "Elasticsearch BV"
}, },
"name": "kibana", "name": "kibana",
"version": "3.0.0m4pre", "version": "3.0.0milestone4",
"devDependencies": { "devDependencies": {
"rjs-build-analysis": "0.0.3", "rjs-build-analysis": "0.0.3",
"grunt": "~0.4.0", "grunt": "~0.4.0",
......
...@@ -316,6 +316,15 @@ function($, _, moment) { ...@@ -316,6 +316,15 @@ function($, _, moment) {
} }
unit = mathString.charAt(i++); unit = mathString.charAt(i++);
switch (unit) { switch (unit) {
case 'y':
if (type === 0) {
roundUp ? dateTime.endOf('year') : dateTime.startOf('year');
} else if (type === 1) {
dateTime.add('years',num);
} else if (type === 2) {
dateTime.subtract('years',num);
}
break;
case 'M': case 'M':
if (type === 0) { if (type === 0) {
roundUp ? dateTime.endOf('month') : dateTime.startOf('month'); roundUp ? dateTime.endOf('month') : dateTime.startOf('month');
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="navbar navbar-static-top"> <div class="navbar navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container-fluid"> <div class="container-fluid">
<span class="brand"><img src="img/small.png" bs-tooltip="'Kibana 3 milestone pre4'" data-placement="bottom"> {{dashboard.current.title}}</span> <span class="brand"><img src="img/small.png" bs-tooltip="'Kibana 3 milestone 4'" data-placement="bottom"> {{dashboard.current.title}}</span>
<ul class="nav pull-right" ng-controller='dashLoader' ng-init="init()" ng-include="'app/partials/dashLoader.html'"> <ul class="nav pull-right" ng-controller='dashLoader' ng-init="init()" ng-include="'app/partials/dashLoader.html'">
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment